/* ============================================================
   St. Apollo Kivebulaaya Kansanga C.O.U — main stylesheet
   Palette: Anglican deep purple + liturgical gold
   ============================================================ */
:root {
  --purple-900: #2a1245;
  --purple-800: #3b1f5e;
  --purple: #4a2570;
  --purple-light: #6d4a9e;
  --gold: #c9a227;
  --gold-light: #e3c65c;
  --ink: #241d2e;
  --paper: #faf8f5;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Ubuntu Sans', system-ui, sans-serif;
  --ui: 'Inter', system-ui, sans-serif;
}

body { font-family: var(--sans); color: var(--ink); background: var(--paper); }
h1, h2, h3, h4, .display-5, .display-4 { font-family: var(--serif); }
.eyebrow, .btn, .badge, .stat-label, .footer-heading { font-family: var(--ui); }
.main-nav .nav-link, .dropdown-item { font-family: var(--sans); }

.text-gold { color: var(--gold) !important; }
.bg-purple { background: var(--purple-800) !important; }

/* --- Top bar --- */
.topbar { background: var(--purple-900); color: #d9cfe8; font-size: .82rem; padding: .4rem 0; }
.topbar a { color: #d9cfe8; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }

/* --- Navbar --- */
.main-nav { background: #fff; box-shadow: 0 2px 12px rgba(42, 18, 69, .08); padding: .55rem 0; }
.nav-logo { height: 56px; width: auto; max-width: 260px; object-fit: contain; }
@media (max-width: 575px) { .nav-logo { height: 44px; max-width: 200px; } }
.main-nav .nav-link { color: var(--ink); font-weight: 500; font-size: .93rem; padding: .5rem .8rem; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--purple); }
.dropdown-menu { border: none; box-shadow: 0 10px 30px rgba(42, 18, 69, .15); border-radius: .6rem; }
.dropdown-item:hover { background: #f3eefa; color: var(--purple); }

/* --- Buttons --- */
.btn-gold { background: var(--gold); color: var(--purple-900); font-weight: 600; border: 2px solid var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--purple-900); }
.btn-outline-gold { border: 2px solid var(--gold); color: var(--purple-800); font-weight: 600; }
.btn-outline-gold:hover { background: var(--gold); color: var(--purple-900); }
.btn-purple { background: var(--purple); color: #fff; font-weight: 600; border: 2px solid var(--purple); }
.btn-purple:hover { background: var(--purple-800); color: #fff; }
.btn-outline-light-2 { border: 2px solid rgba(255,255,255,.7); color: #fff; font-weight: 600; }
.btn-outline-light-2:hover { background: #fff; color: var(--purple-900); }

/* --- Hero slideshow --- */
.hero {
  position: relative; color: #fff; padding: 7.5rem 0 8.5rem;
  background: var(--purple-900); overflow: hidden;
}
.hero-carousel, .hero-carousel .carousel-inner { position: absolute; inset: 0; z-index: 0; }
.hero-carousel .carousel-item {
  height: 100%; background-size: cover; background-position: center top;
  transition: transform 8s ease-out, opacity .9s ease;
}
.hero-carousel .carousel-item.active { transform: scale(1.06); }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(42, 18, 69, .74), rgba(42, 18, 69, .84));
}
.hero-content { z-index: 2; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
.hero .lead { color: #e6ddf3; max-width: 640px; }
.hero-verse { font-family: var(--serif); font-style: italic; color: var(--gold-light); }

.page-hero {
  position: relative; color: #fff; padding: 4.5rem 0;
  background:
    linear-gradient(120deg, rgba(42, 18, 69, .88), rgba(74, 37, 112, .78)),
    var(--hero-img, linear-gradient(120deg, var(--purple-900), var(--purple)))
    center 30%/cover no-repeat;
}
.page-hero h1 { font-weight: 700; }
.page-hero .breadcrumb a { color: var(--gold-light); text-decoration: none; }
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: #cbbde0; }

/* --- Countdown band --- */
.countdown-band {
  background: linear-gradient(100deg, var(--purple-800), var(--purple));
  color: #fff;
}
.countdown-band h3 { font-family: var(--serif); font-weight: 700; margin-bottom: .2rem; }
.cd-subtitle { color: #d9cfe8; font-size: .95rem; }
.cd-box {
  min-width: 76px; padding: .8rem .6rem; text-align: center; border-radius: .6rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-direction: column; line-height: 1.15;
}
.cd-num { font-family: var(--ui); font-size: 1.7rem; font-weight: 700; color: var(--gold-light); }
.cd-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #d9cfe8; }
@media (max-width: 575px) { .cd-box { min-width: 64px; padding: .6rem .4rem; } .cd-num { font-size: 1.35rem; } }

/* --- Verse of the Day --- */
.votd-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--purple-900) 0%, var(--purple) 55%, #5a2f86 100%);
  color: #fff;
}
.votd-band .votd-orb {
  position: absolute; border-radius: 50%; filter: blur(6px); opacity: .35;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), transparent 70%);
  animation: votdFloat 9s ease-in-out infinite;
}
.votd-orb-1 { width: 220px; height: 220px; top: -60px; left: -40px; }
.votd-orb-2 { width: 300px; height: 300px; bottom: -120px; right: -60px; animation-delay: -4s; }
@keyframes votdFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(24px) translateX(16px); }
}
.votd-eyebrow {
  display: inline-block; letter-spacing: .22em; text-transform: uppercase;
  font-family: var(--ui); font-size: .78rem; font-weight: 700; color: var(--gold-light);
  padding: .35rem 1rem; border: 1px solid rgba(227,198,92,.4); border-radius: 99px;
  background: rgba(255,255,255,.05);
}
.votd-quote { max-width: 820px; position: relative; }
.votd-mark {
  font-size: 3rem; color: var(--gold); opacity: .5; line-height: 0;
  display: block; margin-bottom: .5rem;
}
.votd-text {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 600; line-height: 1.4; margin-bottom: 1rem;
  text-wrap: balance;
}
.votd-ref { font-family: var(--ui); font-weight: 700; color: var(--gold-light); font-size: 1.05rem; }
.votd-version {
  font-size: .7rem; letter-spacing: .1em; border: 1px solid rgba(227,198,92,.5);
  border-radius: 4px; padding: .1rem .4rem; margin-left: .4rem; vertical-align: middle;
  color: var(--gold-light);
}
.votd-attr { font-size: .72rem; color: rgba(255,255,255,.5); }
/* reveal animation */
.votd-band .votd-quote, .votd-band .votd-eyebrow, .votd-band .votd-share {
  opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease;
}
.votd-band.votd-in .votd-eyebrow { opacity: 1; transform: none; transition-delay: .05s; }
.votd-band.votd-in .votd-quote { opacity: 1; transform: none; transition-delay: .2s; }
.votd-band.votd-in .votd-share { opacity: 1; transform: none; transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  .votd-orb { animation: none; }
  .votd-band .votd-quote, .votd-band .votd-eyebrow, .votd-band .votd-share { opacity: 1; transform: none; }
}

/* --- Sections --- */
.section { padding: 4.5rem 0; }
.section-alt { background: #fff; }
.section-purple { background: var(--purple-900); color: #e6ddf3; }
.eyebrow { letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; font-weight: 700; color: var(--gold); }
.section-title { font-weight: 700; color: var(--purple-900); }
.section-purple .section-title { color: #fff; }

/* --- Cards --- */
.card-lift { border: none; border-radius: 1rem; box-shadow: 0 6px 24px rgba(42,18,69,.07); transition: transform .25s, box-shadow .25s; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(42,18,69,.14); }
.card-img-frame { height: 210px; object-fit: cover; border-radius: 1rem 1rem 0 0; }
.icon-badge {
  width: 54px; height: 54px; border-radius: 14px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.5rem;
  background: #f3eefa; color: var(--purple);
}

/* --- Service times --- */
.service-card { border-left: 4px solid var(--gold); border-radius: .8rem; background: #fff; }
.service-time { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--purple-800); }

/* --- Stats --- */
.stat-number { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; color: var(--gold); }
.stat-label { letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }

/* --- Progress bars --- */
.progress { height: 10px; border-radius: 99px; background: #eee5f7; }
.progress-bar { background: linear-gradient(90deg, var(--purple), var(--gold)); border-radius: 99px; }

/* --- Gallery --- */
.gallery-item { border-radius: .8rem; overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(42,18,69,.85));
  color: #fff; font-size: .85rem; font-weight: 500;
}
.filter-btn { border: 1.5px solid var(--purple-light); color: var(--purple-800); border-radius: 99px; padding: .35rem 1.1rem; font-size: .88rem; font-weight: 600; background: transparent; }
.filter-btn.active, .filter-btn:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

/* --- Leader cards --- */
.leader-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.leader-initials {
  width: 120px; height: 120px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-family: var(--serif); font-size: 2rem; font-weight: 700;
  background: #f3eefa; color: var(--purple); border: 3px solid var(--gold);
}

/* --- Footer --- */
.site-footer { background: var(--purple-900); color: #cbbde0; }
.site-footer a { color: #cbbde0; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-logo-chip {
  display: inline-block; background: #fff; border-radius: .8rem; padding: .55rem .9rem;
}
.footer-logo-chip img { height: 58px; width: auto; max-width: 100%; object-fit: contain; }
.footer-heading { color: #fff; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; font-size: .9rem; }
.footer-verse { font-family: var(--serif); font-style: italic; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); gap: .5rem; }

/* --- Footer giving accordion --- */
.footer-accordion { --bs-accordion-bg: rgba(255,255,255,.05); }
.footer-accordion .accordion-item { border: 1px solid rgba(255,255,255,.14); }
.footer-accordion .accordion-button {
  background: transparent; color: #e6ddf3; font-weight: 600; font-size: .92rem;
  box-shadow: none;
}
.footer-accordion .accordion-button:not(.collapsed) { color: var(--gold-light); }
.footer-accordion .accordion-button::after { filter: invert(1) brightness(1.6); }
.footer-accordion .accordion-body { color: #cbbde0; font-size: .9rem; }
.footer-accordion .accordion-body a { color: var(--gold-light); }

/* --- Weekly programmes --- */
.week-card {
  background: #fff; border-radius: .9rem; padding: 1rem; height: 100%;
  border: 1px solid #ece4f5; box-shadow: 0 4px 16px rgba(42,18,69,.06);
}
.week-day {
  font-family: var(--ui); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: .8rem; color: var(--purple);
  border-bottom: 2px solid var(--gold); padding-bottom: .4rem; margin-bottom: .6rem;
}
.week-item { display: flex; flex-direction: column; padding: .35rem 0; }
.week-item + .week-item { border-top: 1px dashed #eee5f7; }
.week-time { font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: .95rem; }
.week-title { font-size: .88rem; color: var(--ink); }

/* --- Calendar --- */
.cal-legend span { font-size: .82rem; color: var(--ink); display: inline-flex; align-items: center; }
.cal-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: .4rem; }
#calendar { --fc-border-color: #eee5f7; --fc-today-bg-color: #faf5ff; --fc-page-bg-color: #fff; font-family: var(--sans); }
#calendar .fc-toolbar-title { font-family: var(--serif); color: var(--purple-900); font-size: 1.3rem; }
#calendar .fc-button-primary {
  background: var(--purple); border-color: var(--purple); text-transform: capitalize;
  font-family: var(--ui); font-size: .85rem;
}
#calendar .fc-button-primary:hover, #calendar .fc-button-primary:not(:disabled).fc-button-active {
  background: var(--purple-900); border-color: var(--purple-900);
}
#calendar .fc-col-header-cell-cushion { color: var(--purple-800); font-weight: 600; text-decoration: none; }
#calendar .fc-daygrid-day-number { color: var(--ink); text-decoration: none; }
#calendar .fc-event { cursor: pointer; border: none; font-size: .78rem; padding: 1px 4px; }

/* --- Advertisements --- */
.ad-card {
  position: relative; background: #fff; border-radius: .8rem; overflow: hidden;
  border: 1px solid #ece4f5; box-shadow: 0 4px 16px rgba(42,18,69,.06);
  height: 100%;
}
.ad-tag {
  position: absolute; top: .4rem; right: .4rem; z-index: 2;
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  background: rgba(42,18,69,.7); color: #fff; padding: .1rem .4rem; border-radius: 4px;
}
.ad-banner-link { display: block; }
.ad-banner-link img { width: 100%; height: auto; display: block; transition: transform .3s; }
.ad-banner-link:hover img { transform: scale(1.03); }
.ad-body { padding: .9rem 1rem; }
.ad-logo { max-height: 48px; width: auto; }

.footer-ads { border-top: 1px solid rgba(255,255,255,.12); }
.footer-ads-label { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: #9c8bbd; font-weight: 600; }
.footer-ads-cta { font-size: .8rem; color: var(--gold-light) !important; text-decoration: none; }
.footer-ads-cta:hover { color: #fff !important; }

/* --- WhatsApp float --- */
.whatsapp-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 1050;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); text-decoration: none; transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* --- Video library --- */
.video-thumb {
  position: relative; display: block; width: 100%; background: var(--purple-900);
  border-radius: 1rem 1rem 0 0; overflow: hidden; cursor: pointer;
}
.video-thumb img { width: 100%; height: 210px; object-fit: cover; transition: transform .35s; display: block; }
.video-thumb:hover img { transform: scale(1.06); }
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; background: rgba(201, 162, 39, .92);
  color: var(--purple-900); display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s;
  pointer-events: none;
}
.video-thumb:hover .play-badge { transform: translate(-50%, -50%) scale(1.12); }

/* --- Newsletters --- */
.icon-badge-lg { width: 72px; height: 72px; font-size: 2rem; border-radius: 18px; }
.latest-issue { border-left: 5px solid var(--gold); }

/* --- Discipleship --- */
.text-purple { color: var(--purple) !important; }
.disc-featured-img {
  min-height: 260px; background-size: cover; background-position: center;
  background-color: var(--purple-800);
}
.disc-lesson-num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple); color: #fff; font-family: var(--serif);
  font-weight: 700; font-size: 1.1rem;
}
.pdf-viewer {
  border-radius: 1rem; overflow: hidden; box-shadow: 0 8px 30px rgba(42,18,69,.15);
  border: 1px solid #e7ddf3; background: #f3eefa;
}
.pdf-viewer iframe { width: 100%; height: 82vh; border: 0; display: block; }
@media (max-width: 767px) { .pdf-viewer iframe { height: 60vh; } }

/* --- Misc --- */
.ratio iframe { border-radius: 1rem; }
.verse-band { background: linear-gradient(120deg, var(--purple-800), var(--purple)); color: var(--gold-light); }
.badge-status { background: #f3eefa; color: var(--purple-800); font-weight: 600; }
.giving-channel { border: 1.5px dashed var(--purple-light); border-radius: 1rem; background: #fff; }
