/* ═══════════════════════════════════════════════════════════
   JAMIATUL ULAMA SOUTH AFRICA – MAIN STYLESHEET
   Design System: Islamic Green & Gold, Modern & Authoritative
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  /* ── Brand greens – softened, sage-forward ─────────────── */
  --green-900: #0f2d1f;
  --green-800: #1a4731;
  --green-700: #255c40;
  --green-600: #2f7a55;
  --green-500: #3d9e6e;
  --green-400: #5cb885;
  --green-100: #e6f2ec;
  --green-50:  #f2f9f5;

  /* ── Gold / warm accent ────────────────────────────────── */
  --gold-900:  #6b5200;
  --gold-700:  #b8972a;
  --gold-500:  #d4aa3f;
  --gold-200:  #fdf6e3;

  /* ── Nude / warm neutrals ──────────────────────────────── */
  --nude-100:  #f7f3ee;   /* page background */
  --nude-200:  #ede8e1;   /* card borders, dividers */
  --nude-300:  #d9d1c7;   /* stronger dividers */
  --nude-500:  #a09080;   /* muted text */

  /* ── Core neutrals ─────────────────────────────────────── */
  --dark:      #0f1a14;
  --gray-900:  #1c2b23;
  --gray-700:  #354a3e;
  --gray-500:  #6b7c72;
  --gray-300:  #c8d2cb;
  --gray-200:  #dde5e0;
  --gray-100:  #eef2ef;
  --white:     #ffffff;
  --off-white: #fafaf8;

  /* ── Typography ────────────────────────────────────────── */
  --font-primary:   'Georgia', 'Times New Roman', serif;
  --font-ui:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-arabic:    'Scheherazade New', 'Amiri', serif;

  /* ── Spacing ────────────────────────────────────────────── */
  --container:  1280px;
  --gap:        1.5rem;
  --radius:     10px;
  --radius-lg:  18px;

  /* ── Shadows ─────────────────────────────────────────────── */
  --shadow-sm:  0 1px 4px rgba(15,42,25,.06);
  --shadow:     0 4px 16px rgba(15,42,25,.08);
  --shadow-lg:  0 10px 32px rgba(15,42,25,.1);
  --shadow-xl:  0 20px 48px rgba(15,42,25,.13);

  /* ── Transitions ─────────────────────────────────────────── */
  --transition: 0.25s cubic-bezier(.4,0,.2,1);

  /* ── Dynamic Menu Settings (overridable via JS) ─────────── */
  --menu-bg-color:   rgba(249, 247, 244, 0.98);
}

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

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

body {
  font-family: var(--font-ui);
  color: var(--gray-900);
  background: var(--nude-100);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-primary);
  line-height: 1.25;
  color: var(--dark);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-green  { color: var(--green-800); }
.text-gold   { color: var(--gold-700); }
.text-muted  { color: var(--gray-500); }
.text-small  { font-size: .875rem; }
.text-xs     { font-size: .75rem; }
.text-center { text-align: center; }

/* ── Top Bar ────────────────────────────────────────────── */
.top-bar {
  background: var(--green-800);
  color: rgba(255,255,255,.80);
  font-size: .8rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(212,170,63,.35);
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-bar a { color: rgba(255,255,255,.85); transition: color var(--transition); }
.top-bar a:hover { color: var(--gold-500); }
.top-bar__left, .top-bar__right { display: flex; align-items: center; gap: 1.25rem; }
.top-bar__item { display: flex; align-items: center; gap: .35rem; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 0 var(--nude-200), 0 4px 24px rgba(15,42,25,.07);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--nude-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.site-logo img {
  height: 56px;
  width: auto;
}
.site-logo__text { line-height: 1.2; }
.site-logo__name {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-800);
  display: block;
  letter-spacing: -.01em;
}
.site-logo__sub {
  font-size: .63rem;
  color: var(--nude-500);
  text-transform: uppercase;
  letter-spacing: .1em;
  display: block;
}

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: .25rem; }
.primary-nav > li { position: relative; }
.primary-nav > li > a {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: .01em;
}
.primary-nav > li > a:hover,
.primary-nav > li > a.active {
  color: var(--green-700);
  background: var(--green-50);
}
.primary-nav > li > a .nav-arrow {
  font-size: .65rem;
  transition: transform var(--transition);
}
.primary-nav > li:hover > a .nav-arrow { transform: rotate(180deg); }
.nav-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 20px;
  background: var(--gold-500, #f59e0b);
  color: #fff;
  vertical-align: middle;
  margin-left: .2rem;
  line-height: 1.4;
}

/* ── Legacy simple dropdown (static fallback HTML) ─────────── */
.dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: var(--menu-bg-color);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--green-700);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}
.primary-nav > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  font-size: .875rem;
  color: var(--gray-700);
  border-radius: 4px;
  transition: all var(--transition);
}
.dropdown-menu a:hover { background: var(--green-50); color: var(--green-800); }
.dropdown-menu .dropdown-divider { height: 1px; background: var(--gray-100); margin: .35rem 0; }

/* ── Mega Menu (full-width, dynamic from API) ─────────────── */
/* li.has-mega must be position:static so mega-menu escapes to .site-header */
.primary-nav > li.has-mega { position: static; }

/* ── Mega menu background orb animations ───────────────────── */
@keyframes mmOrb1 {
  0%   { transform: translate(0, 0)      scale(1); }
  33%  { transform: translate(60px, -30px) scale(1.15); }
  66%  { transform: translate(-40px, 20px) scale(.9); }
  100% { transform: translate(0, 0)      scale(1); }
}
@keyframes mmOrb2 {
  0%   { transform: translate(0, 0)       scale(1); }
  40%  { transform: translate(-70px, 25px) scale(1.2); }
  75%  { transform: translate(50px, -15px) scale(.85); }
  100% { transform: translate(0, 0)       scale(1); }
}
@keyframes mmOrb3 {
  0%   { transform: translate(0, 0)       scale(1); }
  50%  { transform: translate(30px, 40px)  scale(1.1); }
  100% { transform: translate(0, 0)       scale(1); }
}
@keyframes mmShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--menu-bg-color);
  border-top: 2px solid var(--green-600);
  border-bottom: 1px solid var(--nude-200);
  box-shadow: 0 20px 60px rgba(15,42,25,.12);
  display: flex;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s, transform .22s, visibility .22s;
  z-index: 200;
  overflow: hidden;
  isolation: isolate;
}

/* Orb layer – sits behind all content */
.mega-menu::before,
.mega-menu::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

/* Three soft radial blobs */
.mega-menu::before {
  background:
    radial-gradient(ellipse 420px 260px at 10% 120%, rgba(21,128,61,.07)  0%, transparent 70%),
    radial-gradient(ellipse 300px 200px at 85%  -20%, rgba(180,140,20,.06) 0%, transparent 65%),
    radial-gradient(ellipse 250px 180px at 55%  110%, rgba(21,128,61,.05)  0%, transparent 60%);
  animation: mmOrb1 14s ease-in-out infinite;
}

/* Gold sweep shimmer */
.mega-menu::after {
  background: linear-gradient(
    105deg,
    transparent       0%,
    transparent      40%,
    rgba(212,175,55,.04) 48%,
    rgba(212,175,55,.09) 50%,
    rgba(212,175,55,.04) 52%,
    transparent      60%,
    transparent     100%
  );
  background-size: 200% 100%;
  animation: mmShimmer 8s linear infinite;
}
.primary-nav > li.has-mega:hover > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Flat grid (no headings) ──────────────────────────────── */
.mega-menu__links {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0;
  padding: 1.25rem max(1.5rem, calc((100vw - var(--container, 1300px)) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100vw - var(--container, 1300px)) / 2 + 1.5rem));
  list-style: none;
  margin: 0;
  align-content: start;
}

/* ── Grouped columns layout (with section headings) ──────── */
.mega-menu__links--grouped {
  flex: 1;
  display: flex;                /* each .mega-menu__group is one column */
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0 max(1.5rem, calc((100vw - var(--container, 1300px)) / 2 + 1.5rem));
}
.mega-menu__group {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1rem 1.6rem;
  border-right: 1px solid var(--nude-200);
}
.mega-menu__group:last-child { border-right: none; }
.mega-menu__group-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Heading label at top of each column ─────────────────── */
.mega-menu__heading {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--nude-500);
  padding: 0 .5rem .6rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid var(--nude-200);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ── Per-level size overrides ───────────────────────────── */
.mega-menu__heading--display { font-size: 1.75rem; font-weight: 800; text-transform: none; letter-spacing: -.02em; border-bottom: none; padding-bottom: .3rem; }
.mega-menu__heading--h1      { font-size: 1.4rem;  font-weight: 700; text-transform: none; letter-spacing: -.01em; border-bottom: none; padding-bottom: .3rem; }
.mega-menu__heading--h2      { font-size: 1.15rem; font-weight: 700; text-transform: none; letter-spacing: 0;      border-bottom: 1px solid var(--gray-200); padding-bottom: .4rem; }
.mega-menu__heading--h3      { font-size: 1rem;    font-weight: 700; text-transform: none; letter-spacing: 0;      border-bottom: 1px solid var(--gray-200); padding-bottom: .4rem; }
.mega-menu__heading--h4      { font-size: .9rem;   font-weight: 700; text-transform: none; letter-spacing: 0;      border-bottom: 1px solid var(--gray-100); }
.mega-menu__heading--h5      { font-size: .82rem;  font-weight: 600; text-transform: none; letter-spacing: 0;      border-bottom: none; }
.mega-menu__heading--h6      { font-size: .75rem;  font-weight: 600; text-transform: none; letter-spacing: 0;      border-bottom: none; }
.mega-menu__heading--label   { font-size: .65rem;  font-weight: 700; text-transform: uppercase; letter-spacing: .1em; border-bottom: 2px solid var(--green-100, #dcfce7); }
.mega-menu__heading span,
.mega-menu__heading-link {
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mega-menu__heading-link:hover { color: var(--green-600, #16a34a); }
.mega-menu__heading i { color: var(--green-600, #16a34a); flex-shrink: 0; }

/* ── Individual link item ─────────────────────────────────── */
.mega-menu__link-item a {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .45rem .5rem;
  font-size: .875rem;
  color: var(--gray-700);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: normal;           /* allow wrapping inside columns */
  line-height: 1.35;
}
.mega-menu__link-item a:hover {
  background: var(--white);
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
}
.mega-menu__link-item a:hover .mega-menu__link-desc { color: var(--green-600); }
.mega-menu__link-item a i {
  width: 1.1rem;
  text-align: center;
  color: var(--green-600);
  opacity: .75;
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: .15rem;
}
.mega-menu__link-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.mega-menu__link-title { font-weight: 600; font-size: .875rem; }
.mega-menu__link-desc {
  font-size: .73rem;
  color: var(--gray-500);
  font-weight: 400;
  white-space: normal;
  line-height: 1.3;
}

/* ── Image block item ──────────────────────────────────────── */
.mega-menu__img-block { padding: .35rem .25rem !important; }
.mega-menu__img-block a { display: block; border-radius: 6px; overflow: hidden; background: var(--nude-100); }
.mega-menu__inline-img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  border: 1px solid var(--nude-200, #ede8e1);
  display: block;
  background: var(--nude-100, #f7f3ee);
  padding: .25rem;
  box-sizing: border-box;
  transition: opacity .2s, transform .2s;
}
.mega-menu__img-block a:hover .mega-menu__inline-img { opacity: .88; transform: scale(1.02); }

/* ── Side image panel (mega_image_1/2) ─────────────────────── */
.mega-menu__images {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  border-left: 1px solid var(--nude-200);
  background: var(--nude-100);
  flex-shrink: 0;
}
.mega-menu__img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
.mega-menu__img {
  width: 130px;
  height: 90px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  display: block;
  background: var(--white);
  border: 1px solid var(--nude-200);
  padding: .35rem;
  box-sizing: border-box;
  transition: transform .2s, box-shadow .2s;
}
.mega-menu__img:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,.14); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) { .mega-menu__images { display: none; } }
@media (max-width: 900px) {
  .primary-nav > li.has-mega { position: relative; }
  .mega-menu { position: absolute; left: 0; right: auto; min-width: 260px; }
  .mega-menu__links--grouped { flex-direction: column; padding: 0 1rem; }
  .mega-menu__group { border-right: none; border-bottom: 1px solid var(--gray-100); padding: .75rem 0; }
  .mega-menu__group:last-child { border-bottom: none; }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.btn-search {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 1rem;
  transition: all var(--transition);
}
.btn-search:hover { background: var(--green-100); color: var(--green-800); }

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--green-800);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Search Overlay ─────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: min(600px, 90vw);
  box-shadow: var(--shadow-xl);
}
.search-box h3 { margin-bottom: 1rem; color: var(--green-800); }
.search-input-wrap {
  display: flex;
  gap: .75rem;
}
.search-input-wrap input {
  flex: 1;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-input-wrap input:focus { border-color: var(--green-600); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  letter-spacing: .02em;
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,92,64,.25); }
.btn-gold {
  background: var(--gold-500);
  color: var(--white);
  letter-spacing: .02em;
}
.btn-gold:hover { background: var(--gold-700); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(180,140,40,.25); }
.btn-outline {
  background: transparent;
  color: var(--green-700);
  border: 1.5px solid var(--green-400);
}
.btn-outline:hover { background: var(--green-50); color: var(--green-800); border-color: var(--green-600); }
.btn-ghost {
  background: transparent;
  color: var(--gray-500);
}
.btn-ghost:hover { background: var(--nude-100); color: var(--gray-700); }
.btn-sm { padding: .4rem 1rem; font-size: .8rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Breaking News Ticker ───────────────────────────────── */
.breaking-news {
  background: var(--green-800);
  color: rgba(255,255,255,.85);
  padding: .5rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(212,170,63,.2);
}
.breaking-news .container { display: flex; align-items: center; gap: 1rem; }
.breaking-news__label {
  background: var(--gold-500);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .75rem;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.ticker-wrapper { overflow: hidden; flex: 1; height: 1.4rem; position: relative; }
.ticker-content { position: relative; height: 100%; }
.ticker-content a {
  position: absolute;
  inset: 0;
  color: rgba(255,255,255,.9);
  font-size: .875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4rem;
  opacity: 0;
}
.ticker-content a:hover { color: var(--gold-500); }
.ticker-content a.flip-enter {
  animation: flip-enter .45s cubic-bezier(.23,1,.32,1) forwards;
}
.ticker-content a.flip-exit {
  animation: flip-exit .45s cubic-bezier(.55,0,1,.45) forwards;
}
@keyframes flip-enter {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes flip-exit {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(-100%); opacity: 0; }
}

/* ── Hero Section ───────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--green-900);
  overflow: hidden;
  min-height: 560px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: .25;
}
/* Islamic geometric pattern overlay — controlled via data-pattern attribute */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 30px 30px;
}
/* none */
.hero[data-pattern="none"]::after { display: none; }
/* diamonds (default) */
.hero:not([data-pattern])::after,
.hero[data-pattern="diamonds"]::after {
  background-image:
    repeating-linear-gradient(45deg,  rgba(200,169,81,.04) 0, rgba(200,169,81,.04) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(200,169,81,.04) 0, rgba(200,169,81,.04) 1px, transparent 0, transparent 50%);
  background-size: 30px 30px;
}
/* grid */
.hero[data-pattern="grid"]::after {
  background-image:
    linear-gradient(rgba(200,169,81,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,81,.07) 1px, transparent 1px);
  background-size: 30px 30px;
}
/* dots */
.hero[data-pattern="dots"]::after {
  background-image: radial-gradient(rgba(200,169,81,.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
/* zigzag */
.hero[data-pattern="zigzag"]::after {
  background-image: repeating-linear-gradient(135deg, rgba(200,169,81,.07) 0, rgba(200,169,81,.07) 2px, transparent 2px, transparent 18px);
  background-size: 18px 18px;
}
/* horizontal lines */
.hero[data-pattern="horizontal"]::after {
  background-image: repeating-linear-gradient(0deg, rgba(200,169,81,.08) 0, rgba(200,169,81,.08) 1px, transparent 1px, transparent 22px);
  background-size: 22px 22px;
}
/* vertical lines */
.hero[data-pattern="vertical"]::after {
  background-image: repeating-linear-gradient(90deg, rgba(200,169,81,.08) 0, rgba(200,169,81,.08) 1px, transparent 1px, transparent 22px);
  background-size: 22px 22px;
}
/* crosses */
.hero[data-pattern="crosses"]::after {
  background-image:
    repeating-linear-gradient(0deg,  rgba(200,169,81,.07) 0, rgba(200,169,81,.07) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(200,169,81,.07) 0, rgba(200,169,81,.07) 1px, transparent 1px, transparent 24px);
  background-size: 24px 24px;
}
/* hexagons */
.hero[data-pattern="hexagons"]::after {
  background-image:
    radial-gradient(circle farthest-side at 0% 50%,   transparent 23%, rgba(200,169,81,.07) 24%, rgba(200,169,81,.07) 35%, transparent 36%),
    radial-gradient(circle farthest-side at 100% 50%, transparent 23%, rgba(200,169,81,.07) 24%, rgba(200,169,81,.07) 35%, transparent 36%),
    radial-gradient(circle farthest-side at 50% 100%, transparent 23%, rgba(200,169,81,.07) 24%, rgba(200,169,81,.07) 35%, transparent 36%);
  background-size: 24px 42px;
}
/* waves */
.hero[data-pattern="waves"]::after {
  background-image: repeating-radial-gradient(circle at 50% 0, transparent 9px, rgba(200,169,81,.08) 10px, rgba(200,169,81,.08) 11px, transparent 12px);
  background-size: 28px 28px;
}
/* triangles */
.hero[data-pattern="triangles"]::after {
  background-image:
    linear-gradient(120deg, rgba(200,169,81,.07) 25%, transparent 25%),
    linear-gradient(240deg, rgba(200,169,81,.07) 25%, transparent 25%),
    linear-gradient(0deg,   rgba(200,169,81,.07) 25%, transparent 25%);
  background-size: 20px 34px;
}
/* stars */
.hero[data-pattern="stars"]::after {
  background-image:
    radial-gradient(rgba(200,169,81,.14) 2px,   transparent 2px),
    radial-gradient(rgba(200,169,81,.08) 1px,   transparent 1px);
  background-size: 28px 28px, 14px 14px;
  background-position: 0 0, 7px 7px;
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(200,169,81,.15);
  border: 1px solid rgba(200,169,81,.35);
  color: var(--gold-500);
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}
.hero h1 span { color: var(--gold-500); }
.hero__excerpt {
  color: rgba(255,255,255,.75);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.hero__meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.65);
  font-size: .8125rem;
}
.hero__image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16/10;
}
.hero__image-card img { width: 100%; height: 100%; object-fit: cover; }
.hero__image-card .no-image {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,.2);
}

/* Hero Carousel Dots */
.hero-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 2;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active { background: var(--gold-500); width: 24px; border-radius: 4px; }

/* Hero prev/next arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 44px; height: 44px;
  background: rgba(0,0,0,.35); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: background .2s;
  cursor: pointer; border: none;
}
.hero-arrow:hover { background: rgba(0,0,0,.65); transform: translateY(-50%) scale(1.08); }
.hero-arrow--prev { left: .75rem; }
.hero-arrow--next { right: .75rem; }
/* Ensure text content never slides under the arrows */
.hero .container { padding-left: max(3.5rem, calc(44px + 1.25rem)); padding-right: max(3.5rem, calc(44px + 1.25rem)); }
@media (max-width: 640px) {
  .hero-arrow { display: none; }
  .hero .container { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ── Hero Transition System ─────────────────────────────── */
/* Outgoing bg clone fades out */
.hero__bg--outgoing {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
  animation: heroBgOut .9s ease forwards;
}
@keyframes heroBgOut { to { opacity: 0; } }

/* Ken Burns subtle zoom on active bg */
.hero__bg {
  transition: none;
  animation: heroKenBurns 9s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1);     }
  to   { transform: scale(1.06);  }
}

/* Content entrance animations */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes heroSlideLeft {
  from { opacity: 0; transform: translateX(-44px); }
  to   { opacity: 1; transform: translateX(0);     }
}
@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(44px); }
  to   { opacity: 1; transform: translateX(0);    }
}
@keyframes heroZoomIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1);   }
}
@keyframes heroZoomOut {
  from { opacity: 0; transform: scale(1.08); }
  to   { opacity: 1; transform: scale(1);    }
}
@keyframes heroFlipUp {
  from { opacity: 0; transform: perspective(600px) rotateX(14deg) translateY(24px); }
  to   { opacity: 1; transform: perspective(600px) rotateX(0deg)  translateY(0);    }
}
@keyframes heroDrop {
  from { opacity: 0; transform: translateY(-36px); }
  to   { opacity: 1; transform: translateY(0);     }
}

.hero__content-wrap { position: relative; z-index: 1; }
.hero__content-wrap.anim-fade        { animation: heroRise       .65s cubic-bezier(.22,1,.36,1) both; }
.hero__content-wrap.anim-slide       { animation: heroSlideLeft  .65s cubic-bezier(.22,1,.36,1) both; }
.hero__content-wrap.anim-slide-right { animation: heroSlideRight .65s cubic-bezier(.22,1,.36,1) both; }
.hero__content-wrap.anim-zoom        { animation: heroZoomIn     .65s cubic-bezier(.22,1,.36,1) both; }
.hero__content-wrap.anim-zoom-out    { animation: heroZoomOut    .65s cubic-bezier(.22,1,.36,1) both; }
.hero__content-wrap.anim-flip        { animation: heroFlipUp     .65s cubic-bezier(.22,1,.36,1) both; }
.hero__content-wrap.anim-drop        { animation: heroDrop       .65s cubic-bezier(.22,1,.36,1) both; }

/* Stagger each child element inside the content wrap */
.hero__content-wrap > *:nth-child(1) { animation: inherit; animation-delay: .04s; }
.hero__content-wrap > *:nth-child(2) { animation: inherit; animation-delay: .14s; }
.hero__content-wrap > *:nth-child(3) { animation: inherit; animation-delay: .22s; }
.hero__content-wrap > *:nth-child(4) { animation: inherit; animation-delay: .30s; }
.hero__content-wrap > *:nth-child(5) { animation: inherit; animation-delay: .38s; }

/* Image card entrance */
@keyframes heroCardIn {
  from { opacity: 0; transform: translateX(48px) scale(.95); }
  to   { opacity: 1; transform: translateX(0)    scale(1);   }
}
.hero__image-card.anim-in {
  animation: heroCardIn .75s .08s cubic-bezier(.22,1,.36,1) both;
}

/* Autoplay progress bar */
.hero-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--gold-500);
  width: 0;
  z-index: 4;
  transform-origin: left;
}
.hero-progress.running {
  transition: width linear;
}

/* ── Quick Links Strip ──────────────────────────────────── */
.quick-links {
  background: var(--white);
  border-bottom: 1px solid var(--nude-200);
  box-shadow: 0 1px 0 var(--nude-200);
}
.quick-links .container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.25rem .75rem;
  text-align: center;
  color: var(--gray-700);
  border-right: 1px solid var(--nude-200);
  transition: all var(--transition);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.quick-link-item:last-child { border-right: none; }
.quick-link-item:hover {
  background: var(--nude-100);
  color: var(--green-700);
  transform: translateY(-2px);
}
.quick-link-item__icon {
  width: 42px; height: 42px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--green-600);
  transition: all var(--transition);
}
.quick-link-item:hover .quick-link-item__icon {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37,92,64,.2);
}

/* ── Section Headers ────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-title {
  position: relative;
  padding-left: 1rem;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--gold-700);
  border-radius: 2px;
}
.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}

/* ── Post Card ──────────────────────────────────────────── */
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-100);
}
.post-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--green-50);
}
.post-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__image .no-image {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  color: var(--green-300);
  font-size: 2.5rem;
}
.post-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.post-card__category {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .6rem;
  border-radius: 4px;
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: .75rem;
}
.post-card__title {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: .75rem;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__title a { transition: color var(--transition); }
.post-card__title a:hover { color: var(--green-700); }
.post-card__excerpt {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  flex: 1;
}
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: var(--gray-500);
}
.post-card__read-more {
  font-size: .8rem;
  font-weight: 600;
  color: var(--green-700);
  white-space: nowrap;
  transition: all var(--transition);
}
.post-card__read-more:hover { color: var(--green-800); gap: .35rem; }

/* Featured/Hero Card */
.post-card--featured {
  flex-direction: row;
  min-height: 280px;
}
.post-card--featured .post-card__image {
  width: 45%;
  aspect-ratio: auto;
  flex-shrink: 0;
}
.post-card--featured .post-card__body { padding: 1.75rem; justify-content: center; }
.post-card--featured .post-card__title { font-size: 1.35rem; -webkit-line-clamp: 4; }

/* ── Posts Grid ─────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.posts-grid--4 { grid-template-columns: repeat(4, 1fr); }
.posts-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ── Featured Posts Layout ──────────────────────────────── */
.featured-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}
.featured-layout > :first-child {
  grid-row: 1 / 3;
}

/* ── Category Pills ─────────────────────────────────────── */
.category-pills {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.pill {
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-700);
  transition: all var(--transition);
  cursor: pointer;
}
.pill:hover, .pill.active {
  background: var(--green-800);
  color: var(--white);
}
.pill--outline {
  background: transparent;
  border: 1.5px solid var(--gray-300);
}

/* ── Services Grid ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--green-700);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--green-700);
  transition: all var(--transition);
}
.service-card:hover .service-card__icon {
  background: var(--green-800);
  color: var(--white);
}
.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .6rem;
}
.service-card__desc {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.service-card__link {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--green-700);
  display: flex; align-items: center; gap: .35rem;
  transition: gap var(--transition), color var(--transition);
}
.service-card__link:hover { color: var(--green-800); gap: .6rem; }

/* ── Donation Banner ────────────────────────────────────── */
.donation-banner {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 60%, var(--green-700) 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}
.donation-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a951' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.donation-banner .container {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.donation-banner__eyebrow {
  color: var(--gold-500);
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}
.donation-banner h2 {
  color: var(--white);
  margin-bottom: .75rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}
.donation-banner p {
  color: rgba(255,255,255,.75);
  font-size: .9375rem;
  line-height: 1.65;
}
.donation-banner__actions { display: flex; flex-direction: column; gap: .75rem; align-items: flex-end; }
.donation-banking {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  min-width: 260px;
}
.donation-banking h4 { color: var(--gold-500); margin-bottom: .75rem; font-size: .9rem; }
.banking-detail { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.banking-detail span:last-child { font-weight: 600; color: var(--white); }

/* ── Statistics Bar ─────────────────────────────────────── */
.stats-bar {
  background: var(--green-800);
  color: var(--white);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { padding: 1rem; }
.stat-item__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: .35rem;
  font-family: var(--font-primary);
}
.stat-item__label {
  font-size: .875rem;
  color: rgba(255,255,255,.75);
}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.sidebar-widget__header {
  background: var(--green-800);
  color: var(--white);
  padding: .85rem 1.25rem;
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.sidebar-widget__body { padding: 1.25rem; }

.sidebar-post {
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
}
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post__image {
  width: 68px; height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--green-50);
}
.sidebar-post__image img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post__title {
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: .25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-post__title a:hover { color: var(--green-700); }
.sidebar-post__date { font-size: .7rem; color: var(--gray-500); }

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 3rem;
}
.page-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  font-weight: 600;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  transition: all var(--transition);
  cursor: pointer;
}
.page-btn:hover, .page-btn.active {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--white);
}
.page-btn:disabled { opacity: .4; pointer-events: none; }

/* ── Newsletter Section ─────────────────────────────────── */
.newsletter-section {
  background: var(--green-50);
  border-top: 1px solid var(--green-100);
  border-bottom: 1px solid var(--green-100);
  padding: 3.5rem 0;
}
.newsletter-form {
  display: flex;
  gap: .75rem;
  max-width: 480px;
  margin-top: 1.25rem;
}
.newsletter-form input {
  flex: 1;
  padding: .75rem 1rem;
  border: 2px solid var(--green-100);
  border-radius: var(--radius);
  font-size: .9rem;
  outline: none;
  background: var(--white);
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--green-600); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .site-logo { margin-bottom: 1.25rem; }
.footer-brand .site-logo__name,
.footer-brand .site-logo__sub { color: var(--white); }
.footer-brand p { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.65); margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: .65rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--gold-700); color: var(--dark); transform: translateY(-2px); }
.footer-col h4 {
  color: var(--gold-500);
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  display: flex; align-items: center; gap: .4rem;
}
.footer-links a:hover { color: var(--gold-500); }
.footer-contact-item {
  display: flex;
  gap: .75rem;
  margin-bottom: .85rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}
.footer-contact-item i { color: var(--gold-500); margin-top: .15rem; flex-shrink: 0; }
.footer-bottom {
  background: rgba(0,0,0,.2);
  padding: 1.25rem 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .8125rem; color: rgba(255,255,255,.5); margin: 0; }
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--white); }

/* ── Page Hero ──────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(200,169,81,.04) 0, rgba(200,169,81,.04) 1px, transparent 0, transparent 40px);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: .5rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  margin-top: .75rem;
}
.breadcrumb a { color: var(--gold-500); }
.breadcrumb a:hover { color: var(--gold-700); }
.breadcrumb-sep { color: rgba(255,255,255,.3); }

/* ── Article Single ─────────────────────────────────────── */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-700);
}
.article-content h2,
.article-content h3,
.article-content h4 { color: var(--dark); margin: 2rem 0 1rem; }
.article-content p  { margin-bottom: 1.35rem; }
.article-content a  { color: var(--green-700); text-decoration: underline; }
.article-content ul,
.article-content ol { padding-left: 1.5rem; margin-bottom: 1.35rem; }
.article-content ul li { list-style: disc; margin-bottom: .5rem; }
.article-content ol li { list-style: decimal; margin-bottom: .5rem; }
.article-content blockquote {
  border-left: 4px solid var(--gold-700);
  padding: 1rem 1.5rem;
  background: var(--green-50);
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--green-900);
}
.article-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}
.article-content pre {
  background: var(--gray-900);
  color: var(--green-100);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .4rem;
}
.form-label .required { color: #DC2626; }
.form-control {
  width: 100%;
  padding: .65rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .9375rem;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(56,142,60,.15);
}
.form-control.error { border-color: #DC2626; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.25em; -webkit-appearance: none; }
.form-hint  { font-size: .8rem; color: var(--gray-500); margin-top: .3rem; }
.form-error { font-size: .8rem; color: #DC2626; margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Alert / Toast ──────────────────────────────────────── */
.alert {
  padding: .9rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }

/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95);
  transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal__header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.modal__header h3 { font-size: 1.15rem; }
.modal__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100);
  font-size: .875rem;
  cursor: pointer;
  transition: all var(--transition);
}
.modal__close:hover { background: var(--gray-300); }
.modal__body   { padding: 1.5rem; }
.modal__footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: .75rem; }

/* ── Tabs ───────────────────────────────────────────────── */
.tabs { margin-bottom: 2rem; }
.tab-list {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  overflow-x: auto;
}
.tab-btn {
  padding: .75rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
}
.tab-btn:hover { color: var(--green-700); }
.tab-btn.active { color: var(--green-800); border-bottom-color: var(--green-800); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Zakaah Calculator ──────────────────────────────────── */
.calc-section { padding: 3rem 0; }
.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  border: 1px solid var(--gray-100);
}
.calc-result {
  background: var(--green-800);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}
.calc-result__amount { font-size: 2.5rem; font-weight: 700; color: var(--gold-500); }
.calc-result__label  { font-size: .875rem; color: rgba(255,255,255,.75); }

/* ── Salaah Times Widget ────────────────────────────────── */
.salaah-widget {
  background: var(--green-800);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
}
.salaah-widget__header {
  background: var(--green-900);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.salaah-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .9rem;
}
.salaah-time-row:last-child { border-bottom: none; }
.salaah-time-row.current { background: rgba(200,169,81,.15); }
.salaah-name { font-weight: 600; }
.salaah-time { color: var(--gold-500); font-weight: 700; font-family: monospace; font-size: 1rem; }

/* ── Sections ───────────────────────────────────────────── */
.section-pad    { padding: 4rem 0; }
.section-pad-sm { padding: 2.5rem 0; }
.section-pad-lg { padding: 6rem 0; }
.bg-light { background: var(--gray-100); }
.bg-green-light { background: var(--green-50); }

/* ── Utility ─────────────────────────────────────────────── */
.flex           { display: flex; }
.items-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.gap-1          { gap: .5rem; }
.gap-2          { gap: 1rem; }
.gap-3          { gap: 1.5rem; }
.mt-1           { margin-top: .5rem; }
.mt-2           { margin-top: 1rem; }
.mt-3           { margin-top: 1.5rem; }
.mt-4           { margin-top: 2rem; }
.mb-2           { margin-bottom: 1rem; }
.mb-3           { margin-bottom: 1.5rem; }
.mb-4           { margin-bottom: 2rem; }
.hidden         { display: none !important; }
.sr-only        { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Loading Spinner ────────────────────────────────────── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--green-100);
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  display: flex; align-items: center; justify-content: center;
  padding: 3rem; width: 100%;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .posts-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__image-card { display: none; }
  .posts-grid   { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links .container { grid-template-columns: repeat(3, 1fr); }
  .featured-layout { grid-template-columns: 1fr; }
  .featured-layout > :first-child { grid-row: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__image { width: 100%; aspect-ratio: 16/9; }
  .donation-banner .container { grid-template-columns: 1fr; }
  .donation-banner__actions { align-items: flex-start; }
}

@media (max-width: 768px) {
  .primary-nav, .header-actions .btn { display: none; }
  .hamburger { display: flex; }
  .top-bar { display: none; }
  .breaking-news .container { gap: .75rem; }
  .quick-links .container { grid-template-columns: repeat(3, 1fr); }
  .posts-grid   { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .quick-links .container { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 400px; }
  .hero .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* ── Mobile Nav Overlay ─────────────────────────────────── */
.mobile-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1100;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: min(360px, 90vw);
  height: 100dvh;
  background: var(--white);
  z-index: 1200;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex; flex-direction: column;
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--green-800);
  color: var(--white);
  flex-shrink: 0;
}
.mobile-nav__links { padding: .75rem; flex: 1; }
.mobile-nav__link {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--gray-700);
  transition: all var(--transition);
  font-size: .9375rem;
}
.mobile-nav__link:hover { background: var(--green-50); color: var(--green-800); }
.mobile-nav__sub { padding-left: 1.75rem; }
.mobile-nav__sub .mobile-nav__link { font-size: .875rem; font-weight: 500; }

/* ── Print ──────────────────────────────────────────────── */
@media print {
  .top-bar, .site-header, .breaking-news, .quick-links,
  .donation-banner, .stats-bar, .newsletter-section,
  .site-footer, .sidebar-widget, .pagination { display: none !important; }
  .article-content { font-size: 12pt; line-height: 1.6; }
}

/* ==========================================================================
   BLOG INDEX — Layout, Hero, Toolbar, Cards
   ========================================================================== */

/* Reading Progress Bar */
.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold-500));
  transition: width .1s linear;
  pointer-events: none;
}

/* ── Blog Hero ─────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}
.blog-hero__inner { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; }
@media (max-width: 900px) { .blog-hero__inner { grid-template-columns: 1fr; } }

.hero-card {
  position: relative; display: block; border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: #fff;
  background: var(--primary-dark);
}
.hero-card__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .5s ease;
}
.hero-card:hover .hero-card__bg { transform: scale(1.04); }
.hero-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 60%, transparent 100%);
}
.hero-card__body { position: relative; padding: 1.5rem; margin-top: auto; }
.hero-card--large { height: 460px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-card--large .hero-card__body { padding: 2rem; }
.hero-card--large .hero-card__title { font-size: 1.6rem; line-height: 1.25; margin-bottom: .5rem; }
.hero-card--large .hero-card__excerpt { font-size: .95rem; opacity: .85; margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.blog-hero__stack { display: flex; flex-direction: column; gap: 1rem; }
.hero-card--small { height: 100px; display: flex; align-items: flex-end; }
.hero-card--small .hero-card__body { padding: .75rem 1rem; }
.hero-card--small .hero-card__title { font-size: .875rem; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hero-card__cat {
  display: inline-block; background: var(--gold-500); color: var(--primary-dark);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .2em .6em; border-radius: var(--radius-sm); margin-bottom: .4rem;
}
.hero-card__breaking {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--red-600, #C62828); color: #fff;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  padding: .2em .6em; border-radius: var(--radius-sm); margin-right: .4rem;
}
.hero-card__meta { font-size: .78rem; opacity: .7; margin-top: .4rem; }
.hero-card__title { font-weight: 700; color: #fff; }
.hero-card__excerpt { color: rgba(255,255,255,.85); }

/* ── Blog Toolbar ──────────────────────────────────────── */
.blog-toolbar {
  background: #fff; border-bottom: 1px solid var(--gray-200);
  padding: .75rem 0; position: sticky; top: 64px; z-index: 100;
}
.blog-toolbar__inner { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.blog-toolbar__left { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; overflow-x: auto; padding-bottom: 2px; }
.blog-toolbar__right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.cat-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .85rem; border-radius: 999px;
  border: 1.5px solid var(--gray-300); background: #fff;
  font-size: .82rem; font-weight: 600; color: var(--gray-700);
  cursor: pointer; white-space: nowrap; transition: all var(--transition);
  text-decoration: none;
}
.cat-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--green-50); }
.cat-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-pill__count { font-size: .72rem; background: rgba(0,0,0,.1); border-radius: 999px; padding: .05em .45em; }
.cat-pill.active .cat-pill__count { background: rgba(255,255,255,.25); }

.blog-search-wrap { position: relative; display: flex; align-items: center; }
.blog-search-wrap input {
  padding: .35rem .85rem .35rem 2.1rem; border-radius: 999px;
  border: 1.5px solid var(--gray-300); font-size: .85rem;
  background: var(--gray-100); width: 200px; transition: all var(--transition);
}
.blog-search-wrap input:focus { width: 260px; border-color: var(--primary); background: #fff; outline: none; }
.blog-search-wrap::before {
  content: '\f002'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: .7rem; color: var(--gray-400); font-size: .8rem;
  pointer-events: none;
}
.blog-search-clear {
  position: absolute; right: .5rem; border: none; background: none;
  color: var(--gray-400); cursor: pointer; font-size: .8rem; padding: .2rem;
}

.blog-sort-select {
  padding: .35rem .75rem; border-radius: var(--radius); border: 1.5px solid var(--gray-300);
  font-size: .82rem; background: #fff; color: var(--gray-700); cursor: pointer;
}

.layout-toggle { display: flex; gap: .2rem; }
.layout-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gray-300); background: #fff; border-radius: var(--radius);
  color: var(--gray-500); cursor: pointer; font-size: .8rem; transition: all var(--transition);
}
.layout-btn:hover, .layout-btn.active { border-color: var(--primary); color: var(--primary); background: var(--green-50); }

/* ── Active filters ────────────────────────────────────── */
.active-filters {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .5rem 0; background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
}
.active-filter-label { font-size: .8rem; color: var(--gray-500); font-weight: 600; }
.active-filter-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--primary); color: #fff;
  padding: .25rem .65rem; border-radius: 999px; font-size: .78rem;
  cursor: pointer; border: none; transition: background var(--transition);
}
.active-filter-tag:hover { background: var(--primary-dark); }
.clear-filters-btn {
  background: none; border: none; color: var(--red-600, #C62828);
  font-size: .78rem; cursor: pointer; margin-left: auto; padding: .25rem .5rem;
  border-radius: var(--radius); transition: background var(--transition);
}
.clear-filters-btn:hover { background: rgba(198,40,40,.1); }

.results-meta { font-size: .82rem; color: var(--gray-500); padding: .5rem 0; }

/* ── Blog Grid / List / Magazine ──────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-list { display: flex; flex-direction: column; gap: 1.25rem; }
.blog-list .blog-card { display: grid; grid-template-columns: 260px 1fr; }
.blog-list .blog-card__image-link { height: 100%; min-height: 180px; }
@media (max-width: 640px) { .blog-list .blog-card { grid-template-columns: 1fr; } }

.blog-magazine { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.blog-magazine .blog-card:nth-child(1) { grid-column: 1 / -1; }
.blog-magazine .blog-card:nth-child(1) { display: grid; grid-template-columns: 1fr 1fr; }
.blog-magazine .blog-card:nth-child(1) .blog-card__image-link { height: 100%; min-height: 260px; }
@media (max-width: 768px) { .blog-magazine { grid-template-columns: 1fr; } .blog-magazine .blog-card:nth-child(1) { grid-template-columns: 1fr; } }

/* ── Blog Card ─────────────────────────────────────────── */
.blog-card {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  border: 1px solid var(--gray-200); text-decoration: none; color: inherit;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card.animate-in { animation: fadeSlideUp .4s ease both; }

.blog-card__image-link { display: block; overflow: hidden; position: relative; }
.blog-card__image { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .5s ease; }
.blog-card:hover .blog-card__image { transform: scale(1.05); }
.blog-card__image-link { height: 200px; }
.blog-card__image-link img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__no-image {
  width: 100%; height: 200px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--gray-100) 100%);
  color: var(--primary); font-size: 3rem; opacity: .5;
}

.blog-card__cat {
  display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--primary); margin-bottom: .35rem;
  text-decoration: none;
}
.blog-card__breaking {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  color: var(--red-600, #C62828); margin-right: .35rem;
}
.blog-card__body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__title {
  font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: .5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card__title a { color: var(--gray-900); text-decoration: none; }
.blog-card__title a:hover { color: var(--primary); }
.blog-card__excerpt {
  font-size: .865rem; color: var(--gray-600); line-height: 1.55; margin-bottom: .75rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.blog-card__meta {
  display: flex; align-items: center; gap: .75rem; font-size: .78rem; color: var(--gray-500);
  flex-wrap: wrap; border-top: 1px solid var(--gray-100); padding-top: .7rem; margin-top: auto;
}
.blog-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: .75rem; }
.blog-card__author { display: flex; align-items: center; gap: .45rem; font-size: .8rem; }
.blog-card__avatar {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  background: var(--primary); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: .65rem; font-weight: 700;
}
.blog-card__read-more {
  font-size: .8rem; font-weight: 600; color: var(--primary);
  text-decoration: none; display: flex; align-items: center; gap: .3rem;
}
.blog-card__read-more:hover { gap: .5rem; }

.blog-empty {
  grid-column: 1 / -1; text-align: center; padding: 5rem 2rem;
  color: var(--gray-500);
}
.blog-empty i { font-size: 3rem; margin-bottom: 1rem; opacity: .3; }

/* card-no-img (used in related/popular fallbacks) */
.card-no-img {
  width: 100%; height: 100%; min-height: 140px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-50); color: var(--primary); font-size: 2rem; opacity: .5;
}

/* ── Tags Cloud ────────────────────────────────────────── */
.tags-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-chip {
  display: inline-block; padding: .25rem .65rem;
  background: var(--gray-100); border-radius: 999px;
  font-size: .78rem; color: var(--gray-700); text-decoration: none;
  transition: all var(--transition); border: 1px solid var(--gray-200);
}
.tag-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Sidebar Cats ──────────────────────────────────────── */
.sidebar-cat-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .5rem; border-radius: var(--radius);
  text-decoration: none; color: var(--gray-700); font-size: .875rem;
  transition: background var(--transition);
}
.sidebar-cat-btn:hover { background: var(--gray-100); color: var(--primary); }
.sidebar-cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sidebar-cat-count {
  margin-left: auto; font-size: .75rem; background: var(--gray-200);
  border-radius: 999px; padding: .1em .5em; color: var(--gray-600);
}

/* ── Pagination ────────────────────────────────────────── */
.page-ellipsis { padding: .45rem .5rem; color: var(--gray-400); font-size: .9rem; }

/* ==========================================================================
   POST / ARTICLE PAGE
   ========================================================================== */

/* Hero */
.post-hero {
  position: relative; min-height: 460px; display: flex; align-items: flex-end;
  overflow: hidden; background: var(--primary-dark);
}
.post-hero--no-image { min-height: 280px; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); }
.post-hero--has-image .post-hero__overlay {
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.15) 100%);
}
.post-hero--no-image .post-hero__overlay {
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 80%);
}
.post-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  will-change: transform;
}
.post-hero__overlay { position: absolute; inset: 0; }
.post-hero__inner { position: relative; z-index: 1; padding: 3rem 0 2.5rem; width: 100%; }

.post-breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: 1.25rem;
}
.post-breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.post-breadcrumb a:hover { color: #fff; }
.post-breadcrumb i { font-size: .65rem; }

.post-hero__badges { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }

.badge-cat {
  display: inline-block; background: var(--gold-500); color: var(--primary-dark);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .25em .75em; border-radius: var(--radius-sm); text-decoration: none;
}
.badge-breaking {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #C62828; color: #fff;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  padding: .25em .75em; border-radius: var(--radius-sm);
}

.post-hero__title {
  color: #fff; font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2; font-weight: 800; margin: 0 0 .75rem;
  max-width: 800px;
}
.post-hero__title-skeleton {
  display: block; height: 2.5rem; background: rgba(255,255,255,.15);
  border-radius: var(--radius); animation: shimmer 1.5s infinite;
  width: 75%;
}
.post-hero__excerpt {
  color: rgba(255,255,255,.85); font-size: 1.05rem; line-height: 1.6;
  max-width: 700px; margin-bottom: 1.25rem;
}
.post-hero__author { display: flex; align-items: center; gap: 1rem; }
.post-hero__avatar {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.3); flex-shrink: 0;
}
.post-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-hero__author-name { font-weight: 700; color: #fff; font-size: .95rem; }
.post-hero__author-sub { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: .15rem; }

/* Post Body Layout */
.post-body-wrap { padding: 2.5rem 0 4rem; background: var(--gray-50); }
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 1024px) { .post-layout { grid-template-columns: 1fr; } }

/* Article */
.post-article { min-width: 0; }

.post-featured-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.post-featured-image img { width: 100%; max-height: 500px; object-fit: cover; display: block; }
.post-img-caption { font-size: .82rem; color: var(--gray-500); text-align: center; padding: .5rem; }

/* Share vertical */
.post-card-wrap { position: relative; display: flex; gap: 0; }
.post-share-vertical {
  position: sticky; top: 88px; width: 44px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  margin-right: 1rem; height: fit-content; padding-top: .5rem;
}
.post-share-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: .2rem; }
@media (max-width: 700px) { .post-share-vertical { display: none; } }

.share-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; border: none; cursor: pointer; font-size: .875rem;
  transition: transform var(--transition), box-shadow var(--transition);
  color: #fff;
}
.share-btn:hover { transform: scale(1.1); box-shadow: var(--shadow-md); }
.share-btn--facebook { background: #1877F2; }
.share-btn--twitter { background: #000; }
.share-btn--whatsapp { background: #25D366; }
.share-btn--copy { background: var(--gray-600); }
.share-btn--print { background: var(--gray-400); }
.share-btn--labelled {
  width: auto; border-radius: var(--radius-sm); padding: .5rem 1rem; gap: .4rem;
  font-size: .84rem; font-weight: 600;
}

/* Content area */
.post-content-area { flex: 1; min-width: 0; }

/* Author row */
.post-author-row {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-100);
  margin-bottom: 1.5rem; background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.author-row__avatar {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
}
.author-row__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-row__info { flex: 1; }
.author-row__name { font-weight: 700; font-size: .9rem; color: var(--gray-900); }
.author-row__meta { font-size: .78rem; color: var(--gray-500); }
.author-row__actions { margin-left: auto; }

/* Author initials */
.author-initials {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .75rem; color: #fff;
  width: 100%; height: 100%; background: var(--primary);
}
.author-initials--lg { font-size: 1.2rem; }

/* TOC */
.post-toc {
  background: var(--green-50); border: 1px solid var(--green-200, #a5d6a7);
  border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin-bottom: 2rem;
}
.post-toc__header {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .9rem; color: var(--primary); margin-bottom: .75rem;
}
.post-toc__toggle {
  margin-left: auto; background: none; border: none; color: var(--primary);
  cursor: pointer; padding: .2rem;
}
.post-toc__list { list-style: decimal; padding-left: 1.2rem; margin: 0; }
.post-toc__list li + li { margin-top: .35rem; }
.toc-h3 { margin-left: 1rem; }
.toc-link { font-size: .86rem; color: var(--gray-700); text-decoration: none; line-height: 1.4; }
.toc-link:hover { color: var(--primary); }
.toc-link.active { color: var(--primary); font-weight: 600; }

/* Article Content */
.post-article .article-content,
.article-content {
  background: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 2rem 1.75rem;
  font-size: 1.05rem; line-height: 1.8; color: var(--gray-800);
}
.article-content h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--gray-900);
  margin: 2rem 0 .75rem; padding-bottom: .4rem;
  border-bottom: 2px solid var(--green-100, #e8f5e9);
}
.article-content h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--gray-800);
  margin: 1.75rem 0 .6rem;
}
.article-content h4 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content a { color: var(--primary); }
.article-content a:hover { text-decoration: underline; }
.article-content blockquote {
  border-left: 4px solid var(--gold-500); margin: 1.75rem 0;
  padding: 1rem 1.5rem; background: var(--gray-50); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; font-size: 1.1rem; color: var(--gray-700);
}
.article-content ul, .article-content ol {
  margin: 0 0 1.25rem 1.5rem; padding: 0;
}
.article-content li { margin-bottom: .4rem; }
.article-content code {
  background: var(--gray-100); padding: .2em .45em; border-radius: var(--radius-sm);
  font-size: .9em; font-family: 'Courier New', monospace; color: var(--primary-dark);
}
.article-content pre {
  background: var(--gray-900); color: #f8f8f2; padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg); overflow-x: auto; margin-bottom: 1.5rem;
}
.article-content pre code { background: none; color: inherit; padding: 0; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.article-content th, .article-content td {
  padding: .65rem 1rem; border: 1px solid var(--gray-200); text-align: left; font-size: .9rem;
}
.article-content th { background: var(--green-50); font-weight: 700; }
.article-content tr:nth-child(even) { background: var(--gray-50); }
.table-responsive { overflow-x: auto; }

/* Article Images */
.article-img-wrap { margin: 1.5rem 0; text-align: center; }
.article-img-wrap img { max-width: 100%; border-radius: var(--radius-lg); cursor: zoom-in; }
.article-img-wrap figcaption { font-size: .82rem; color: var(--gray-500); margin-top: .5rem; }

/* Tags */
.post-tags {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem;
  padding: 1rem 1.75rem; border-top: 1px solid var(--gray-100); background: #fff;
}
.post-tags__label { font-size: .82rem; font-weight: 700; color: var(--gray-600); margin-right: .25rem; }

/* Share bottom */
.post-share-bottom {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-top: 1.5rem;
}
.post-share-bottom__label { font-size: .9rem; font-weight: 700; color: var(--gray-700); margin-bottom: .75rem; }
.post-share-bottom__btns { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Author Bio */
.post-author-bio {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: #fff; border-radius: var(--radius-lg); padding: 1.5rem;
  margin-top: 2rem; border: 1px solid var(--gray-200);
}
.post-author-bio__avatar {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 3px solid var(--green-100, #a5d6a7);
}
.post-author-bio__avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author-bio__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: .15rem; }
.post-author-bio__name { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); margin-bottom: .35rem; }
.post-author-bio__text { font-size: .88rem; color: var(--gray-600); line-height: 1.6; margin: 0; }

/* Comments */
.post-comments {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.75rem;
  margin-top: 2rem; border: 1px solid var(--gray-200);
}
.post-comments__title { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.5rem; }
.comment-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--gray-100); }
.comment-item:last-of-type { border-bottom: none; }
.comment-item__avatar { flex-shrink: 0; }
.comment-item__header { display: flex; align-items: center; gap: .75rem; margin-bottom: .35rem; }
.comment-item__name { font-weight: 700; font-size: .9rem; }
.comment-item__time { font-size: .78rem; color: var(--gray-400); }
.comment-item__text { font-size: .9rem; color: var(--gray-700); line-height: 1.5; margin: 0; }

.post-comment-form { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--gray-100); }
.post-comment-form__title { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.post-comment-form__note { font-size: .82rem; color: var(--gray-500); margin-bottom: 1.25rem; }

/* Related */
.post-related { margin-top: 2.5rem; }
.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media (max-width: 768px) { .posts-grid { grid-template-columns: 1fr; } }

/* Popular sidebar items */
.popular-item {
  display: flex; gap: .75rem; padding: .65rem 0;
  border-bottom: 1px solid var(--gray-100); text-decoration: none; color: inherit;
  align-items: flex-start; transition: color var(--transition);
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover .popular-item__title { color: var(--primary); }
.popular-item__num {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: .7rem; font-weight: 800; margin-top: .1rem;
}
.popular-item__title { font-size: .85rem; font-weight: 600; line-height: 1.4; display: block; }
.popular-item__meta { font-size: .75rem; color: var(--gray-400); margin-top: .15rem; display: block; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-lg); }
.lightbox-close {
  position: absolute; top: -40px; right: 0;
  background: none; border: none; color: #fff; font-size: 1.25rem; cursor: pointer;
}
.lightbox-caption { color: rgba(255,255,255,.7); font-size: .85rem; text-align: center; margin-top: .5rem; }

/* Animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

/* Print for post */
@media print {
  .reading-progress, .post-share-vertical, .post-share-bottom,
  .post-sidebar, .post-related, .post-comments, .post-comment-form,
  .mobile-nav, .search-overlay { display: none !important; }
  .post-layout { display: block; }
  .article-content { font-size: 12pt; line-height: 1.7; box-shadow: none; padding: 0; }
  .post-hero { min-height: 200px; }
}

/* ??????????????????? HOME MAP SECTION ??????????????????????? */
.home-map-section { background: var(--gray-50); }
.home-map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 2.5rem;
}
#home-map {
  width: 100%;
  height: 480px;
  z-index: 1;
}
.home-map-card {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: 300px;
  z-index: 999;
}
.home-map-card__icon {
  font-size: 1.5rem;
  color: var(--green-700);
}
.home-map-card__title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--dark);
}
.home-map-card__addr {
  font-size: .8rem;
  color: var(--gray-500);
  line-height: 1.6;
}
.home-map-card__links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}
/* Custom map pin */
.hm-pin {
  width: 44px; height: 44px;
  background: var(--green-700);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  border: 3px solid #fff;
}
.hm-pin i {
  transform: rotate(45deg);
  color: #fff;
  font-size: .9rem;
}
@media (max-width: 600px) {
  #home-map { height: 320px; }
  .home-map-card {
    position: static;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--gray-200);
  }
  .home-map-wrap { border-radius: 0; }
}
