/* Dynamic Google Fonts are loaded via includes/typography.php centralized font manager */

:root {
  --header-height: 87px;
  /* Brand Colors & Layout Tokens */
  --primary: #299d8e;
  --primary-dark: #1d7b6f;
  --primary-light: #e8f5f3;
  --ink: #14221f;
  --dark: #0e2c2b;
  --muted: #647471;
  --line: #e4ebe9;
  --bg: #f8faf9;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(20, 50, 45, 0.04);
  --shadow-md: 0 10px 28px rgba(20, 50, 45, 0.08);
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Typography System — Centralized Production Font Tokens */
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-story-body: 'PT Serif', Georgia, 'Times New Roman', serif;
  --font-heading: 'Amiri', Georgia, 'Times New Roman', serif;
  --font-story-heading: 'Amiri', Georgia, 'Times New Roman', serif;
  --font-script: 'Caveat', cursive;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Type Scale */
  --text-2xs: 10px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 21px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 36px;
  --text-5xl: 46px;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Universal Card System Tokens — Premium 3D & Interactive Elevation */
  --card-radius: 14px;
  --card-radius-lg: 16px;
  --card-border: 1px solid rgba(23, 35, 33, 0.08);
  --card-border-hover: rgba(41, 157, 142, 0.22);
  --card-shadow: 0 8px 24px rgba(23, 35, 33, 0.08), 0 2px 6px rgba(23, 35, 33, 0.05);
  --card-shadow-hover: 0 18px 40px rgba(23, 35, 33, 0.14), 0 6px 14px rgba(23, 35, 33, 0.08);
  --card-transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 350ms ease, border-color 350ms ease;
  --card-hover-lift: translateY(-5px);
  --card-img-transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  --card-img-scale: scale(1.04);
  --card-accent: #299D8E;
  --card-accent-dark: #227F73;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
.page-wrapper,
.content-wrapper,
.home-main {
  flex: 1 0 auto;
}

button, input, select, textarea {
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* Responsive container padding */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }
}

@media (max-width: 375px) {
  .container {
    width: calc(100% - 20px);
  }
}

/* ==================================================
   1. SITE HEADER & NAVIGATION
   ================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-container {
  /* Generous container on desktop */
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo — Enlarged and crisp */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-link img,
.site-logo-img {
  height: 72px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.brand-link:hover img,
.brand-link:hover .site-logo-img {
  transform: scale(1.02);
}

.brand-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-body);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  color: #12211e;
  letter-spacing: -0.6px;
}

.brand-tagline {
  font-size: 8px;
  font-weight: 700;
  color: #728280;
  letter-spacing: 1.8px;
  margin-top: 1px;
}

/* Nav Menu — Left-aligned towards logo, Donate pushed right */
.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 30px;
  margin-left: 36px;
  margin-right: 20px;
  height: 100%;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: #384644;
  height: 100%;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active {
  color: #182825;
  font-weight: 700;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

/* ── Donate Button — Header Nav ─────────────────────────────────── */
.main-nav a.nav-donate-btn,
.nav-right .nav-donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 37px;
  padding: 8px 20px;
  margin-left: 16px;
  background: #261134;
  color: #ffffff !important;
  font-family: var(--font-button, var(--font-body));
  font-size: 14px;
  font-weight: var(--font-button-weight, 600);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(38, 17, 52, 0.22);
}

.main-nav a.nav-donate-btn:hover,
.nav-right .nav-donate-btn:hover {
  background: #3a1a50;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(38, 17, 52, 0.36);
  transform: translateY(-1px);
}

.main-nav a.nav-donate-btn:focus-visible,
.nav-right .nav-donate-btn:focus-visible {
  outline: 3px solid #7c4dbd;
  outline-offset: 3px;
}

.main-nav a.nav-donate-btn.active::after {
  display: none !important;
}

/* Mobile Drawer Donate Button */
.mobile-nav-link.nav-donate-btn {
  background: #261134;
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 9999px;
  text-align: center;
  justify-content: center;
  margin: 14px 18px 8px;
  display: flex;
  box-shadow: 0 2px 10px rgba(38, 17, 52, 0.25);
  border: none;
}

.mobile-nav-link.nav-donate-btn:hover {
  background: #391a4e;
  color: #ffffff !important;
}

.mobile-nav-link.nav-donate-btn span {
  color: #ffffff !important;
}

/* Right Nav Controls */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Search Bar — Expanded, prominent, and fills the header nicely */
.nav-search-pill {
  position: relative;
  display: flex;
  align-items: center;
  background: #f4f7f6;
  border: 1px solid #dbe3e1;
  border-radius: 30px;
  padding: 0 20px;
  width: 420px;
  max-width: calc(100vw - 320px);
  height: 46px;
  transition: all 0.25s ease;
}

.nav-search-pill:focus-within {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(41, 157, 142, 0.15);
}

.nav-search-pill input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}

.nav-search-pill input::placeholder {
  color: #8c9b98;
}

.nav-search-pill button {
  border: none;
  background: none;
  padding: 0;
  color: #637370;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.nav-search-pill button:hover {
  color: var(--primary);
}

/* Header Live Search Dropdown */
.header-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e2ebe8;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20, 34, 31, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  overflow: hidden;
  text-align: left;
  animation: headerDropdownFadeIn 0.18s ease-out;
}

@keyframes headerDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  border-bottom: 1px solid #f2f5f4;
  transition: background 0.15s ease;
  cursor: pointer;
}

.header-search-item:last-child {
  border-bottom: none;
}

.header-search-item:hover,
.header-search-item.highlighted,
.header-search-item[aria-selected="true"] {
  background: #f4f8f7;
}

.header-search-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #edf3f1;
}

.header-search-info {
  flex: 1;
  min-width: 0;
}

.header-search-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary, #299D8E);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.header-search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #14221f;
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-search-view-all {
  display: block;
  padding: 11px 16px;
  background: #f8faf9;
  border-top: 1px solid #eef2f1;
  color: #208072;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.header-search-view-all:hover,
.header-search-view-all.highlighted {
  background: #eef7f5;
  color: #14221f;
}

.header-search-loading,
.header-search-empty,
.header-search-error {
  padding: 18px 16px;
  font-size: 13px;
  color: #637370;
  text-align: center;
}

.header-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-search-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(41, 157, 142, 0.25);
  border-top-color: var(--primary, #299D8E);
  border-radius: 50%;
  animation: headerSpin 0.65s linear infinite;
  display: inline-block;
}

@keyframes headerSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile Drawer Search Form — Clean, Native, Full Width */
.mobile-search-container {
  padding: 12px 18px 8px;
  width: 100%;
  box-sizing: border-box;
}

.mobile-drawer-search-form {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.mobile-search-input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  background: #f4f7f6;
  border: 1.5px solid #dce5e3;
  border-radius: 24px;
  padding: 0 8px 0 14px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.mobile-search-input-wrap:focus-within {
  background: #ffffff;
  border-color: var(--primary, #299D8E);
  box-shadow: 0 0 0 3px rgba(41, 157, 142, 0.15);
}

.mobile-search-icon {
  flex-shrink: 0;
  color: #7b8b88;
  margin-right: 8px;
  transition: color 0.2s ease;
}

.mobile-search-input-wrap:focus-within .mobile-search-icon {
  color: var(--primary, #299D8E);
}

.mobile-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-family: inherit;
  font-size: 14px;
  color: #172825;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.mobile-search-input::placeholder {
  color: #8c9b98;
  font-size: 14px;
}

.mobile-search-submit-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary, #299D8E);
  color: #ffffff;
  border: none !important;
  outline: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-search-submit-btn:active {
  transform: scale(0.92);
}

.mobile-drawer-search .header-search-dropdown,
.mobile-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #e1e9e7;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 34, 31, 0.12);
  z-index: 1050;
  max-height: 280px;
  overflow-y: auto;
}

.nav-btn-share {
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 22px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(41, 157, 142, 0.25);
}

.nav-btn-share:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.mobile-toggle-btn {
  display: none;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

/* ==================================================
   2. HERO SECTION
   ================================================== */
.hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 480px;
  background-color: #f0f4f3;
  background-image: url('../images/Hero2.jpeg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 55px 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-content {
  max-width: 530px;
  z-index: 2;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-kicker span.dash {
  display: inline-block;
  width: 18px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 54px;
  line-height: 1.08;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -1.2px;
}

.hero-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #ffffff;
  margin: 0 0 28px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-hero-primary {
  background: #000000;
  color: #ffffff;
  padding: 0 26px;
  height: 46px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(41, 157, 142, 0.28);
}

.btn-hero-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-hero-outline {
  background: #ffffff;
  color: #1a2c28;
  border: 1px solid #d4dfdc;
  padding: 0 24px;
  height: 46px;
  border-radius: 28px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.btn-hero-outline:hover {
  background: #f7faf9;
  border-color: #bccac7;
}

.hero-script-tag {
  color: #ffffff;
  text-align: right;
  font-family: 'Caveat', cursive;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  padding-right: 20px;
  user-select: none;
}

.hero-script-tag span {
  display: block;
}

/* ==================================================
   3. CATEGORY ROW (8 CARDS)
   ================================================== */
.category-strip-section {
  padding: 28px 0 10px;
}

.category-boxes-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
}

.cat-box {
  background: #ffffff;
  border: 1px solid #e3eae8;
  border-radius: 12px;
  padding: 14px 6px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.cat-box:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(41, 157, 142, 0.08);
}

.cat-box.active {
  background: var(--primary-light);
  border-color: #299d8e;
  box-shadow: 0 4px 14px rgba(41, 157, 142, 0.12);
}

.cat-box-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b504c;
  margin-bottom: 8px;
}

.cat-box.active .cat-box-icon {
  color: var(--primary);
}

.cat-box-name {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.2px;
  color: #172825;
  margin-bottom: 4px;
  /* Do NOT use white-space: nowrap here — causes overflow on tiny screens */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  word-break: break-word;
}

.cat-box.active .cat-box-name {
  color: #113630;
}

.cat-box-count {
  font-size: 11px;
  color: #7b8b88;
  font-weight: 500;
}

/* ==================================================
   4. FEATURED STORY SECTION — COMPACT EDITORIAL SPOTLIGHT
   ================================================== */
.featured-section {
  padding: 24px 0 10px;
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.featured-header h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #14221f;
  margin: 0;
  line-height: 1.2;
}

.carousel-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #d4dfdc;
  background: #ffffff;
  color: #495a57;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.nav-arrow:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f7faf9;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* Spotlight Left Card — Compact Two-Column Layout */
.spotlight-card {
  background: #ffffff;
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: center;
  box-shadow: var(--card-shadow);
  transition: var(--card-transition);
  position: relative;
  min-width: 0;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--card-border-hover);
}

.spotlight-img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e4eee9;
  display: block;
  flex-shrink: 0;
}

.spotlight-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: var(--card-img-transition);
}

.spotlight-card:hover .spotlight-img-wrap img {
  transform: var(--card-img-scale);
}

.spotlight-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.spotlight-card:hover .spotlight-title a {
  color: var(--primary);
}

.spotlight-badge {
  display: none !important;
}

.spotlight-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-right: 4px;
}

.tag-pill {
  display: inline-block;
  align-self: flex-start;
  background: #eef6f4;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.38;
  font-weight: 700;
  color: #14221f;
  margin: 0 0 6px;
  overflow-wrap: break-word;
  word-break: normal;
}

.spotlight-title a:hover {
  color: var(--primary);
}

.spotlight-excerpt {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-read-story {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.btn-read-story:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Support Card Right — Compact & Visually Balanced */
.support-card {
  position: relative;
  background: #e4f3ef;
  border: 1px solid #d1e8e2;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--card-transition);
  min-width: 0;
}

.support-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(41, 157, 142, 0.35);
}

.support-bg-leaf {
  position: absolute;
  right: -15px;
  bottom: -15px;
  width: 100px;
  height: 100px;
  opacity: 0.14;
  pointer-events: none;
}

.support-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.support-heart {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.support-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: #123e37;
  margin: 0;
  white-space: nowrap;
}

.support-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #49635e;
  margin: 0 0 12px;
  max-width: 320px;
}

.btn-support-child {
  background: var(--primary);
  color: #ffffff;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(41, 157, 142, 0.2);
  text-decoration: none;
  line-height: 1.2;
}

.btn-support-child:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ==================================================
   5. LATEST STORIES SECTION (4 CARDS ROW)
   ================================================== */
.latest-section {
  padding: 0 0 52px;
}

.featured-section + .latest-section,
#latest-stories {
  padding-top: 24px;
}

.latest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .latest-section {
    padding: 0 0 38px;
  }

  .featured-section+.latest-section,
  #latest-stories {
    padding-top: 18px;
  }

  .latest-header {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .latest-section {
    padding: 0 0 30px;
  }

  .featured-section+.latest-section,
  #latest-stories {
    padding-top: 14px;
  }

  .latest-header {
    margin-bottom: 14px;
  }
}

.latest-kicker-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.latest-kicker-title span.bar {
  display: inline-block;
  width: 18px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}

.latest-kicker-title h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #14221f;
  margin: 0;
}

.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: #495a57;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.view-all-link:hover {
  color: var(--primary);
}

.latest-stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.latest-card {
  background: #ffffff;
  border: 1px solid #e3eae8;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.latest-card:hover {
  transform: translateY(-3px);
  border-color: #cbd9d6;
  box-shadow: var(--shadow-md);
}

.latest-card-img-link {
  flex: 0 0 42%;
  overflow: hidden;
  background: #e4eee9;
  display: block;
}

.latest-card-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.latest-card-body {
  flex: 1;
  min-width: 0;
  /* Prevent flex child from overflowing its parent */
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.latest-cat-tag {
  display: inline-block;
  align-self: flex-start;
  background: #eef6f4;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 7px;
  border-radius: 8px;
  text-transform: uppercase;
}

.latest-card-title {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.28;
  font-weight: 700;
  color: #14221f;
  margin: 7px 0;
}

.latest-card-title a:hover {
  color: var(--primary);
}

.latest-card-date {
  font-size: 11px;
  color: #7b8b88;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

/* ==================================================
   6. SITE FOOTER
   ================================================== */
/* ==================================================
   SHAAGIRD APPROVED FOOTER (Exact Match with Reference)
   ================================================== */
.site-footer {
  background: #ffffff;
  color: #172321;
  border-top: 1px solid rgba(41, 157, 142, 0.20);
  padding: 50px 0 0;
  position: relative;
  box-sizing: border-box;
  margin-top: auto;
  margin-bottom: 0;
}

.site-footer .container {
  max-width: 1160px;
  width: calc(100% - 40px);
  margin: 0 auto;
}

.footer-main-row {
  display: grid;
  grid-template-columns: 120px 215px 235px 210px 150px;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 45px;
}

.footer-col-brand {
  display: flex;
  align-items: flex-start;
  padding-top: 20px;
}

.footer-col-brand .footer-brand-logo {
  display: block;
  text-decoration: none;
}

.footer-col-brand .footer-brand-logo img {
  width: 88px;
  height: auto;
  display: block;
}

.footer-col-links a {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
  color: #172321;
  text-decoration: none;
  margin: 0;
  transition: color 0.2s ease;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: left;
}

.footer-col-links a:hover {
  color: var(--primary, #299D8E);
}

.footer-col-efficiency {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-col-efficiency .efficiency-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #172321;
  margin: 0 0 14px;
  text-align: center;
  letter-spacing: -0.2px;
}

.efficiency-chart-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.donut-chart {
  flex-shrink: 0;
  width: 82px;
  height: 82px;
}

.efficiency-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #172321;
  white-space: nowrap;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.legend-dot.dot-program {
  background: #299D8E;
}

.legend-dot.dot-mgmt {
  background: #172321;
}

.legend-dot.dot-fund {
  background: #c0cbc8;
}

.footer-donate-btn {
  background: #299D8E;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.footer-donate-btn:hover {
  background: #227F73;
  transform: translateY(-1px);
}

.footer-donate-btn .heart-symbol {
  font-size: 14px;
  line-height: 1;
}

.footer-col-social {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}

.footer-col-social .footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  color: #172321;
  text-decoration: none;
  margin-bottom: 14px;
  transition: color 0.15s ease;
}

.footer-col-social .footer-social-link:last-child {
  margin-bottom: 0;
}

.footer-col-social .footer-social-link:hover {
  color: var(--primary, #299D8E);
}

.footer-col-social .social-icon {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  color: #9AA5B5;
  transition: color 0.15s ease;
}

.footer-col-social .footer-social-link:hover .social-icon {
  color: var(--primary, #299D8E);
}

.footer-green-bar {
  width: 100%;
  background: #299D8E;
  color: #ffffff;
  height: 35px;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
  margin: 0;
}

.footer-green-bar .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.footer-green-bar p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
}

/* Floating WhatsApp Button — Removed as requested */
.floating-whatsapp-btn {
  display: none !important;
}

/* Legacy helpers if any referencing old names */
.footer-bottom-links a {
  color: #7b8b88;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ==================================================
   7. RESPONSIVE BREAKPOINTS — PUBLIC WEBSITE
   ================================================== */

/* ====== Header ====== */
@media (max-width: 1200px) {
  .nav-search-pill {
    width: 320px;
  }
  .main-nav {
    gap: 22px;
    margin-left: 20px;
    margin-right: 12px;
  }
}

@media (max-width: 1080px) {
  .nav-search-pill {
    width: 260px;
  }
  .main-nav {
    gap: 16px;
    margin-left: 14px;
    margin-right: 8px;
  }
}

@media (max-width: 950px) {
  :root {
    --header-height: 75px;
  }

  .nav-container {
    height: 74px;
  }

  .brand-link img,
  .site-logo-img {
    height: 56px;
  }

  .main-nav {
    display: none;
  }

  .mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    /* comfortable touch target */
  }

  .nav-search-pill {
    width: 240px !important;
    height: 42px;
  }
}

/* Remove inline width from header search at small sizes */
@media (max-width: 640px) {
  :root {
    --header-height: 69px;
  }

  .nav-search-pill {
    display: none !important;
  }

  .nav-container {
    gap: 12px;
    width: calc(100% - 32px);
    height: 68px;
    /* 16px each side */
  }

  .brand-link img,
  .site-logo-img {
    height: 50px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 63px;
  }

  .nav-container {
    height: 62px;
    width: calc(100% - 24px);
    /* 12px each side */
  }

  .brand-link img,
  .site-logo-img {
    height: 44px;
  }
}

@media (max-width: 375px) {
  :root {
    --header-height: 59px;
  }

  .nav-container {
    height: 58px;
    width: calc(100% - 20px);
  }

  .brand-link img,
  .site-logo-img {
    height: 40px;
  }
}

@media (max-width: 320px) {
  :root {
    --header-height: 57px;
  }

  .nav-container {
    height: 56px;
    width: calc(100% - 16px);
    gap: 8px;
  }

  .brand-link img,
  .site-logo-img {
    height: 36px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ====== Hero Section: Tablet & Mobile Responsive ====== */
@media (max-width: 950px) and (min-width: 768px) {
  .hero-script-tag {
    display: none;
  }

  .hero-inner {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0 44px;
    gap: 24px;
  }

  .hero-content {
    max-width: 100%;
  }
}

/* MOBILE ONLY: Hide text/buttons, show clean Hero1 image slightly taller */
@media (max-width: 767px) {
  .hero-wrapper {
    height: 310px;
    min-height: 310px;
    background-image: url('../images/Hero1.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: block;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  /* Hide all hero text and buttons on mobile */
  .hero-inner,
  .hero-content,
  .hero-kicker,
  .hero-title,
  .hero-desc,
  .hero-btns,
  .hero-script-tag {
    display: none !important;
  }
}

@media (max-width: 430px) {
  .hero-wrapper {
    height: 300px;
    min-height: 300px;
  }
}

@media (max-width: 390px) {
  .hero-wrapper {
    height: 290px;
    min-height: 290px;
  }
}

@media (max-width: 375px) {
  .hero-wrapper {
    height: 285px;
    min-height: 285px;
  }
}

@media (max-width: 320px) {
  .hero-wrapper {
    height: 270px;
    min-height: 270px;
  }
}

/* ====== Category Strip ====== */
@media (max-width: 1200px) {
  .category-boxes-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .category-boxes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .category-boxes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .cat-box {
    padding: 12px 4px 10px;
  }

  .cat-box-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
  }

  .cat-box-name {
    font-size: 12px;
  }

  .cat-box-count {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .cat-box-name {
    font-size: 11px;
  }
}

@media (max-width: 320px) {
  .cat-box-name {
    font-size: 11px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* ====== Featured Story ====== */
@media (max-width: 950px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .featured-section {
    padding: 18px 0 10px;
  }

  .featured-header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }

  .featured-header h2 {
    font-size: 20px;
  }

  .spotlight-card {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .spotlight-title {
    font-size: 13px;
  }

  .spotlight-excerpt {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .support-card {
    padding: 14px 16px;
  }
}

/* ====== Latest Stories ====== */
@media (max-width: 1200px) {
  .latest-stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .latest-stories-grid {
    grid-template-columns: 1fr;
  }

  .latest-kicker-title h2 {
    font-size: 20px;
  }
}

/* ====== Footer Responsive ====== */
@media (max-width: 1140px) and (min-width: 861px) {
  .site-footer .container {
    max-width: 980px;
  }
  .footer-main-row {
    grid-template-columns: 100px 200px 220px 200px 140px;
    gap: 16px;
  }
  .footer-green-bar p {
    font-size: 12px;
  }
}

@media (max-width: 860px) and (min-width: 769px) {
  .site-footer .container {
    max-width: 820px;
  }
  .footer-main-row {
    grid-template-columns: 90px 180px 200px 190px 130px;
    gap: 14px;
  }
  .donut-chart {
    width: 72px;
    height: 72px;
  }
  .footer-green-bar p {
    white-space: normal;
    font-size: 12px;
  }
}

/* Mobile & Tablet: Balanced 2-2 Column Layout */
@media (max-width: 768px) {
  .site-footer {
    padding: 36px 0 0;
  }

  .site-footer .container {
    width: calc(100% - 32px);
  }

  .footer-main-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    padding-bottom: 30px;
  }

  /* Logo: Top row full width */
  .footer-col-brand {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: 0;
    margin-bottom: 2px;
  }

  .footer-col-brand .footer-brand-logo img {
    width: 88px;
    height: auto;
  }

  /* 2-2 Row 1: Links Col 1 (left) & Links Col 2 (right) */
  .footer-col-links a {
    font-size: 14px;
    line-height: 1.8;
  }

  /* 2-2 Row 2: Efficiency (left) and Social Media (right) */
  .footer-col-efficiency {
    grid-column: 1;
    align-items: flex-start;
    text-align: left;
    padding-top: 8px;
  }

  .footer-col-efficiency .efficiency-title {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: left;
  }

  .efficiency-chart-wrap {
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 14px;
  }

  .donut-chart {
    width: 66px;
    height: 66px;
  }

  .legend-row {
    font-size: 11.5px;
    gap: 6px;
  }

  .footer-donate-btn {
    padding: 8px 18px;
    font-size: 13.5px;
    border-radius: 4px;
    width: auto;
  }

  .footer-col-social {
    grid-column: 2;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .footer-col-social .footer-social-link {
    margin-bottom: 8px;
    font-size: 14px;
    gap: 10px;
  }

  .footer-col-social .social-icon {
    width: 18px;
    height: 18px;
  }

  .footer-green-bar {
    height: auto;
    min-height: 35px;
    padding: 10px 16px;
  }

  .footer-green-bar p {
    white-space: normal;
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 28px 0 0;
  }

  .site-footer .container {
    width: calc(100% - 24px);
  }

  .footer-main-row {
    gap: 22px 16px;
    padding-bottom: 24px;
  }

  .donut-chart {
    width: 58px;
    height: 58px;
  }

  .legend-row {
    font-size: 11px;
    gap: 5px;
  }

  .legend-dot {
    width: 7px;
    height: 7px;
  }

  .footer-col-links a {
    font-size: 14px;
    line-height: 1.75;
  }

  .footer-col-social .footer-social-link {
    font-size: 14px;
    gap: 8px;
    margin-bottom: 6px;
  }

  .footer-col-social .social-icon {
    width: 17px;
    height: 17px;
  }

  .footer-donate-btn {
    padding: 7px 16px;
    font-size: 13px;
  }

  .footer-green-bar {
    font-size: 12px;
    padding: 10px 14px;
  }
}

@media (max-width: 360px) {
  .footer-main-row {
    gap: 18px 12px;
  }

  .donut-chart {
    width: 50px;
    height: 50px;
  }

  .legend-row {
    font-size: 10.5px;
    gap: 4px;
  }

  .footer-col-links a {
    font-size: 13.5px;
    line-height: 1.7;
  }

  .footer-col-social .footer-social-link {
    font-size: 13.5px;
  }
}

/* ====== Search Page ====== */
@media (max-width: 860px) {
  .search-hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 24px;
  }

  .search-hero-graphic {
    display: none;
    /* Hide decorative graphic on narrow screens */
  }
}

@media (max-width: 560px) {
  .search-hero-title {
    font-size: 32px;
  }

  .search-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .search-hero-title {
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

@media (max-width: 1120px) {
  .search-story-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .search-story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .search-story-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== Homepage Category Sections ====== */
@media (max-width: 768px) {
  .section-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== Global — Block overflow prevention ====== */
/* Ensures any element with long unbreakable content stays contained */
.story-main-article table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border-collapse: collapse;
}

/* Responsive iframes / videos */
.story-main-article iframe,
.story-main-article video {
  max-width: 100%;
  height: auto;
}

.story-block-video iframe,
.story-block-video video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
  border-radius: 8px;
}

/* Long URLs / words in story content */
.story-main-article p,
.story-main-article h1,
.story-main-article h2,
.story-main-article h3,
.story-main-article li {
  overflow-wrap: break-word;
  word-break: break-word;
}


/* ==================================================
   8. STORIES CATALOG & CATEGORY PAGE STYLES
   ================================================== */
.page-intro {
  padding: 55px 0 25px;
}

.page-intro h1 {
  font-family: var(--font-heading);
  font-size: 46px;
  line-height: 1.15;
  color: #14221f;
  margin: 12px 0;
}

.page-intro p {
  color: var(--muted);
  font-size: 16px;
  max-width: 680px;
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
}

.search-large {
  display: flex;
  max-width: 760px;
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.search-large input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 20px;
  font: inherit;
  font-size: 14px;
}

.search-large button {
  border: 0;
  background: var(--primary);
  color: white;
  border-radius: 25px;
  padding: 0 26px;
  font-weight: 700;
  cursor: pointer;
}

/* ==================================================
   LIVE SEARCH ENHANCEMENTS & SUGGESTIONS
   ================================================== */
.search-large-wrap {
  position: relative;
  max-width: 760px;
  margin-top: 24px;
}

.search-large-wrap .search-large {
  margin-top: 0;
  width: 100%;
  position: relative;
}

.search-input-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input-box input {
  width: 100%;
  padding-right: 65px;
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f4;
  color: #71807d;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  z-index: 2;
}

.search-clear-btn:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.search-clear-btn.visible {
  display: inline-flex;
}

.search-spinner {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(41, 157, 142, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: searchSpin 0.6s linear infinite;
  display: none;
  pointer-events: none;
  z-index: 2;
}

.search-spinner.active {
  display: block;
}

@keyframes searchSpin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }

  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Search Suggestions Dropdown */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(14, 44, 43, 0.1);
  z-index: 1000;
  overflow: hidden;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}

.search-suggestions-dropdown.open {
  display: block;
}

.suggestion-group-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #71807d;
  padding: 10px 18px 6px;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f4;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
  background: #eef7f5;
  color: var(--primary);
}

.suggestion-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-item-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.suggestion-item:hover .suggestion-item-icon,
.suggestion-item.highlighted .suggestion-item-icon {
  color: var(--primary);
}

.suggestion-cat-badge {
  font-size: 10px;
  font-weight: 700;
  background: #eef6f4;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
  margin-left: 10px;
}

.search-loading-bar {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* ==================================================
   SEARCH PAGE HERO & 4-COLUMN STORY GRID (EXACT SCREENSHOT UI)
   ================================================== */
.search-hero-section {
  padding: 38px 0 24px;
  background: transparent;
}

.search-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.search-hero-content {
  max-width: 620px;
}

.search-hero-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1b7a69;
  margin-bottom: 12px;
}

.search-hero-title {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  color: #14221f;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.search-hero-subtitle {
  font-size: 15px;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 24px;
}

/* Search input bar pill */
.search-bar-pill {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d4dfdc;
  border-radius: 9999px;
  padding: 5px 6px 5px 18px;
  box-shadow: 0 4px 16px rgba(20, 50, 45, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  max-width: 580px;
}

.search-bar-pill:focus-within {
  border-color: #1b7a69;
  box-shadow: 0 6px 20px rgba(27, 122, 105, 0.12);
}

.search-bar-icon {
  color: #7b8e8b;
  flex-shrink: 0;
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.search-bar-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar-input {
  width: 100%;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: #14221f;
  background: transparent;
  padding: 9px 40px 9px 0;
}

.search-bar-input::placeholder {
  color: #92a4a1;
}

.search-bar-btn {
  background: #1b7a69;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 10px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.search-bar-btn:hover {
  background: #166456;
  transform: translateY(-1px);
}

/* Hero graphic right column */
.search-hero-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 250px;
  padding-right: 15px;
}

.search-hero-graphic-bg {
  position: absolute;
  right: 15px;
  width: 410px;
  height: 250px;
  background: #e3f1ed;
  border-radius: 65% 35% 58% 42% / 46% 54% 46% 54%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.search-hero-photo-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-hero-photo {
  width: 210px;
  height: 210px;
  border-radius: 52% 48% 46% 54% / 48% 54% 46% 52%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 24px rgba(27, 122, 105, 0.12);
  display: block;
}

.search-hero-quote {
  position: relative;
  z-index: 2;
  font-family: 'Caveat', cursive, serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.0;
  color: #446862;
  transform: rotate(-3deg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 10px;
}

.search-hero-quote span {
  display: block;
}

.hero-quote-swoosh {
  display: block;
  margin-top: 2px;
}

/* Meta Bar */
.search-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 20px;
  margin-bottom: 24px;
  font-size: 14px;
  gap: 16px;
}

.search-meta-count {
  color: #64748b;
  font-size: 14px;
}

.search-meta-count strong {
  color: #14221f;
  font-weight: 700;
}

.search-meta-dot {
  color: #1b7a69;
  font-size: 16px;
  font-weight: bold;
}

.search-browse-link {
  color: #1b7a69;
  font-weight: 600;
  text-decoration: none;
  margin-left: 2px;
}

.search-browse-link:hover {
  text-decoration: underline;
}

.search-sort-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.search-sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 1px solid #d4dfdc;
  border-radius: 9999px;
  padding: 6px 32px 6px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.search-sort-select:hover,
.search-sort-select:focus {
  border-color: #1b7a69;
}

.search-sort-arrow {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: #7b8e8b;
  font-size: 10px;
}

/* 4-Column Search Story Card Grid */
.search-story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 1120px) {
  .search-story-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-hero-grid {
    gap: 30px;
  }
}

@media (max-width: 860px) {
  .search-hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .search-hero-graphic {
    justify-content: flex-start;
  }

  .search-story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .search-story-grid {
    grid-template-columns: 1fr;
  }

  .search-hero-title {
    font-size: 32px;
  }
}

/* Search Story Card — Universal 3D Elevation & Interactive Hover */
.search-story-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: flat;
}

.search-story-card:hover {
  transform: translateY(-5px);
}

.search-card-thumb-wrap {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #e9eeec;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(23, 35, 33, 0.08), 0 1px 4px rgba(23, 35, 33, 0.04);
  transition: box-shadow 350ms ease;
}

.search-story-card:hover .search-card-thumb-wrap {
  box-shadow: 0 16px 36px rgba(23, 35, 33, 0.14), 0 4px 10px rgba(23, 35, 33, 0.08);
}

.search-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--card-img-transition);
  display: block;
  will-change: transform;
}

.search-story-card:hover .search-card-thumb {
  transform: var(--card-img-scale);
}

.search-card-body {
  padding: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.search-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: #1b7a69;
  background: #dff0ec;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
  text-transform: capitalize;
  letter-spacing: 0;
}

.search-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #14221f;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.search-card-title a {
  color: inherit;
  text-decoration: none;
}

.search-card-title a:hover {
  color: #1b7a69;
}

.search-card-excerpt {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.search-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #7b8e8b;
  padding-top: 8px;
  border-top: none;
  margin-top: auto;
  text-rendering: optimizeLegibility;
}

.search-card-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.search-card-read-link {
  color: #1b7a69;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  transition: gap 0.2s ease;
  font-size: 13px;
}

.search-card-read-link:hover {
  gap: 6px;
}

/* Pagination matching exact Screenshot (< 1 2 3 4 5 >) */
.search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 36px 0 60px;
}

.search-page-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.search-page-btn.arrow {
  border-color: #e2e8f0;
  background: #ffffff;
}

.search-page-btn:hover:not(.active):not(.disabled) {
  background: #f1f5f9;
  color: #1b7a69;
}

.search-page-btn.active {
  background: #1b7a69;
  color: #ffffff;
  font-weight: 600;
  border-color: #1b7a69;
}

.search-page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}




.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.category-pill b {
  font-size: 11px;
  background: #f0f4f3;
  color: #71807d;
  padding: 1px 7px;
  border-radius: 20px;
}

.category-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.category-pill.active b {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 950px) {
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

.story-card {
  background: #fff;
  border: var(--card-border);
  border-radius: var(--card-radius-lg);
  overflow: hidden;
  transition: var(--card-transition);
  box-shadow: var(--card-shadow);
  position: relative;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: flat;
}

.story-card:hover {
  transform: var(--card-hover-lift);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--card-border-hover);
}

.story-img {
  display: block;
  aspect-ratio: 16/10;
  background: #dfeeea;
  overflow: hidden;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--card-img-transition);
  will-change: transform;
}

.story-card:hover .story-img img {
  transform: var(--card-img-scale);
}

.story-body {
  padding: 20px;
}

.story-body .tag {
  display: inline-block;
  background: #eef6f4;
  color: var(--primary);
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 700;
  border-radius: 12px;
  padding: 3px 8px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  transition: background 0.3s ease, color 0.3s ease;
}

.story-card:hover .story-body .tag {
  background: #def0eb;
  color: var(--card-accent-dark);
}

.story-body h3 {
  font: 700 20px/1.3 var(--font-heading);
  margin: 10px 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.story-body h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.story-card:hover .story-body h3 a {
  color: var(--card-accent-dark);
}

.story-body p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
  color: #73807e;
  font-size: 11px;
}

/* ==================================================
   9. SINGLE STORY POST PAGE STYLES (PIXEL-PERFECT)
   ================================================== */
.single-story-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.story-hero-container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  min-height: 400px;
  overflow: hidden;
}

.story-hero-left {
  padding: 38px 48px 38px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #7b8b88;
  margin-bottom: 18px;
}

.story-breadcrumbs a {
  color: #7b8b88;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.story-breadcrumbs a:hover {
  color: var(--primary);
}

.story-breadcrumbs span.sep {
  font-size: 11px;
  color: #b0bfbc;
}

.story-breadcrumbs span.current {
  color: #1a2c28;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.story-cat-badge {
  display: inline-block;
  align-self: flex-start;
  background: #edf7f5;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.story-hero-title {
  font-family: var(--font-story-heading, 'Amiri', serif) !important;
  font-size: clamp(24px, 4.5vw + 10px, 46px);
  line-height: var(--font-story-heading-line-height, 1.25);
  font-weight: var(--font-story-heading-weight, 700) !important;
  color: #12211e;
  margin: 0 0 16px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  text-transform: capitalize;
}

.story-hero-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: #556563;
  margin: 0 0 24px;
  max-width: 580px;
}

.story-meta-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf2f1;
  padding-top: 18px;
  gap: 20px;
}

.story-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-author-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e5f4f1;
  color: var(--primary);
  display: grid;
  place-items: center;
}

.story-author-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #162925;
}

.story-author-text span {
  display: block;
  font-size: 11px;
  color: #7b8b88;
  margin-top: 2px;
}

.story-social-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-social-share span.share-title {
  font-size: 12px;
  font-weight: 600;
  color: #556563;
  margin-right: 4px;
}

.social-circle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.social-circle-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.social-circle-btn.fb {
  background: #3b5998;
}

.social-circle-btn.tw {
  background: #1da1f2;
}

.social-circle-btn.wa {
  background: #25d366;
}

.social-circle-btn.link {
  background: #60726f;
}

.story-hero-right {
  position: relative;
  overflow: hidden;
  background: #e4eee9;
}

.story-hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.story-hero-script {
  position: absolute;
  right: 28px;
  top: 30%;
  font-family: 'Caveat', cursive;
  font-size: 34px;
  line-height: 1.05;
  color: #ffffff;
  text-align: right;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  user-select: none;
}

.story-hero-script span {
  display: block;
}

/* Story Body 2-Column Layout */
.story-body-section {
  padding: 44px 0 70px;
}

.story-content-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.05fr;
  gap: 48px;
  align-items: start;
}

/* Article Left Column */
.story-main-article {
  max-width: 100%;
}

.story-quote-box {
  background: #ebf7f5;
  border-left: 4px solid var(--primary);
  border-radius: 0 16px 16px 0;
  padding: 24px 28px;
  margin-bottom: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.quote-symbol {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: -4px;
}

.quote-inner blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
  color: #122c27;
  margin: 0 0 8px;
}

.quote-inner cite {
  display: block;
  font-style: normal;
  font-family: var(--font-story-body);
  font-size: 13px;
  color: #556764;
  font-weight: 500;
}

.story-main-article p {
  font-family: var(--font-story-body);
  font-weight: 400;
  text-transform: none;
  font-size: 16px;
  line-height: 1.8;
  color: #2d3d3a;
  margin: 0 0 24px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.story-main-article a:not(.btn) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: color 0.15s ease;
}

.story-main-article a:not(.btn):hover {
  color: var(--primary-dark);
}

.story-gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.story-gallery-pair img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Sidebar Right Column */
.story-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .story-sidebar-col {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-height, 87px) + 24px);
    align-self: flex-start;
  }
}

/* Support Box — Universal 3D Elevation */
.sidebar-support-box {
  position: relative;
  background: #e4f3ef;
  border: 1px solid #d1e8e2;
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--card-transition);
}

.sidebar-support-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(41, 157, 142, 0.35);
}

.sidebar-support-box .leaf-art {
  position: absolute;
  right: -20px;
  bottom: -20px;
  opacity: 0.15;
  pointer-events: none;
}

.support-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.support-title-row svg.heart {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.support-title-row h3 {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: #123e37;
  margin: 0;
}

.sidebar-support-box p {
  font-size: 13px;
  line-height: 1.55;
  color: #49635e;
  margin: 0 0 20px;
}

.btn-sidebar-support {
  background: var(--primary);
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(41, 157, 142, 0.25);
  transition: all 0.2s ease;
}

.btn-sidebar-support:hover {
  background: var(--primary-dark);
}

/* Story Details Card */
.sidebar-details-card {
  background: #ffffff;
  border: 1px solid #e3eae8;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sidebar-details-card h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #14221f;
  margin: 0 0 18px;
}

.details-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef7f5;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.detail-text span.label {
  display: block;
  font-size: 11px;
  color: #7b8b88;
}

.detail-text strong {
  display: block;
  font-size: 13px;
  color: #14221f;
  font-weight: 700;
  margin-top: 1px;
}

/* Related Stories Section in Sidebar */
.sidebar-related-wrap {
  margin-top: 4px;
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.related-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #14221f;
  margin: 0;
}

.related-header a.view-all {
  font-size: 12px;
  font-weight: 600;
  color: #556563;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.related-header a.view-all:hover {
  color: var(--primary);
}

/* ==================================================
   TRENDING STORIES SIDEBAR — 2x2 CARD GRID
   ================================================== */
.trending-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.trending-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trending-header-bar {
  display: inline-block;
  width: 14px;
  height: 2.5px;
  background: var(--primary, #299D8E);
  border-radius: 2px;
  flex-shrink: 0;
}

.trending-header-left h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #14221f;
  margin: 0;
  line-height: 1.2;
}

.trending-view-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary, #299D8E);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.trending-view-all:hover {
  opacity: 0.85;
  color: var(--primary, #299D8E);
  transform: translateX(2px);
}

.trending-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.trending-grid-card {
  background: #ffffff;
  border: var(--card-border, 1px solid #edf2f1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(23, 35, 33, 0.05), 0 1px 3px rgba(23, 35, 33, 0.03);
  transition: var(--card-transition);
  position: relative;
  min-width: 0;
  height: 100%;
}

.trending-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(23, 35, 33, 0.09), 0 3px 6px rgba(23, 35, 33, 0.05);
  border-color: var(--card-border-hover, rgba(41, 157, 142, 0.22));
}

.trending-card-img-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e4eee9;
  flex-shrink: 0;
}

.trending-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: var(--card-img-transition);
}

.trending-grid-card:hover .trending-card-img {
  transform: var(--card-img-scale);
}

.trending-card-body {
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  background: #ffffff;
}

.trending-card-tag {
  display: inline-block;
  align-self: flex-start;
  background: #eef6f4;
  color: var(--primary, #299D8E);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 7px;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

.trending-card-title {
  font-family: var(--font-heading);
  font-size: 16.5px;
  line-height: 1.48;
  font-weight: 700;
  color: #14221f;
  margin: 0 0 10px 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
}

.trending-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.trending-grid-card:hover .trending-card-title a {
  color: var(--primary, #299D8E);
}

.trending-card-date {
  font-size: 11px;
  color: #7b8b88;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-card-date svg {
  flex-shrink: 0;
  color: #7b8b88;
  stroke: currentColor;
}

@media (max-width: 600px) {
  .trending-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Homepage Latest / Category Sections — trending card in 3-col grid */
/* Override sizes so the card feels full-width, not sidebar-compact  */
.cat-cards-3col .trending-grid-card {
  border-radius: var(--card-radius);
}

.cat-cards-3col .trending-card-body {
  padding: 14px 16px 16px;
}

.cat-cards-3col .trending-card-tag {
  font-size: 10px;
  letter-spacing: 0.7px;
  margin-bottom: 9px;
}

.homepage-card-title {
  font-size: 16.5px !important;
  line-height: 1.48 !important;
  -webkit-line-clamp: 4 !important;
  margin-bottom: 10px !important;
}

@media (max-width: 1024px) {
  .homepage-card-title,
  .trending-card-title,
  .cat-card-heading {
    font-size: 16px !important;
    line-height: 1.48 !important;
  }
}

@media (max-width: 768px) {
  .homepage-card-title,
  .trending-card-title,
  .cat-card-heading {
    font-size: 15.5px !important;
    line-height: 1.46 !important;
  }
}

@media (max-width: 480px) {
  .homepage-card-title,
  .trending-card-title,
  .cat-card-heading {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
}

.cat-cards-3col .trending-card-date {
  font-size: 12px;
}

.related-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Stacked single-column list for Trending + Related sidebar widgets */
.sidebar-story-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Image link wrapper for horizontal card variant */
.mini-rel-img-link {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

/* Horizontal layout inside the stacked list */
.sidebar-story-list .mini-rel-card {
  flex-direction: row;
  align-items: stretch;
}

.sidebar-story-list .mini-rel-card .mini-rel-img-link {
  width: 84px;
  min-width: 84px;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}

.sidebar-story-list .mini-rel-card .mini-rel-img {
  width: 84px;
  height: 100%;
  min-height: 78px;
  object-fit: cover;
  aspect-ratio: auto;
  border-radius: 0;
}

.sidebar-story-list .mini-rel-card .mini-rel-body {
  padding: 8px 11px;
  flex: 1;
  min-width: 0;
}

/* Hover lift should be restrained on small horizontal cards */
.sidebar-story-list .mini-rel-card:hover {
  transform: translateY(-2px);
}

.mini-rel-card {
  background: #ffffff;
  border: var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--card-transition);
  box-shadow: 0 4px 14px rgba(23, 35, 33, 0.06), 0 1px 4px rgba(23, 35, 33, 0.04);
  position: relative;
}

.mini-rel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(23, 35, 33, 0.12), 0 4px 10px rgba(23, 35, 33, 0.06);
  border-color: var(--card-border-hover);
}

.mini-rel-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #e4eee9;
  display: block;
  transition: var(--card-img-transition);
  will-change: transform;
}

.mini-rel-card:hover .mini-rel-img {
  transform: var(--card-img-scale);
}

.mini-rel-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.mini-rel-tag {
  display: inline-block;
  align-self: flex-start;
  background: #eef6f4;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2.5px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.mini-rel-title {
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  color: #14221f;
  margin: 6px 0;
}

.mini-rel-date {
  font-size: 11px;
  color: #7b8b88;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==================================================
   9.0 SINGLE STORY POST PAGE — LATEST STORIES 4-COLUMN GRID
   ================================================== */
.story-latest-section {
  padding: 44px 0 72px;
  border-top: 1px solid #edf2f1;
  margin-top: 8px;
}

.story-latest-cards-2col,
.story-latest-cards-4col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
  align-items: stretch;
}

.story-latest-cards-2col .cat-story-card,
.story-latest-cards-4col .cat-story-card {
  height: 100%;
}

.story-latest-cards-2col .cat-card-img-wrap,
.story-latest-cards-4col .cat-card-img-wrap {
  aspect-ratio: 16/10;
  max-height: 200px;
}

.story-latest-cards-2col .cat-card-content,
.story-latest-cards-4col .cat-card-content {
  padding: 14px 14px 12px;
}

.story-latest-cards-2col .cat-card-heading,
.story-latest-cards-4col .cat-card-heading {
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.story-latest-cards-2col .cat-card-summary,
.story-latest-cards-4col .cat-card-summary {
  font-size: 12px;
  line-height: 1.5;
  color: #556764;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .story-latest-section {
    padding: 36px 0 56px;
  }
  .story-latest-cards-2col,
  .story-latest-cards-4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }
}

@media (max-width: 640px) {
  .story-latest-section {
    padding: 28px 0 44px;
  }
  .story-latest-cards-2col,
  .story-latest-cards-4col {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .story-latest-cards-2col .cat-card-content,
  .story-latest-cards-4col .cat-card-content {
    padding: 14px;
  }
  .story-latest-cards-2col .cat-card-heading,
  .story-latest-cards-4col .cat-card-heading {
    font-size: 15px;
  }
}

/* ==================================================
   9.1 SINGLE STORY DETAIL PAGE RESPONSIVE REBUILD
   DESKTOP (>= 1024px): 2-Column (Article + Sidebar) [Preserved]
   MOBILE (< 1024px): 1-Column Stack:
   Header -> Breadcrumb -> Category Badge -> Title -> Excerpt
   -> Author/Share -> Featured Image -> Body -> Support CTA
   -> Trending Stories -> Related Stories -> Footer
   ================================================== */

@media (max-width: 1023px) {
  /* 1. Hero Container & Stacking */
  .story-hero-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: auto;
    overflow: visible;
  }

  .story-hero-left {
    padding: 32px 24px 26px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  /* Breadcrumbs: Natural wrapping, no clipping */
  .story-breadcrumbs {
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.5;
    margin-bottom: 14px;
    max-width: 100%;
    min-width: 0;
  }

  .story-breadcrumbs a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }

  .story-breadcrumbs span.current {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: visible;
    text-overflow: clip;
    display: inline;
  }

  /* Story Heading H1: Responsive Amiri 700 with natural wrapping */
  .story-hero-title {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-family: var(--font-story-heading, 'Amiri', serif) !important;
    font-weight: var(--font-story-heading-weight, 700) !important;
    font-size: clamp(24px, 4.6vw, 36px) !important;
    line-height: var(--font-story-heading-line-height, 1.25);
    margin: 0 0 16px;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto;
    text-transform: capitalize;
  }

  /* Story Excerpt: Full width */
  .story-hero-excerpt {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-family: var(--font-story-body, 'PT Serif', serif) !important;
    font-weight: var(--font-story-body-weight, 400) !important;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 20px;
  }

  /* Featured Image: Full width responsive container directly below copy */
  .story-hero-right {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 16/10;
    max-height: 480px;
    min-height: 220px;
    overflow: hidden;
  }

  .story-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .story-hero-script {
    display: none !important;
  }

  /* 2. Body Grid: Complete Transition to Single Column with Side Margins */
  .story-body-section {
    padding: 32px 24px 60px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .story-content-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Main Article Column: Full available width */
  .story-main-article {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .story-main-article p {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-family: var(--font-story-body, 'PT Serif', serif) !important;
    font-weight: var(--font-story-body-weight, 400) !important;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    margin: 0 0 22px;
  }

  /* Sidebar Column: Strictly BELOW the Story Body */
  .story-sidebar-col {
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 32px;
  }

  /* Support Card: Full Width */
  .sidebar-support-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 24px 22px;
  }

  .btn-sidebar-support {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
  }

  /* Trending & Related Sidebar Sections: Full Width */
  .sidebar-related-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .sidebar-story-list {
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }

  .sidebar-story-list .mini-rel-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .story-body-section {
    padding: 28px 20px 50px;
    box-sizing: border-box;
  }

  /* Author Row & Social Sharing: Clean Stacking */
  .story-meta-share-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 14px;
    width: 100%;
    max-width: 100%;
  }

  .story-author-info {
    width: 100%;
  }

  .story-social-share {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Quote Box */
  .story-quote-box {
    padding: 18px 20px;
    gap: 12px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 22px;
  }

  .quote-symbol {
    font-size: 32px;
  }

  .quote-inner blockquote {
    font-size: 18px;
    line-height: 1.4;
  }

  /* Gallery Pair & Multi-Column inside article */
  .story-gallery-pair {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 22px 0;
  }

  .details-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-cards-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  /* Mobile Spacing & Typography */
  .story-hero-left {
    padding: 20px 16px 16px;
  }

  .story-cat-badge {
    font-size: 9px;
    padding: 3px 8px;
    margin-bottom: 10px;
  }

  .story-hero-title {
    font-size: clamp(21px, 6vw, 26px) !important;
    line-height: 1.25;
    margin: 0 0 12px;
  }

  .story-hero-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
  }

  .story-hero-right {
    aspect-ratio: 16/10;
    max-height: 280px;
    min-height: 190px;
  }

  .story-body-section {
    padding: 24px 18px 44px;
    box-sizing: border-box;
  }

  .story-content-grid {
    gap: 32px;
  }

  .story-main-article p {
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 18px;
  }

  .sidebar-support-box {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .support-title-row h3 {
    font-size: 18px;
    line-height: 1.3;
  }

  .support-title-row svg.heart {
    width: 20px;
    height: 20px;
  }

  .sidebar-support-box p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 16px;
  }

  .sidebar-story-list .mini-rel-card .mini-rel-img-link {
    width: 80px;
    min-width: 80px;
  }

  .sidebar-story-list .mini-rel-card .mini-rel-img {
    width: 80px;
    min-height: 74px;
  }

  .sidebar-story-list .mini-rel-card .mini-rel-body {
    padding: 7px 10px;
  }

  .sidebar-story-list .mini-rel-card .mini-rel-title {
    font-size: 12px;
    line-height: 1.28;
    margin: 3px 0;
  }

  .related-header h3 {
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  /* Extra Small Mobile (320px - 360px) Safeguards */
  .story-body-section {
    padding: 20px 14px 40px;
    box-sizing: border-box;
  }

  .story-hero-left {
    padding: 16px 10px 14px;
  }

  .story-breadcrumbs {
    font-size: 11px;
    gap: 3px 5px;
    margin-bottom: 10px;
  }

  .story-breadcrumbs span.current {
    display: -webkit-inline-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .story-hero-title {
    font-size: 20px !important;
    line-height: 1.25;
  }

  .story-hero-right {
    min-height: 170px;
  }

  .sidebar-support-box {
    padding: 16px 12px;
  }

  .support-title-row h3 {
    font-size: 16px;
  }

  .sidebar-story-list .mini-rel-card .mini-rel-img-link {
    width: 72px;
    min-width: 72px;
  }

  .sidebar-story-list .mini-rel-card .mini-rel-img {
    width: 72px;
  }

  .sidebar-story-list .mini-rel-card .mini-rel-body {
    padding: 6px 8px;
  }

  .sidebar-story-list .mini-rel-card .mini-rel-title {
    font-size: 12px;
    line-height: 1.25;
  }

  .btn-sidebar-support {
    font-size: 12px;
    padding: 9px 14px;
  }
}


/* ==================================================
   10. CATEGORY PAGE SPECIFIC STYLES (PIXEL-PERFECT)
   ================================================== */
.category-page-wrap {
  padding: 24px 0 60px;
}

/* Hero Banner */
.cat-hero-banner {
  width: 100%;
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 28, 25, 0.95) 0%, rgba(10, 28, 25, 0.88) 48%, rgba(10, 28, 25, 0.35) 75%, rgba(10, 28, 25, 0) 100%);
}

.cat-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 48px;
  max-width: 620px;
}

.cat-hero-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.cat-hero-title {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.cat-hero-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #cfdfdc;
  margin: 0 0 16px;
}

.cat-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
}

.cat-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-hero-meta span.dot {
  opacity: 0.5;
}

/* Category Breadcrumbs */
.cat-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #7b8b88;
  margin-bottom: 24px;
}

.cat-breadcrumbs a {
  color: #7b8b88;
  transition: color 0.2s;
}

.cat-breadcrumbs a:hover {
  color: var(--primary);
}

.cat-breadcrumbs span.sep {
  color: #b2c1be;
}

.cat-breadcrumbs span.curr {
  color: #1a2c28;
  font-weight: 600;
}

/* Category 2-Column Body Layout */
.cat-main-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  /* inner sticky handles its own top offset */
}

/* Left Sidebar — stretches to grid cell height for proper sticky containment */
.cat-sidebar {
  /* align-self: stretch ensures the sidebar column height matches the right column
     so sticky stops at the bottom of its parent container */
  align-self: stretch;
}

/* Sticky inner wrapper — scrolls naturally then sticks */
.cat-sidebar-inner {
  position: sticky;
  top: calc(78px + 20px);
  /* site header height + breathing gap */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cat-list-box {
  background: #ffffff;
  border: 1px solid #e3eae8;
  border-radius: 16px;
  padding: 18px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}

.cat-list-header {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 12px 8px;
  text-align: left;
  cursor: default;
  font-family: inherit;
}

.cat-list-header-title {
  display: block;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #172825;
}

.cat-accordion-arrow {
  display: none;
}

.cat-sidebar-items-collapse {
  display: block;
  width: 100%;
}

.cat-sidebar-items {
  width: 100%;
}

.cat-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #314441;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 3px;
}

.cat-sidebar-item:hover {
  background: #f4f8f7;
  color: var(--primary);
}

.cat-sidebar-item.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(41, 157, 142, 0.25);
}

.cat-sidebar-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cat-sidebar-item-left span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-sidebar-item svg {
  flex-shrink: 0;
}

.cat-sidebar-item span.count {
  font-size: 11px;
  font-weight: 700;
  color: #7b8b88;
  flex-shrink: 0;
  margin-left: 8px;
}

.cat-sidebar-item.active span.count {
  color: #ffffff;
  opacity: 0.9;
}

/* Sidebar Contribution Box */
.cat-support-box {
  background: #ffffff;
  border: 1px solid #e3eae8;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.support-heart-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d4dfdc;
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 16px;
}

.cat-support-box h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #14221f;
  margin: 0 0 8px;
}

.cat-support-box p {
  font-size: 12px;
  line-height: 1.55;
  color: #556764;
  margin: 0 0 18px;
}

.btn-contrib {
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(41, 157, 142, 0.2);
  text-decoration: none;
}

.btn-contrib:hover {
  background: var(--primary-dark);
}

/* Right Content: Grid & Header */
.cat-right-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* Prevents 1fr grid child from overflowing its track */
}

.cat-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cat-grid-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #14221f;
  margin: 0;
}

.cat-sort-select {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #384946;
  border: 1px solid #d4dfdc;
  border-radius: 20px;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

.cat-cards-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* 3-Col Card Layout — Universal 3D Elevation & Interactive Hover */
.cat-story-card {
  background: #ffffff;
  border: var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: var(--card-transition);
  position: relative;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: flat;
}

.cat-story-card:hover {
  transform: var(--card-hover-lift);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--card-border-hover);
}

.cat-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e4eee9;
}

.cat-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--card-img-transition);
  will-change: transform;
}

.cat-story-card:hover .cat-card-img-wrap img {
  transform: var(--card-img-scale);
}

.cat-card-top-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  pointer-events: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.cat-story-card:hover .cat-card-top-tag {
  background: var(--card-accent-dark);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cat-card-bottom-loc {
  display: none !important;
}

.cat-card-content {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.cat-card-heading {
  font-family: var(--font-heading);
  font-size: 16.5px;
  line-height: 1.48;
  font-weight: 700;
  color: #14221f;
  margin: 0 0 8px;
}

.cat-card-heading a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.cat-story-card:hover .cat-card-heading a {
  color: var(--card-accent-dark);
}

.cat-card-summary {
  font-family: var(--font-card-body, 'PT Serif', serif) !important;
  font-weight: var(--font-card-body-weight, 400) !important;
  font-size: 13px;
  line-height: 1.6;
  color: #4b5e5a;
  margin: 0 0 16px;
  flex: 1;
  text-rendering: optimizeLegibility;
}

.cat-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf2f1;
  padding-top: 10px;
  font-size: 11px;
  color: #7b8b88;
}

.cat-card-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cat-card-meta-row svg {
  transition: stroke 0.25s ease;
}

.cat-story-card:hover .cat-card-meta-row svg {
  stroke: var(--card-accent);
}

/* Pagination Row */
.cat-pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
}

.page-num-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #d4dfdc;
  background: #ffffff;
  color: #384946;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-num-circle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-num-circle.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.page-num-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  color: #7b8b88;
  text-decoration: none;
  border: 1px solid #e1e7e6;
}

/* Enhanced 4-column Footer matching reference screenshot */
.footer-four-cols {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
  gap: 36px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  color: #ffffff;
  outline: none;
}

.footer-newsletter-form button {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-icons a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  transition: background 0.2s;
}

.footer-social-icons a:hover {
  background: var(--primary);
}

@media (max-width: 1100px) {
  .cat-cards-3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-four-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet & Mobile Layout — Collapsible Category Accordion */
@media (max-width: 912px) {
  .cat-main-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    gap: 20px;
    width: 100% !important;
  }

  .cat-sidebar {
    display: contents;
    width: 100% !important;
    align-self: auto;
  }

  .cat-sidebar-inner {
    display: contents;
    width: 100% !important;
    position: static;
  }

  .cat-list-box {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 18px;
    margin-bottom: 0;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e3eae8;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    -webkit-tap-highlight-color: transparent !important;
    transition: padding 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .cat-list-box:hover {
    border-color: #d1deda;
  }

  .cat-right-content {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .cat-support-box {
    order: 3;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 12px;
  }

  .cat-hero-title {
    font-size: 36px;
  }

  .cat-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .cat-list-header:focus,
  .cat-list-header:active,
  .cat-list-header:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .cat-list-header-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #172825;
    margin: 0;
  }

  .cat-accordion-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #556764;
    background: #f0f5f3;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s ease,
                color 0.2s ease;
  }

  .cat-accordion-arrow svg {
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .cat-list-box.is-open .cat-accordion-arrow {
    background: rgba(41, 157, 142, 0.14);
    color: var(--primary, #299D8E);
  }

  .cat-list-box.is-open .cat-accordion-arrow svg {
    transform: rotate(180deg);
  }

  .cat-sidebar-items-collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
  }

  .cat-list-box.is-open .cat-sidebar-items-collapse {
    grid-template-rows: 1fr;
  }

  .cat-sidebar-items {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: visibility 0.28s ease;
    width: 100%;
    box-sizing: border-box;
  }

  .cat-list-box.is-open .cat-sidebar-items {
    visibility: visible;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #edf2f1;
  }

  .cat-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #314441;
    text-decoration: none;
    transition: all 0.18s ease;
    margin-bottom: 4px;
    width: 100%;
    box-sizing: border-box;
  }

  .cat-sidebar-item:hover,
  .cat-sidebar-item:active {
    background: #f4f8f7;
    color: var(--primary, #299D8E);
  }

  .cat-sidebar-item.active {
    background: var(--primary, #299D8E);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(41, 157, 142, 0.25);
  }

  .cat-sidebar-item.active span.count {
    color: #ffffff;
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cat-sidebar-items-collapse,
  .cat-sidebar-items,
  .cat-accordion-arrow,
  .cat-accordion-arrow svg {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 580px) {
  .cat-cards-3col {
    grid-template-columns: 1fr;
  }

  .cat-hero-content {
    padding: 30px 20px;
  }

  .footer-four-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cat-hero-title {
    font-size: clamp(24px, 6.5vw, 28px);
    line-height: 1.18;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .cat-hero-banner {
    min-height: 200px;
    padding: 24px 16px;
  }

  .cat-hero-content {
    padding: 20px 14px;
  }

  .cat-cards-3col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==================================================
   11. STORY BLOCK CONTENT RENDERING (ADVANCED CMS)
   ================================================== */
.story-main-article h1,
.story-main-article h2,
.story-main-article h3,
.story-main-article h4,
.story-main-article h5,
.story-main-article h6 {
  font-family: var(--font-story-heading, 'Amiri', serif) !important;
  color: #14221f;
  margin: 34px 0 14px;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
  font-weight: var(--font-story-heading-weight, 700) !important;
}

.story-main-article h1 {
  font-size: clamp(26px, 3.5vw, 34px);
  line-height: 1.25;
  font-weight: 700 !important;
}

.story-main-article h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.28;
  font-weight: 700 !important;
}

.story-main-article h3 {
  font-size: clamp(19px, 2.5vw, 23px);
  line-height: 1.32;
  font-weight: 700 !important;
}

.story-main-article h4 {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.36;
  font-weight: 700 !important;
}

.story-main-article h5 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700 !important;
}

.story-main-article h6 {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.story-content-list {
  padding-left: 24px;
  margin: 18px 0 24px;
  line-height: 1.75;
  color: #384845;
  font-size: 16px;
  overflow-wrap: break-word;
}

.story-content-list li {
  margin-bottom: 8px;
}

.story-pullquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.55;
  color: #123e37;
  border-left: 4px solid var(--primary);
  background: #f0f8f6;
  border-radius: 0 14px 14px 0;
  padding: 22px 28px;
  margin: 30px 0;
  overflow-wrap: break-word;
}

.story-pullquote p {
  margin: 0 0 8px !important;
}

.story-pullquote cite {
  display: block;
  font-family: var(--font-story-body);
  font-style: normal;
  font-size: 13px;
  color: #556764;
  font-weight: 600;
  margin-top: 8px;
}

.story-separator {
  border: 0;
  height: 1px;
  background: #e2ebe8;
  margin: 36px 0;
}

.story-separator.sep-wide {
  height: 2px;
  background: var(--primary);
  opacity: 0.3;
}

.story-separator.sep-dots {
  background: transparent;
  border-top: 3px dotted #b0c4bf;
  height: 0;
  width: 80px;
  margin: 36px auto;
}

.story-spacer {
  display: block;
  width: 100%;
}

.story-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border-radius: 12px;
  border: 1px solid #e2ebe8;
}

.story-table-responsive:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Accessibility: Universal disabled state (A11-03) */
button:disabled,
button[disabled],
.btn:disabled,
.btn[aria-disabled="true"],
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.story-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  min-width: 480px;
  text-align: left;
}

.story-data-table th,
.story-data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f0;
}

.story-data-table th {
  background: #f4f8f7;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #14221f;
}

.story-data-table td {
  color: #384845;
}

.story-data-table tr:last-child td {
  border-bottom: none;
}

.story-block-image {
  margin: 28px 0;
}

.story-block-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.story-block-image figcaption,
.gallery-item figcaption,
figure figcaption,
.wp-caption-text,
.wp-block-image figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: #556764;
  font-style: italic;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 4px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.story-block-image.align-left {
  float: left;
  max-width: 48%;
  margin: 8px 24px 20px 0;
}

.story-block-image.align-right {
  float: right;
  max-width: 48%;
  margin: 8px 0 20px 24px;
}

.story-block-image.align-center {
  margin: 28px auto;
  text-align: center;
}

.story-block-gallery {
  display: grid;
  gap: 16px;
  margin: 30px 0;
}

.story-block-gallery.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.story-block-gallery.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.story-block-gallery.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.story-block-cover {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 30px;
  margin: 32px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.story-block-cover .cover-overlay {
  position: absolute;
  inset: 0;
}

.story-block-cover .cover-inner {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-align: center;
  max-width: 600px;
}

.story-block-cover h2 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 32px;
  margin: 0 0 10px;
}

.story-block-cover p {
  color: #e4eee9;
  font-size: 15px;
  margin: 0;
}

.story-block-media.video-wrap {
  margin: 28px 0;
}

.story-block-media.video-wrap video {
  width: 100%;
  border-radius: 12px;
  background: #000000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.story-block-youtube {
  margin: 28px 0;
}

.youtube-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.story-block-audio {
  background: #f0f8f6;
  border: 1px solid #d5e5e1;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 26px 0;
}

.story-block-audio .audio-title {
  font-size: 13px;
  font-weight: 700;
  color: #123e37;
  margin-bottom: 10px;
}

.story-block-audio audio {
  width: 100%;
  outline: none;
}

.story-block-columns {
  display: grid;
  gap: 24px;
  margin: 30px 0;
}

.story-block-columns.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.story-block-columns.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.story-column {
  min-width: 0;
}

.story-block-group {
  padding: 26px;
  border-radius: 16px;
  margin: 28px 0;
}

.story-block-group.group-light {
  background: #f9fbfb;
}

.story-block-group.group-tint {
  background: #ebf7f4;
}

.story-block-group.group-bordered {
  border: 1px solid #dbe6e3;
  background: #ffffff;
}

.story-block-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0;
}

.story-btn {
  padding: 11px 22px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.story-btn.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.story-btn.btn-primary:hover {
  background: var(--primary-dark);
}

.story-btn.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.story-btn.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.story-btn.btn-secondary {
  background: #e5ecea;
  color: #1a2c28;
}

.story-btn.btn-secondary:hover {
  background: #d8e2e0;
}

/* Shaagird Custom Blocks */
.story-support-cta-box {
  background: #e4f3ef;
  border: 1px solid #d1e8e2;
  border-radius: 16px;
  padding: 26px 28px;
  margin: 32px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.story-support-cta-box .cta-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.story-support-cta-box h3 {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: #123e37;
  margin: 0 0 6px;
}

.story-support-cta-box p {
  font-size: 14px;
  line-height: 1.6;
  color: #475a56;
  margin: 0 0 16px;
}

.btn-cta-teal {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-cta-teal:hover {
  background: var(--primary-dark);
}

.story-highlight-quote-card {
  background: #ebf7f5;
  border-left: 4px solid var(--primary);
  border-radius: 0 16px 16px 0;
  padding: 24px 28px;
  margin: 28px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.quote-mark-icon {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: -4px;
}

.quote-text-body blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
  color: #122c27;
  margin: 0 0 8px;
}

.quote-text-body cite {
  display: block;
  font-family: var(--font-story-body);
  font-style: normal;
  font-size: 13px;
  color: #556764;
  font-weight: 600;
}

.story-info-card-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e3eae8;
  border-radius: 14px;
  padding: 20px;
  margin: 28px 0;
}

.info-block-item {
  display: flex;
  flex-direction: column;
}

.info-block-item span.label {
  font-size: 11px;
  color: #7b8b88;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.info-block-item strong {
  font-size: 14px;
  color: #162925;
  margin-top: 2px;
}

.story-block-related {
  margin: 36px 0;
}

.related-block-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: #14221f;
  margin: 0 0 18px;
}

.related-block-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-card .story-img {
  aspect-ratio: 16/10;
}

.mini-card h4 {
  font-size: 14px;
  margin: 6px 0;
  line-height: 1.35;
}

.story-block-callout {
  border-radius: 12px;
  padding: 18px 22px;
  margin: 26px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.callout-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

.callout-content p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.btn-callout {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.callout-info {
  background: #f0f9ff;
  border-left: 4px solid #0284c7;
  color: #0369a1;
}

.callout-warning {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #b45309;
}

.callout-success {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  color: #15803d;
}

@media (max-width: 768px) {

  .story-block-columns.cols-2,
  .story-block-columns.cols-3 {
    grid-template-columns: 1fr;
  }

  .story-block-gallery.cols-2,
  .story-block-gallery.cols-3,
  .story-block-gallery.cols-4 {
    grid-template-columns: 1fr;
  }

  .related-block-grid {
    grid-template-columns: 1fr;
  }

  .story-block-image.align-left,
  .story-block-image.align-right {
    float: none;
    max-width: 100%;
    margin: 20px 0;
  }

  .story-support-cta-box {
    flex-direction: column;
  }
}

/* ==================================================
   DYNAMIC HEADER NAVIGATION & DROPDOWNS
   ================================================== */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item-dropdown>a {
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid #e1e7e6;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(23, 35, 33, 0.12), 0 4px 6px -2px rgba(23, 35, 33, 0.05);
  padding: 8px 0;
  display: none;
  z-index: 1000;
  margin-top: -6px;
  animation: navDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navDropdownFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block !important;
  padding: 8px 18px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #384644 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  line-height: 1.4 !important;
}

.nav-dropdown-menu a:hover {
  background: #f4f8f7 !important;
  color: var(--primary) !important;
  padding-left: 22px !important;
}

.nav-dropdown-menu a.active {
  color: var(--primary) !important;
  font-weight: 700 !important;
  background: #e8f6f3 !important;
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 35, 33, 0.5);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #ffffff;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-nav-head {
  padding: 18px 20px;
  border-bottom: 1px solid #e1e7e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #14221f;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #637370;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-links {
  padding: 16px 0;
  overflow-y: auto;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #384644;
  text-decoration: none;
  border-bottom: 1px solid #f4f7f6;
  transition: background 0.15s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #f7faf9;
  color: var(--primary);
}

.mobile-subnav-links {
  background: #f8fafc;
  padding: 4px 0;
}

.mobile-subnav-link {
  display: block;
  padding: 9px 20px 9px 36px;
  font-size: 14px;
  color: #475569;
  text-decoration: none;
}

.mobile-subnav-link:hover,
.mobile-subnav-link.active {
  color: var(--primary);
  font-weight: 600;
}


/* ============================================================
   LIVE SEARCH — SKELETON LOADING CARDS
   ============================================================ */

@keyframes skeleton-shimmer {
  0% {
    background-position: -600px 0;
  }

  100% {
    background-position: 600px 0;
  }
}

.skeleton-thumb,
.skeleton-line {
  background: linear-gradient(90deg, #eef0ef 25%, #e4e8e6 50%, #eef0ef 75%);
  background-size: 1200px 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
  border-radius: 6px;
}

.search-skeleton-card .search-card-thumb-wrap.skeleton-thumb {
  background: linear-gradient(90deg, #eef0ef 25%, #e4e8e6 50%, #eef0ef 75%);
  background-size: 1200px 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
  border-radius: 12px 12px 0 0;
  height: 180px;
  width: 100%;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  width: 100%;
}

.skeleton-line.skeleton-tag {
  width: 55px;
  height: 20px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.skeleton-line.skeleton-title {
  height: 16px;
}

.skeleton-line.skeleton-title.short {
  width: 70%;
}

.skeleton-line.skeleton-excerpt {
  height: 11px;
}

.skeleton-line.skeleton-excerpt.short {
  width: 80%;
}

.skeleton-line.skeleton-meta {
  width: 90px;
  height: 11px;
  margin-top: 6px;
}

.search-skeleton-card .search-card-body {
  padding: 14px 16px 16px;
}

.search-skeleton-card {
  pointer-events: none;
}

/* Spinner pulse on search icon */
.search-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(41, 157, 142, 0.2);
  border-top-color: var(--primary, #299D8E);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.search-spinner.active {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================================================
   UNIVERSAL CARD SYSTEM — ACCESSIBILITY & MOTION
   ================================================== */
.cat-story-card:focus-within,
.story-card:focus-within,
.search-story-card:focus-within,
.mini-rel-card:focus-within,
.spotlight-card:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

  .cat-story-card,
  .story-card,
  .search-story-card,
  .mini-rel-card,
  .spotlight-card,
  .support-card,
  .sidebar-support-box {
    transition: box-shadow 150ms ease, border-color 150ms ease !important;
  }

  .cat-story-card:hover,
  .story-card:hover,
  .search-story-card:hover,
  .mini-rel-card:hover,
  .spotlight-card:hover,
  .support-card:hover,
  .sidebar-support-box:hover {
    transform: none !important;
  }

  .cat-card-img-wrap img,
  .story-img img,
  .search-card-thumb,
  .mini-rel-img,
  .spotlight-img-wrap img {
    transition: none !important;
    transform: none !important;
  }
}

/* ==================================================
   FINAL STORY HEADING TYPOGRAPHY SYSTEM
   STORY HEADINGS: font-family: 'Amiri', sans-serif; font-weight: 700;
   STORY BODY:     font-family: 'Roboto', sans-serif;
   ================================================== */

/* 1. All Story Headings & Titles — Amiri 700 */
.story-hero-title,
.single-story-wrapper h1,
.story-hero-left h1,
.story-main-article h1,
.story-main-article h2,
.story-main-article h3,
.story-main-article h4,
.story-main-article h5,
.story-main-article h6,
.story-block-heading h1,
.story-block-heading h2,
.story-block-heading h3,
.story-block-heading h4,
.story-block-heading h5,
.story-block-heading h6,
.story-content h1,
.story-content h2,
.story-content h3,
.story-content h4,
.story-content h5,
.story-content h6,
.spotlight-title,
.spotlight-card h3,
.spotlight-card h3 a,
.featured-story-title,
.featured-title,
.story-card .story-card-title,
.story-card-title,
.story-card h3,
.story-card h3 a,
.story-body h3,
.story-body h3 a,
.cat-card-heading,
.cat-card-heading a,
.latest-story-title,
.cat-story-title,
.cat-story-card .cat-story-title,
.cat-hero-title,
.cat-section-header h2,
.cat-tab-story-title,
.cat-tab-story-card h4,
.trending-title,
.trending-story-card .trending-title,
.trending-card h4,
.trending-card h4 a,
.related-story-title,
.rel-card-title,
.mini-rel-card .rel-card-title,
.mini-rel-title,
.mini-rel-title a,
.press-title,
.press-card h3,
.press-card h3 a,
.press-story-title,
.search-card-title,
.search-card-title a,
.search-story-card .search-card-title,
.search-hero-title,
.story-cta-title,
.cta-block h3,
.story-cta-box h3,
.info-card-title,
.story-info-card-block h4,
.quote-inner blockquote,
.quote-text-body blockquote,
.story-quote-block blockquote,
.comment-inner h3,
.comment-inner h4,
.comment-inner h5,
.comment-inner h6,
span.zox-author-name,
h2.zox-s-title1,
h2.zox-s-title1-feat {
  font-family: var(--font-story-heading, 'Amiri', serif) !important;
  font-weight: var(--font-story-heading-weight, 700) !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

/* 2. Reference Capitalization on Story & Card Titles */
.story-hero-title,
.story-card-title,
.story-card h3,
.story-body h3,
.cat-card-heading,
.spotlight-title,
.featured-story-title,
.cat-story-title,
.cat-tab-story-title,
.trending-title,
.related-story-title,
.rel-card-title,
.mini-rel-title,
.press-title,
.search-card-title,
.comment-inner h3,
.comment-inner h4,
.comment-inner h5,
.comment-inner h6,
span.zox-author-name,
h2.zox-s-title1,
h2.zox-s-title1-feat {
  text-transform: capitalize;
}

/* 3. Story Editorial Body, Descriptions, Paragraphs, Excerpts, Lists, Captions, Quotes — PT Serif 400 */
.story-main-article p,
.story-body-section p,
.story-hero-excerpt,
.single-story-wrapper .story-hero-excerpt,
.cat-card-summary,
.cat-story-card .cat-card-summary,
.story-card-desc,
.story-card-excerpt,
.story-card p,
.story-body p,
.spotlight-desc,
.spotlight-card p,
.featured-story-desc,
.latest-story-desc,
.latest-story-card p,
.cat-story-desc,
.cat-hero-desc,
.cat-tab-story-desc,
.trending-desc,
.trending-card p,
.rel-card-desc,
.mini-rel-card p,
.mini-rel-desc,
.search-card-desc,
.search-story-card p,
.press-card p,
.press-desc,
.story-caption,
figcaption,
.story-main-article ul,
.story-main-article ol,
.story-main-article li,
.story-content-list,
.story-content-list li,
.quote-inner blockquote,
.quote-text-body blockquote,
.story-quote-block blockquote,
.quote-inner cite,
.quote-text-body cite,
.info-block-item span.value,
.story-info-card-block p,
.cta-block p,
.story-cta-box p,
.story-support-desc,
.sidebar-support-desc,
.p.zox-s-graph,
span.zox-post-excerpt p,
.zox-post-body p,
#woo-zox-content p,
.zox-404 p,
.zox-post-body ol li,
.zox-author-box-text p,
.comment-inner p {
  font-family: var(--font-story-body, 'PT Serif', serif) !important;
  font-weight: var(--font-story-body-weight, 400) !important;
  text-transform: none !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

/* 4. Responsive Safeguards for Amiri Headings Across All Breakpoints */
.story-hero-title,
.story-main-article h1,
.story-main-article h2,
.story-main-article h3,
.story-main-article h4,
.story-card-title,
.spotlight-title,
.cat-story-title,
.cat-hero-title,
.related-story-title,
.trending-title {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto;
}

/* ==================================================
   12. CATEGORY AJAX PAGINATION & LOADER (NO FULL RELOAD)
   ================================================== */
.category-story-results {
  position: relative;
  min-height: 280px;
  width: 100%;
}

.category-results-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 260px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: catResultsFadeIn 0.2s ease-out;
  pointer-events: auto;
}

@keyframes catResultsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.category-results-spinner {
  width: 40px;
  height: 40px;
  border: 3.5px solid rgba(41, 157, 142, 0.2);
  border-top-color: var(--primary, #299D8E);
  border-radius: 50%;
  animation: catSpinnerRotate 0.75s linear infinite;
  margin-bottom: 12px;
}

@keyframes catSpinnerRotate {
  to { transform: rotate(360deg); }
}

.category-results-loading-text {
  font-family: var(--font-body, inherit);
  font-size: 14px;
  font-weight: 600;
  color: #172825;
  letter-spacing: 0.2px;
}

.category-results-error {
  background: #ffffff;
  border: 1px solid #e3eae8;
  border-radius: 16px;
  padding: 44px 24px;
  text-align: center;
  color: var(--muted, #556764);
  margin: 16px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.category-results-error p {
  font-size: 14px;
  font-weight: 500;
  color: #1c2e2b;
  margin: 0 0 16px;
}

.category-retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary, #299D8E);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
  box-shadow: 0 2px 8px rgba(41, 157, 142, 0.25);
}

.category-retry-btn:hover {
  background: var(--primary-dark, #207e72);
}