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

:root {
  --header-height: 74px;
  /* Brand Colors & Layout Tokens — Miles2Smile */
  --primary: #fdc513;
  --primary-dark: #e5b00d;
  --primary-light: #fef8e7;
  --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(253, 197, 19, 0.35);
  --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: #fdc513;
  --card-accent-dark: #e5b00d;
}

* {
  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;
  overflow-x: clip;
}

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: clip;
  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: #fdc513 !important;
  border-top: none;
  border-bottom: 1px solid rgba(20, 34, 31, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(20, 34, 31, 0.08);
}

.nav-container {
  /* Centered compact max-width container */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo — Scaled for compact header */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.brand-link img,
.site-logo-img {
  height: 42px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  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 — Centered and balanced */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 22px;
  margin: 0 16px;
  padding: 0;
  height: 100%;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: #14221f;
  height: 100%;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 0.2s, opacity 0.2s;
  white-space: nowrap;
  line-height: 1;
  padding: 0;
  margin: 0;
}

.main-nav a:hover {
  color: #000000;
  opacity: 0.85;
}

.main-nav>a.active,
.nav-item-dropdown>a.active {
  color: #14221f;
  font-weight: 700;
}

.main-nav>a.active::after,
.nav-item-dropdown>a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #14221f;
  border-radius: 2px 2px 0 0;
  pointer-events: none;
}

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

/* ── Donate Button — Header Nav ─────────────────────────────────── */
.main-nav a.nav-donate-btn,
.nav-right .nav-donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  height: 38px;
  padding: 0 20px;
  margin-left: 8px;
  background: #14221f;
  color: #ffffff !important;
  font-family: var(--font-button, var(--font-body));
  font-size: 14px;
  font-weight: 700;
  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(20, 34, 31, 0.25);
}

.main-nav a.nav-donate-btn:hover,
.nav-right .nav-donate-btn:hover {
  background: #2b3b38;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(20, 34, 31, 0.35);
  transform: translateY(-1px);
}

.main-nav a.nav-donate-btn:focus-visible,
.nav-right .nav-donate-btn:focus-visible {
  outline: 3px solid #14221f;
  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: #fdc513;
  color: #14221f !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(253, 197, 19, 0.3);
  border: none;
}

.mobile-nav-link.nav-donate-btn:hover {
  background: #e5b00d;
  color: #14221f !important;
}

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

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

/* Search Bar — Compact, vertically centered */
.nav-search-pill {
  position: relative;
  display: flex;
  align-items: center;
  align-self: center;
  background: #f4f7f6;
  border: 1px solid #dbe3e1;
  border-radius: 30px;
  padding: 0 16px;
  width: 300px;
  max-width: calc(100vw - 320px);
  height: 42px;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.nav-search-pill:focus-within {
  background: #ffffff;
  border-color: #fdc513;
  box-shadow: 0 0 0 3px rgba(253, 197, 19, 0.25);
}

.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: #fdc513;
}

/* Header Live Search Dropdown */
.header-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  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;
  min-height: 74px;
  box-sizing: border-box;
  text-decoration: none;
  border-bottom: 1px solid #e8e8e8;
  transition: background 0.15s ease;
  cursor: pointer;
}

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

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

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

.header-search-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-search-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  background-color: #FDC513;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
  line-height: 1.2;
}

.header-search-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #171717;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

@media (max-width: 768px) {
  .header-search-item {
    min-height: 70px;
    padding: 10px 12px;
  }

  .header-search-item-title {
    font-size: 14px;
  }
}

.header-search-view-all {
  display: block;
  padding: 14px 16px;
  background: #fafafa;
  border-top: 1px solid #e8e8e8;
  color: #171717;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.header-search-view-all:hover,
.header-search-view-all.highlighted {
  background: #fef8e7;
  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(253, 197, 19, 0.25);
  border-top-color: var(--primary, #fdc513);
  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: #fdc513;
  box-shadow: 0 0 0 3px rgba(253, 197, 19, 0.25);
}

.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: #fdc513;
}

.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: #fdc513;
  color: #14221f;
  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: #14221f;
  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(253, 197, 19, 0.35);
}

.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);
  transition: color 0.15s ease;
}

.mobile-toggle-btn:hover,
.mobile-toggle-btn:focus-visible {
  color: #fdc513;
}

/* ==================================================
   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: #000000;
  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: #000000;
  margin: 0 0 16px;
  letter-spacing: -1.2px;
}

.hero-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #000000;
  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: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(253, 197, 19, 0.35);
}

.btn-hero-primary:hover,
.btn-hero-primary:focus-visible {
  background: #FFFFFF;
  color: #000000;
  transform: translateY(-1px);
}

.btn-hero-primary:hover span,
.btn-hero-primary:focus-visible span,
.btn-hero-primary:hover svg,
.btn-hero-primary:focus-visible svg {
  color: #000000;
  fill: #000000;
}

.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 (COLLAPSIBLE, NO ICONS)
   ================================================== */
.category-strip-section {
  padding: 24px 0 12px;
}

.category-collapsible-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-collapsible-card:hover {
  border-color: #d8d8d8;
}

.category-strip-section.is-expanded .category-collapsible-card {
  border-color: #fdc513;
  box-shadow: 0 4px 16px rgba(253, 197, 19, 0.12);
}

.category-collapsible-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #ffffff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  gap: 14px;
  transition: background-color 0.2s ease;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.category-collapsible-header:hover {
  background-color: #fafafa;
}

.category-collapsible-header:focus-visible {
  outline: 2px solid #fdc513;
  outline-offset: -2px;
}

.category-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.category-header-label {
  font-family: var(--font-heading, "Plus Jakarta Sans", sans-serif);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #171717;
  text-transform: uppercase;
  line-height: 1;
}

.category-header-count {
  font-size: 12px;
  font-weight: 600;
  color: #555555;
  background: #f0f0f0;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
}

.category-strip-section.is-expanded .category-header-count {
  background: rgba(253, 197, 19, 0.25);
  color: #000000;
}

.category-toggle-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #e8e8e8;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #171717;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-collapsible-header:hover .category-toggle-action {
  border-color: #fdc513;
  background: #fffdf0;
  color: #000000;
}

.category-strip-section.is-expanded .category-toggle-action {
  border-color: #fdc513;
  background: #fdc513;
  color: #000000;
}

.toggle-btn-arrow {
  font-size: 10px;
  display: inline-block;
  line-height: 1;
}

/* Collapsible Body with CSS Grid Animation */
.category-collapse-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-strip-section.is-expanded .category-collapse-body {
  grid-template-rows: 1fr;
}

.category-collapse-inner {
  overflow: hidden;
  min-height: 0;
}

.category-collapse-content {
  border-top: 1px solid #e8e8e8;
  padding: 16px 20px 20px;
  background: #fafafa;
}

/* Category Grid */
.category-boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px;
}

/* Category Card (No Icon) */
.cat-box {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  min-height: 58px;
}

.cat-box:hover {
  border-color: #fdc513;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 197, 19, 0.18);
}

.cat-box.active {
  background: #fffdf0;
  border-color: #fdc513;
  border-width: 1.5px;
  box-shadow: 0 2px 8px rgba(253, 197, 19, 0.22);
}

.cat-box-name {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
  color: #171717;
  margin-bottom: 4px;
  text-transform: uppercase;
  max-width: 100%;
  word-break: break-word;
  line-height: 1.25;
}

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

.cat-box-count {
  font-size: 11px;
  color: #666666;
  font-weight: 500;
  line-height: 1.2;
}

.cat-box.active .cat-box-count {
  color: #333333;
  font-weight: 600;
}

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

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

/* .featured-header h2 now uses .m2s-cat-section-title — see shared heading system */

.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-color: #FDC513;
  color: #000000;
  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;
  transition: background-color 0.2s ease;
}

.tag-pill:hover,
a.tag-pill:hover {
  background-color: #e5b210;
  color: #000000;
}

.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(253, 197, 19, 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: #171717;
  margin: 0;
  white-space: nowrap;
}

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

.btn-support-child,
.btn-donate-now {
  background: var(--primary);
  color: #14221f;
  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(253, 197, 19, 0.3);
  text-decoration: none;
  line-height: 1.2;
}

.btn-support-child:hover,
.btn-donate-now: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;
  }

  /* Latest Stories only — keep small */
  .latest-kicker-title h2,
  .latest-kicker-title h2 a {
    font-size: 22px !important;
  }
}

@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 Stories only — keep small */
  .latest-kicker-title h2,
  .latest-kicker-title h2 a {
    font-size: 22px !important;
  }
}

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

.latest-kicker-title span.bar {
  display: inline-block;
  width: 18px;
  height: 2.5px;
  background: #FDC513 !important;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Latest Stories heading — keeps the small 24px style */
.latest-kicker-title h2,
.latest-kicker-title h2 a {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  color: #171717 !important;
  margin: 0;
  text-decoration: none;
}

/* ==================================================
   HOMEPAGE CATEGORY SECTION HEADINGS
   Matches the "Stay Connected." visual treatment:
   large Georgia, clamp font, yellow dot.
   ================================================== */
.m2s-cat-section-header {
  align-items: center;
}

.m2s-cat-section-title {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(48px, 5.2vw, 72px) !important;
  font-weight: 700 !important;
  line-height: 0.95 !important;
  letter-spacing: -3.5px !important;
  color: #111217 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  text-align: left;
  max-width: 1320px;
  word-break: break-word;
}

.m2s-cat-section-title a {
  color: #111217 !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

.m2s-cat-section-title a:hover {
  color: #000000 !important;
}

/* Yellow final dot */
.m2s-cat-section-title .m2s-dot {
  color: #FDC513 !important;
  display: inline !important;
}

/* Responsive: tablet */
@media (max-width: 1100px) {
  .m2s-cat-section-title {
    font-size: 56px !important;
    letter-spacing: -3px !important;
  }
}

/* Responsive: mobile */
@media (max-width: 767px) {
  .m2s-cat-section-title {
    font-size: 30px !important;
    line-height: 1 !important;
    letter-spacing: -1.5px !important;
    margin: 0 0 12px !important;
  }
}

@media (max-width: 400px) {
  .m2s-cat-section-title {
    font-size: 30px !important;
    letter-spacing: -1.3px !important;
  }
}

.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-color: #FDC513;
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  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
   ================================================== */
/* ==================================================
   MILES2SMILE FOOTER (Black 5-Column Layout + Yellow Bar)
   ================================================== */
.site-footer {
  background: #000000;
  color: #ffffff;
  border-top: none;
  padding: 22px 0 0;
  position: relative;
  box-sizing: border-box;
  margin-top: auto;
  margin-bottom: 0;
  height: auto;
}

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

.footer-main-row {
  display: grid;
  grid-template-columns: 190px repeat(3, minmax(170px, 1fr)) 110px;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  padding-bottom: 20px;
}

.footer-col-social {
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
  min-width: 0;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  margin-top: 0;
}

.site-footer .footer-social-btn,
.site-footer .footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent;
  border-radius: 0;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
}

.site-footer .footer-social-btn:hover,
.site-footer .footer-social-btn:focus-visible,
.site-footer .footer-social-btn:active,
.site-footer .footer-social-icons a:hover,
.site-footer .footer-social-icons a:focus-visible,
.site-footer .footer-social-icons a:active {
  background: transparent;
  color: #fdc513;
  transform: translateY(-2px);
}

.site-footer a:focus-visible {
  outline: 2px solid #fdc513;
  outline-offset: 2px;
}

.site-footer .footer-social-btn svg,
.site-footer .footer-social-icons a svg {
  display: block;
  flex-shrink: 0;
}

.footer-col-links a {
  display: block;
  font-family: var(--font-body, Roboto, sans-serif);
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  color: #ffffff !important;
  text-decoration: none;
  margin: 0 0 6px 0;
  transition: color 0.15s ease;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: left;
}

.footer-col-links a:last-child {
  margin-bottom: 0;
}

.footer-col-links a:hover,
.footer-col-links a:focus-visible,
.footer-col-links a:active {
  color: #fdc513 !important;
}

.footer-yellow-bar {
  width: 100%;
  background: #fdc513;
  color: #000000;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  box-sizing: border-box;
  margin: 0;
}

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

.footer-yellow-bar p {
  margin: 0;
  font-family: var(--font-body, Roboto, sans-serif);
  font-size: 11px !important;
  font-weight: 500;
  line-height: 1.5 !important;
  color: #000000 !important;
  text-align: center;
}

/* 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,
.footer-bottom-links a:focus-visible,
.footer-bottom-links a:active {
  color: #fdc513;
}

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

/* ====== Header ====== */
@media (min-width: 951px) {

  .mobile-nav-drawer,
  .mobile-nav-overlay {
    display: none !important;
  }
}

@media (max-width: 1280px) {
  .nav-container {
    padding: 0 20px;
  }

  .nav-search-pill {
    width: 270px;
  }

  .main-nav {
    gap: 18px;
    margin: 0 12px;
  }
}

@media (max-width: 1080px) {
  .nav-container {
    padding: 0 16px;
    gap: 14px;
  }

  .nav-search-pill {
    width: 200px;
    max-width: calc(100vw - 320px);
  }

  .main-nav {
    gap: 12px;
    margin: 0 8px;
  }

  .main-nav a,
  .nav-item-dropdown>a {
    font-size: 14px;
  }

  .main-nav a.nav-donate-btn {
    padding: 0 16px;
    font-size: 13.5px;
    height: 36px;
  }

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

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

  .nav-container {
    height: 65px;
    padding: 0 20px;
  }

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

  .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: 40px;
  }
}

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

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

  .nav-container {
    gap: 12px;
    width: 100%;
    padding: 0 16px;
    height: 63px;
  }

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

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

  .nav-container {
    height: 59px;
    width: 100%;
    padding: 0 14px;
  }

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

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

  .nav-container {
    height: 57px;
    width: 100%;
    padding: 0 12px;
  }

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

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

  .nav-container {
    height: 55px;
    width: 100%;
    padding: 0 10px;
    gap: 8px;
  }

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

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

/* ====== Hero Section: Tablet & Mobile Responsive ====== */
@media (max-width: 950px) and (min-width: 769px) {
  .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%;
  }
}

/* Responsive Mobile Hero: Text Container Hidden Completely on Mobile (<= 768px) */
@media (max-width: 768px) {
  .hero-wrapper {
    min-height: 390px;
    height: clamp(260px, 52vw, 380px);
    background-image: url('../images/Hero1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    /* High-quality rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .hero-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: none;
  }

  .hero-content {
    display: none !important;
  }

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

  .hero-kicker span.dash {
    display: inline-block;
    width: 16px;
    height: 2.5px;
    background: #fdc513;
    border-radius: 2px;
  }

  .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(22px, 6vw, 32px);
    line-height: 1.18;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #e2ebe8;
    margin: 0 0 18px;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
  }

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

  .btn-hero-primary {
    padding: 0 20px;
    height: 42px;
    font-size: 13px;
  }

  .btn-hero-outline {
    padding: 0 18px;
    height: 42px;
    font-size: 13px;
  }

  .hero-script-tag {
    display: none;
  }
}

/* High-DPR / Retina Mobile Optimization: enforce maximum crispness */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1.5),
(max-width: 768px) and (min-resolution: 144dpi) {
  .hero-wrapper {
    background-image: url('../images/Hero1.jpg');
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
  }
}


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

/* Tablet (768px - 950px): Keep fully visible 3-column layout without accordion */
@media (min-width: 768px) and (max-width: 950px) {
  .category-mobile-toggle-wrap {
    display: none !important;
  }

  .category-boxes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    visibility: visible !important;
    margin-top: 0 !important;
    pointer-events: auto !important;
  }
}

/* Responsive adjustments for Category Section */
@media (max-width: 1024px) {
  .category-boxes-grid {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .category-strip-section {
    padding: 16px 0 8px;
  }

  .category-collapsible-header {
    padding: 12px 16px;
  }

  .category-collapse-content {
    padding: 14px 16px 16px;
  }

  .category-boxes-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .category-collapsible-header {
    padding: 11px 14px;
    gap: 8px;
  }

  .category-header-label {
    font-size: 14px;
  }

  .category-header-count {
    font-size: 11px;
    padding: 2px 8px;
  }

  .category-toggle-action {
    padding: 5px 12px;
    font-size: 12px;
  }

  .category-collapse-content {
    padding: 12px 12px 14px;
  }

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

  .cat-box {
    padding: 10px 6px;
    min-height: 52px;
  }

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

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

@media (max-width: 360px) {
  .category-collapsible-header {
    padding: 10px 10px;
  }

  .category-header-label {
    font-size: 13px;
  }

  .category-header-count {
    font-size: 10px;
    padding: 2px 6px;
  }

  .category-toggle-action {
    padding: 4px 10px;
    font-size: 11px;
  }

  .category-boxes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .cat-box {
    padding: 8px 4px;
    min-height: 48px;
  }

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

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

@media (max-width: 320px) {
  .cat-box-name {
    font-size: 9.5px;
    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 inherits .m2s-cat-section-title mobile size */

  .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,
  .latest-kicker-title h2 a {
    font-size: 22px !important;
  }
}

/* ====== Footer Responsive ====== */
@media (max-width: 1140px) and (min-width: 901px) {
  .site-footer .container {
    max-width: 1000px;
  }

  .footer-main-row {
    grid-template-columns: 190px repeat(3, minmax(150px, 1fr)) 100px;
    gap: 18px;
    padding-bottom: 20px;
  }

  .footer-col-links a {
    font-size: 11px !important;
    line-height: 1.6 !important;
  }
}

/* Tablet: 4-Column Layout with Social Icons Full Width Header */
@media (max-width: 900px) and (min-width: 541px) {
  .site-footer {
    padding: 22px 0 0;
  }

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

  .footer-main-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
    padding-bottom: 20px;
  }

  .footer-col-social {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    padding-top: 0;
  }

  .footer-social-icons {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
  }

  .footer-col-links a {
    font-size: 11px !important;
    line-height: 1.6 !important;
    margin-bottom: 6px;
  }

  .footer-yellow-bar p {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }
}

/* Mobile: Clean Stacked Layout */
@media (max-width: 540px) {
  .site-footer {
    padding: 20px 0 0;
    width: 100%;
    height: auto;
  }

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

  .footer-main-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 18px;
  }

  .footer-col-social {
    padding-top: 0;
    margin-bottom: 2px;
  }

  .footer-social-icons {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .footer-col-links a {
    font-size: 11px !important;
    line-height: 1.6 !important;
    margin-bottom: 5px;
  }

  .footer-yellow-bar {
    padding: 10px 14px;
    min-height: auto;
    width: 100%;
  }

  .footer-yellow-bar p {
    font-size: 11px !important;
    line-height: 1.5 !important;
    text-align: center;
  }
}

/* Small Mobile (<= 375px) */
@media (max-width: 375px) {
  .site-footer .container {
    width: calc(100% - 24px);
  }

  .footer-social-icons {
    gap: 16px;
  }

  .footer-yellow-bar {
    padding: 10px 12px;
  }
}

/* Ultra Small Mobile (<= 360px) */
@media (max-width: 360px) {
  .site-footer .container {
    width: calc(100% - 20px);
  }

  .footer-social-icons {
    gap: 14px;
  }
}

/* ====== 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%;
}

.story-main-article iframe:not(.youtube-container iframe) {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
}

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

.story-main-article pre,
.story-main-article code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 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(253, 197, 19, 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: 50;
  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-color: #FDC513;
  color: #000000;
  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: min(410px, calc(100% - 15px));
  max-width: 100%;
  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;
    overflow: hidden;
  }

  .search-hero-graphic-bg {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }

  .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: clamp(24px, 6.5vw, 32px);
  }

  .search-hero-photo-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .search-hero-photo {
    width: 160px;
    height: 160px;
  }
}

/* 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: 700;
  color: #000000;
  background-color: #FDC513;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
  text-transform: capitalize;
  letter-spacing: 0;
  transition: background-color 0.2s ease;
}

.search-story-card:hover .search-card-tag {
  background-color: #e5b210;
  color: #000000;
}

.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-color: #FDC513;
  color: #000000;
  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-color 0.25s ease, color 0.25s ease;
}

.story-card:hover .story-body .tag {
  background-color: #e5b210;
  color: #000000;
}

.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,
a.story-cat-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #FDC513;
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-decoration: none;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.story-cat-badge:hover,
a.story-cat-badge:hover {
  background-color: #e5b210;
  color: #000000;
  text-decoration: none;
}

.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, 74px) + 20px);
    align-self: start;
    height: -moz-fit-content;
    height: fit-content;
  }
}

/* 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(253, 197, 19, 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: #14221f;
  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(253, 197, 19, 0.35);
  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-color: #FDC513;
  color: #000000;
  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;
  transition: background-color 0.2s ease;
}

.trending-grid-card:hover .trending-card-tag {
  background-color: #e5b210;
  color: #000000;
}

.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 {
    font-size: 16px !important;
    line-height: 1.48 !important;
  }
}

@media (max-width: 768px) {

  .homepage-card-title,
  .trending-card-title {
    font-size: 15.5px !important;
    line-height: 1.46 !important;
  }
}

@media (max-width: 480px) {

  .homepage-card-title,
  .trending-card-title {
    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-color: #FDC513;
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  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;
  scroll-margin-top: calc(var(--header-height, 86px) + 24px);
}

#latest-stories,
#sidebar-trending,
#sidebar-related {
  scroll-margin-top: calc(var(--header-height, 86px) + 24px);
}

.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: none;
    min-height: auto;
    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: 768px) {

  /* Mobile: strictly disable sticky sidebar, return to normal document flow */
  .story-sidebar-col {
    position: static !important;
    top: auto !important;
    align-self: auto !important;
    height: auto !important;
  }
}

@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: none;
    min-height: auto;
  }

  .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 {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: visible;
    text-overflow: clip;
    display: inline;
  }

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

  .story-hero-right {
    min-height: auto;
    max-height: none;
  }

  .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%;
  box-sizing: border-box;
  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;
  width: 100%;
  max-width: 620px;
  box-sizing: border-box;
  min-width: 0;
}

.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;
  word-break: break-word;
  overflow-wrap: break-word;
}

.cat-hero-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #cfdfdc;
  margin: 0 0 16px;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.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: #14221f;
  box-shadow: 0 4px 12px rgba(253, 197, 19, 0.35);
}

.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: #14221f;
  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: #14221f;
  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(253, 197, 19, 0.3);
  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;
  gap: 12px;
  margin-bottom: 20px;
}

.cat-grid-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #14221f;
  margin: 0;
  line-height: 1.25;
  width: 100%;
  max-width: 100%;
  overflow-wrap: normal;
}

.cat-sort-select {
  flex-shrink: 0;
  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;
}

/* Homepage Category Sections (4-Column Grid) — Exact Category Page Card Size & Proportions */
.home-cat-cards-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.home-cat-cards-4col .cat-story-card {
  height: 100%;
}

@media (max-width: 1024px) {
  .home-cat-cards-4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .home-cat-cards-4col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 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-color: #FDC513;
  color: #000000;
  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-color 0.25s ease, box-shadow 0.25s ease;
}

.cat-story-card:hover .cat-card-top-tag {
  background-color: #e5b210;
  color: #000000;
  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,
.cat-card-heading a,
.cat-story-card .cat-card-heading,
.cat-story-card .cat-card-heading a {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 21.5px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #171717 !important;
  margin: 0 0 10px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-decoration: none;
  transition: color 0.25s ease;
}

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

@media (max-width: 1024px) {

  .cat-card-heading,
  .cat-card-heading a,
  .cat-story-card .cat-card-heading,
  .cat-story-card .cat-card-heading a {
    font-size: 20px !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 768px) {

  .cat-card-heading,
  .cat-card-heading a,
  .cat-story-card .cat-card-heading,
  .cat-story-card .cat-card-heading a {
    font-size: 19px !important;
    line-height: 1.35 !important;
  }
}

.cat-card-summary,
.cat-story-card .cat-card-summary {
  font-family: var(--font-body, 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #3F3F3F !important;
  margin: 0 0 14px;
  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: #fdc513;
  color: #000000;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

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

.footer-four-cols .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, color 0.2s;
}

.footer-four-cols .footer-social-icons a:hover {
  background: #fdc513;
  color: #000000;
}

@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: 768px) {
  .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(253, 197, 19, 0.18);
    color: #14221f;
  }

  .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: #14221f;
  }

  .cat-sidebar-item.active {
    background: var(--primary, #fdc513);
    color: #14221f;
    box-shadow: 0 4px 14px rgba(253, 197, 19, 0.35);
  }

  .cat-sidebar-item.active span.count {
    color: #14221f;
    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: 0;
    box-sizing: border-box;
  }

  .cat-hero-content {
    padding: 24px 18px;
    width: 100%;
    box-sizing: border-box;
  }

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

  .cat-grid-header {
    gap: 8px;
    margin-bottom: 16px;
  }

  .cat-sort-select {
    padding: 6px 10px;
    font-size: 11.5px;
  }
}

/* ==================================================
   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: inline-flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

.nav-item-dropdown>a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  position: relative;
  font-weight: 600;
  font-size: 15px;
  color: #14221f;
  white-space: nowrap;
  line-height: 1;
  padding: 0;
  margin: 0;
}

.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: 0;
  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: #fef8e7 !important;
  color: #14221f !important;
  padding-left: 22px !important;
  border-left: 3px solid #fdc513 !important;
}

.nav-dropdown-menu a.active {
  color: #14221f !important;
  font-weight: 700 !important;
  background: #fef8e7 !important;
  border-left: 3px solid #fdc513 !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;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  width: min(320px, 85vw);
  background: #ffffff;
  z-index: 2001;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
  visibility: visible;
  pointer-events: auto;
  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;
  flex-shrink: 0;
}

.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: 8px 0 16px;
  overflow-y: auto;
  flex: 1;
}

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

.mobile-nav-link:hover {
  background: #fafafa;
}

.mobile-nav-link.active {
  background: #fef8e7;
  color: #171717;
  border-left: 4px solid #fdc513;
  padding-left: 16px;
}

/* Mobile Nav Accordion Submenus */
.mobile-nav-accordion-item {
  width: 100%;
  border-bottom: 1px solid #f4f7f6;
}

.mobile-nav-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 20px;
  box-sizing: border-box;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #171717;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-accordion-btn:hover {
  background: #fafafa;
}

.mobile-nav-accordion-btn.active {
  background: #fef8e7;
  color: #171717;
  border-left: 4px solid #fdc513;
  padding-left: 16px;
}

.mobile-nav-accordion-btn:focus-visible {
  outline: 2px solid #fdc513;
  outline-offset: -2px;
}

.mobile-nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #728280;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
}

.mobile-nav-accordion-btn[aria-expanded="true"] .mobile-nav-chevron,
.mobile-nav-accordion-item.is-expanded .mobile-nav-chevron {
  transform: rotate(180deg);
  color: #171717;
}

.mobile-subnav-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mobile-nav-accordion-btn[aria-expanded="true"]+.mobile-subnav-collapse,
.mobile-nav-accordion-item.is-expanded .mobile-subnav-collapse {
  grid-template-rows: 1fr;
}

.mobile-subnav-links {
  min-height: 0;
  overflow: hidden;
  background: #f8fafc;
  padding: 0;
}

.mobile-nav-accordion-btn[aria-expanded="true"]+.mobile-subnav-collapse .mobile-subnav-links,
.mobile-nav-accordion-item.is-expanded .mobile-subnav-links {
  padding: 6px 0 10px;
}

.mobile-subnav-link {
  display: block;
  padding: 9px 20px 9px 36px;
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.mobile-subnav-link:hover {
  color: #14221f;
  background: #f1f5f9;
}

.mobile-subnav-link.active {
  color: #14221f;
  font-weight: 700;
  background: #fef8e7;
  border-left: 3px solid #fdc513;
  padding-left: 33px;
}

/* Mobile Donate CTA in Drawer */
.mobile-nav-cta-wrap {
  padding: 20px 20px 24px;
  margin-top: 4px;
}

.mobile-drawer-donate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 12px 24px;
  box-sizing: border-box;
  background: #fdc513;
  color: #000000 !important;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(253, 197, 19, 0.35);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-drawer-donate-btn:hover {
  background: #e5b00d;
  color: #000000 !important;
  box-shadow: 0 6px 18px rgba(253, 197, 19, 0.45);
}

.mobile-drawer-donate-btn:active {
  transform: scale(0.98);
}

.mobile-drawer-donate-btn .btn-arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.mobile-drawer-donate-btn:hover .btn-arrow {
  transform: translateX(3px);
}


/* ============================================================
   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(253, 197, 19, 0.25);
  border-top-color: #fdc513;
  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,
.latest-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,
.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(253, 197, 19, 0.25);
  border-top-color: var(--primary, #fdc513);
  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, #fdc513);
  color: #14221f;
  border: none;
  border-radius: 9999px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease;
  box-shadow: 0 2px 8px rgba(253, 197, 19, 0.3);
}

/* ==================================================
   GLOBAL CATEGORY TAG / BADGE BRAND COLOR SYSTEM
   Background: #FDC513 | Text: #000000 | Font-Weight: 700
   Applies uniformly across Homepage, Category Pages, Story Pages,
   Related Stories, Trending, Search Results, Autocomplete & Widgets
   ================================================== */
.tag-pill,
a.tag-pill,
.cat-card-top-tag,
.trending-card-tag,
.story-cat-badge,
a.story-cat-badge,
.search-card-tag,
.suggestion-cat-badge,
.header-search-tag,
.latest-cat-tag,
.mini-rel-tag,
.story-body .tag,
.badge-category,
.cat-badge,
.story-tag,
.card-tag,
.trending-card-badge,
.spotlight-tag {
  background-color: #FDC513 !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

/* Subtle Hover States preserving brand yellow identity */
.tag-pill:hover,
a.tag-pill:hover,
.cat-story-card:hover .cat-card-top-tag,
.story-cat-badge:hover,
a.story-cat-badge:hover,
.trending-grid-card:hover .trending-card-tag,
.search-story-card:hover .search-card-tag,
.story-card:hover .story-body .tag {
  background-color: #e5b210 !important;
  color: #000000 !important;
}

/* Client Navigation Top Progress Bar */
#m2sNavProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--brand-yellow, #fdc513);
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  box-shadow: 0 0 10px rgba(253, 197, 19, 0.8), 0 0 4px #fdc513;
}