/* ===================================================================
   MODERN BLOG THEME - CUSTOM STYLES
   Contemporary design with bold typography and innovative layout
   =================================================================== */

/* === Base Settings ================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #1a1a2e;
  background: #eef1f6;
  overflow-x: hidden;
}

/* === Header with Centered Layout =================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

/* Logo - positioned on the right */
.site-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
  color: #ffffff;
}

.site-logo span {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Tagline - positioned in the center */
.site-tagline {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Hamburger button - positioned on the left */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 34px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: transform 0.3s ease;
  order: -1;
}

.hamburger-btn:hover {
  transform: scale(1.15);
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger animation when open */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(9px, -9px);
}

/* Fullscreen menu */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.fullscreen-menu.active {
  left: 0;
}

.fullscreen-menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}

.fullscreen-menu li {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.fullscreen-menu.active li {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for menu items */
.fullscreen-menu.active li:nth-child(1) { transition-delay: 0.15s; }
.fullscreen-menu.active li:nth-child(2) { transition-delay: 0.25s; }
.fullscreen-menu.active li:nth-child(3) { transition-delay: 0.35s; }
.fullscreen-menu.active li:nth-child(4) { transition-delay: 0.45s; }
.fullscreen-menu.active li:nth-child(5) { transition-delay: 0.55s; }

.fullscreen-menu .nav-link {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  text-transform: uppercase;
}

.fullscreen-menu .nav-link::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 4px;
  background: #f9d423;
  transition: width 0.4s ease;
}

.fullscreen-menu .nav-link:hover {
  color: #f9d423;
  transform: scale(1.1);
}

.fullscreen-menu .nav-link:hover::after {
  width: 100%;
}

.fullscreen-menu .current-menu-item .nav-link,
.fullscreen-menu .current_page_item .nav-link {
  color: #f9d423;
}

/* Offset for fixed header */
body {
  padding-top: 85px;
}


/* === Hero Banner Section =========================================== */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8rem 2rem 6rem;
  text-align: center;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.45) 0%, rgba(118, 75, 162, 0.45) 100%);
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Stats Section ================================================= */
.stats-section {
  background: #ffffff;
  padding: 4rem 2rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.stats-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.stat-item:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #667eea;
  margin-bottom: 0.5rem;
  line-height: 1;
  letter-spacing: -2px;
  transition: color 0.4s ease;
}

.stat-item:hover .stat-number {
  color: #ffffff;
}

.stat-label {
  font-size: 1.1rem;
  color: #5a5a6e;
  font-weight: 600;
  transition: color 0.4s ease;
}

.stat-item:hover .stat-label {
  color: rgba(255, 255, 255, 0.95);
}

/* === Featured Topics Section ======================================= */
.featured-topics {
  max-width: 1600px;
  margin: 5rem auto;
  padding: 0 3rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: -1.5px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 1.5rem auto 0;
  border-radius: 10px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.topic-card {
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid #e8e4df;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.topic-card:hover::before {
  transform: scaleX(1);
}

.topic-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.topic-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: grayscale(0.3);
  transition: all 0.4s ease;
}

.topic-card:hover .topic-icon {
  filter: grayscale(0);
  transform: scale(1.15) rotate(5deg);
}

.topic-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.topic-card p {
  font-size: 1.05rem;
  color: #5a5a6e;
  line-height: 1.7;
  margin: 0;
}

/* === Latest Articles Section ======================================= */
.latest-articles-section {
  max-width: 1600px;
  margin: 5rem auto;
  padding: 0 3rem;
}

.latest-articles-section .section-title {
  margin-bottom: 3.5rem;
}

/* === CTA Section =================================================== */
.cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  padding: 6rem 2rem;
  margin: 5rem 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.cta-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -1.5px;
}

.cta-description {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 1.25rem 3.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.cta-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.cta-secondary {
  background: transparent;
  color: #ffffff;
  border: 3px solid #ffffff;
}

.cta-secondary:hover {
  background: #ffffff;
  color: #667eea;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* === Hero Section (for index page) ================================= */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 5rem 2rem;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero-content p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  font-weight: 400;
}


/* === Post List with Masonry-style Grid ============================= */
.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1600px;
  margin: 0 auto 4rem;
  padding: 0 3rem;
}

/* === Post Card ==================================================== */
.post-item {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
}

.post-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
  border-color: #667eea;
}

/* Post Image */
.post-featured-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.post-item:hover .post-featured-image img {
  transform: scale(1.15) rotate(2deg);
}

/* Post Title */
.post-item h3 {
  font-size: 1.5rem;
  margin: 2rem 2rem 1rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.post-item h3 a {
  color: #1a1a2e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-item h3 a:hover {
  color: #667eea;
}

/* Post Excerpt */
.post-item p {
  margin: 0 2rem 2rem;
  color: #5a5a6e;
  font-size: 1.05rem;
  line-height: 1.8;
  flex: 1 0 auto;
}

/* Read More Link */
.post-item > a:last-of-type {
  align-self: flex-start;
  margin: 0 2rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-item > a:last-of-type:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateX(8px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* === Pagination =================================================== */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 4rem auto 5rem;
  font-weight: 700;
  max-width: 1600px;
  padding: 0 3rem;
}

.page-numbers {
  display: inline-block;
  padding: 1rem 1.5rem;
  border: 3px solid #667eea;
  border-radius: 12px;
  text-decoration: none;
  color: #667eea;
  transition: all 0.3s ease;
  font-weight: 700;
  font-size: 1.05rem;
}

.page-numbers.current,
.page-numbers:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-color: #764ba2;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.page-numbers.dots {
  border: none;
  background: transparent;
}

.page-numbers.dots:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.prev.page-numbers,
.next.page-numbers {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-color: #764ba2;
}

.prev.page-numbers:hover,
.next.page-numbers:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* === Breadcrumbs =================================================== */
.breadcrumbs {
  max-width: 1600px;
  margin: 2.5rem auto 0;
  padding: 0 3rem;
  font-size: 1rem;
  color: #7a7a8e;
  font-weight: 500;
}

.breadcrumbs a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.breadcrumbs span {
  color: #5a5a6e;
}

/* === Page/Post Content Container =================================== */
.page-content {
  max-width: 1100px;
  margin: 3.5rem auto 5rem;
  padding: 4rem;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-left: 8px solid #667eea;
}

/* Featured Image in Post/Page */
.page-content .post-featured-image {
  margin: -4rem -4rem 3rem;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.page-content .post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Page Title */
.page-content h1 {
  font-size: 3rem;
  margin-bottom: 2.5rem;
  line-height: 1.2;
  color: #1a1a2e;
  font-weight: 900;
  letter-spacing: -1.5px;
}

/* Content Text */
.page-content .content {
  font-size: 1.2rem;
  line-height: 1.9;
  color: #3a3a4e;
}

.page-content .content p {
  margin-bottom: 1.75rem;
}

.page-content .content h2 {
  font-size: 2.25rem;
  margin: 3rem 0 1.5rem;
  color: #1a1a2e;
  font-weight: 800;
  letter-spacing: -1px;
}

.page-content .content h3 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1.25rem;
  color: #1a1a2e;
  font-weight: 700;
}

.page-content .content ul,
.page-content .content ol {
  margin: 2rem 0 2rem 2.5rem;
}

.page-content .content li {
  margin-bottom: 1rem;
}

.page-content .content a {
  color: #667eea;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-content .content a:hover {
  color: #764ba2;
}

/* === Recommended Articles ========================================== */
.recommended-articles {
  max-width: 1600px;
  margin: 5rem auto;
  padding: 0 3rem;
}

.recommended-title {
  font-size: 2.75rem;
  font-weight: 900;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -1px;
  position: relative;
}

.recommended-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 5px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 1.5rem auto 0;
  border-radius: 10px;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.recommended-item {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.recommended-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.recommended-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.recommended-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.recommended-item:hover .recommended-image img {
  transform: scale(1.12);
}

.recommended-item h3 {
  font-size: 1.4rem;
  margin: 1.75rem 1.75rem 1rem;
  line-height: 1.3;
  font-weight: 700;
}

.recommended-item h3 a {
  color: #1a1a2e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.recommended-item h3 a:hover {
  color: #667eea;
}

.recommended-item p {
  margin: 0 1.75rem 1.5rem;
  color: #5a5a6e;
  font-size: 1.05rem;
  line-height: 1.7;
  flex: 1 0 auto;
}

.recommended-link {
  display: inline-block;
  margin: 0 1.75rem 2rem;
  color: #667eea;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recommended-link::after {
  content: ' →';
  transition: transform 0.3s ease;
  display: inline-block;
}

.recommended-link:hover {
  color: #764ba2;
  transform: translateX(5px);
}

.recommended-link:hover::after {
  transform: translateX(8px);
}

/* === 404 Error Page ================================================ */
.error-404 {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.error-404 h1 {
  font-size: 10rem;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.error-404 h2 {
  font-size: 2.5rem;
  color: #1a1a2e;
  margin-bottom: 2rem;
  font-weight: 800;
}

.error-404 p {
  font-size: 1.2rem;
  color: #5a5a6e;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.error-404 a {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 1.25rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.error-404 a:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

/* === Footer with Multi-Column Layout =============================== */
footer {
  background: #1a1a2e;
  color: #c5c5d8;
  padding: 4rem 3rem 2rem;
  border-top: 6px solid #667eea;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f9d423 100%);
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

/* Footer Column 1 - Branding */
.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.footer-brand p {
  font-size: 1rem;
  line-height: 1.7;
  color: #a5a5b8;
  margin-bottom: 1.5rem;
}

/* Footer Menu Columns */
.footer-menu-wrapper {
  display: contents;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 1rem;
}

.footer-menu a {
  font-size: 1rem;
  color: #c5c5d8;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-block;
}

.footer-menu a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

/* Footer Copyright */
.footer-copyright {
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  color: #8a8a9e;
}

.footer-copyright a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.footer-copyright a:hover {
  color: #f9d423;
  text-decoration: underline;
}

/* === Responsive Design ============================================= */

/* Large Tablets and Medium Screens */
@media (max-width: 1400px) and (min-width: 901px) {
  .post-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 0 2rem;
  }
}

/* Tablets */
@media (max-width: 1200px) {
  .post-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 0 2rem;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Medium Devices */
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 1rem 2rem;
  }
  
  .site-tagline {
    font-size: 0.85rem;
  }
  
  .site-logo span {
    font-size: 1.5rem;
  }
  
  .fullscreen-menu .nav-link {
    font-size: 2.25rem;
  }
  
  .hero-banner {
    padding: 6rem 2rem 5rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .stats-section {
    padding: 3rem 2rem;
  }
  
  .stats-container {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.75rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
  
  .featured-topics,
  .latest-articles-section {
    padding: 0 2rem;
    margin: 4rem auto;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cta-section {
    padding: 5rem 2rem;
  }
  
  .cta-title {
    font-size: 2.5rem;
  }
  
  .cta-description {
    font-size: 1.2rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.25rem;
  }
  
  .post-list {
    padding: 0 2rem;
    gap: 2.25rem;
  }
  
  .page-content {
    padding: 3rem 2.5rem;
    margin: 2.5rem 2rem 4rem;
  }
  
  .page-content .post-featured-image {
    margin: -3rem -2.5rem 2.5rem;
  }
  
  .page-content h1 {
    font-size: 2.25rem;
  }
  
  .breadcrumbs {
    font-size: 0.9rem;
    padding: 0 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Mobile Devices */
@media (max-width: 600px) {
  body {
    padding-top: 75px;
  }
  
  .site-header {
    grid-template-columns: auto 1fr;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  
  .site-tagline {
    display: none;
  }
  
  .site-logo span {
    font-size: 1.25rem;
  }
  
  .hamburger-btn {
    width: 30px;
    height: 24px;
  }
  
  .fullscreen-menu .nav-link {
    font-size: 1.75rem;
  }
  
  .hero-banner {
    padding: 4rem 1.5rem 3.5rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
    letter-spacing: -1px;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .stats-section {
    padding: 2.5rem 1.5rem;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-item {
    padding: 1.75rem 1.25rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 0.95rem;
  }
  
  .featured-topics,
  .latest-articles-section {
    padding: 0 1.5rem;
    margin: 3rem auto;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
  
  .section-title::after {
    width: 80px;
    height: 5px;
  }
  
  .topics-grid {
    gap: 1.5rem;
  }
  
  .topic-card {
    padding: 2.5rem 2rem;
  }
  
  .topic-icon {
    font-size: 3rem;
  }
  
  .topic-card h3 {
    font-size: 1.5rem;
  }
  
  .topic-card p {
    font-size: 1rem;
  }
  
  .cta-section {
    padding: 4rem 1.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }
  
  .cta-description {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-btn {
    padding: 1.15rem 2.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 320px;
  }
  
  .hero-section {
    padding: 3rem 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .post-list {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
    gap: 2rem;
  }
  
  .post-item h3 {
    font-size: 1.3rem;
    margin: 1.5rem 1.5rem 0.75rem;
  }
  
  .post-item p {
    margin: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .post-item > a:last-of-type {
    margin: 0 1.5rem 1.75rem;
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
  }
  
  .page-content {
    padding: 2rem 1.5rem;
    margin: 2rem 1rem 3rem;
    border-left-width: 5px;
  }
  
  .page-content .post-featured-image {
    margin: -2rem -1.5rem 2rem;
  }
  
  .page-content h1 {
    font-size: 1.75rem;
  }
  
  .page-content .content {
    font-size: 1.05rem;
  }
  
  .page-content .content h2 {
    font-size: 1.65rem;
  }
  
  .page-content .content h3 {
    font-size: 1.35rem;
  }
  
  .breadcrumbs {
    font-size: 0.85rem;
    padding: 0 1.5rem;
  }
  
  .recommended-articles {
    padding: 0 1.5rem;
    margin: 4rem auto;
  }
  
  .recommended-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
  
  .recommended-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .error-404 h1 {
    font-size: 6rem;
  }
  
  .error-404 h2 {
    font-size: 1.75rem;
  }
  
  footer {
    padding: 3rem 1.5rem 1.5rem;
  }
  
  .footer-content {
    gap: 2rem;
  }
  
  .footer-brand h3 {
    font-size: 1.5rem;
  }
}

/* Block scrolling when menu is open */
body.menu-open {
  overflow: hidden;
}
