/* ============================================
   EMBER CHRONICLE THEME
   Visual DNA: Feane template adaptation
   - Dark charcoal + amber/gold palette
   - Warm serif headings + clean sans body
   - Pill-shaped buttons & rounded elements
   - Alternating dark/light section rhythm
   - Full-viewport hero with overlay
   ============================================ */

:root {
  --color-charcoal: #222831;
  --color-charcoal-deep: #1a1f27;
  --color-amber: #ffbe33;
  --color-amber-hover: #e6a520;
  --color-amber-soft: rgba(255, 190, 51, 0.12);
  --color-white: #ffffff;
  --color-offwhite: #f8f7f4;
  --color-gray-light: #f1f2f3;
  --color-gray-mid: #a0a0a0;
  --color-gray-text: #dbdbdb;
  --color-body-text: #333333;
  --color-link: #ffbe33;

  --font-heading: Georgia, "Times New Roman", "Palatino Linotype", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-pill: 45px;
  --radius-card: 14px;
  --radius-small: 6px;

  --container-width: 1140px;
  --header-height: 72px;

  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-body-text);
  background-color: var(--color-white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

ul, ol {
  list-style: none;
}

/* ── UTILITY ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── HEADER ──────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-charcoal);
  transition: background-color var(--transition-base);
}

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

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-img {
  height: 38px;
  width: auto;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-white);
  font-style: italic;
}

/* hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  position: relative;
  z-index: 1001;
}

.hamburger-line,
.hamburger-line::before,
.hamburger-line::after {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 3px;
  transition: all var(--transition-base);
  position: absolute;
  left: 5px;
}

.hamburger-line { top: 50%; transform: translateY(-50%); }
.hamburger-line::before { content: ""; top: -8px; }
.hamburger-line::after { content: ""; top: 8px; }

.menu-toggle[aria-expanded="true"] .hamburger-line {
  background-color: transparent;
}
.menu-toggle[aria-expanded="true"] .hamburger-line::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger-line::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-block;
  padding: 6px 18px;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--color-amber);
}

/* ── HERO SECTION ────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-charcoal);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,40,49,0.92) 0%, rgba(34,40,49,0.7) 100%);
  z-index: 1;
}

.hero-decorative-circle {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 2px solid rgba(255,190,51,0.15);
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.hero-decorative-circle::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px solid rgba(255,190,51,0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 60px) 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  color: var(--color-white);
}

.hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 20px;
  padding: 5px 16px;
  border: 1px solid rgba(255,190,51,0.35);
  border-radius: var(--radius-pill);
}

.hero-title {
  font-size: 3.2rem;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-title .accent {
  color: var(--color-amber);
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-gray-text);
  margin-bottom: 32px;
}

.hero-subtitle p {
  margin-bottom: 0.5em;
}

.btn-pill {
  display: inline-block;
  padding: 13px 42px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-amber);
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.btn-pill:hover {
  background-color: var(--color-amber-hover);
  transform: translateY(-2px);
}

.btn-pill-outline {
  display: inline-block;
  padding: 13px 42px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-amber);
  background-color: transparent;
  border: 2px solid var(--color-amber);
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
}

.btn-pill-outline:hover {
  background-color: var(--color-amber);
  color: var(--color-white);
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  max-width: 420px;
}

.hero-stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  text-align: center;
  color: var(--color-white);
  transition: all var(--transition-base);
}

.hero-stat-card:hover {
  background: rgba(255,190,51,0.1);
  border-color: rgba(255,190,51,0.25);
  transform: translateY(-4px);
}

.hero-stat-card .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-amber-soft);
  margin-bottom: 14px;
}

.hero-stat-card .stat-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-amber);
}

.hero-stat-card .stat-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── TOPICS SECTION ──────────────────────── */
.topics-section {
  background-color: var(--color-offwhite);
  padding: 90px 0;
}

.section-header {
  margin-bottom: 50px;
}

.section-header .section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 12px;
}

.section-header .section-title {
  font-size: 2.5rem;
  font-style: italic;
  color: var(--color-charcoal);
}

.section-header .section-title .accent {
  color: var(--color-amber);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  border-left: 4px solid transparent;
}

.topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 0 0 0 80px;
  background: var(--color-amber-soft);
  transition: all var(--transition-base);
}

.topic-card:hover {
  border-left-color: var(--color-amber);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(34,40,49,0.08);
}

.topic-card:hover::before {
  width: 100px;
  height: 100px;
}

.topic-card-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 10px;
  position: relative;
}

.topic-card-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #666;
  position: relative;
}

.topic-card-desc p {
  margin-bottom: 0;
}

/* ── LATEST POSTS SECTION ────────────────── */
.posts-section {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: 90px 0;
}

.posts-section .section-title {
  color: var(--color-white);
}

.posts-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.post-featured {
  grid-row: span 2;
}

.post-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all var(--transition-base);
}

.post-card:hover {
  border-color: rgba(255,190,51,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card-img {
  transform: scale(1.04);
}

.post-card-img-wrap {
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.post-card-body {
  padding: 28px 26px;
}

.post-card-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-amber);
  margin-bottom: 10px;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.post-card-title a {
  color: var(--color-white);
  transition: color var(--transition-base);
}

.post-card-title a:hover {
  color: var(--color-amber);
}

.post-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-gray-text);
  margin-bottom: 18px;
}

.post-card-excerpt p {
  margin-bottom: 0;
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-amber);
  transition: gap var(--transition-base);
}

.post-read-more:hover {
  gap: 14px;
  color: var(--color-amber);
}

.post-read-more svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Featured post specific */
.post-featured .post-card-body {
  padding: 32px 30px;
}

.post-featured .post-card-title {
  font-size: 1.65rem;
}

.post-featured .post-card-img {
  aspect-ratio: 3/2;
}

/* Side posts */
.posts-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-side-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all var(--transition-base);
}

.post-side-card:hover {
  border-color: rgba(255,190,51,0.3);
}

.post-side-card .post-card-img-wrap {
  border-radius: var(--radius-card) 0 0 var(--radius-card);
}

.post-side-card .post-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.post-side-card .post-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-side-card .post-card-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.post-side-card .post-card-excerpt {
  display: none;
}

.posts-view-all {
  text-align: center;
  margin-top: 48px;
}

/* ── FAQ SECTION ─────────────────────────── */
.faq-section {
  background-color: var(--color-offwhite);
  padding: 90px 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.faq-intro .section-title {
  margin-bottom: 16px;
}

.faq-intro p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(34,40,49,0.06);
  transition: all var(--transition-base);
}

.faq-item:hover {
  box-shadow: 0 6px 24px rgba(34,40,49,0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-charcoal);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  line-height: 1.4;
}

.faq-question .faq-toggle-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--color-amber-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.faq-question .faq-toggle-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--color-amber);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question .faq-toggle-icon {
  background: var(--color-amber);
}

.faq-item.active .faq-question .faq-toggle-icon svg {
  fill: var(--color-white);
  transform: rotate(45deg);
}

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

.faq-answer-inner {
  padding-bottom: 24px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #555;
}

.faq-answer-inner p {
  margin-bottom: 0.6em;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

/* ── PAGE TEMPLATE ───────────────────────── */
.page-hero {
  background: var(--color-charcoal);
  padding: calc(var(--header-height) + 60px) 0 60px;
  text-align: center;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-style: italic;
  color: var(--color-white);
}

.page-content-section {
  padding: 70px 0 90px;
}

.page-content-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.page-content-wrap h1,
.page-content-wrap h2,
.page-content-wrap h3,
.page-content-wrap h4 {
  color: var(--color-charcoal);
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.page-content-wrap h2 { font-size: 1.8rem; }
.page-content-wrap h3 { font-size: 1.4rem; }

.page-content-wrap p {
  margin-bottom: 1.4em;
  line-height: 1.85;
  color: #444;
}

.page-content-wrap a {
  color: var(--color-amber);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

.page-content-wrap a:hover {
  border-bottom-color: var(--color-amber);
}

.page-content-wrap ul,
.page-content-wrap ol {
  margin-bottom: 1.4em;
  padding-left: 28px;
  list-style: disc;
}

.page-content-wrap ol {
  list-style: decimal;
}

.page-content-wrap li {
  margin-bottom: 0.5em;
  line-height: 1.75;
  color: #444;
}

.page-content-wrap blockquote {
  border-left: 4px solid var(--color-amber);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--color-amber-soft);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  font-style: italic;
}

.page-content-wrap img {
  border-radius: var(--radius-card);
  margin: 2em 0;
}

/* ── BLOG INDEX ──────────────────────────── */
.blog-hero {
  background: var(--color-charcoal);
  padding: calc(var(--header-height) + 50px) 0 50px;
  text-align: center;
}

.blog-hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-style: italic;
  color: var(--color-white);
}

.blog-index-section {
  padding: 60px 0 90px;
  background: var(--color-offwhite);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid rgba(34,40,49,0.05);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(34,40,49,0.08);
  border-color: rgba(255,190,51,0.2);
}

.blog-card-img-wrap {
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 28px 26px;
}

.blog-card-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-amber);
  margin-bottom: 10px;
  display: block;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card-title a {
  color: inherit;
}

.blog-card-title a:hover {
  color: var(--color-amber);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 16px;
}

.blog-card-excerpt p {
  margin-bottom: 0;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 56px;
}

.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-charcoal);
  background: var(--color-white);
  border: 1px solid rgba(34,40,49,0.1);
  transition: all var(--transition-base);
}

.pagination-wrap a:hover {
  background: var(--color-amber);
  color: var(--color-white);
  border-color: var(--color-amber);
}

.pagination-wrap a.active,
.pagination-wrap span.active {
  background: var(--color-amber);
  color: var(--color-white);
  border-color: var(--color-amber);
}

.pagination-wrap .pagination-prev,
.pagination-wrap .pagination-next {
  font-size: 14px;
  padding: 0 22px;
}

/* ── POST SINGLE ─────────────────────────── */
.post-hero {
  background: var(--color-charcoal);
  padding: calc(var(--header-height) + 50px) 0 50px;
}

.post-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.post-hero-date {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-amber);
  margin-bottom: 14px;
}

.post-hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-style: italic;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.post-hero-excerpt {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-gray-text);
}

.post-hero-excerpt p {
  margin-bottom: 0;
}

.post-cover-section {
  background: var(--color-offwhite);
  padding: 0;
}

.post-cover-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  transform: translateY(-30px);
}

.post-cover-img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(34,40,49,0.12);
}

.post-content-section {
  padding: 40px 0 90px;
  background: var(--color-offwhite);
}

.post-content-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.post-content-wrap h1,
.post-content-wrap h2,
.post-content-wrap h3,
.post-content-wrap h4 {
  color: var(--color-charcoal);
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.post-content-wrap h2 { font-size: 1.8rem; }
.post-content-wrap h3 { font-size: 1.4rem; }

.post-content-wrap p {
  margin-bottom: 1.4em;
  line-height: 1.85;
  color: #444;
}

.post-content-wrap a {
  color: var(--color-amber);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

.post-content-wrap a:hover {
  border-bottom-color: var(--color-amber);
}

.post-content-wrap ul,
.post-content-wrap ol {
  margin-bottom: 1.4em;
  padding-left: 28px;
  list-style: disc;
}

.post-content-wrap ol { list-style: decimal; }

.post-content-wrap li {
  margin-bottom: 0.5em;
  line-height: 1.75;
  color: #444;
}

.post-content-wrap blockquote {
  border-left: 4px solid var(--color-amber);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--color-amber-soft);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  font-style: italic;
}

.post-content-wrap img {
  border-radius: var(--radius-card);
  margin: 2em 0;
}

/* ── FOOTER ──────────────────────────────── */
.site-footer {
  background-color: var(--color-charcoal-deep);
  color: var(--color-white);
  padding: 72px 0 0;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand-text {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  color: var(--color-white);
  display: block;
  margin-bottom: 12px;
}

.footer-brand-img {
  height: 34px;
  width: auto;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--color-gray-text);
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--color-white);
}

.footer-nav-list li {
  margin-bottom: 10px;
}

.footer-nav-list a {
  font-size: 0.9rem;
  color: var(--color-gray-text);
  transition: color var(--transition-base);
}

.footer-nav-list a:hover {
  color: var(--color-amber);
}

.footer-email {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-amber);
  padding: 8px 22px;
  border: 1px solid rgba(255,190,51,0.3);
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
}

.footer-email:hover {
  background: var(--color-amber);
  color: var(--color-white);
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--color-gray-mid);
  margin: 0;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-right {
    display: none;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .posts-layout {
    grid-template-columns: 1fr;
  }

  .post-featured {
    grid-row: auto;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-intro {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-charcoal-deep);
    padding: calc(var(--header-height) + 20px) 28px 28px;
    transition: right var(--transition-base);
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.is-open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: var(--radius-small);
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-header .section-title {
    font-size: 2rem;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .posts-side .post-side-card {
    grid-template-columns: 110px 1fr;
  }

  .post-hero-title {
    font-size: 2rem;
  }

  .blog-hero-title,
  .page-hero-title {
    font-size: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 50px;
  }

  .topics-section,
  .posts-section,
  .faq-section {
    padding: 60px 0;
  }

  .post-side-card {
    grid-template-columns: 1fr !important;
  }

  .post-side-card .post-card-img-wrap {
    border-radius: var(--radius-card) var(--radius-card) 0 0;
  }

  .post-side-card .post-card-img {
    aspect-ratio: 16/9;
  }

  .btn-pill,
  .btn-pill-outline {
    padding: 11px 32px;
    font-size: 14px;
  }

  .pagination-wrap a,
  .pagination-wrap span {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

/* ── MOBILE NAV OVERLAY ──────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── PRINT ───────────────────────────────── */
@media print {
  .site-header,
  .menu-toggle,
  .nav-overlay {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 40px 0;
  }

  body {
    color: #000;
    background: #fff;
  }
}
