/* ==========================================================================
   HeartCare UI/UX Upgrade — Modern Design System Overhaul
   Loaded AFTER style.css, responsive.css, news-tweak.css
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL DESIGN SYSTEM — Typography, Spacing, Colors
   ========================================================================== */
:root {
  --font-body: 'Inter', 'Hind Siliguri', -apple-system, sans-serif;
  --font-heading: 'Inter', 'Hind Siliguri', -apple-system, sans-serif;
  --font: var(--font-body);
  --muted: #6B7280;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-hover: 0 16px 40px rgba(27, 27, 31, 0.15);
  --shadow-card: 0 4px 20px rgba(27, 27, 31, 0.06);
}

body.page-home {
  --muted: #6B7280;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lang-bn {
  --font-body: 'Hind Siliguri', 'Inter', 'Noto Sans Bengali', sans-serif;
  --font-heading: 'Hind Siliguri', 'Inter', 'Noto Sans Bengali', sans-serif;
}

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

/* More generous section spacing */
.section {
  padding: 88px 0;
}

/* ==========================================================================
   2. SCROLL ANIMATIONS — Fade-in-up on scroll
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll,
  .home-intro-card,
  .featured-card,
  .news-carousel-card,
  .publication-card,
  .event-card,
  .vision-stat-card,
  .home-card,
  .cta-band,
  .section-newsletter,
  .impact-stat-card,
  .impact-pillar-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal-on-scroll.is-revealed,
  .home-intro-card.is-revealed,
  .featured-card.is-revealed,
  .news-carousel-card.is-revealed,
  .publication-card.is-revealed,
  .event-card.is-revealed,
  .vision-stat-card.is-revealed,
  .home-card.is-visible,
  .home-card.is-revealed,
  .cta-band.is-revealed,
  .section-newsletter.is-revealed,
  .impact-stat-card.is-revealed,
  .impact-pillar-card.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered animation delays for child cards */
  .home-intro-card:nth-child(2),
  .featured-card:nth-child(2),
  .news-carousel-card:nth-child(2),
  .publication-card:nth-child(2),
  .home-card:nth-child(2),
  .vision-stat-card:nth-child(2),
  .event-card:nth-child(2) {
    transition-delay: 0.1s;
  }

  .home-intro-card:nth-child(3),
  .featured-card:nth-child(3),
  .news-carousel-card:nth-child(3),
  .publication-card:nth-child(3),
  .home-card:nth-child(3),
  .vision-stat-card:nth-child(3),
  .event-card:nth-child(3) {
    transition-delay: 0.2s;
  }

  .publication-card:nth-child(4),
  .event-card:nth-child(4) {
    transition-delay: 0.3s;
  }
}

/* ==========================================================================
   3. HOVER EFFECTS — Card lift, shadow, image zoom
   ========================================================================== */

/* Intro cards */
.home-intro-card {
  transition: var(--transition-smooth);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.home-intro-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red);
}

/* Featured cards */
.featured-card {
  transition: var(--transition-smooth);
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.featured-card img {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.featured-card:hover img {
  transform: scale(1.05);
}

/* News cards */
.news-carousel-card {
  transition: var(--transition-smooth);
}
.news-card-inner {
  transition: var(--transition-smooth);
  display: block;
  height: 100%;
}
.news-carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Publication cards */
.publication-card {
  transition: var(--transition-smooth);
}
.publication-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Event cards */
.event-card {
  transition: var(--transition-smooth);
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.event-card-head img {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.event-card:hover .event-card-head img {
  transform: scale(1.05);
}

/* Home cards */
.home-card {
  transition: var(--transition-smooth);
}
.home-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   4. INTRO CARDS — Icon backgrounds, border accent
   ========================================================================== */
.home-intro-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(215, 38, 61, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition-smooth);
}
.home-intro-card:hover .home-intro-icon {
  background: rgba(215, 38, 61, 0.15);
  transform: scale(1.08);
}

.home-intro-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 16px 0 12px;
}
.home-intro-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   5. HERO SECTION — Glow buttons, outline pill
   ========================================================================== */
.hero-actions .pill {
  box-shadow: 0 4px 20px rgba(215, 38, 61, 0.35);
  transition: var(--transition-smooth);
}
.hero-actions .pill:hover {
  box-shadow: 0 8px 30px rgba(215, 38, 61, 0.5);
  transform: translateY(-3px);
}

.pill-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}
.pill-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}
.pill-outline .pill-arrow {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ==========================================================================
   6. MISSION / PROGRAM CARDS — Bigger icons, text
   ========================================================================== */
.home-card-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(215, 38, 61, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}
.home-card:hover .home-card-icon-wrap {
  background: rgba(215, 38, 61, 0.15);
}

.home-card-description {
  font-size: 15px;
  line-height: 1.7;
}

.home-card-eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Stats value */
.home-card-stat-value {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
}

/* ==========================================================================
   7. VISION 2030 — Two-column grid, styled pillars
   ========================================================================== */
.vision-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.vision-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.vision-lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 16px;
}

.vision-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

.vision-pillars {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 18px;
}

.vision-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}
.vision-pillar-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.vision-pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(215, 38, 61, 0.3);
  color: #ffb6bf;
  font-weight: 700;
  font-size: 16px;
}

.vision-pillar-item strong {
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
  color: #fff;
}
.vision-pillar-item p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Vision visual card */
.vision-visual-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vision-card-image-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.vision-card-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.vision-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 4px 16px rgba(215, 38, 61, 0.4);
}
.vision-badge-year {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.vision-badge-text {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vision-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.vision-stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  transition: var(--transition-smooth);
}
.vision-stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.v-stat-num {
  display: block;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: #ffb6bf;
  margin-bottom: 4px;
}
.v-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

.vision-source {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.vision-actions .pill {
  box-shadow: 0 4px 16px rgba(215, 38, 61, 0.3);
}

/* ==========================================================================
   8. NEWS SECTION — Read more styling
   ========================================================================== */
.news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--red);
  font-size: 14px;
  transition: gap 0.2s ease;
}
.news-carousel-card:hover .news-readmore {
  gap: 8px;
  text-decoration: underline;
}

.section-news .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.section-news .section-title {
  color: #fff;
}

/* News meta styling */
.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}
.meta-sep {
  color: var(--border);
}
.news-dept {
  color: var(--red);
  font-weight: 600;
}

/* News thumbnail */
.news-thumb-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--grey);
}
.news-thumb-wrap img {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-carousel-card:hover .news-thumb-wrap img {
  transform: scale(1.05);
}
.news-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--soft);
  color: var(--red);
  font-size: 48px;
}

/* ==========================================================================
   9. PUBLICATIONS — Hover overlay, prominent order button
   ========================================================================== */
.publication-card-image {
  position: relative;
  overflow: hidden;
}
.publication-card-image img {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.publication-card:hover .publication-card-image img {
  transform: scale(1.05);
}

.publication-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.publication-card:hover .publication-image-overlay {
  background: rgba(0, 0, 0, 0.45);
}

.publication-overlay-badge {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  background: var(--red);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.publication-card:hover .publication-overlay-badge {
  opacity: 1;
  transform: translateY(0);
}

.publication-card-placeholder {
  font-size: 48px;
  color: var(--border);
}

.publication-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}
.publication-card-title a {
  color: inherit;
  transition: color 0.2s;
}
.publication-card-title a:hover {
  color: var(--red);
}

.publication-card-subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 8px;
}

.publication-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.publication-btn-order {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition-smooth);
}
.publication-btn-order:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(215, 38, 61, 0.3);
}

.publication-btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.publication-card-content {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   10. CTA & NEWSLETTER SECTIONS — Patterns, styled inputs
   ========================================================================== */
.cta-band {
  position: relative;
  background:
    radial-gradient(circle at 20% 50%, rgba(215, 38, 61, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(215, 38, 61, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, #FFF5F5 0%, #FFF0F0 50%, #FFF5F5 100%);
  padding: 72px 0;
  border-top: 1px solid rgba(215, 38, 61, 0.08);
  border-bottom: 1px solid rgba(215, 38, 61, 0.08);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-text h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.whf-membership {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.whf-membership p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}
.whf-logo-panel {
  display: inline-block;
}

/* Newsletter section */
.section-newsletter {
  position: relative;
  background:
    radial-gradient(circle at 30% 50%, rgba(215, 38, 61, 0.04) 0%, transparent 50%),
    var(--grey);
  text-align: center;
}

.newsletter {
  max-width: 600px;
  margin: 0 auto;
}
.newsletter .eyebrow {
  display: inline-block;
  margin-bottom: 8px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: stretch;
}
.newsletter-form input[type="email"] {
  flex: 1;
  border-radius: 999px;
  padding: 14px 24px;
  border: 2px solid var(--border);
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--red);
  outline: none;
}

/* ==========================================================================
   11. FOOTER REDESIGN — Clean 4-column, professional look
   ========================================================================== */
.site-footer {
  background: #1a1a22;
  color: #c8c8d4;
  padding: 0;
}

/* Partners section above footer grid */
.footer-partners {
  padding: 32px 0 36px;
  margin: 0 0 0;
  background: linear-gradient(135deg, #2a0a10 0%, #3a1218 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-partners-heading h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Footer main grid */
.site-footer > .wrap.footer-grid {
  padding-top: 52px;
  padding-bottom: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Footer brand column */
.footer-col-brand .brand-logo {
  filter: brightness(0) invert(1);
  width: 160px;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 15px;
  line-height: 1.7;
  color: #9a9aab;
  margin: 16px 0 20px;
}

.footer-contact-list {
  display: grid;
  gap: 12px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #a0a0b0;
  margin: 0;
}
.footer-contact-item a {
  color: #c0c0cc;
  transition: color 0.2s ease;
}
.footer-contact-item a:hover {
  color: var(--red);
}
.footer-contact-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--red);
}

/* Column titles */
.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

/* Footer links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 14px;
}
.footer-links li:last-child {
  margin-bottom: 0;
}
.footer-links a {
  font-size: 15px;
  color: #a8a8b8;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 6px;
}

.footer-link-highlight {
  color: var(--red) !important;
  font-weight: 700;
}
.footer-link-highlight:hover {
  color: #ff4d6a !important;
}

/* Social section in footer */
.footer-social-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-social-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d0d0dd;
  margin: 0 0 14px;
}
.footer-social-icons {
  display: flex;
  gap: 10px;
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #c0c0cc;
  transition: background 0.3s ease, transform 0.2s ease, color 0.2s ease;
}
.footer-social-btn:hover {
  background: var(--red);
  color: #fff;
  transform: scale(1.1);
}
.footer-social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 36px;
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: 14px;
  color: #7a7a8a;
  margin: 0;
}

.developer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #7a7a8a;
}
.developer-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a0a0b0;
  transition: color 0.2s;
}
.developer-logo:hover {
  color: #fff;
}
.developer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.developer-logo-name {
  font-weight: 600;
}

/* ==========================================================================
   12. PARTNER SECTION — Bigger logos, hover scale
   ========================================================================== */
.partner-logo-card {
  width: 200px;
  height: 88px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}
.partner-logo-card:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.partner-logo-card img {
  max-height: 54px;
}

/* ==========================================================================
   13. SCREENING APP CTA
   ========================================================================== */
.screening-app-cta {
  background: linear-gradient(135deg, var(--soft) 0%, #fff 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.screening-app-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
}
.screening-app-eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.screening-app-cta h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 8px;
}
.screening-app-cta p {
  color: var(--muted);
  font-size: 15px;
  max-width: 600px;
}

/* ==========================================================================
   14. EYEBROW STYLING (Global)
   ========================================================================== */
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
body.lang-bn .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

/* ==========================================================================
   15. SECTION HEAD — Title + "View All" link
   ========================================================================== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.link-more {
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
  white-space: nowrap;
}
.link-more:hover {
  gap: 8px;
}

/* ==========================================================================
   16. FEATURED SECTION Enhancement
   ========================================================================== */
.section-featured {
  padding: 64px 0;
}
.featured-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.featured-caption {
  padding: 18px 20px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  border-top: 3px solid var(--red);
  position: relative;
}
.featured-caption::after {
  content: '→';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.featured-card:hover .featured-caption::after {
  transform: translateY(-50%) translateX(4px);
}

/* ==========================================================================
   17. LEADERSHIP SECTION
   ========================================================================== */
.leader-quote-block {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

/* ==========================================================================
   18. WHATSApp FAB
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  z-index: 99;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   19. BUTTONS — Global polish
   ========================================================================== */
.pill {
  transition: var(--transition-smooth);
  font-family: var(--font-body);
}
.btn {
  transition: var(--transition-smooth);
  font-family: var(--font-body);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(215, 38, 61, 0.3);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--dark);
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ==========================================================================
   20. IMPACT STAT CARDS (Counter animation enhancement)
   ========================================================================== */
.impact-stat-card {
  transition: var(--transition-smooth);
}
.impact-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   21. RESPONSIVE OVERRIDES — Maintain mobile quality
   ========================================================================== */
@media (max-width: 960px) {
  .vision-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .cta-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }
  .vision-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .v-stat-num {
    font-size: clamp(18px, 5vw, 24px);
  }
  .v-stat-label {
    font-size: 10px;
  }
  .vision-pillar-item {
    padding: 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-col-title {
    margin-bottom: 14px;
    padding-bottom: 8px;
  }
  .footer-links li {
    margin-bottom: 10px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .screening-app-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .leader-quote-block {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 44px 0;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input[type="email"] {
    border-radius: 14px;
    padding: 14px 18px;
  }
  .newsletter-form .pill {
    border-radius: 14px;
  }
  .footer-social-btn {
    width: 38px;
    height: 38px;
  }
  .footer-social-btn svg {
    width: 16px;
    height: 16px;
  }
  .partner-logo-card {
    width: 160px;
    height: 72px;
    padding: 10px 14px;
  }
  .partner-logo-card img {
    max-height: 44px;
  }
}

/* ==========================================================================
   22. PREFERS-REDUCED-MOTION — Respect user settings
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .home-intro-card,
  .featured-card,
  .news-carousel-card,
  .publication-card,
  .event-card,
  .home-card,
  .vision-stat-card,
  .impact-stat-card,
  .cta-band,
  .section-newsletter {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .home-intro-card:hover,
  .featured-card:hover,
  .news-carousel-card:hover,
  .publication-card:hover,
  .event-card:hover,
  .home-card:hover,
  .vision-stat-card:hover,
  .impact-stat-card:hover {
    transform: none;
  }
  .partner-logo-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   23. ADDITIONAL HIGH-PRECISION POLISH
   ========================================================================== */
/* Hero Section Gradient Enhancement */
.hero-home {
  background-color: #06111f !important;
  background-image:
    linear-gradient(90deg, rgba(6, 17, 31, 0.94) 0%, rgba(6, 17, 31, 0.56) 35%, rgba(6, 17, 31, 0.08) 68%, rgba(6, 17, 31, 0.02) 100%),
    url('../../public/images/community-hero.webp') !important;
  background-size: cover !important;
  background-position: center center !important;
}
.hero-title {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7) !important;
}
.hero-subtitle {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}
.hero-tagline {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6) !important;
}

/* Icons inside circle backgrounds */
.home-intro-icon svg,
.home-intro-icon .home-card-icon {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
}
.home-card-icon-wrap svg,
.home-card-icon-wrap .home-card-icon {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
}

/* Pause partner marquee on hover */
.partner-carousel:hover .partner-track {
  animation-play-state: paused;
}

/* Footer Grid Priority */
.site-footer .footer-grid,
.footer-grid {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr 1fr 1fr !important;
  gap: 40px !important;
}
@media (max-width: 960px) {
  .site-footer .footer-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}
@media (max-width: 640px) {
  .site-footer .footer-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* ==========================================================================
   24. HOMEPAGE MISSION CARDS AND LEADERSHIP MESSAGE
   ========================================================================== */
.page-home .section-intro-cards {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 88px) 0;
  background:
    radial-gradient(ellipse at 92% 8%, rgba(215, 38, 61, .08), transparent 34%),
    #f6f8fb;
}

.page-home .home-cards-heading {
  max-width: 700px;
  margin: 0 auto 34px;
  text-align: center;
}

.page-home .home-cards-heading .eyebrow,
.page-home .leader-quote-content > .eyebrow {
  margin-bottom: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(215, 38, 61, .14);
  border-radius: 999px;
  background: rgba(215, 38, 61, .06);
  color: #b01e31;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
}

.page-home .home-cards-heading .section-title {
  margin: 0;
  color: #172333;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.page-home .home-card-grid { margin-top: 0; }
.page-home .home-card-track {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.page-home .home-card {
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(23, 35, 51, .08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 35, 51, .07);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.page-home .home-card:hover {
  transform: translateY(-6px);
  border-color: rgba(215, 38, 61, .22);
  box-shadow: 0 20px 42px rgba(23, 35, 51, .12);
}

.page-home .home-card-visual {
  position: relative;
  display: grid;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.9 / 1;
  place-items: center;
  overflow: hidden;
  background: #f1f3f6;
}

.page-home .home-card-visual img,
.page-home .home-card-visual video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.page-home .home-card:hover .home-card-visual img,
.page-home .home-card:hover .home-card-visual video {
  transform: scale(1.04);
}

.page-home .home-card-content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 24px 22px;
}

.page-home .home-card-eyebrow {
  margin-bottom: 9px;
  color: #b01e31;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.page-home .home-card h3 {
  margin: 0 0 8px;
  color: #172333;
  font-size: clamp(21px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.page-home .home-card-subtitle {
  color: #465466;
  font-weight: 700;
}

.page-home .home-card-description {
  margin: 0;
  color: #687587;
  font-size: 14px;
  line-height: 1.7;
}

.page-home .home-card-actions {
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
}

.page-home .home-card-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  transition: gap .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.page-home .home-card-button:hover { gap: 17px; }

.page-home .leader-quote-section {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 84px) 0;
  background:
    radial-gradient(ellipse at 8% 85%, rgba(215, 38, 61, .07), transparent 35%),
    #fff;
}

.page-home .leader-quote-block {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(240px, .76fr) minmax(0, 1.24fr);
  align-items: stretch !important;
  gap: clamp(28px, 5vw, 64px) !important;
  overflow: hidden;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid rgba(23, 35, 51, .08);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(215, 38, 61, .07), transparent 42%),
    #f8fafc;
  box-shadow: 0 20px 55px rgba(23, 35, 51, .09);
}

.page-home .leader-photo-wrap {
  position: relative;
  align-self: stretch;
  width: 100% !important;
  max-width: none !important;
  min-height: 350px;
  overflow: hidden;
  border-radius: 20px;
  background: #e8edf2;
}

.page-home .leader-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center 30%;
}

.page-home .leader-photo-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 999px;
  background: rgba(19, 31, 45, .78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  backdrop-filter: blur(12px);
}

.page-home .leader-quote-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}

.page-home .leader-quote-mark {
  position: absolute;
  top: 26px;
  right: 0;
  color: rgba(215, 38, 61, .12);
  font-family: Georgia, serif;
  font-size: clamp(90px, 13vw, 160px);
  line-height: .8;
  pointer-events: none;
}

.page-home .leader-quote {
  position: relative;
  margin: 12px 0 18px;
  color: #263547;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 550;
  letter-spacing: -.025em;
  line-height: 1.65;
}

.page-home .leader-message-thanks {
  margin: 0 0 22px;
  color: #667487;
  font-size: 14px;
}

.page-home .leader-meta {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 35, 51, .1);
}

.page-home .leader-name {
  color: #172333;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.page-home .leader-role {
  color: #b01e31;
  font-size: 13px;
  font-weight: 750;
}

.page-home .leader-organization {
  color: #738092;
  font-size: 12px;
}

.page-home .leadership-toggle {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid rgba(215, 38, 61, .2);
  border-radius: 999px;
  background: #fff;
  color: #b01e31;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .page-home .home-card-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .home-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .page-home .home-card:last-child:nth-child(odd) .home-card-visual { aspect-ratio: 2.8 / 1; }
  .page-home .leader-quote-block {
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
    gap: 28px !important;
  }
  .page-home .leader-photo-wrap { min-height: 310px; }
}

@media (max-width: 640px) {
  .page-home .section-intro-cards { padding: 48px 0; }
  .page-home .home-cards-heading { margin-bottom: 24px; text-align: center; }
  .page-home .home-card-track { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .page-home .home-card:last-child:nth-child(odd) { grid-column: auto; }
  .page-home .home-card-content { padding: 20px; }
  .page-home .home-card-visual { aspect-ratio: 2.2 / 1; }
  .page-home .home-card:last-child:nth-child(odd) .home-card-visual { aspect-ratio: 2.2 / 1; }
  .page-home .home-card-actions { padding-top: 16px; }
  .page-home .home-card-button { width: auto; }
  .page-home .leader-quote-section { padding: 44px 0; }
  .page-home .leader-quote-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px !important;
    padding: 18px;
    border-radius: 22px;
  }
  .page-home .leader-photo-wrap {
    width: min(100%, 340px) !important;
    min-height: 0;
    aspect-ratio: 1.25 / 1;
    justify-self: center;
    border-radius: 17px;
  }
  .page-home .leader-quote-content { padding: 2px 4px 6px; }
  .page-home .leader-quote-mark { top: 18px; font-size: 100px; }
  .page-home .leader-quote { margin-top: 10px; font-size: 18px; }
  .page-home .leader-meta { justify-items: center; text-align: center; }
  .page-home .leadership-toggle { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-card,
  .page-home .home-card-visual img,
  .page-home .home-card-visual video,
  .page-home .home-card-button { transition: none; }
}

/* ==========================================================================
   25. HOMEPAGE BRAND TYPOGRAPHY
   ========================================================================== */
.page-home .hero-title {
  margin-bottom: 14px;
  font-size: clamp(54px, 6.4vw, 84px) !important;
  letter-spacing: .025em !important;
  line-height: .86;
  text-wrap: nowrap;
}

.page-home .hero-brand-name {
  display: block;
  font-family: 'League Gothic', Impact, sans-serif;
  font-weight: 400;
}

.page-home .hero-brand-line {
  display: block;
}

.page-home .hero-brand-name .text-red {
  color: #d61b26;
}

.page-home .hero-subtitle {
  display: inline-block;
  margin: 0;
  padding: 8px 13px;
  border-left: 3px solid #ff5265;
  background: rgba(255, 255, 255, .09);
  font-family: var(--font-body) !important;
  font-size: clamp(13px, 1.8vw, 17px) !important;
  font-weight: 750 !important;
  letter-spacing: .16em;
  line-height: 1.4;
}

.page-home .hero-tagline {
  max-width: 520px;
  margin: 14px 0 28px;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 82, 101, .8);
  color: rgba(255, 255, 255, .92);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  letter-spacing: .005em;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .page-home .hero-title {
    max-width: 100%;
    margin-bottom: 12px;
  }

  .page-home .hero-home .hero-title {
    font-size: clamp(38px, 9vw, 58px) !important;
    line-height: .88;
    letter-spacing: .015em !important;
  }

  .page-home .hero-subtitle {
    padding: 6px 10px;
    font-size: clamp(11px, 3vw, 13px) !important;
    letter-spacing: .13em;
  }

  .page-home .hero-tagline {
    max-width: 420px;
    margin: 10px auto 16px;
    padding: 0;
    border: 0;
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.45;
    text-wrap: balance;
  }
}

/* Keep the hero copy on the darker left side and reveal the photo on the right. */
.page-home .hero-home .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-home .hero-home .hero-title {
  max-width: 100%;
}

.page-home .hero-home .hero-subtitle {
  border-right: 0;
  border-left: 3px solid #ff5265;
}

.page-home .hero-home .hero-tagline {
  margin-right: auto;
  margin-left: 0;
  padding-right: 0;
  padding-left: 16px;
  border-right: 0;
  border-left: 2px solid rgba(255, 82, 101, .8);
}

.page-home .hero-home .hero-actions {
  justify-content: flex-start;
}

@media (max-width: 700px) {
  .page-home .hero-home {
    background-image:
      linear-gradient(90deg, rgba(7, 19, 34, .82) 0%, rgba(7, 19, 34, 0) 100%),
      linear-gradient(180deg, transparent 0%, transparent 43%, rgba(7, 19, 34, .18) 49%, #071322 80%),
      url("../../public/images/community-hero-640.webp");
    background-position: center top;
    background-size: 100% 100%, 100% 100%, 100% auto;
  }

  .page-home .hero-home .hero-inner {
    width: calc(100% - 32px);
    max-width: 520px;
    margin: 0 auto 0 16px;
    align-items: flex-start;
    text-align: left;
  }

  .page-home .hero-home .hero-title {
    margin-right: auto;
    margin-left: 0;
  }

  .page-home .hero-home .hero-subtitle {
    margin-right: auto;
    margin-left: 0;
  }

  .page-home .hero-home .hero-tagline {
    margin: 10px auto 16px 0;
    padding: 0 0 0 10px;
    border-right: 0;
    border-left: 2px solid rgba(255, 82, 101, .8);
  }

  .page-home .hero-home .hero-actions {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   26. FEATURED PUBLICATIONS — DESKTOP GRID AND MOBILE SWIPE RAIL
   ========================================================================== */
.page-home .section-topics {
  overflow: hidden;
  padding: clamp(52px, 6vw, 76px) 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(215, 38, 61, .07), transparent 36%),
    #f6f8fb;
}

.page-home .section-topics .section-head {
  align-items: flex-end;
  margin-bottom: 28px;
}

.page-home .section-topics .section-head .eyebrow {
  margin-bottom: 8px;
  color: #b01e31;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.page-home .section-topics .section-title {
  margin: 0;
  color: #172333;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.page-home .section-topics .link-more {
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(215, 38, 61, .18);
  border-radius: 13px;
  background: #fff;
  color: #b01e31;
  font-size: 13px;
  font-weight: 750;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.page-home .section-topics .link-more:hover {
  transform: translateY(-2px);
  border-color: #b01e31;
  background: #b01e31;
  color: #fff;
}

.page-home .section-topics .publication-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.page-home .section-topics .publication-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid rgba(23, 35, 51, .08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 35, 51, .06);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.page-home .section-topics .publication-card:hover {
  transform: translateY(-5px);
  border-color: rgba(215, 38, 61, .2);
  box-shadow: 0 18px 36px rgba(23, 35, 51, .12);
}

.page-home .section-topics .publication-card-image {
  position: relative;
  display: grid;
  width: 100%;
  height: auto;
  flex: none;
  aspect-ratio: 1.38 / 1;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, .22), transparent 33%),
    linear-gradient(145deg, #9f1d31, #4a1424);
}

.page-home .section-topics .publication-card:nth-child(4n + 2) .publication-card-image {
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, .26), transparent 33%),
    linear-gradient(145deg, #126b78, #123746);
}

.page-home .section-topics .publication-card:nth-child(4n + 3) .publication-card-image {
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, .25), transparent 33%),
    linear-gradient(145deg, #5369a7, #263251);
}

.page-home .section-topics .publication-card:nth-child(4n) .publication-card-image {
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, .25), transparent 33%),
    linear-gradient(145deg, #c17a31, #703e24);
}

.page-home .section-topics .publication-card-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.page-home .section-topics .publication-card:hover .publication-card-image img {
  transform: scale(1.05);
}

.page-home .section-topics .publication-card-placeholder {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 22px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-size: 34px;
  backdrop-filter: blur(8px);
}

.page-home .section-topics .publication-image-overlay {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
  background: linear-gradient(180deg, transparent 38%, rgba(12, 22, 36, .56));
}

.page-home .section-topics .publication-overlay-badge {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(17, 29, 43, .62);
  font-size: 11px;
  backdrop-filter: blur(8px);
}

.page-home .section-topics .publication-card-content {
  min-width: 0;
  min-height: 154px;
  flex: 1;
  padding: 18px 18px 16px;
}

.page-home .section-topics .publication-card-title {
  margin: 0;
  color: #172333;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.4;
}

.page-home .section-topics .publication-card-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-home .section-topics .publication-card-subtitle {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 0;
  color: #718094;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-home .section-topics .publication-card-actions {
  gap: 8px;
  padding-top: 16px;
}

.page-home .section-topics .publication-card-actions .btn {
  min-height: 38px;
  justify-content: center;
  padding: 8px 11px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 900px) and (min-width: 641px) {
  .page-home .section-topics .publication-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .page-home .section-topics .publication-card-image { aspect-ratio: 1.8 / 1; }
}

@media (max-width: 640px) {
  .page-home .section-topics { padding: 42px 0 36px; }

  .page-home .section-topics .section-head {
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
  }

  .page-home .section-topics .section-title {
    font-size: clamp(23px, 6vw, 30px);
  }

  .page-home .section-topics .link-more {
    min-height: 38px;
    flex: none;
    gap: 5px;
    padding: 0 10px;
    font-size: 11px;
  }

  .page-home .section-topics .publication-grid {
    grid-auto-columns: minmax(0, 84%);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -20px;
    padding: 2px 20px 18px;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(176, 30, 49, .55) rgba(23, 35, 51, .08);
    scrollbar-width: thin;
  }

  .page-home .section-topics .publication-card,
  .page-home .section-topics .publication-card:nth-child(n + 3) {
    display: flex;
    min-height: 0;
    flex-direction: column;
    scroll-snap-align: start;
  }

  .page-home .section-topics .publication-card-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 1.7 / 1;
  }

  .page-home .section-topics .publication-card-content {
    min-height: 146px;
    padding: 16px;
  }

  .page-home .section-topics .publication-card-content h3 { font-size: 16px; }
  .page-home .section-topics .publication-card-actions { padding-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .section-topics .publication-card,
  .page-home .section-topics .publication-card-image img,
  .page-home .section-topics .link-more { transition: none; }
}

/* ==========================================================================
   27. PUBLICATIONS CATALOG — RESPONSIVE GRID AND MOBILE SWIPE
   ========================================================================== */
.publication-list-section {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(215, 38, 61, .06), transparent 34%),
    #f6f8fb;
}

.publication-list-section .page-title {
  margin-bottom: 8px;
  color: #172333;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.publication-list-section .lead {
  margin: 0 0 28px;
  color: #718094;
  font-size: 16px;
}

.publication-list-section .publication-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.publication-list-section .publication-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(23, 35, 51, .08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 35, 51, .06);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.publication-list-section .publication-card:hover {
  transform: translateY(-5px);
  border-color: rgba(215, 38, 61, .2);
  box-shadow: 0 18px 36px rgba(23, 35, 51, .12);
}

.publication-list-section .publication-card-image {
  position: relative;
  display: grid;
  width: 100%;
  height: auto;
  flex: none;
  aspect-ratio: 1.65 / 1;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, .22), transparent 33%),
    linear-gradient(145deg, #9f1d31, #4a1424);
}

.publication-list-section .publication-card:nth-child(4n + 2) .publication-card-image {
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, .26), transparent 33%),
    linear-gradient(145deg, #126b78, #123746);
}

.publication-list-section .publication-card:nth-child(4n + 3) .publication-card-image {
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, .25), transparent 33%),
    linear-gradient(145deg, #5369a7, #263251);
}

.publication-list-section .publication-card:nth-child(4n) .publication-card-image {
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, .25), transparent 33%),
    linear-gradient(145deg, #c17a31, #703e24);
}

.publication-list-section .publication-card-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.publication-list-section .publication-card:hover .publication-card-image img {
  transform: scale(1.05);
}

.publication-list-section .publication-card-placeholder {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 22px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-size: 34px;
  backdrop-filter: blur(8px);
}

.publication-list-section .publication-image-overlay {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
  background: linear-gradient(180deg, transparent 38%, rgba(12, 22, 36, .56));
}

.publication-list-section .publication-overlay-badge {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(17, 29, 43, .62);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(8px);
}

.publication-list-section .publication-card:hover .publication-overlay-badge,
.publication-list-section .publication-card-image:focus-visible .publication-overlay-badge {
  opacity: 1;
  transform: translateY(0);
}

.publication-list-section .publication-card-content {
  min-width: 0;
  min-height: 150px;
  flex: 1;
  padding: 20px;
}

.publication-list-section .publication-card-title {
  margin: 0;
  color: #172333;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.4;
}

.publication-list-section .publication-card-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.publication-list-section .publication-card-subtitle {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: #718094;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.publication-list-section .publication-card-actions { padding-top: 16px; }

.publication-list-section .publication-card-actions .btn {
  min-height: 40px;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 900px) and (min-width: 641px) {
  .publication-list-section .publication-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .publication-list-section { padding-top: 40px; padding-bottom: 42px; }
  .publication-list-section .page-title { font-size: clamp(30px, 8vw, 38px); }
  .publication-list-section .lead { margin-bottom: 20px; font-size: 14px; }

  .publication-list-section .publication-grid {
    grid-auto-columns: minmax(0, 86%);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -20px;
    padding: 2px 20px 18px;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(176, 30, 49, .55) rgba(23, 35, 51, .08);
    scrollbar-width: thin;
  }

  .publication-list-section .publication-card {
    min-height: 0;
    scroll-snap-align: start;
  }

  .publication-list-section .publication-card-image { aspect-ratio: 1.75 / 1; }
  .publication-list-section .publication-card-content { min-height: 142px; padding: 17px; }
  .publication-list-section .publication-card-title { font-size: 16px; }
  .publication-list-section .publication-card-actions { padding-top: 13px; }
  .publication-list-section .publication-card-actions .btn { min-height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .publication-list-section .publication-card,
  .publication-list-section .publication-card-image img,
  .publication-list-section .publication-overlay-badge { transition: none; }
}

/* Keep footer partner logos in one compact, horizontally scrolling row. */
.footer-partners {
  overflow: hidden;
}

.footer-partners-heading {
  margin-bottom: 20px;
}

.partner-carousel {
  width: 100%;
  overflow: hidden;
}

.partner-track {
  display: flex;
  width: max-content;
  animation: partner-logo-scroll 36s linear infinite;
  will-change: transform;
}

.partner-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
}

.partner-logo-card {
  display: inline-flex;
  flex: 0 0 200px;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 88px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
}

.partner-logo-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.partner-logo-card.partner-logo-square img {
  max-width: 64px;
  max-height: 60px;
}

.partner-logo-card.partner-logo-rotary img {
  max-width: 154px;
}

.partner-carousel:hover .partner-track,
.partner-carousel:focus-within .partner-track {
  animation-play-state: paused;
}

@keyframes partner-logo-scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .footer-partners { padding: 26px 0 30px; }
  .footer-partners-heading { margin-bottom: 16px; }
  .partner-group { gap: 12px; padding-right: 12px; }
  .partner-logo-card { flex-basis: 164px; width: 164px; height: 72px; padding: 10px 14px; }
  .partner-logo-card img { max-height: 46px; }
  .partner-logo-card.partner-logo-square img { max-width: 52px; max-height: 50px; }
  .partner-logo-card.partner-logo-rotary img { max-width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .partner-track { animation: none; }
  .partner-group-clone { display: none; }
}

/* ==========================================================================
   28. SITE NAVIGATION — REFINED DESKTOP LINKS AND MOBILE MENU
   ========================================================================== */
.site-header {
  border-bottom-color: rgba(23, 35, 51, .08);
  box-shadow: 0 4px 20px rgba(23, 35, 51, .045);
}

.header-inner {
  column-gap: clamp(18px, 2.2vw, 32px);
}

.header-inner > .brand {
  flex: 0 0 auto;
  line-height: 0;
}

.header-inner > .brand .brand-logo {
  width: clamp(112px, 11vw, 146px);
  max-height: 62px;
}

.main-nav {
  gap: clamp(10px, 1.4vw, 20px);
}

.main-nav ul {
  align-items: center;
  gap: clamp(4px, .7vw, 10px);
}

.main-nav ul > li:not(.nav-more-item) > a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 10px;
  border-radius: 11px;
  color: #435064;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: color .18s ease, background-color .18s ease;
}

.main-nav ul > li:not(.nav-more-item) > a:hover,
.main-nav ul > li:not(.nav-more-item) > a:focus-visible {
  background: #fff3f4;
  color: #b01e31;
}

.main-nav ul > li:not(.nav-more-item) > a:focus-visible,
.header-actions a:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(215, 38, 61, .28);
  outline-offset: 3px;
}

.header-actions {
  gap: 8px;
}

.header-actions .lang-switch {
  gap: 3px;
  padding: 0 7px;
  border: 1px solid rgba(23, 35, 51, .08);
  border-radius: 11px;
  background: #f7f8fa;
  font-size: 12px;
}

.header-actions .lang-switch a {
  padding: 7px 5px;
  color: #526074;
  transition: color .18s ease;
}

.header-actions .lang-switch a.active { color: #b01e31; }

.header-actions .header-join,
.header-actions .header-donate {
  min-height: 40px;
  justify-content: center;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 750;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.header-actions .header-join {
  border-color: rgba(23, 35, 51, .12);
  background: #fff;
}

.header-actions .header-join:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 38, 61, .34);
  background: #fff7f8;
}

.header-actions .header-donate {
  box-shadow: 0 5px 13px rgba(215, 38, 61, .2);
}

.header-actions .header-donate:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(215, 38, 61, .28);
}

.nav-toggle { display: none; }

@media (max-width: 1280px) {
  .header-inner {
    min-height: 72px;
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 0;
  }

  .header-inner > .brand .brand-logo {
    width: clamp(112px, 15vw, 140px);
  }

  .nav-toggle {
    display: inline-flex;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 auto;
    padding: 0;
    appearance: none;
    border: 1px solid rgba(23, 35, 51, .1);
    border-radius: 15px;
    background: linear-gradient(145deg, #fff, #f4f6f9);
    box-shadow: 0 5px 14px rgba(23, 35, 51, .08);
    color: #243247;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    -webkit-appearance: none;
  }

  .nav-toggle:hover,
  .nav-toggle[aria-expanded="true"] {
    transform: translateY(-1px);
    border-color: rgba(215, 38, 61, .28);
    background: #fff3f4;
    box-shadow: 0 7px 18px rgba(215, 38, 61, .12);
    color: #b01e31;
  }

  .nav-toggle span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1;
  }

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    min-width: 0;
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid rgba(23, 35, 51, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 38px rgba(23, 35, 51, .12);
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .main-nav ul {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }

  .main-nav ul > li:not(.nav-more-item) {
    border: 0;
  }

  .main-nav ul > li:not(.nav-more-item) > a {
    display: flex;
    min-height: 46px;
    padding: 0 13px;
    border-radius: 11px;
    font-size: 14px;
  }

  .main-nav .nav-more-item {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(23, 35, 51, .08);
  }

  .main-nav .nav-more-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 10px;
    background: #f7f8fa;
    color: #58667a;
    font-size: 13px;
    font-weight: 600;
    transition: background-color .18s ease, color .18s ease;
  }

  .main-nav .nav-more-link:hover {
    background: #fff3f4;
    color: #b01e31;
  }

  .header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(23, 35, 51, .08);
  }
}

@media (max-width: 480px) {
  .header-inner { min-height: 64px; }
  .header-inner > .brand .brand-logo { width: 112px; max-height: 52px; }
  .main-nav { padding: 11px; border-radius: 15px; }
  .main-nav.open { gap: 9px; }
  .main-nav .nav-more-item { gap: 5px; }
  .main-nav .nav-more-link { min-height: 40px; padding: 6px 8px; font-size: 12px; }
  .header-actions { gap: 7px; }
  .header-actions .header-join,
  .header-actions .header-donate { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav a,
  .header-actions a,
  .nav-toggle { transition: none; }
}

/* ==========================================================================
   29. MOBILE HOMEPAGE PANELS — READABLE, SWIPEABLE CARDS
   ========================================================================== */
@media (max-width: 640px) {
  body.page-home .home-resource-panels {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 16px 18px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(176, 30, 49, .55) rgba(23, 35, 51, .08);
    scrollbar-width: thin;
  }

  body.page-home .home-resource-panels > .section {
    width: min(86vw, 340px);
    min-width: min(86vw, 340px);
    flex: 0 0 min(86vw, 340px);
    padding: 0;
    scroll-snap-align: start;
  }

  body.page-home .home-resource-panels .gallery-home-cta-inner,
  body.page-home .home-resource-panels .observatory-inner {
    width: 100%;
    height: auto;
    min-height: 250px;
    justify-content: space-between;
    gap: 18px !important;
    padding: 20px !important;
    border-radius: 20px;
  }

  body.page-home .home-resource-panels .gallery-home-cta-inner {
    border: 1px solid rgba(23, 35, 51, .09);
    background:
      radial-gradient(ellipse at 100% 0%, rgba(215, 38, 61, .1), transparent 45%),
      #fff;
    box-shadow: 0 10px 28px rgba(23, 35, 51, .08);
  }

  body.page-home .home-resource-panels .observatory-inner {
    background: linear-gradient(145deg, #831629, #a50e26) !important;
    box-shadow: 0 10px 28px rgba(112, 14, 33, .2);
  }

  body.page-home .home-resource-panels .gallery-home-cta .eyebrow,
  body.page-home .home-resource-panels .observatory-inner .eyebrow {
    font-size: 10px;
    letter-spacing: .08em;
    line-height: 1.4;
  }

  body.page-home .home-resource-panels .gallery-home-cta .section-title,
  body.page-home .home-resource-panels .observatory-title {
    margin: 5px 0 8px !important;
    font-size: clamp(18px, 5vw, 22px) !important;
    line-height: 1.25;
    overflow-wrap: normal;
  }

  body.page-home .home-resource-panels .gallery-home-cta p,
  body.page-home .home-resource-panels .observatory-sub {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  body.page-home .home-resource-panels .gallery-home-cta .pill,
  body.page-home .home-resource-panels .observatory-action .pill {
    display: inline-flex;
    width: auto !important;
    min-width: 0;
    min-height: 44px;
    align-self: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 6px 5px 14px !important;
    border-radius: 999px;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-align: left;
    white-space: normal !important;
  }

  body.page-home .home-resource-panels .gallery-home-cta .pill-arrow,
  body.page-home .home-resource-panels .observatory-action .pill-arrow {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    font-size: 17px;
  }

  body.page-home .section-topics .publication-grid {
    display: flex;
    width: auto;
    grid-template-columns: none;
    grid-auto-columns: auto;
    grid-auto-flow: initial;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -16px;
    padding: 2px 16px 18px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(176, 30, 49, .55) rgba(23, 35, 51, .08);
    scrollbar-width: thin;
  }

  body.page-home .section-topics .publication-card,
  body.page-home .section-topics .publication-card:nth-child(n + 3) {
    display: flex;
    width: min(82vw, 320px);
    min-width: min(82vw, 320px);
    max-width: 320px;
    min-height: 0;
    flex: 0 0 min(82vw, 320px);
    flex-direction: column;
    scroll-snap-align: start;
  }

  body.page-home .section-topics .publication-card-image {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: none;
    aspect-ratio: 1.65 / 1;
  }

  body.page-home .section-topics .publication-card-content {
    min-height: 146px;
    justify-content: flex-start;
    padding: 16px;
  }

  body.page-home .section-topics .publication-card-content h3 {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.4;
  }

  body.page-home .section-topics .publication-card-actions {
    gap: 8px;
    padding-top: 14px;
  }

  body.page-home .section-topics .publication-card-actions .btn {
    width: auto;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .home-resource-panels,
  body.page-home .section-topics .publication-grid { scroll-behavior: auto; }
}

/* The Knowledge Base panel is red only on small screens; keep text contrast scoped to it. */
@media (max-width: 768px) {
  .page-home .home-resource-panels .observatory-inner {
    color: rgba(255, 255, 255, .92);
  }

  .page-home .home-resource-panels .observatory-inner .eyebrow {
    color: #ffd9de;
  }

  .page-home .home-resource-panels .observatory-title {
    color: #fff;
  }

  .page-home .home-resource-panels .observatory-sub {
    color: rgba(255, 255, 255, .86);
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 640px) {
  .page-home .home-resource-panels .observatory-sub {
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    line-height: 1.5;
  }
}

/* Paired donate and screening calls to action */
.page-home .home-cta-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

.page-home .home-cta-pair > .cta-band,
.page-home .home-cta-pair > .screening-app-cta {
  min-width: 0;
  min-height: 190px;
  padding: 20px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(140deg, #b9152b 0%, #d7263d 58%, #a91025 100%);
  box-shadow: 0 16px 36px rgba(114, 13, 30, .2);
}

.page-home .home-cta-pair > .screening-app-cta {
  background: linear-gradient(140deg, #a91025 0%, #c91e35 58%, #8f0d20 100%);
}

.page-home .home-cta-pair .cta-inner,
.page-home .home-cta-pair .screening-app-cta-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}

.page-home .home-cta-pair .cta-text > p,
.page-home .home-cta-pair .whf-membership,
.page-home .home-cta-pair .screening-app-eyebrow,
.page-home .home-cta-pair .screening-app-cta-inner > div > p {
  display: none;
}

.page-home .home-cta-pair .cta-text h2,
.page-home .home-cta-pair .screening-app-cta h2 {
  color: #fff;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(18px, 2.2vw, 27px);
  line-height: 1.2;
  margin-bottom: 0;
}

.page-home .home-cta-pair .cta-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.page-home .home-cta-pair .pill {
  min-width: 0;
  min-height: 42px;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #fff;
  color: #a91025;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
}

.page-home .home-cta-pair .pill-outline {
  background: transparent;
  color: #fff;
}

.page-home .home-cta-pair .screening-app-cta .pill {
  width: 100%;
}

@media (max-width: 640px) {
  .page-home .home-cta-pair {
    gap: 8px;
    padding: 16px 14px;
  }

  .page-home .home-cta-pair > .cta-band,
  .page-home .home-cta-pair > .screening-app-cta {
    min-height: 158px;
    padding: 14px 12px;
    border-radius: 14px;
  }

  .page-home .home-cta-pair .cta-actions {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .page-home .home-cta-pair .pill {
    min-height: 36px;
    justify-content: center;
    padding: 6px 5px;
    font-size: 10px;
    text-align: center;
  }

  .page-home .home-cta-pair .cta-actions .pill-arrow {
    display: none;
  }
}

@media (max-width: 380px) {
  .page-home .home-cta-pair {
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .page-home .home-cta-pair > .cta-band,
  .page-home .home-cta-pair > .screening-app-cta {
    min-height: 148px;
    padding: 12px 9px;
  }

  .page-home .home-cta-pair .cta-text h2,
  .page-home .home-cta-pair .screening-app-cta h2 {
    font-size: 16px;
  }

  .page-home .home-cta-pair .pill {
    font-size: 10px;
  }
}
