/* =====================================================================
   ACMM CMS — Home page (modernized, WCAG 2.2 AA)
   Design system: navy/gold, depth via layered shadows, generous rhythm,
   subtle motion (respects prefers-reduced-motion). All text passes AA.
   ===================================================================== */

.home-hero,
.home-section,
.home-rss-bottom {
  /* Design tokens — keep in sync with theme variables */
  --home-navy: #071421;
  --home-navy-2: #0d223b;
  --home-gold: #d6a94a;
  --home-gold-soft: #f4d88f;
  --home-gold-bright: #f7cf65;
  --home-ink: #0f172a;
  --home-muted: #26364a;          /* AA: 12.3:1 on white, 6.7:1 on theme4 bg */
  --home-link: #12365c;           /* AA: 12.3:1 on white */
  --home-border: color-mix(in srgb, var(--home-navy) 14%, rgba(15, 23, 42, 0.12));
  --home-soft: color-mix(in srgb, var(--acmm-bg, #f8fafc) 78%, #fff);
  --home-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 46px rgba(15, 23, 42, 0.09);
  --home-card-shadow-hover: 0 1px 2px rgba(15, 23, 42, 0.06), 0 28px 60px rgba(15, 23, 42, 0.13);
  --home-radius: 24px;
  --home-radius-lg: 28px;
  --home-radius-pill: 999px;
  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================================================
   HERO
   ===================================================================== */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.6rem, 7vw, 6.25rem) 0 clamp(3.8rem, 7vw, 6.5rem);
  color: #ffffff;
  background: var(--home-navy);
  isolation: isolate;
}

/* Layered gradient mesh background — depth without an image */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, color-mix(in srgb, var(--home-navy-2) 90%, transparent), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 10%, color-mix(in srgb, var(--home-gold) 16%, transparent), transparent 55%),
    radial-gradient(ellipse 90% 70% at 75% 90%, color-mix(in srgb, var(--home-navy-2) 70%, transparent), transparent 60%),
    linear-gradient(125deg, #050f1d 0%, var(--home-navy) 48%, var(--home-navy-2) 100%);
}

/* Soft accent blobs (decorative) */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 18%, rgba(244, 216, 143, 0.14), transparent 34%);
  pointer-events: none;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(125deg, rgba(3, 10, 20, 0.96) 0%, rgba(7, 18, 34, 0.9) 48%, rgba(13, 34, 59, 0.82) 100%),
    radial-gradient(circle at 78% 18%, rgba(244, 216, 143, 0.18), transparent 34%),
    url("/static/images/home-hero-fallback.svg") center / cover no-repeat;
  pointer-events: none;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.home-hero--has-media .home-hero__bg { display: none; }

.home-hero__media--image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Dark overlay for image/video so text stays AA-compliant */
.home-hero__media::after,
.home-hero__media--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(3, 10, 20, 0.97) 0%, rgba(7, 18, 34, 0.92) 50%, rgba(7, 18, 34, 0.82) 100%),
    radial-gradient(circle at 78% 18%, rgba(244, 216, 143, 0.16), transparent 34%);
}

.home-hero__media--video { opacity: 1; }
.home-hero--has-video::after {
  background:
    linear-gradient(115deg, rgba(3, 10, 20, 0.9) 0%, rgba(7, 18, 34, 0.82) 48%, rgba(7, 18, 34, 0.7) 100%),
    radial-gradient(circle at 78% 18%, rgba(244, 216, 143, 0.12), transparent 34%);
}

.home-hero__glow {
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -10%;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--home-gold) 28%, transparent) 0%, transparent 68%);
  pointer-events: none;
}

/* Layout grid */
.home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 3.6vw, 2.5rem);
  align-items: center;
  max-width: var(--acmm-layout-xwide, 84rem);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    gap: clamp(2rem, 4.2vw, 3.4rem);
  }
}

.home-hero__copy {
  max-width: 46rem;
  text-align: left;
}

/* Eyebrow pill */
.home-hero__eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffe7a3;                       /* AA: 15.2:1 on navy */
  margin: 0 0 1rem;
  padding: 0.3rem 0.7rem;
  background: rgba(244, 216, 143, 0.14);
  border: 1px solid rgba(244, 216, 143, 0.32);
  border-radius: var(--home-radius-pill);
}

.home-hero__title {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(2.25rem, 4.6vw, 3.85rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 0 0 1.1rem;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  max-width: 48rem;
  text-wrap: balance;
}

.home-hero__motto {
  margin: 0 0 0.85rem;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(1.08rem, 1.75vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  text-wrap: pretty;
}

.home-hero__vision {
  max-width: 46rem;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 500;
  line-height: 1.65;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  text-wrap: pretty;
}

/* Status callout box */
.home-hero__status {
  max-width: 48rem;
  margin: 1.1rem 0 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 3px solid var(--home-gold-bright);
  border-radius: 16px;
  background: rgba(3, 10, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: clamp(0.96rem, 1.2vw, 1.05rem);
  line-height: 1.68;
  color: #ffffff;
}

/* Action buttons */
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.85rem;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.home-hero__btn-primary,
.home-hero__btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.95rem;
  padding: 0.82rem 1.5rem;
  font-weight: 700;
  border-radius: var(--home-radius-pill);
  text-decoration: none;
  transition: transform 0.22s var(--home-ease), box-shadow 0.22s var(--home-ease), background 0.22s ease, border-color 0.22s ease;
}

.home-hero__btn-primary {
  background: var(--home-gold-bright);     /* #f7cf65 — text #071421 = 12.4:1 */
  border: 1px solid var(--home-gold-bright);
  color: #071421;
  box-shadow: 0 12px 28px rgba(247, 207, 101, 0.32);
}

.home-hero__btn-primary:hover,
.home-hero__btn-primary:focus-visible {
  color: #071421;
  background: #eabd4f;                      /* text #071421 = 10.5:1 */
  border-color: #eabd4f;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(247, 207, 101, 0.42);
}

.home-hero__btn-outline {
  background: rgba(7, 20, 33, 0.7);
  border: 1px solid #ffffff;
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-hero__btn-outline:hover,
.home-hero__btn-outline:focus-visible {
  background: rgba(7, 20, 33, 0.92);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

/* Floating info card (glass over navy) */
.home-hero__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--home-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: #ffffff;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.3),
    inset 0 4px 0 var(--home-gold);
  max-width: 460px;
  justify-self: end;
}

.home-hero__card::after {
  content: "";
  position: absolute;
  inset: auto 1.35rem 1.2rem 1.35rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--home-gold) 55%, transparent), transparent);
}

.home-hero__card-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--home-navy) 78%, #334155);
  margin: 0 0 0.75rem;
}

.home-hero__card-motto {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--home-navy);
  margin: 0 0 1.1rem;
  letter-spacing: -0.03em;
}

.home-hero__card-vision {
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  line-height: 1.72;
  color: var(--home-ink);
  margin: 0;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

/* =====================================================================
   HOME SECTIONS (shared)
   ===================================================================== */
.home-section {
  padding: clamp(3.25rem, 6vw, 5.25rem) 0;
  position: relative;
}

.home-section--highlights,
.home-section--events,
.home-section--quick,
.home-rss-bottom {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--home-soft) 84%, #fff), #fff);
}

.home-section--news {
  background:
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--home-soft) 58%, #fff));
}

/* Section heading */
.home-section__head {
  max-width: 58rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.home-section__head--split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.home-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.6rem;
  color: var(--home-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-section__eyebrow::before {
  content: "";
  width: 2.15rem;
  height: 2px;
  background: var(--home-gold);
}

.home-section__title {
  margin: 0;
  max-width: 58rem;
  color: var(--home-navy);
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(1.65rem, 3.1vw, 2.35rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.home-section__link,
.home-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--home-link);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease;
}

.home-section__link:hover,
.home-card-link:hover {
  color: var(--home-navy);
  text-decoration: underline;
}

.home-section__link--pill {
  min-height: 2.6rem;
  padding: 0.62rem 1rem;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-pill);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.home-section__link--pill:hover {
  background: #fff;
  border-color: color-mix(in srgb, var(--home-navy) 22%, rgba(15, 23, 42, 0.14));
  text-decoration: none;
}

/* =====================================================================
   HIGHLIGHT FEATURE (big card)
   ===================================================================== */
.home-highlight-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-top: 4px solid var(--home-gold);
  border-radius: var(--home-radius-lg);
  background: #ffffff;
  box-shadow: var(--home-card-shadow);
  transition: box-shadow 0.3s var(--home-ease), transform 0.3s var(--home-ease);
}

.home-highlight-feature:hover {
  box-shadow: var(--home-card-shadow-hover);
  transform: translateY(-3px);
}

.home-highlight-feature--text-only { display: block; }

.home-highlight-feature__media {
  min-height: clamp(18rem, 32vw, 27rem);
  background: color-mix(in srgb, var(--home-navy) 8%, #f4f7fb);
}

.home-highlight-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-highlight-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 3.15rem);
}

.home-feature-card__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-feature-card__kicker time {
  color: var(--home-muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.home-highlight-feature h3 {
  margin: 0;
  color: var(--home-navy);
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.home-highlight-feature h3 a,
.home-highlight-feature h3 a:hover {
  color: inherit;
  text-decoration: none;
}

.home-highlight-feature p:not(.home-feature-card__kicker) {
  margin: 1rem 0 0;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.75;
}

.home-highlight-feature__link { margin-top: 1.4rem; }

/* =====================================================================
   NEWS / FEATURE / QUICK GRIDS
   ===================================================================== */
.home-feature-grid,
.home-news-grid,
.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.3rem);
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

/* Base card style */
.home-feature-card,
.home-news-card,
.home-quick-card,
.home-event-card,
.home-rss-bottom .feed-card {
  border: 1px solid var(--home-border);
  background: #ffffff;
  border-radius: var(--home-radius);
  box-shadow: var(--home-card-shadow);
  transition: box-shadow 0.28s var(--home-ease), transform 0.28s var(--home-ease), border-color 0.28s ease;
}

.home-feature-card,
.home-news-card,
.home-quick-card { padding: clamp(1.15rem, 2vw, 1.5rem); }

.home-feature-card:hover,
.home-news-card:hover,
.home-quick-card:hover,
.home-rss-bottom .feed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-card-shadow-hover);
  border-color: color-mix(in srgb, var(--home-navy) 16%, rgba(15, 23, 42, 0.12));
}

/* Icons */
.home-feature-card__icon,
.home-quick-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: var(--home-radius-pill);
  background: color-mix(in srgb, var(--home-gold) 16%, #fff);
  color: var(--home-navy);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--home-gold) 28%, transparent);
}

.home-feature-card--news-update {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-feature-card__media {
  margin: -1.5rem -1.5rem 1.1rem;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--home-navy) 8%, #f4f7fb);
}

.home-feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card text */
.home-feature-card h3,
.home-news-card h3,
.home-event-card h3,
.home-quick-card h3 {
  margin: 0;
  color: var(--home-navy);
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.32;
  text-wrap: balance;
}

.home-feature-card h3 a,
.home-news-card h3 a,
.home-event-card h3 a {
  color: var(--home-navy);
  text-decoration: none;
}

.home-feature-card h3 a:hover,
.home-news-card h3 a:hover,
.home-event-card h3 a:hover {
  color: var(--home-navy);
  text-decoration: underline;
}

.home-feature-card p,
.home-news-card p,
.home-event-card p,
.home-quick-card p {
  margin: 0.75rem 0 0;
  color: var(--home-muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.home-feature-card__link {
  margin-top: auto;
  padding-top: 1rem;
}

/* News card meta */
.home-news-card__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-news-card__meta time,
.home-feature-card__kicker time,
.home-news-card__meta span {
  color: var(--home-muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.home-news-card--cms {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-news-card__thumb {
  margin: -1.5rem -1.5rem 1rem;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--home-navy) 8%, #f4f7fb);
  overflow: hidden;
}

.home-news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--home-ease);
}

.home-news-card:hover .home-news-card__thumb img {
  transform: scale(1.04);
}

.home-news-card__link {
  margin-top: auto;
  padding-top: 1rem;
}

/* =====================================================================
   EVENTS
   ===================================================================== */
.home-event-list {
  display: grid;
  gap: clamp(0.95rem, 1.8vw, 1.2rem);
}

.home-event-card {
  --event-home-accent: color-mix(in srgb, var(--event-color, var(--home-navy)) 18%, var(--home-navy));
  display: grid;
  grid-template-columns: minmax(10rem, 0.26fr) 1fr;
  gap: clamp(1.05rem, 2.4vw, 1.55rem);
  align-items: stretch;
  position: relative;
  overflow: hidden;
  padding: clamp(1.05rem, 2.4vw, 1.5rem);
  border: 1px solid var(--home-border);
  border-left: 5px solid var(--home-gold);
  background: #ffffff;
  box-shadow: var(--home-card-shadow);
  transition: box-shadow 0.28s var(--home-ease), transform 0.28s var(--home-ease), border-color 0.28s ease;
}

.home-event-card:hover,
.home-event-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--home-card-shadow-hover);
  border-left-color: color-mix(in srgb, var(--home-gold) 72%, var(--home-navy));
}

.home-event-card::before { content: none; }

.home-event-card--featured {
  grid-template-columns: minmax(11.5rem, 0.28fr) 1fr;
  min-height: 0;
  padding: clamp(1.2rem, 2.8vw, 1.8rem);
  border-left-width: 5px;
}

.home-event-card--featured::before { content: none; }

/* Date badge */
.home-event-card__date {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  min-height: 100%;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background:
    linear-gradient(165deg, var(--home-navy-2), var(--home-navy));
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(7, 20, 33, 0.22);
}

.home-event-card--featured .home-event-card__date {
  min-height: 0;
  justify-content: center;
  padding: 1.1rem;
}

.home-event-card__date time {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-event-card--featured .home-event-card__date time {
  font-size: 0.92rem;
  line-height: 1.35;
}

.home-event-card__date span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.3rem 0.6rem;
  border-radius: var(--home-radius-pill);
  background: color-mix(in srgb, var(--home-gold) 86%, #fff);
  color: color-mix(in srgb, var(--home-navy) 92%, #000);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-event-card > div:last-child { position: relative; }

.home-event-card__type {
  margin: 0 0 0.5rem;
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-event-card__type::after {
  content: "";
  display: block;
  width: 2.35rem;
  height: 2px;
  margin-top: 0.5rem;
  background: var(--home-gold);
}

.home-event-card h3 a,
.home-event-card h3 a:hover {
  color: var(--home-navy);
  text-decoration: none;
}

.home-event-card--featured h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: -0.025em;
}

.home-event-card__location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem !important;
  color: var(--home-link) !important;
  font-weight: 600;
}

.home-event-card__link { margin-top: 0.9rem; }

.home-event-card__link--button {
  align-self: flex-start;
  min-height: 2.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--home-radius-pill);
  border: 1px solid var(--home-border);
  background: #fff;
  color: var(--home-navy);
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-event-card__link--button:hover {
  border-color: color-mix(in srgb, var(--home-navy) 36%, rgba(15, 23, 42, 0.14));
  background: color-mix(in srgb, var(--home-soft) 70%, #fff);
  color: var(--home-navy);
  text-decoration: none;
  transform: translateY(-2px);
}

.home-event-card--featured .home-event-card__link--button { margin-top: 1.1rem; }

/* Empty events */
.home-event-empty {
  padding: clamp(1.3rem, 2.4vw, 1.85rem);
  border: 1px dashed color-mix(in srgb, var(--home-navy) 20%, rgba(15, 23, 42, 0.2));
  border-radius: var(--home-radius);
  background: rgba(255, 255, 255, 0.8);
  color: var(--home-muted);
  text-align: center;
}

.home-event-empty p { margin: 0; }

/* =====================================================================
   QUICK LINKS
   ===================================================================== */
.home-quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.7vw, 1.2rem);
}

.home-quick-grid__item { display: flex; }

.home-quick-card {
  position: relative;
  display: flex;
  min-height: 13.5rem;
  flex-direction: column;
  overflow: hidden;
  color: var(--home-navy);
  text-decoration: none;
  padding: clamp(1.2rem, 2vw, 1.55rem);
  border-top: 4px solid var(--home-gold);
  border-radius: var(--home-radius);
  background: #ffffff;
  box-shadow: var(--home-card-shadow);
  transition: box-shadow 0.28s var(--home-ease), transform 0.28s var(--home-ease), border-color 0.28s ease;
  flex: 1 1 auto;
}

.home-quick-card::before { content: none; }
.home-quick-card::after { content: none; }

.home-quick-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--home-card-shadow-hover);
  border-top-color: color-mix(in srgb, var(--home-gold) 72%, var(--home-navy));
  color: var(--home-navy);
}

.home-quick-card__icon {
  position: relative;
  margin-bottom: 0.95rem;
  background: color-mix(in srgb, var(--home-gold) 16%, #fff);
  color: var(--home-navy);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--home-gold) 28%, transparent);
}

.home-quick-card__index {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.2rem 0.45rem;
  border-radius: var(--home-radius-pill);
  background: var(--home-navy);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.home-quick-card:hover h3 { text-decoration: none; }

.home-quick-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--home-link);
  font-size: 0.86rem;
  font-weight: 800;
}

.home-quick-card__action::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--home-gold);
  transition: width 0.28s var(--home-ease);
}

.home-quick-card:hover .home-quick-card__action::before { width: 2.6rem; }

/* =====================================================================
   RSS BOTTOM
   ===================================================================== */
.home-rss-bottom {
  padding: clamp(3rem, 5vw, 4.25rem) 0;
}

.home-rss-bottom .feed-grid {
  gap: clamp(1rem, 1.8vw, 1.25rem);
}

.home-rss-bottom .feed-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.15rem, 2vw, 1.4rem);
  transform: none;
}

.home-rss-bottom .feed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-card-shadow-hover);
}

.home-rss-bottom .feed-card-thumb {
  margin: -1.4rem -1.4rem 1rem;
  border-radius: var(--home-radius) var(--home-radius) 0 0;
  overflow: hidden;
}

.home-rss-bottom .feed-source {
  color: color-mix(in srgb, var(--home-navy) 78%, #334155);
  font-weight: 700;
}

.home-rss-bottom .feed-card h3 a {
  color: var(--home-navy);
}

.home-rss-bottom .feed-summary {
  color: var(--home-muted);
  text-wrap: pretty;
}

.home-rss-bottom .feed-meta {
  color: var(--home-muted);
}

/* =====================================================================
   FOCUS & ACCESSIBILITY
   ===================================================================== */
.home-hero a:focus-visible,
.home-section a:focus-visible,
.home-rss-bottom a:focus-visible,
.home-hero button:focus-visible,
.home-section button:focus-visible {
  outline: 3px solid var(--home-gold-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991.98px) {
  .home-hero__card {
    max-width: none;
    justify-self: stretch;
  }

  .home-highlight-feature {
    grid-template-columns: 1fr;
  }

  .home-highlight-feature__media {
    min-height: clamp(14rem, 46vw, 22rem);
  }

  .home-event-card--featured {
    grid-template-columns: minmax(10rem, 0.34fr) 1fr;
    min-height: 0;
  }

  .home-feature-grid,
  .home-news-grid,
  .home-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-section__head--split {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .home-hero { padding-top: 3rem; }

  .home-feature-grid,
  .home-news-grid,
  .home-quick-grid,
  .home-event-card {
    grid-template-columns: 1fr;
  }

  .home-event-card__date { width: 100%; }

  .home-event-card--featured { grid-template-columns: 1fr; }

  .home-event-card--featured .home-event-card__date { min-height: 0; }

  .home-hero__actions a,
  .home-section__link--pill,
  .home-event-card__link--button {
    justify-content: center;
    width: 100%;
  }
}

/* =====================================================================
   REDUCED MOTION — disable transforms/animations for vestibular safety
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .home-highlight-feature,
  .home-feature-card,
  .home-news-card,
  .home-quick-card,
  .home-event-card,
  .home-rss-bottom .feed-card,
  .home-event-card__link--button,
  .home-hero__btn-primary,
  .home-hero__btn-outline,
  .home-news-card__thumb img {
    transition: none;
    transform: none;
  }

  .home-highlight-feature:hover,
  .home-feature-card:hover,
  .home-news-card:hover,
  .home-quick-card:hover,
  .home-event-card:hover,
  .home-rss-bottom .feed-card:hover,
  .home-event-card:focus-within {
    transform: none;
  }

  .home-news-card:hover .home-news-card__thumb img { transform: none; }
  .home-quick-card:hover .home-quick-card__action::before { width: 1.75rem; }

  /* Reveal: show immediately, no fade */
  .home-reveal { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   SCROLL REVEAL (progressive enhancement)
   Elements start hidden only when JS + motion are allowed; the JS adds
   .home-reveal-ready to <html> so non-JS users see content immediately.
   ===================================================================== */
html.home-reveal-ready .home-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--home-ease, ease), transform 0.6s var(--home-ease, ease);
}

html.home-reveal-ready .home-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children inside grids slightly for a pleasant cascade */
html.home-reveal-ready .home-news-grid .home-reveal,
html.home-reveal-ready .home-quick-grid .home-reveal {
  transition-delay: calc(var(--reveal-i, 0) * 60ms);
}
