/*
  TealTide — SlashSEO Portal Theme
  Inspired by: TemplateMo 584 Pod Talk
  Design DNA: Wave aesthetics, teal-blue palette, pill elements,
  border-to-shadow card transitions, editorial content-first layout
*/

/* =========================================
   CUSTOM PROPERTIES
   ========================================= */
:root {
  --primary:        #00CC99;
  --secondary:      #0066CC;
  --section-bg:     #f0f8ff;
  --dark:           #0b0d0f;
  --text:           #717275;
  --white:          #ffffff;
  --border:         #7fffd4;
  --link-hover:     #0066CC;
  --wave-start:     #1a6bbf;
  --wave-end:       #00CC99;

  --ff-body:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs:    12px;
  --fs-sm:    14px;
  --fs-base:  16px;
  --fs-lg:    18px;
  --fs-xl:    22px;
  --fs-2xl:   28px;
  --fs-3xl:   36px;
  --fs-4xl:   46px;
  --fs-hero:  58px;

  --fw-light:    300;
  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  --radius-pill: 100px;
  --radius-lg:   20px;
  --radius-md:   12px;
  --radius-sm:   8px;

  --shadow-soft: 0 4px 24px rgba(0,102,204,0.10);
  --shadow-lift: 0 12px 40px rgba(0,102,204,0.16);

  --transition: all 0.3s ease;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-light);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--link-hover); }

b, strong { font-weight: var(--fw-bold); }

::selection { background: var(--primary); color: var(--white); }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-body);
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-hero); font-weight: var(--fw-black); }
h2 { font-size: var(--fs-4xl); font-weight: var(--fw-bold); }
h3 { font-size: var(--fs-3xl); font-weight: var(--fw-bold); }
h4 { font-size: var(--fs-2xl); font-weight: var(--fw-semibold); }
h5 { font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
h6 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }

p { font-size: var(--fs-base); font-weight: var(--fw-light); color: var(--text); line-height: 1.7; }

/* =========================================
   SECTION UTILITIES
   ========================================= */
.section-padding { padding-top: 90px; padding-bottom: 90px; }
.section-bg { background-color: var(--section-bg); }

/* Signature pill section title with horizontal rule — from source DNA */
.section-label-wrap {
  position: relative;
  margin-bottom: 48px;
}
.section-label-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--section-bg);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}
.section-bg .section-label-wrap::after { background: rgba(0,102,204,0.12); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--section-bg);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  position: relative;
  z-index: 2;
}
.section-bg .section-label { background: var(--white); }
.section-label::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.site-logo:hover { color: var(--border); }
.site-logo img { width: 40px; height: 40px; object-fit: contain; }
.logo-text { line-height: 1; }
.logo-text span { color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Scrolled header style */
.site-header.scrolled {
  position: fixed;
  background: rgba(10, 20, 40, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* =========================================
   HERO SECTION — Wave DNA
   ========================================= */
.hero-section {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-wave-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--wave-start) 0%, #0d4a96 50%, #0a3d82 100%);
  z-index: 0;
}

.hero-wave-decoration {
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
}

.hero-wave-top {
  position: absolute;
  top: -2px; right: 0;
  width: 55%;
  z-index: 1;
  opacity: 0.12;
}

/* Dot grid decoration */
.hero-dots {
  position: absolute;
  right: 5%;
  top: 20%;
  width: 200px; height: 200px;
  background-image: radial-gradient(circle, rgba(0,204,153,0.4) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,204,153,0.2);
  border: 1px solid rgba(0,204,153,0.4);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(38px, 5vw, var(--fs-hero));
  font-weight: var(--fw-black);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}
.hero-title .accent { color: var(--primary); }

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  line-height: 1.6;
}
.hero-subtitle p { color: rgba(255,255,255,0.75); font-size: inherit; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--dark) !important;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  align-self: flex-start;
}
.hero-cta:hover {
  background: var(--white);
  color: var(--secondary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,204,153,0.35);
}
.hero-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* =========================================
   LATEST POSTS — Editorial magazine layout
   ========================================= */
.posts-editorial {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2px;
}

/* Featured post — large left card */
.post-card-featured {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  border: 2px solid var(--primary);
  transition: var(--transition);
  background: var(--white);
}
.post-card-featured:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}
.post-card-featured .post-cover {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card-featured .post-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card-featured:hover .post-cover img { transform: scale(1.04); }
.post-card-featured .post-body { padding: 28px 32px 32px; }

/* Post grid — right column stack */
.post-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-card-small {
  background: var(--section-bg);
  border: 2px solid transparent;
  border-radius: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
}
.post-stack .post-card-small:first-child { border-radius: 0 var(--radius-lg) 0 0; }
.post-stack .post-card-small:last-child  { border-radius: 0 0 var(--radius-lg) 0; }
.post-card-small:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
  transform: translateX(-3px);
}
.post-card-small .thumb {
  overflow: hidden;
}
.post-card-small .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card-small:hover .thumb img { transform: scale(1.06); }
.post-card-small .post-body-sm { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; }

/* No-image fallback */
.post-no-image { background: linear-gradient(135deg, var(--section-bg) 0%, rgba(0,204,153,0.08) 100%); }

/* More posts grid below */
.posts-grid-more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.post-card-grid {
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card-grid:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}
.post-card-grid .post-cover {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.post-card-grid .post-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card-grid:hover .post-cover img { transform: scale(1.05); }
.post-card-grid .post-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }

/* Shared post elements */
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.post-date {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
}
.post-dot {
  width: 3px; height: 3px;
  background: var(--text);
  border-radius: 50%;
  opacity: 0.4;
}

.post-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  transition: var(--transition);
}
.post-title a { color: var(--dark); }
.post-title a:hover { color: var(--secondary); }

.post-title-sm {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.post-title-sm a { color: var(--dark); }
.post-title-sm a:hover { color: var(--secondary); }

.post-title-grid {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 10px;
}
.post-title-grid a { color: var(--dark); }
.post-title-grid a:hover { color: var(--secondary); }

.post-excerpt { font-size: var(--fs-sm); line-height: 1.65; color: var(--text); flex: 1; }
.post-excerpt p { font-size: inherit; color: inherit; }

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 16px;
  transition: var(--transition);
}
.post-read-more:hover { color: var(--primary); gap: 10px; }
.post-read-more svg { width: 14px; height: 14px; }

/* =========================================
   TOPICS SECTION — Staggered teal-border cards
   ========================================= */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Stagger effect */
.topics-grid .topic-card:nth-child(2) { margin-top: 30px; }
.topics-grid .topic-card:nth-child(4) { margin-top: -30px; }
.topics-grid .topic-card:nth-child(5) { margin-top: 20px; }

.topic-card {
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  background: var(--white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.topic-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}
.topic-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}
.topic-card:hover::before { opacity: 1; }

.topic-number {
  font-size: 48px;
  font-weight: var(--fw-black);
  color: rgba(0,204,153,0.12);
  line-height: 1;
  margin-bottom: -8px;
  letter-spacing: -0.04em;
  transition: var(--transition);
}
.topic-card:hover .topic-number { color: rgba(0,204,153,0.25); }

.topic-name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.topic-desc { font-size: var(--fs-sm); line-height: 1.65; }
.topic-desc p { font-size: inherit; color: var(--text); }

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }

.faq-item {
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.3s;
}
.faq-item.open {
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--dark);
  transition: var(--transition);
}
.faq-question:hover { color: var(--secondary); }

.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--section-bg);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.faq-item.open .faq-icon {
  background: var(--primary);
  transform: rotate(45deg);
}
.faq-icon svg { width: 12px; height: 12px; stroke: var(--secondary); stroke-width: 2.5; }
.faq-item.open .faq-icon svg { stroke: var(--white); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.7;
  border-top: 1px solid var(--section-bg);
}
.faq-answer-inner p { font-size: inherit; color: inherit; }

/* =========================================
   BLOG INDEX PAGE
   ========================================= */
.blog-header {
  background: linear-gradient(135deg, var(--wave-start) 0%, #0d4a96 60%, #0a3d82 100%);
  position: relative;
  overflow: hidden;
  padding: 140px 0 70px;
}
.blog-header-wave {
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.blog-header-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.blog-header h1 { color: var(--white); font-size: var(--fs-3xl); }
.blog-header p { color: rgba(255,255,255,0.7); margin-top: 8px; }

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.blog-post-card {
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-post-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}
.blog-post-card .post-cover {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.blog-post-card .post-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-post-card:hover .post-cover img { transform: scale(1.05); }
.blog-post-card .post-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }

/* =========================================
   PAGINATION
   ========================================= */
.pagination-wrap {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
.pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dee2e6;
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  list-style: none;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
  transition: var(--transition);
  padding: 0 8px;
}
.pagination a:hover { background: var(--secondary); color: var(--white); }
.pagination .active { background: var(--secondary); color: var(--white); border-radius: var(--radius-sm); }
.pagination .prev, .pagination .next {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  padding: 0 14px;
}

/* =========================================
   POST PAGE
   ========================================= */
.post-header {
  background: linear-gradient(135deg, var(--wave-start) 0%, #0d4a96 60%, #0a3d82 100%);
  position: relative;
  overflow: hidden;
  padding: 140px 0 70px;
}
.post-header-wave { position: absolute; bottom: -2px; left: 0; width: 100%; z-index: 1; line-height: 0; }
.post-header-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.post-header h1 {
  color: var(--white);
  font-size: clamp(28px, 4vw, var(--fs-3xl));
  margin-bottom: 16px;
  line-height: 1.2;
}
.post-header-meta { display: flex; align-items: center; gap: 12px; }
.post-header-date {
  color: var(--primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.post-cover-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  border: 2px solid var(--primary);
}
.post-cover-wrap img { width: 100%; }

.post-excerpt-lead {
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  color: var(--secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  padding-left: 20px;
  border-left: 3px solid var(--primary);
}
.post-excerpt-lead p { font-size: inherit; color: inherit; }

.post-content { font-size: var(--fs-base); line-height: 1.8; color: #444; }
.post-content h2 { margin: 36px 0 16px; font-size: var(--fs-2xl); }
.post-content h3 { margin: 28px 0 12px; font-size: var(--fs-xl); }
.post-content p  { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 8px; color: #444; }
.post-content a { color: var(--secondary); border-bottom: 1px solid rgba(0,102,204,0.3); padding-bottom: 1px; }
.post-content a:hover { color: var(--primary); border-color: var(--primary); }
.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--section-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-content blockquote p { color: var(--secondary); font-style: italic; }
.post-content img { border-radius: var(--radius-md); margin: 24px 0; }
.post-content code {
  background: var(--section-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--secondary);
}

/* =========================================
   PAGE TEMPLATE
   ========================================= */
.page-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.page-article h1 {
  font-size: var(--fs-3xl);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--section-bg);
}

/* =========================================
   FOOTER — Wave DNA (mirror of hero)
   ========================================= */
.site-footer {
  background: linear-gradient(to bottom, var(--white) 0%, #e8f4ff 20%, #1a6bbf 60%, #0d4a96 100%);
  position: relative;
  margin-top: -60px;
  padding-top: 100px;
  overflow: hidden;
}
.footer-wave-top {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  line-height: 0;
  z-index: 0;
}
.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .site-logo { color: var(--white); margin-bottom: 16px; }
.footer-brand .site-logo:hover { color: var(--primary); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: var(--fs-sm); line-height: 1.7; }

.footer-col-title {
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(127,255,212,0.25);
}

.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  transition: var(--transition);
  padding: 3px 0;
}
.footer-nav a:hover { color: var(--primary); padding-left: 6px; }

.footer-contact-email {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-sm);
  border-bottom: 1px solid rgba(127,255,212,0.4);
  padding-bottom: 2px;
  transition: var(--transition);
}
.footer-contact-email:hover { color: var(--primary); border-color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(127,255,212,0.2);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copyright {
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-xs);
}

/* =========================================
   SKIP LINK (ACCESSIBILITY)
   ========================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 20px;
  background: var(--primary);
  color: var(--dark);
  padding: 8px 20px;
  border-radius: 0 0 8px 8px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Focus styles */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =========================================
   CONTAINER
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .topics-grid .topic-card:nth-child(n) { margin-top: 0; }
  .posts-editorial { grid-template-columns: 1fr; }
  .post-card-featured { border-radius: var(--radius-lg); }
  .post-stack { display: grid; grid-template-columns: repeat(2, 1fr); }
  .post-card-small:first-child, .post-card-small:last-child { border-radius: 0; }
  .post-card-small { border-radius: var(--radius-lg) !important; border: 2px solid var(--primary); }
  .posts-grid-more { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: rgba(10,20,40,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 32px;
    gap: 8px;
    transition: right 0.35s ease;
    z-index: 150;
  }
  .site-nav.open { right: 0; }
  .site-nav a {
    width: 100%;
    font-size: var(--fs-base);
    padding: 12px 16px;
  }

  .hero-content { grid-template-columns: 1fr; gap: 28px; }
  .hero-dots { display: none; }

  .posts-editorial { grid-template-columns: 1fr; }
  .post-stack { grid-template-columns: 1fr; }
  .post-card-small { grid-template-columns: 100px 1fr; }
  .posts-grid-more { grid-template-columns: 1fr; }

  .topics-grid { grid-template-columns: 1fr; }
  .topics-grid .topic-card:nth-child(n) { margin-top: 0; }

  .blog-posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section-padding { padding-top: 60px; padding-bottom: 60px; }

  .site-footer { margin-top: -30px; padding-top: 60px; }
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  .hero-section { padding-top: 100px; padding-bottom: 50px; }
  .post-card-small { grid-template-columns: 1fr; }
  .post-card-small .thumb { height: 140px; }
}
