/* =====================================================================
   Kingdom Stars Assembly — brand override for the Heartox template
   Loaded AFTER heartox.css so these win. Rebrands the template's green
   palette to KSA navy (#10256B) while keeping the gold secondary.
   ===================================================================== */
:root {
  /* Brand navy (from the KSA logo) replaces the template's greens */
  --heartox-primary: #10256B;
  --heartox-primary-rgb: 16, 37, 107;
  --heartox-base: #0B1A44;
  --heartox-base-rgb: 11, 26, 68;
  --heartox-text-dark: #0B1A44;
  --heartox-text-dark-rgb: 11, 26, 68;
  --heartox-text-gray: #6E7BA6;
  --heartox-text-gray-rgb: 110, 123, 166;

  /* Gold secondary kept — pairs with navy for the "Kingdom Stars" feel */
  --heartox-secondary: #E2AA01;
  --heartox-secondary-rgb: 226, 170, 1;

  /* KSA aliases used by our own components */
  --ksa-navy: #10256B;
  --ksa-navy-deep: #0B1A44;
  --ksa-gold: #E2AA01;

  /* Typography — Anton (bold condensed display) + Archivo (body), inspired by modern church sites */
  --heartox-font: "Archivo", system-ui, -apple-system, sans-serif;
  --heartox-heading-font: "Archivo", system-ui, sans-serif;
  --heartox-special-font: "Caveat", cursive;
  --ksa-display: "Anton", "Archivo Black", Impact, sans-serif;
}

/* Big statement titles use the Anton display face — ALL CAPS (CCI/GLT style) */
.ksa-hero__title,
.ksa-banner__title,
.sec-title__title,
.ksa-feature__title,
.ksa-event__title {
  font-family: var(--ksa-display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.04;
  text-transform: uppercase;
}
.sec-title__title { line-height: 1.08; }
.ksa-event__title { letter-spacing: .005em; }

/* A few literal greens in the template that aren't tied to the vars */
.topbar-one,
.main-header__inner__right,
.cta-one,
.cta-one-footer {
  background-color: var(--ksa-navy);
}

/* ---- Header / logo ---- */
/* Solid navy header so the white logo reads over the hero AND when sticky */
.main-header--one { background-color: var(--ksa-navy); }
/* Neutralise the template's two-tone white panels on the right of the header */
.main-header--one .main-header__inner,
.main-header--one .main-header__bottom,
.main-header--one .main-header__right,
.main-header--one .main-header__inner__right { background: transparent !important; }
.main-header__inner__right { display: none !important; }
/* Kill every decorative template shape/graphic in the header (keep only the logo) */
.main-header .shape,
.main-header .shape-one,
.main-header [class*="shape"],
.main-header svg,
.main-header__bottom::before,
.main-header__bottom::after,
.main-header__inner::before,
.main-header__inner::after { display: none !important; }
.main-header__logo::before,
.main-header__logo::after { display: none !important; }
.main-header--one.sticky-header--cloned,
.stricky-header.stricked-menu,
.sticky-header--cloned { background-color: var(--ksa-navy) !important; box-shadow: 0 6px 24px -12px rgba(0,0,0,.5); }
.main-header__logo img { width: auto; height: 56px; }
@media (max-width: 991px){ .main-header__logo img { height: 46px; } }
/* Nav link colours on the navy header */
.main-menu__list > li > a { color: rgba(255,255,255,.86); }
.main-menu__list > li > a:hover,
.main-menu__list > li.current > a { color: #fff; }

/* ---- Hero (single static slide, no carousel dependency) ---- */
.ksa-hero {
  position: relative;
  min-height: clamp(720px, 96vh, 1000px);
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background: var(--ksa-navy-deep);
}
.ksa-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  z-index: -2;
}
.ksa-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,26,68,.72) 0%, rgba(11,26,68,.52) 42%, rgba(11,26,68,.82) 100%),
    radial-gradient(ellipse at center, rgba(11,26,68,.18) 0%, rgba(11,26,68,.55) 100%);
}
/* Centered hero content (CCI-style) */
.ksa-hero .ksa-hero__title,
.ksa-hero .ksa-hero__text { margin-left: auto; margin-right: auto; }
.ksa-hero__btns { justify-content: center; }
.ksa-hero__times { border-left: 2px solid rgba(255,255,255,.25); }
@media (prefers-reduced-motion: reduce) {
  .ksa-hero__video { display: none; }
  .ksa-hero { background: var(--ksa-navy-deep) url(/images/hero-worship.jpg) center 18%/cover; }
}
.ksa-hero__sub {
  font-family: var(--heartox-special-font);
  color: var(--ksa-gold);
  font-size: 30px;
  line-height: 1;
  margin-bottom: 14px;
}
.ksa-hero__title {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 22px;
  max-width: 22ch;   /* wider so the headline flows to ~2-3 lines, not 4 */
}
.ksa-hero__text {
  color: rgba(255,255,255,.85);
  font-size: 1.075rem;
  max-width: 56ch;
  margin-bottom: 34px;
}
.ksa-hero__btns { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ksa-hero__times {
  margin-left: 6px; padding-left: 22px; border-left: 2px solid rgba(255,255,255,.25);
  font-size: .95rem; color: rgba(255,255,255,.9);
}
.ksa-hero__times b { color: var(--ksa-gold); display:block; font-family: var(--heartox-heading-font); }
@media (max-width: 575px){ .ksa-hero__times { border-left: 0; padding-left: 0; margin-left: 0; } }

/* ---- Generic section tagline star accent ---- */
.sec-title__tagline { color: var(--ksa-navy); font-weight: 700; }

/* ---- Info / feature cards on home ---- */
.ksa-quick { margin-top: -70px; position: relative; z-index: 3; }
.ksa-quick__card {
  background: #fff; border-radius: 16px; padding: 32px 28px; height: 100%;
  box-shadow: 0 24px 60px -30px rgba(11,26,68,.45);
  border-top: 4px solid var(--ksa-gold); transition: transform .3s ease;
}
.ksa-quick__card:hover { transform: translateY(-6px); }
.ksa-quick__icon { font-size: 40px; color: var(--ksa-navy); margin-bottom: 16px; display:block; }
.ksa-quick__card h4 { font-family: var(--heartox-heading-font); font-size: 1.25rem; color: var(--ksa-navy-deep); margin-bottom: 8px; }
.ksa-quick__card p { color: var(--heartox-text); margin-bottom: 16px; }
.ksa-quick__card a { color: var(--ksa-navy); font-weight: 700; }

/* ---- Ministries grid ---- */
.ksa-min__card {
  display:block; background:#fff; border:1px solid #ECECF3; border-radius:14px;
  padding:26px 22px; height:100%; text-align:center; transition:.3s ease;
}
.ksa-min__card:hover { border-color: var(--ksa-navy); box-shadow: 0 20px 44px -26px rgba(11,26,68,.4); transform: translateY(-4px); }
.ksa-min__card i { font-size: 38px; color: var(--ksa-navy); }
.ksa-min__card h5 { font-family: var(--heartox-heading-font); margin:14px 0 4px; color: var(--ksa-navy-deep); font-size:1.05rem; }
.ksa-min__card p { color: var(--heartox-text); font-size:.9rem; margin:0; }

/* ---- Give / Jesus House band ---- */
.ksa-give { background: var(--ksa-navy-deep); color:#fff; }
.ksa-give .sec-title__title, .ksa-give h2, .ksa-give h3 { color:#fff; }
.ksa-give p { color: rgba(255,255,255,.82); }

/* ---- Buttons: force reliable fills (template fills via ::before/::after) ---- */
.heartox-btn--secondary,
.heartox-btn--secondary:hover { color: var(--ksa-navy-deep) !important; }
.heartox-btn--secondary::before,
.heartox-btn--secondary::after { background-color: var(--ksa-gold) !important; }

.heartox-btn--primary,
.heartox-btn--base { color: #fff !important; }
.heartox-btn--primary::before,
.heartox-btn--primary::after,
.heartox-btn--base::before,
.heartox-btn--base::after { background-color: var(--ksa-navy) !important; }

/* Light/ghost button for use on navy backgrounds */
.heartox-btn--light { color: var(--ksa-navy-deep) !important; }
.heartox-btn--light::before,
.heartox-btn--light::after { background-color: #fff !important; }

/* ---- 2026 theme band ---- */
.ksa-theme-band { background: var(--ksa-navy-deep); border-top: 1px solid rgba(255,255,255,.06); }
.ksa-theme-band .container {
  display: flex; align-items: center; justify-content: center; gap: 16px 22px;
  flex-wrap: wrap; padding: 18px 24px; text-align: center;
}
.ksa-theme-band__year {
  font-family: var(--heartox-heading-font, "Nunito"), sans-serif; font-weight: 800;
  font-size: 1.6rem; color: var(--ksa-gold); letter-spacing: .02em; line-height: 1;
}
.ksa-theme-band__text { color: #fff; font-size: 1.15rem; }
.ksa-theme-band__text strong { font-family: var(--heartox-special-font, "Caveat"), cursive; color: var(--ksa-gold); font-size: 1.5rem; font-weight: 700; }
.ksa-theme-band__ref {
  font-family: "IBM Plex Mono", monospace; font-size: .78rem; letter-spacing: .05em;
  color: rgba(255,255,255,.6); border-left: 1px solid rgba(255,255,255,.2); padding-left: 22px;
}
@media (max-width: 575px){ .ksa-theme-band__ref { border-left: 0; padding-left: 0; } }

/* ---- Event cards (homepage + events page) ---- */
.ksa-event {
  background: #fff; border: 1px solid #ECECF3; border-radius: 16px; overflow: hidden;
  height: 100%; display: flex; flex-direction: column; box-shadow: 0 18px 44px -30px rgba(11,26,68,.4);
  transition: transform .3s ease, box-shadow .3s ease;
}
.ksa-event:hover { transform: translateY(-5px); box-shadow: 0 26px 54px -28px rgba(11,26,68,.5); }
.ksa-event__media { position: relative; aspect-ratio: 16/10; background: var(--ksa-navy-deep); overflow: hidden; }
.ksa-event__media img { width: 100%; height: 100%; object-fit: cover; }
.ksa-event__date {
  position: absolute; top: 14px; left: 14px; background: var(--ksa-gold); color: var(--ksa-navy-deep);
  border-radius: 10px; padding: 6px 12px; text-align: center; font-family: var(--heartox-heading-font,"Nunito"),sans-serif;
  line-height: 1; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4);
}
.ksa-event__date .d { font-size: 1.4rem; font-weight: 800; display: block; }
.ksa-event__date .m { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ksa-event__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ksa-event__title { font-family: var(--heartox-heading-font,"Nunito"),sans-serif; font-size: 1.25rem; color: var(--ksa-navy-deep); margin: 0 0 12px; }
.ksa-event__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.ksa-event__meta span { font-size: .86rem; color: var(--heartox-text); display: inline-flex; align-items: center; gap: 7px; }
.ksa-event__meta i { color: var(--ksa-navy); }
.ksa-event__text { color: var(--heartox-text); font-size: .92rem; margin-bottom: 18px; flex: 1; }
.ksa-event__cta { margin-top: auto; }

/* ---- CCI-style image feature cards ---- */
.ksa-feature {
  position: relative; display: block; border-radius: 18px; overflow: hidden;
  min-height: 460px; background-size: cover; background-position: center;
  isolation: isolate; color: #fff;
}
.ksa-feature::before {
  content: ""; position: absolute; inset: 0; z-index: 1; transition: background .35s ease;
  background: linear-gradient(180deg, rgba(11,26,68,.05) 0%, rgba(11,26,68,.15) 45%, rgba(11,26,68,.88) 100%);
}
.ksa-feature::after {
  content: ""; position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center;
  background-image: inherit; transition: transform .6s ease;
}
.ksa-feature:hover::after { transform: scale(1.06); }
.ksa-feature:hover::before { background: linear-gradient(180deg, rgba(16,37,107,.15) 0%, rgba(11,26,68,.35) 45%, rgba(11,26,68,.92) 100%); }
.ksa-feature__inner { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px 26px; }
.ksa-feature__eyebrow {
  display: inline-block; font-family: "Archivo", sans-serif; font-weight: 700; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ksa-gold); margin-bottom: 8px;
}
.ksa-feature__title { font-size: 2rem; color: #fff; margin: 0 0 12px; line-height: 1; }
.ksa-feature__cta {
  display: inline-flex; align-items: center; gap: 9px; font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
.ksa-feature__cta i { transition: transform .3s ease; }
.ksa-feature:hover .ksa-feature__cta i { transform: translateX(5px); }
.ksa-feature:hover { text-decoration: none; }

/* Eyebrow pill (CCI-style) */
.ksa-eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px; background: var(--surface-2, #F1EFE9);
  border: 1px solid var(--line, #e6e2d7); border-radius: 100px; padding: 7px 16px;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ksa-navy); margin-bottom: 20px;
}
.ksa-eyebrow-pill i { color: var(--ksa-gold); }

/* Utility */
.text-gold { color: var(--ksa-gold) !important; }
.bg-navy { background: var(--ksa-navy) !important; }
