/* ===========================================================
   DYNAMIC BEHAVIORS — Companion CSS for app.js
   Loaded as a separate stylesheet to keep it modular
   =========================================================== */

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.programs-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.programs-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.programs-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.why-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.why-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.why-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.why-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.why-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ============================================
   STICKY HEADER SHRINK ON SCROLL
   ============================================ */
.site-header {
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  padding: 10px 40px;
  box-shadow: 0 4px 20px rgba(26,58,46,0.12);
}
.site-header.scrolled .brand-logo {
  width: 42px;
  height: 42px;
  font-size: 24px;
  transition: all 0.3s ease;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(201,169,97,0.5);
}

/* ============================================
   MOBILE NAV HAMBURGER
   ============================================ */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  position: relative;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: flex-start;
    padding: 100px 40px 40px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 150;
    gap: 4px;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav a {
    font-size: 17px;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { color: var(--gold); }
  .main-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(14,36,25,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: -1;
  }
  .main-nav.open::before {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================
   FORM INTERACTIVITY
   ============================================ */
input.error, select.error, textarea.error {
  border-color: var(--red-alert) !important;
  background: #fef0f0 !important;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

button .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   FORM SUCCESS STATE
   ============================================ */
.form-success {
  text-align: center;
  padding: 20px 10px;
  animation: fadeInScale 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--green-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 700;
  margin: 0 auto 20px;
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.form-success h3 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.form-success p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.success-cta {
  background: var(--cream);
  padding: 18px;
  border-radius: 10px;
  margin-top: 20px;
  border-left: 3px solid var(--gold);
}
.success-phone {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--green-deep) !important;
  text-decoration: none !important;
  display: inline-block;
  margin-top: 6px;
}
.success-phone:hover { color: var(--gold) !important; }
.success-fine { font-size: 12px; color: var(--ink-mute); margin-top: 14px; }

/* ============================================
   INSURANCE QUICK NOTE
   ============================================ */
.insurance-note {
  background: linear-gradient(90deg, rgba(201,169,97,0.15), rgba(244,236,214,0.4));
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--green-deep);
  margin-bottom: 12px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}
.insurance-note.show {
  opacity: 1;
  max-height: 80px;
  padding: 10px 14px;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-collapsible {
  position: relative;
  transition: background 0.2s ease;
}
.faq-collapsible h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-right: 4px;
  margin-bottom: 0;
  transition: color 0.2s ease;
}
.faq-collapsible h3:hover { color: var(--gold); }
.faq-collapsible p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding-top: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding-top 0.3s ease;
}
.faq-collapsible.open p {
  max-height: 500px;
  opacity: 1;
  padding-top: 12px;
}
.faq-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 400;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.faq-collapsible.open .faq-chevron {
  background: var(--gold);
  color: var(--green-darker);
  transform: rotate(180deg);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
}
@media (max-width: 600px) {
  .toast-container {
    bottom: 80px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
}
.toast {
  background: var(--white);
  border-radius: 12px;
  padding: 16px 50px 16px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  position: relative;
  border-left: 4px solid var(--gold);
}
.toast.show {
  transform: translateX(0);
  opacity: 1;
}
.toast-info { border-left-color: var(--gold); }
.toast-error { border-left-color: var(--red-alert); }
.toast-success { border-left-color: #4a8c4a; }
.toast-message { flex: 1; }
.toast-action {
  background: var(--green-deep);
  color: var(--white) !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
}
.toast-action:hover { background: var(--gold); color: var(--green-darker) !important; }
.toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--ink-mute);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast-close:hover { background: var(--cream); color: var(--ink); }

/* ============================================
   MODAL (EXIT INTENT)
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,36,25,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.modal-overlay.show { opacity: 1; }
.modal-card {
  background: var(--white);
  border-radius: 18px;
  padding: 50px 44px 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  border-top: 4px solid var(--gold);
}
.modal-overlay.show .modal-card { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  color: var(--green-deep);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.modal-close:hover { background: var(--green-deep); color: var(--white); transform: rotate(90deg); }
.modal-badge {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--green-deep);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.modal-card h2 {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--green-deep);
  margin-bottom: 12px;
  line-height: 1.2;
}
.modal-card h2 em { color: var(--gold); font-style: italic; }
.modal-card p { font-size: 16px; color: var(--ink-soft); margin-bottom: 24px; }
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.modal-fine { font-size: 12px; color: var(--ink-mute); margin: 0; }

/* ============================================
   FLOATING CALL BUTTON (MOBILE)
   ============================================ */
.floating-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #d4b572);
  color: var(--green-darker) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(201,169,97,0.5);
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s backwards;
}
.floating-call .pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
  animation: pulse 2s ease-out infinite;
  pointer-events: none;
}
.floating-call:active { transform: scale(0.94); }

@keyframes bounceIn {
  from { transform: scale(0) translateY(40px); }
  to { transform: scale(1) translateY(0); }
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============================================
   CARD HOVER POLISH
   ============================================ */
.program-card, .why-card, .treatment-card, .risk-card,
.resource-card, .addiction-tile, .insurance-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease;
}

/* Subtle interactive cursor effects */
.btn-primary, .btn-secondary, .cta-button, .program-card a, .why-card a {
  position: relative;
  overflow: hidden;
}

/* Phone numbers get a hover lift */
a[href^="tel:"] {
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-block;
}
a[href^="tel:"]:hover { transform: translateY(-1px); }

/* ============================================
   FOCUS STATES (accessibility)
   ============================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .crisis-bar, .promo-bar, .accred-bar, .site-header,
  .floating-call, .toast-container, .modal-overlay,
  .scroll-progress, .final-cta, .site-footer .footer-bottom { display: none; }
  body { color: black; }
  a { color: black; text-decoration: underline; }
}

/* ============================================
   DROPDOWN NAVIGATION
   ============================================ */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-bottom: 8px; /* extends hover area down */
}
/* INVISIBLE BRIDGE — prevents menu from closing when mouse travels from trigger to menu */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 22px;
  background: transparent;
  pointer-events: none;
}
.nav-dropdown:hover::after {
  pointer-events: auto;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(14, 36, 25, 0.18), 0 4px 12px rgba(14, 36, 25, 0.06);
  min-width: 320px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 150;
  border-top: 3px solid var(--gold);
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-dropdown.hover-open .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu .dropdown-header {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 22px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.nav-dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 12px 22px !important;
  font-size: 14px !important;
  color: var(--ink) !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.2s ease;
  width: 100%;
}
.nav-dropdown-menu a:hover {
  background: var(--cream);
  color: var(--green-deep) !important;
  padding-left: 26px !important;
}
.nav-dropdown-menu a strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--green-deep);
  line-height: 1.3;
}
.nav-dropdown-menu a em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 2px;
}
.nav-dropdown-menu .dd-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 8px;
  color: var(--green-deep);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown-menu .dd-icon svg {
  width: 18px;
  height: 18px;
}
.nav-dropdown-menu a:hover .dd-icon {
  background: var(--gold);
  color: var(--green-darker);
}
.nav-dropdown-menu .dropdown-footer {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 14px !important;
  font-size: 12px !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  justify-content: space-between !important;
}
.nav-dropdown-menu .dropdown-footer svg {
  transition: transform 0.2s ease;
}
.nav-dropdown-menu .dropdown-footer:hover svg {
  transform: translateX(4px);
}

/* Wide grid dropdown for addictions */
.nav-dropdown-wide {
  min-width: 540px;
}
.nav-dropdown-wide .dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4px 0;
}
.nav-dropdown-wide .dropdown-grid a {
  padding: 10px 22px !important;
  font-size: 14px !important;
}
.nav-dropdown-wide .dropdown-grid a:hover {
  padding-left: 26px !important;
}
.nav-dropdown-wide .dd-icon-sm {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 6px;
  color: var(--green-deep);
  margin-right: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown-wide .dd-icon-sm svg {
  width: 16px;
  height: 16px;
}
.nav-dropdown-wide .dropdown-grid a:hover .dd-icon-sm {
  background: var(--gold);
  color: var(--green-darker);
}

/* Dropdown caret rotation */
.nav-dropdown-trigger svg {
  transition: transform 0.25s ease;
}
.nav-dropdown.hover-open .nav-dropdown-trigger svg,
.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

/* Mobile dropdowns — flatten to accordion-style */
@media (max-width: 980px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--gold);
    background: var(--cream);
    margin: 0 0 10px 0;
    padding: 8px 0;
    min-width: 0;
    width: 100%;
    border-radius: 0 0 8px 0;
    display: none;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none !important;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.hover-open .nav-dropdown-menu {
    /* Disable hover on mobile - click only */
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-wide { min-width: 0; }
  .nav-dropdown-wide .dropdown-grid {
    grid-template-columns: 1fr;
  }
  .nav-dropdown-menu a {
    padding: 10px 16px !important;
  }
  .nav-dropdown-menu a:hover {
    padding-left: 20px !important;
  }
}

/* ============================================
   RESOURCE ARTICLE PAGES
   ============================================ */
.article-banner {
  padding-bottom: 60px !important;
}
.article-meta-top {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.article-cat {
  background: rgba(201, 169, 97, 0.2);
  color: var(--gold-light);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.article-readtime::before {
  content: '·';
  margin-right: 14px;
  opacity: 0.4;
}

.article-body {
  background: var(--white);
}
.article-content {
  font-family: var(--sans);
}
.article-icon-large {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--cream), var(--gold-soft));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  margin-bottom: 32px;
}
.article-icon-large svg {
  width: 36px;
  height: 36px;
}

.article-content h2 {
  font-size: 28px;
  margin: 40px 0 14px;
  color: var(--green-deep);
  line-height: 1.25;
  font-weight: 600;
}
.article-content h2:first-of-type {
  margin-top: 0;
}
.article-content p {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.key-takeaway {
  background: linear-gradient(135deg, var(--cream), var(--gold-soft));
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 40px 0;
}
.kt-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.key-takeaway p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--green-deep);
  margin: 0;
  font-weight: 500;
  font-style: italic;
}

.article-cta-box {
  background: var(--green-deep);
  color: var(--white);
  padding: 36px 32px;
  border-radius: 14px;
  margin: 50px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.article-cta-box h3 {
  color: var(--white);
  font-size: 26px;
  margin: 0 0 12px;
}
.article-cta-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.article-cta-box .hero-actions {
  justify-content: center;
}

.related-heading {
  font-size: 22px;
  margin: 50px 0 24px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.related-articles {
  display: grid;
  gap: 14px;
}
.related-article {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--cream);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.related-article:hover {
  background: var(--white);
  border-left-color: var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateX(4px);
}
.rel-icon {
  width: 42px;
  height: 42px;
  background: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  flex-shrink: 0;
}
.rel-icon svg {
  width: 22px;
  height: 22px;
}
.related-article:hover .rel-icon {
  background: var(--gold);
  color: var(--green-darker);
}
.rel-cat {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}
.rel-title {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--green-deep);
  font-weight: 600;
  line-height: 1.3;
}

/* Updated resource card thumb to host SVG */
.resource-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-mid), var(--green-deep)) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light) !important;
  font-size: inherit !important;
}
.resource-thumb svg {
  width: 56px;
  height: 56px;
}

.read-link {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  transition: transform 0.2s ease;
}
.resource-card:hover .read-link {
  transform: translateX(4px);
}
.resource-card { text-decoration: none; color: inherit; display: block; }

/* Accreditation bar SVG alignment */
.accred-bar svg {
  vertical-align: middle;
  margin-right: 2px;
}

/* Phone icon in accred bar */
.accred-bar .phone-link svg {
  width: 14px;
  height: 14px;
}
