:root {
  --green-950: #0d3325;
  --green-900: #123f2f;
  --green-850: #164934;
  --green-800: #0f4a31;
  --green-700: #007d3f;
  --gold-500: #e5b94b;
  --gold-600: #c99822;
  --bronze: #8c6d14;
  --paper: #f8f5eb;
  --cream: #eee8d8;
  --card: #fffdf7;
  --ink: #1f2c25;
  --muted: #6f756e;
  --line: rgba(30, 49, 39, .13);
  --shadow: 0 24px 70px rgba(12, 27, 21, .16);
  --radius: 14px;
  --serif: "Lora", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.section-dark { background: var(--green-950); color: #fff; }
.centered { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 58px;
  background: rgba(16, 61, 45, .98);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header-inner {
  min-height: 58px;
  display: grid;
  grid-template-columns: 170px 1fr 50px;
  align-items: center;
  padding: 15px 0;
}
.brand img { width: 92px; height: auto; }
.primary-nav > ul {
  list-style: none;
  display: flex;
  gap: 26px;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}
.primary-nav a { font-size: 12px; font-weight: 600; opacity: .92; transition: color 0.2s ease, opacity 0.2s ease; }
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > a:focus,
.primary-nav > ul > li.active > a,
.primary-nav > ul > li.focus-within > a {
  color: var(--gold-500);
  opacity: 1;
}
.has-submenu a{
  padding: 20px 0;
}
.primary-nav span { font-size: 11px; opacity: .75; }

/* Submenu Styles - Desktop Dropdowns */
.primary-nav > ul > li {
  position: relative;
}
.primary-nav .submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 10px 0;
  margin: 0;
  list-style: none;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 1000;
}
/* Tiny arrow indicator pointing up */
.primary-nav .submenu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
}
.primary-nav .submenu li {
  width: 100%;
}
.primary-nav .submenu a {
  display: block;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: left;
}
.primary-nav .submenu a:hover,
.primary-nav .submenu a:focus {
  background: var(--cream);
  background: #f8f5eb;
  color: var(--green-900);
  opacity: 1;
}
.primary-nav .has-submenu > a::after {
  display: inline-block;
  margin-left: .295em;
  vertical-align: .205em;
  content: "";
  border-top: .3em solid;
  border-right: .3em solid transparent;
  border-bottom: 0;
  border-left: .3em solid transparent;
  transition: transform 0.25s ease;
}
.primary-nav .has-submenu:hover .submenu,
.primary-nav .has-submenu.focus-within .submenu,
.primary-nav .has-submenu.active .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.primary-nav .has-submenu:hover > a::after,
.primary-nav .has-submenu.focus-within > a::after,
.primary-nav .has-submenu.active > a::after {
  transform: rotate(180deg);
}
.search-button, .menu-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.search-button svg { width: 19px; fill: currentColor; opacity: .9; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(13,51,37,.98) 0%, rgba(13,51,37,.91) 38%, rgba(13,51,37,.74) 100%),
    url("../images/hero-bg.avif") center/cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 82% 14%, rgba(229,185,75,.16), transparent 32%), linear-gradient(0deg, rgba(13,51,37,.24), transparent 35%);
}
.hero-grid {
  width: 100%;
  padding-top: 80px;
  padding-bottom: 70px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-500);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 14px 4px 0;
  background: currentColor;
  opacity: .65;
}
.centered .eyebrow::after { margin: 0 0 4px 14px; }
.hero h1, h2 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.04em;
  margin: 0;
}
.hero h1 { max-width: 610px; font-size: clamp(50px, 6.5vw, 80px); }
.hero h1 span { display: block; color: var(--gold-500); font-style: italic; }
.hero-text { max-width: 520px; margin: 26px 0 30px; color: rgba(255,255,255,.82); font-size: 17px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-500); color: var(--green-950); box-shadow: 0 15px 35px rgba(0,0,0,.2); }
.btn-gold:hover { background: var(--cream);color: var(--green-950); }
.btn-outline { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn-outline:hover { background: var(--cream);color: var(--green-950); }
.btn-green { background: var(--green-900); color: #fff; }
.btn-light { background: #fff; border: 1px solid var(--line); color: var(--green-850); }
.hero-stats { display: flex; gap: 48px; margin: 80px 0 0; padding: 0; padding-top: 40px;border-top: 1px solid rgba(255,255,255,.28);}
.hero-stats div { min-width: 70px; }
.hero-stats dt { color: var(--gold-500);font-family: var(--serif); font-weight: 800; font-size: 24px; line-height: 1; }
.hero-stats dd { margin: 6px 0 0; color: rgba(255,255,255,.74); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.hero-card { position: relative; display: grid; justify-items: flex-end; }
.hero-book {
  width: min(420px, 88%);
  aspect-ratio: 1 / .96;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.7), rgba(244,242,236,.86)),
    url("https://images.unsplash.com/photo-1617791160505-6f00504e3519?auto=format&fit=crop&w=1000&q=80") center/cover;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.55);
}
.hero-book img { width: 100%; }
.latest-card {
  position: absolute;
  left: 12%;
  bottom: -50px;
  width: 255px;
  padding: 19px 22px;
  background: rgba(255,253,247,.94);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.latest-card span, .featured-article span, .pill { color: var(--gold-600); text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.latest-card h2 { font: 800 17px/1.24 var(--serif); letter-spacing: -.02em; margin: 5px 0 8px; }
.latest-card p { margin: 0; color: var(--muted); font-size: 11px; }

.begin-section { padding: 74px 0 70px; background: var(--cream); }
.section-heading h2, .split-heading h2, .topics-section h2, .scholars-section h2, .newsletter-section h2 { font-size: clamp(32px, 4vw, 44px);color: var(--green-900); }
.muted { color: var(--gold-600); }
.path-grid { margin-top: 44px; }
.path-card {
  position: relative;
  min-height: 205px;
  height: 100%;
  display: block;
  overflow: hidden;
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 12px 26px rgba(20,35,28,.08);
}
.path-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -38px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.path-card.dark { background: var(--green-900); }
.path-card.gold { background: var(--gold-500); color: #203025; }
.path-card.bronze { background: #8b711b; }
.path-card .icon { opacity: .86; font-size: 20px; }
.path-card h3 { margin: 18px 0 8px; font-size: 16px; line-height: 1.25; }
.path-card p { margin: 0 0 20px; font-size: 13px; line-height: 1.55; opacity: .82; }
.path-card em { font-style: normal; font-size: 12px; font-weight: 800; }

.collections-section, .articles-section, .scholars-section { padding: 86px 0; background: var(--paper); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.split-heading a { font-size: 13px; font-weight: 700; color: var(--green-800); }
.collection-card { height: 100%; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(17,31,24,.04); padding: 0;border-radius: 8px; }
.collection-card img { width: 100%; height: 190px; object-fit: cover; }
.collection-card div { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 20px 22px; }
.collection-card h3 { grid-column: 1 / -1; margin: 0; font: 800 18px/1.2 var(--serif); letter-spacing: -.02em; color: var(--green-850);}
.collection-card p { margin: 0; color: var(--muted); font-size: 12px; }
.collection-card a { font-size: 12px; font-weight: 700; color: var(--green-800); }

.articles-section { background: #f2ecdf; }
.topic-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.topic-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 17px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink);
}
.topic-tabs .active { background: var(--green-900); color: #fff; }
.article-layout { }
.featured-article, .article-list article { background: var(--card); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.featured-article img { width: 100%; height: 370px; object-fit: cover; }
.featured-article div { padding: 22px 24px 26px; }
.featured-article p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.featured-article h3 { max-width: 760px; margin: 0 0 18px; font: 800 29px/1.16 var(--serif); letter-spacing: -.025em; color: var(--green-900);}
.featured-article a { font-size: 13px; font-weight: 800; color: var(--green-800); }
.article-list { display: grid; gap: 16px; }
.article-list article { display: flex; align-items: stretch; height: 100%;max-height:126px;}
.article-list article > img,
.article-list article > figure {
  width: 116px;
  height: 100%;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}
.article-list img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-list div { padding: 15px 17px; flex-grow: 1; }
.article-list p { margin: 0 0 3px; color: var(--gold-600); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; font-weight: 800; }
.article-list h3 { margin: 0 0 7px; font: 800 16px/1.2 var(--serif); letter-spacing: -.02em; }
.article-list time { color: var(--muted); font-size: 11px; }

.topics-section { padding: 80px 0 86px; background: var(--green-900); }
.topic-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 30px auto 0; }
.topic-cloud a { padding: 8px 17px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.82); font-size: 12px; }

.scholar-grid { }
.scholar-grid p:not(.eyebrow) { color: var(--muted); max-width: 540px; margin: 22px 0 28px; }
.scholar-images { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.scholar-images img { height: 250px; width: 100%; object-fit: cover; border-radius: 7px; box-shadow: 0 18px 50px rgba(20,35,28,.1); }
.scholar-images img:first-child { margin-top: -30px; }
.scholar-images img:last-child { margin-top: 70px; }

.newsletter-section { padding: 82px 0 90px; background: var(--cream); }
.pill { display: inline-flex; padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.45); }
.newsletter-section h2 { margin-top: 18px; }
.newsletter-section p { max-width: 620px; margin: 16px auto 28px; color: var(--muted); }
.newsletter-form { display: flex; justify-content: center; gap: 8px; }
.newsletter-form input { width: min(340px, 65vw); border: 1px solid var(--line); background: #fff; padding: 14px 17px; border-radius: 3px; }
.newsletter-form button { border: 0; border-radius: 3px; padding: 0 22px; background: var(--green-900); color: #fff; font-weight: 800; cursor: pointer; }

.site-footer { padding: 62px 0 26px; background: #0b2a1f; }
.footer-grid { }
.footer-grid img { width: 96px; margin-bottom: 18px; }
.footer-grid p { max-width: 250px; margin: 0 0 18px; color: rgba(255,255,255,.66); }
.footer-grid h3 { margin: 0 0 16px; font: 800 15px/1.2 var(--serif); }
.footer-grid nav { display: grid; align-content: start; gap: 9px; }
.footer-grid a { color: rgba(255,255,255,.72); font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.48); font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { margin-left: 24px; color: rgba(255,255,255,.58); }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 140px 1fr 42px;padding: 15px; }
  
  body.nav-open {
    overflow: hidden;
  }
  
  .primary-nav {
    position: absolute;
    inset: 75px 0 auto 0;
    background: var(--green-950);
    border-top: 1px solid rgba(255, 255, 255, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
  }
  .primary-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .primary-nav > ul {
    display: grid;
    gap: 0;
    padding: 12px 24px 20px;
    justify-content: stretch;
  }
  .primary-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .primary-nav .has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Mobile submenus (accordion style) */
  .primary-nav .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0;
    transform: none!important;
  }
  .primary-nav .submenu::before {
    display: none;
  }
  .primary-nav .submenu li {
    width: 100%;
  }
  .primary-nav .submenu a {
    padding: 10px 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .primary-nav .submenu li:last-child a {
    border-bottom: none;
  }
  .primary-nav .submenu a:hover,
  .primary-nav .submenu a:focus {
    background: transparent;
    color: var(--gold-500);
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    justify-self: end;
    grid-column: 3;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 2px;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .search-button { display: none; }
  .hero { min-height: auto; display: block; }
  .hero-grid { min-height: auto; }
  .hero-stats { margin-top: 45px; }
  .scholar-images img:first-child, .scholar-images img:last-child { margin-top: 0; }
}

@media (max-width: 640px) {
  .header-inner { grid-template-columns: 120px 1fr 42px; }
  .hero-grid { padding: 58px 0 70px; }
  .hero h1 { font-size: 50px; }
  .hero-text { font-size: 15px; }
  .hero-stats { gap: 24px; }
  .hero-card { padding-bottom: 36px; }
  .latest-card { left: 0; width: 220px; bottom: -8px; }
  .split-heading { display: grid; align-items: start; }
  .featured-article img { height: 250px; }
  .featured-article h3 { font-size: 24px; }
  .article-list article > img,
  .article-list article > figure {
    width: 96px;
  }
  .scholar-images { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
  .newsletter-form button { min-height: 48px; }
  .footer-bottom { display: grid; }
  .footer-bottom a { margin: 0 18px 0 0; }
}

/* ==========================================================================
   Category Page (articles.html) Styles
   ========================================================================== */

/* 1. Category Hero Header Section */
.category-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 60px 0 100px;
}
.category-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(13,51,37,.95) 0%, rgba(13,51,37,.88) 100%),
    url("https://images.unsplash.com/photo-1609599006353-e629aaabfeae?auto=format&fit=crop&w=1900&q=80") center/cover;
}
.category-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 82% 14%, rgba(229,185,75,.12), transparent 35%);
}
.breadcrumbs {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}
.breadcrumbs a:hover {
  color: var(--gold-500);
}
.breadcrumbs .divider {
  margin: 0 6px;
  opacity: 0.5;
}
.breadcrumbs .active {
  color: var(--gold-500);
  font-weight: 600;
}
.category-eyebrow {
  margin: 0 0 10px;
  color: var(--gold-500);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.category-eyebrow::before {
  content: "—";
  margin-right: 8px;
  color: var(--gold-500);
}
.category-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 20px;
}
.category-title span {
  display: inline-block;
  color: var(--gold-500);
  font-style: italic;
}
.category-description {
  max-width: 580px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}
.category-stats-container {
  display: flex;
  background: rgba(255, 253, 247, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 24px 30px;
  gap: 36px;
  justify-content: space-around;
  backdrop-filter: blur(10px);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-number {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-500);
  line-height: 1.1;
}
.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
  font-weight: 600;
}

/* 2. Main Content Wrapper & Curved Separator */
.main-content-wrap {
  position: relative;
  background: var(--paper);
  border-radius: 40px 40px 0 0;
  margin-top: -45px;
  padding: 60px 0 80px;
  z-index: 10;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

/* 3. Left Sidebar: Topics Nav */
.topics-sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 31, 24, 0.02);
}
.topics-sidebar h3 {
  background: var(--green-950);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topics-sidebar h3 i {
  font-size: 14px;
  color: var(--gold-500);
}
.topics-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.topics-sidebar li {
  border-bottom: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
}
.topics-sidebar li:last-child {
  border-bottom: none;
}
.topics-sidebar a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-900);
  transition: all 0.2s ease;
}
.topics-sidebar a i {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.25s ease;
}
.topics-sidebar > ul > li > a:hover,
.topics-sidebar li.active > a {
  background: var(--cream);
  color: var(--gold-600);
  padding-left: 24px;
}
.topics-sidebar li.active > a i {
  transform: rotate(180deg);
  opacity: 1;
}

/* Sidebar Accordion Submenus */
.topics-sidebar .sidebar-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(16, 61, 45, 0.02);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.topics-sidebar .sidebar-submenu li {
  border-bottom: none;
}
.topics-sidebar .sidebar-submenu a {
  padding: 10px 20px 10px 32px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green-850);
}
.topics-sidebar .sidebar-submenu a:hover {
  background: rgba(16, 61, 45, 0.05);
  color: var(--gold-600);
  padding-left: 36px;
}

/* 4. Middle Column: Header and Grid */
.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.results-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.filter-tabs {
  display: flex;
  gap: 6px;
}
.filter-tab {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-900);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-tab.active,
.filter-tab:hover {
  background: var(--green-900);
  color: #ffffff;
  border-color: var(--green-900);
}

/* 5. Grid Card Styles (Mockup Custom Design) */
.grid-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 31, 24, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.grid-card .card-image {
  overflow: hidden;
  position: relative;
}
.grid-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.grid-card:hover .card-image img {
  transform: scale(1.05);
}
.grid-card .card-content {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}
.grid-card .card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.grid-card .card-tag {
  color: var(--gold-600);
}
.grid-card .card-date {
  color: var(--muted);
}
.grid-card .card-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.grid-card .card-title a {
  color: var(--green-950);
  transition: color 0.2s ease;
}
.grid-card .card-title a:hover {
  color: var(--gold-600);
}
.grid-card .card-snippet {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 20px;
}
.grid-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.grid-card .read-time {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.grid-card .read-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-900);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.grid-card .read-link i {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.grid-card .read-link:hover {
  color: var(--gold-600);
}
.grid-card .read-link:hover i {
  transform: translateX(3px);
}

/* Featured Horizontal Card specific layout */
.grid-card.featured-horizontal {
  display: flex;
  flex-direction: row;
  margin-bottom: 30px;
  height: auto;
}
.grid-card.featured-horizontal .card-image {
  width: 42%;
  flex-shrink: 0;
  min-height: 220px;
  position: relative;
}
.grid-card.featured-horizontal .card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-card.featured-horizontal .card-content {
  width: 58%;
  padding: 24px 28px;
}
.grid-card.featured-horizontal .card-title {
  font-size: 22px;
  line-height: 1.25;
}

/* Pagination container */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.pagination-container .pagination {
  gap: 6px;
  margin: 0;
}
.pagination-container .page-item .page-link {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  color: var(--green-900);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  transition: all 0.2s ease;
}
.pagination-container .page-item.active .page-link {
  background: var(--green-900);
  border-color: var(--green-900);
  color: #ffffff;
}
.pagination-container .page-item:not(.active):not(.disabled) .page-link:hover {
  background: var(--cream);
  color: var(--green-900);
}
.pagination-container .page-item.ellipsis span {
  display: inline-block;
  padding: 8px 6px;
  font-size: 12px;
  color: var(--muted);
}

.article-sidebar {
  position: sticky;
  top: 90px;
  align-self: flex-start;
}

/* 6. Right Sidebar Widgets */
.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(17, 31, 24, 0.02);
}
.sidebar-widget h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--green-950);
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

/* Latest items stack */
.latest-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.latest-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.latest-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.latest-item .item-content {
  flex-grow: 1;
}
.latest-item .item-tag {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}
.latest-item .item-tag.text-gold { color: var(--gold-600); }
.latest-item .item-tag.text-green { color: var(--green-800); }
.latest-item .item-tag.text-bronze { color: var(--bronze); }
.latest-item h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 4px;
}
.latest-item h4 a {
  color: var(--green-950);
  transition: color 0.2s ease;
}
.latest-item h4 a:hover {
  color: var(--gold-600);
}
.latest-item time {
  font-size: 9px;
  color: var(--muted);
}

/* Newsletter Widget Card in Sidebar */
.sidebar-widget.newsletter-widget {
  background: var(--green-950);
  border-color: var(--green-950);
  color: #ffffff;
}
.sidebar-widget.newsletter-widget h3 {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}
.sidebar-widget.newsletter-widget p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
  line-height: 1.5;
}
.sidebar-widget.newsletter-widget input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  /* margin-bottom: 10px; */
  width: 100%;
}
.sidebar-widget.newsletter-widget input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.sidebar-widget.newsletter-widget input:focus {
  outline: none;
  border-color: var(--gold-500);
}
.sidebar-widget.newsletter-widget .btn-gold {
  min-height: 40px;
  font-weight: 700;
}

/* Tag Cloud Widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-badge {
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--green-900);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.tag-badge:hover {
  background: var(--green-900);
  color: #ffffff;
  border-color: var(--green-900);
}

/* ==========================================================================
   Responsive Overrides for Category Page
   ========================================================================== */
@media (max-width: 980px) {
  .category-hero {
    padding: 40px 0 80px;
    min-height: auto;
  }
  .category-stats-container {
    margin-top: 20px;
    padding: 20px;
    gap: 20px;
  }
  .main-content-wrap {
    margin-top: -30px;
    padding-top: 40px;
  }
  .grid-card.featured-horizontal {
    flex-direction: column;
  }
  .grid-card.featured-horizontal .card-image {
    width: 100%;
    height: 240px;
  }
  .grid-card.featured-horizontal .card-content {
    width: 100%;
    padding: 20px 22px;
  }
}

@media (max-width: 768px) {
  .topics-sidebar {
    margin-bottom: 30px;
  }
}

/* ==========================================================================
   Single Article Page (single-article.html) Styles
   ========================================================================== */

/* 1. Article Hero Header Section */
.article-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 50px 0 90px;
}
.article-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.7);
}
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13,51,37,.95) 0%, rgba(13,51,37,.88) 100%);
}
.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 82% 14%, rgba(229,185,75,.15), transparent 35%);
}
.article-hero-tag {
  display: inline-block;
  border: 1px solid var(--gold-500);
  color: var(--gold-500);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.article-meta-row {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-meta-item i {
  color: var(--gold-500);
  font-size: 12px;
}
.article-meta-share-btn {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  font-size: 14px;
  transition: color 0.2s;
}
.article-meta-share-btn:hover {
  color: var(--gold-500);
}

/* 2. Main Article Content Area */
.article-body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
}
.article-body p {
  margin: 0 0 24px;
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--green-950);
  margin: 42px 0 20px;
  letter-spacing: -0.02em;
}
.article-body h2::after {
  content: "";
  display: block;
  width: 45px;
  height: 2px;
  background: var(--gold-500);
  margin-top: 10px;
}
.article-lead {
  font-style: italic;
  font-size: 19px;
  color: var(--green-900);
  border-left: 4px solid var(--gold-500);
  padding-left: 24px;
  margin: 0 0 35px;
  line-height: 1.6;
}

/* 3. Quran verse box design */
.quran-box {
  background: #fdfaf2;
  border: 1px solid rgba(229, 185, 75, 0.22);
  border-left: 4px solid var(--gold-500);
  padding: 24px 30px;
  border-radius: 4px;
  margin: 36px 0;
  box-shadow: 0 4px 15px rgba(229, 185, 75, 0.03);
}
.quran-box-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.quran-english {
  flex-grow: 1;
}
.quran-english p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}
.quran-citation {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 10px;
}
.quran-arabic {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.6;
  text-align: right;
  direction: rtl;
  color: var(--green-950);
  font-weight: 600;
  max-width: 50%;
  flex-shrink: 0;
}

/* 4. Highlight Callout Takeaway */
.highlight-box {
  background: var(--green-950);
  color: #ffffff;
  padding: 28px 36px;
  border-radius: 8px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
  margin: 40px 0;
  box-shadow: 0 12px 30px rgba(13, 51, 37, 0.12);
  position: relative;
  overflow: hidden;
}
.highlight-box::before {
  content: "“";
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--serif);
  pointer-events: none;
}
.highlight-box p {
  margin: 0;
  position: relative;
  z-index: 2;
}

/* 5. Footer sharing & Tags */
.article-tags-wrap {
  margin-top: 45px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.article-tags-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-tags .tag-badge {
  font-size: 11px;
  padding: 5px 12px;
}

.article-share-wrap {
  margin-top: 28px;
  padding: 18px 20px;
  display: flex;
  /* flex-direction: column; */
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid rgba(13, 51, 37, 0.08);
  border-radius: 16px;
  background: linear-gradient(135deg, #fdfcf7 0%, #f5ebd9 100%);
  background: white;
  box-shadow: 0 10px 28px rgba(13, 51, 37, 0.06);
}
.article-share-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.article-share-header p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.article-share-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green-850);
}
.article-share-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-500);
}
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(13, 51, 37, 0.06);
}
.share-btn:hover {
  transform: translateY(-1px);
}
.share-btn i {
  font-size: 20px;
  line-height: 0;
}

.share-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}
.share-btn.facebook {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
  width:35px;
  height:35px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-btn.facebook:hover {
  background: #1565c0;
  border-color: #1565c0;
}
.share-btn.twitter {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  width:35px;
  height:35px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-btn.twitter:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}
.share-btn.copy {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(13, 51, 37, 0.12);
}
.share-btn.copy i{
  font-size: 16px;
  line-height: 0;
}
.share-btn.copy:hover {
  background: var(--cream);
}

/* 6. Table of Contents Widget (TOC) */
.toc-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.toc-widget-list li {
  position: relative;
  border-bottom: 1px solid rgba(30, 49, 39, 0.05);
}
.toc-widget-list li:last-child {
  border-bottom: none;
}
.toc-widget-list a {
  display: block;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-900);
  transition: all 0.2s ease;
  padding-left: 0;
  border-left: 2px solid transparent;
}
.toc-widget-list a:hover {
  color: var(--gold-600);
  padding-left: 12px;
  border-left-color: var(--gold-500);
}

/* 7. Continue Reading navigation Section */
.continue-reading-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.continue-reading-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.continue-reading-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.nav-article-card {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  gap: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
}
.nav-article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 31, 24, 0.06);
}
.nav-article-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-article-card-content {
  flex-grow: 1;
}
.nav-article-card-meta {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  margin-bottom: 4px;
}
.nav-article-card-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 800;
  color: var(--green-950);
  margin: 0;
  line-height: 1.35;
}

.page-item.active{
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  background:var(--green-900);
  padding:6px 12px;
  border-radius:4px;
}

/* 8. Responsive Overrides for Article page */
@media (max-width: 980px) {
  .article-hero {
    padding: 40px 0 80px;
    min-height: auto;
  }
}
@media (max-width: 991px) {
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .quran-box-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .quran-arabic {
    max-width: 100%;
    text-align: right;
    font-size: 24px;
  }
  .continue-reading-grid {
    grid-template-columns: 1fr;
  }
}

