/* ============================================================
   Janmashtami Cultural Contest 2026 | ISKCON Srinagar Garhwal
   Style sheet — theme matched to main Janmashtami site (v3)
   Theme: PEACOCK BLUE + GOLD
   ============================================================ */

:root {
    --pc-deep: #0e5e72;
    --pc-blue: #0e7490;
    --pc-blue-bright: #118aa8;
    --pc-navy: #083344;
    --pc-mist: #eaf6fa;
    --pc-foam: #9ad6e6;
    --gold: #ffd166;
    --gold-deep: #d4af37;
    --gold-dark: #a9770d;
    --gradient-peacock: linear-gradient(135deg, #0e7490 0%, #0e5e72 55%, #118aa8 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f0c14b 45%, #ffd166 100%);
    --bg-page: #f3f9fb;
    --bg-section: #eef6f8;
    --card-bg: #ffffff;
    --card-border: rgba(14, 116, 144, 0.35);
    --text-main: #14303a;
    --text-muted: #54707b;
    --font-heading: "Cinzel", serif;
    --font-title: "Outfit", sans-serif;
    --font-body: "Open Sans", sans-serif;

    --radius: 18px;
    --radius-sm: 12px;
}

html, body { overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    scroll-padding-top: 86px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--pc-blue); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

::selection { background: rgba(14, 116, 144, 0.22); color: var(--text-main); }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: radial-gradient(circle at 50% 40%, #eef6f8 0%, #f3f9fb 70%);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-content { color: var(--gold-dark); }
.preloader-text {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    background: linear-gradient(135deg, #a9770d 0%, #e0b03c 50%, #d4af37 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
#preloader .spinner-border { color: var(--pc-blue); border-width: 0.25em; }

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
    background: rgba(8, 51, 68, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.6);
    padding-top: 0.5rem; padding-bottom: 0.5rem;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
#mainNav.nav-scrolled {
    background: rgba(6, 38, 50, 0.98);
    box-shadow: 0 4px 24px rgba(0, 30, 40, 0.35);
}

/* Brand: left on desktop, centered on mobile */
.navbar-brand { gap: 8px; }
@media (max-width: 991.98px) {
    .navbar-brand {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        text-align: center !important;
        z-index: 100 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        max-width: 65% !important;
    }
}
@media (min-width: 992px) {
    .navbar-brand { position: static !important; transform: none !important; margin-right: 1.5rem !important; text-align: left !important; flex: 0 0 auto; }
}

/* Mobile: taller header so the logo + brand text fit without spilling */
@media (max-width: 991.98px) {
    #mainNav { min-height: 66px; }
}
.navbar-toggler {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center; justify-content: center;
}
@media (max-width: 575.98px) {
    #mainNav { min-height: 60px; }
    .brand-logo-img { width: 38px !important; height: 38px !important; }
    .navbar-brand { max-width: 70% !important; }
    .brand-title { font-size: 0.92rem !important; letter-spacing: 1px !important; }
    .brand-subtitle { font-size: 0.5rem !important; letter-spacing: 1px !important; }
}

.brand-logo-img {
    width: 44px; height: 44px; border-radius: 50%;
    object-fit: cover; border: 2px solid #fff;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    flex-shrink: 0;
}
.brand-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    line-height: 1.15;
    background: linear-gradient(135deg, #eaf6fa 0%, #bfe9f2 50%, #9ad6e6 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
.brand-subtitle {
    font-size: 0.55rem;
    color: var(--pc-foam);
    letter-spacing: 1.6px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

#mainNav .nav-link {
    font-family: var(--font-title);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    padding: 0.5rem 0.9rem;
    border-radius: 30px;
    transition: color 0.25s ease, background 0.25s ease;
}
#mainNav .nav-link:hover { color: var(--gold); }
#mainNav .nav-link.active { color: #083344; background: var(--gradient-gold); box-shadow: 0 4px 16px rgba(212, 175, 55, 0.45); }

/* Mobile: dropdown card */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        right: 8px !important;
        width: calc(100% - 16px) !important;
        max-width: 320px !important;
        background: rgba(6, 34, 43, 0.98) !important;
        backdrop-filter: blur(16px);
        border: 1.5px solid rgba(212, 175, 55, 0.55) !important;
        border-radius: 16px !important;
        padding: 1rem 1.2rem !important;
        box-shadow: 0 12px 35px rgba(0, 30, 40, 0.4) !important;
        z-index: 1060 !important;
    }
    .navbar-collapse .nav-link {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        margin: 3px 0;
        padding: 0.65rem 1rem !important;
        color: #eaf6fa !important;
        font-size: 0.92rem;
        transition: all 0.2s ease;
    }
    .navbar-collapse .nav-link:hover { background: rgba(255, 209, 102, 0.16) !important; color: var(--gold) !important; padding-left: 1.2rem !important; }
    .mobile-menu-header { border-color: rgba(212, 175, 55, 0.3) !important; }
}

/* Nav CTA + circular mobile icon button */
.btn-nav-donate {
    background: var(--gradient-gold);
    color: #083344 !important;
    border-radius: 25px;
    padding: 0.45rem 1.1rem !important;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.25s ease;
}
.btn-nav-donate:hover { background: var(--gold); color: #083344 !important; }

.btn-header-audio {
    width: 42px !important; height: 42px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center; justify-content: center;
    background: rgba(255, 209, 102, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    transition: all 0.25s ease;
}
.btn-header-audio:hover { background: rgba(212, 175, 55, 0.3); }
@media (max-width: 575.98px) { .btn-header-audio { width: 40px !important; height: 40px !important; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-hero-primary {
    background: var(--gradient-peacock);
    color: #fff;
    font-weight: 700;
    border-radius: 30px;
    padding: 0.55rem 1.6rem;
    box-shadow: 0 4px 18px rgba(14, 116, 144, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.6);
    transition: all 0.3s ease;
}
.btn-hero-primary:hover { background: var(--gradient-gold); color: #083344; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5); }
.btn-outline-gold {
    color: var(--gold-dark);
    background: rgba(212, 175, 55, 0.08);
    border: 2px solid rgba(212, 175, 55, 0.7);
    border-radius: 30px;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}
.btn-outline-gold:hover, .btn-outline-gold:focus {
    color: #083344;
    background: var(--gradient-gold);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}
.btn-lg { padding: 0.75rem 1.6rem; font-size: 0.95rem; }
.btn-sm { padding: 0.35rem 1rem; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-kicker {
    display: inline-block;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--gold-dark);
}
.section-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    background: linear-gradient(135deg, #0e5e72 0%, #0e7490 50%, #118aa8 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}
.section-sub { max-width: 640px; font-size: 0.98rem; color: var(--text-muted); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    position: relative;
    padding: 120px 0 70px;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(14, 116, 144, 0.10), transparent 60%),
        radial-gradient(ellipse 70% 55% at 90% 80%, rgba(212, 175, 55, 0.12), transparent 60%),
        linear-gradient(180deg, #f3f9fb 0%, #dceff5 100%);
    overflow: hidden;
}
.hero-glow {
    position: absolute; top: -160px; left: 50%;
    width: 700px; height: 700px; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(14, 116, 144, 0.12) 0%, transparent 65%);
    filter: blur(30px);
    pointer-events: none;
}

/* decorative particles */
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-particles span {
    position: absolute;
    width: 6px; height: 6px;
    background: var(--gold-deep);
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(1px);
    animation: floatUp linear infinite;
}
.hero-particles span:nth-child(1)  { left: 8%;  animation-duration: 14s; }
.hero-particles span:nth-child(2)  { left: 18%; animation-duration: 19s; animation-delay: 2s; width: 4px; height: 4px; }
.hero-particles span:nth-child(3)  { left: 30%; animation-duration: 16s; animation-delay: 4s; }
.hero-particles span:nth-child(4)  { left: 42%; animation-duration: 22s; animation-delay: 1s; width: 5px; height: 5px; }
.hero-particles span:nth-child(5)  { left: 55%; animation-duration: 18s; animation-delay: 6s; }
.hero-particles span:nth-child(6)  { left: 66%; animation-duration: 15s; animation-delay: 3s; width: 4px; height: 4px; }
.hero-particles span:nth-child(7)  { left: 78%; animation-duration: 20s; animation-delay: 5s; }
.hero-particles span:nth-child(8)  { left: 88%; animation-duration: 17s; animation-delay: 0.5s; }
.hero-particles span:nth-child(9)  { left: 96%; animation-duration: 23s; animation-delay: 7s; width: 5px; height: 5px; }
.hero-particles span:nth-child(10) { left: 12%; animation-duration: 21s; animation-delay: 8s; width: 3px; height: 3px; }
.hero-particles span { bottom: -10%; }

@keyframes floatUp {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    12%  { opacity: 0.4; }
    85%  { opacity: 0.2; }
    100% { transform: translateY(-105vh) scale(1.25); opacity: 0; }
}

/* Full-width banner image */
.hero-banner-container { max-width: 1100px; }
.hero-banner-img {
    width: 100%;
    border-radius: 20px;
    border: 2px solid rgba(14, 116, 144, 0.5);
    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.3),
        0 24px 60px rgba(0, 60, 80, 0.22);
}
.hero-frame-badge {
    position: absolute; bottom: 18px; left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: #083344;
    font-family: var(--font-title);
    font-size: 0.82rem;
    letter-spacing: 1px;
    padding: 0.42rem 1.2rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
    white-space: nowrap;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.45rem 1.1rem;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(212, 175, 55, 0.55);
    color: var(--gold-dark);
    font-family: var(--font-title);
    font-size: 0.78rem;
    letter-spacing: 2px;
    border-radius: 40px;
    margin-bottom: 1.1rem;
}
.live-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2.1rem, 5.5vw, 3.3rem);
    line-height: 1.12;
    color: var(--pc-deep);
    margin-bottom: 0.9rem;
    text-shadow: 0 4px 24px rgba(14, 116, 144, 0.12);
}
.hero-title-gold {
    display: block;
    background: linear-gradient(135deg, #c78a00 0%, #e0b03c 45%, #a9770d 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-tagline { font-size: 1.02rem; max-width: 620px; color: var(--text-muted); }

/* Countdown bar — single row */
.hero-countdown-bar {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--pc-blue);
    max-width: 650px;
    width: 100%;
    padding: 0.4rem 0.6rem !important;
    box-shadow: 0 6px 20px rgba(0, 60, 80, 0.12);
}
.hero-countdown-title {
    color: var(--text-main);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 1px;
}
.countdown-boxes { display: flex; justify-content: center; gap: 15px; flex-wrap: nowrap; }
.countdown-box {
    background: var(--card-bg);
    border: 2px solid var(--gold-deep);
    border-radius: 14px;
    width: 90px; height: 90px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 60, 80, 0.1);
}
.countdown-box .number {
    font-family: var(--font-title);
    font-size: 2rem; font-weight: 800;
    color: var(--pc-deep);
    line-height: 1;
}
.countdown-box small {
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 1px; color: #4a6773;
    margin-top: 4px; font-weight: 700;
}
@media (max-width: 575.98px) {
    .hero-countdown-bar { width: calc(100% - 10px) !important; margin-left: 5px !important; margin-right: 5px !important; padding: 0.6rem 0.3rem !important; }
    .countdown-boxes { gap: 6px !important; }
    .countdown-box { width: 66px !important; height: 68px !important; padding: 2px !important; }
    .countdown-box .number { font-size: 1.4rem !important; }
    .countdown-box small { font-size: 0.58rem !important; }
    .hero-section { padding-top: 100px; }
    .hero-frame-badge { font-size: 0.72rem; padding: 0.35rem 0.9rem; }
    .btn-lg { padding: 0.65rem 1.25rem; font-size: 0.88rem; }
}

/* ============================================================
   REGISTRATION TICKER
   ============================================================ */
.reg-ticker {
    background: linear-gradient(90deg, #e8b53c, #ffd166 50%, #e8b53c);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}
.ticker-text { font-family: var(--font-title); font-size: 0.9rem; color: #083344; letter-spacing: 0.5px; }
.ticker-pulse i { color: #16a34a; font-size: 0.6rem; animation: livePulse 1.6s infinite; }

/* ============================================================
   CONTEST SECTIONS
   ============================================================ */
.contest-section { position: relative; background: linear-gradient(180deg, #f3f9fb 0%, #eef6f8 100%); }
.contest-section-alt { background: linear-gradient(180deg, #eef6f8 0%, #f3f9fb 100%); }

.contest-img-wrap { border-radius: calc(var(--radius) + 6px); overflow: hidden; }
.contest-img {
    width: 100%; height: 100%; object-fit: cover;
    border: 1px solid rgba(14, 116, 144, 0.4);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 60, 80, 0.18);
    transition: transform 0.6s ease;
}
.contest-img-wrap:hover .contest-img { transform: scale(1.04); }
.contest-img-tag {
    position: absolute; top: 16px; left: 16px;
    background: rgba(8, 51, 68, 0.88);
    border: 1px solid rgba(212, 175, 55, 0.55);
    color: var(--gold);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 0.42rem 0.9rem;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-main);
}

.contest-accordion .accordion-item {
    background: #ffffff;
    border: 1px solid rgba(14, 116, 144, 0.28);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 0.7rem;
    overflow: hidden;
}
.contest-accordion .accordion-button {
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.95rem 1.1rem;
    box-shadow: none;
}
.contest-accordion .accordion-button i { color: var(--pc-blue); }
.contest-accordion .accordion-button:not(.collapsed) {
    color: var(--pc-deep);
    background: #eef7fb;
}
.contest-accordion .accordion-body { padding: 0.6rem 1.1rem 1.1rem; }

.contest-list { list-style: none; padding: 0; }
.contest-list li {
    font-size: 0.9rem;
    color: #3e5a66;
    padding: 0.32rem 0;
    line-height: 1.5;
}
.contest-list li i { color: var(--pc-blue); }
.coordinator-info { line-height: 1.5; }

@media (min-width: 992px) {
    .contest-img-wrap { min-height: 420px; }
    .contest-img { position: absolute; inset: 0; }
}

/* Mobile/tablet: stack left-to-right columns and centre content */
@media (max-width: 991.98px) {
    .contest-section .section-kicker,
    .contest-section .section-title,
    .contest-section p,
    .contest-section .coordinator-info { text-align: center !important; }
    .contest-chips { justify-content: center; }
    .contest-section .d-flex.gap-3 { justify-content: center; }
}

/* ============================================================
   HOW TO REGISTER
   ============================================================ */
.how-to-register { background: linear-gradient(180deg, #eef6f8 0%, #f3f9fb 100%); }

.step-card {
    background: #ffffff;
    border: 1px solid rgba(14, 116, 144, 0.2);
    border-radius: var(--radius);
    padding: 2rem 1.4rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
    transform: translateY(-6px);
    border-color: var(--pc-blue);
    box-shadow: 0 18px 44px rgba(0, 60, 80, 0.14);
}
.step-num {
    position: absolute; top: 14px; right: 18px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 3rem;
    color: rgba(14, 116, 144, 0.14);
    line-height: 1;
}
.step-icon {
    font-size: 2.1rem;
    color: var(--pc-blue);
    text-shadow: 0 4px 18px rgba(14, 116, 144, 0.3);
}

.video-card {
    border: 1px solid rgba(14, 116, 144, 0.25);
    box-shadow: 0 18px 44px rgba(0, 60, 80, 0.14);
    background: linear-gradient(160deg, #083344 0%, #0c4a60 100%);
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover {
    border-color: var(--pc-blue);
    box-shadow: 0 24px 60px rgba(0, 60, 80, 0.2);
}
.video-header {
    background: rgba(4, 28, 38, 0.4);
}
.video-label {
    display: inline-flex;
    align-items: center;
    color: var(--gold);
    font-family: var(--font-title);
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.video-badge {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold);
    font-size: 0.75rem;
    border-radius: 20px;
}
.video-player-wrap {
    position: relative;
    width: 100%;
    background: transparent;
    overflow: hidden;
}
/* Portrait wrapper — constrains Plyr to a phone-like portrait column */
.plyr-portrait-wrap {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(212, 175, 55, 0.35);
    background: #000;
}
/* Plyr theme overrides — match peacock palette */
.plyr-portrait-wrap .plyr {
    border-radius: 20px;
    --plyr-color-main: #d4af37;
    --plyr-range-fill-background: #d4af37;
    --plyr-video-controls-background: linear-gradient(transparent, rgba(4,28,38,0.9));
    --plyr-control-icon-size: 18px;
    font-family: var(--font-body), sans-serif;
}
.yt-fallback-link {
    font-size: 0.8rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.yt-fallback-link:hover {
    color: var(--gold) !important;
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .video-card {
        margin-top: 0.5rem;
    }
    .plyr-portrait-wrap {
        max-width: 85vw;
    }
}

/* ============================================================
   GALLERY SLIDER (same as main Janmashtami site)
   ============================================================ */
.gallery-section { background: linear-gradient(180deg, #eef6f8 0%, #f3f9fb 100%); }
.gallery-slider-container { max-width: 1140px; }

.slider-wrapper { overflow: hidden; position: relative; }
.slider-track { display: flex; transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; }

.slide { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 10px; box-sizing: border-box; }
@media (max-width: 991px) { .slide { flex: 0 0 50%; max-width: 50%; } }
@media (max-width: 767px) { .slide { flex: 0 0 100%; max-width: 100%; padding: 0 4px; } }

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(14, 116, 144, 0.4);
    box-shadow: 0 8px 25px rgba(0, 60, 80, 0.14);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.35s ease;
}
.gallery-card:hover { border-color: var(--gold-deep); transform: translateY(-4px) scale(1.015); box-shadow: 0 12px 30px rgba(14, 116, 144, 0.25); }
.gallery-card img {
    width: 100%; height: 270px; object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-card:hover img { transform: scale(1.06); }
@media (max-width: 767px) { .gallery-card img { height: 280px; } }

.slider-btn {
    position: absolute; top: 45%; transform: translateY(-50%);
    background: rgba(8, 51, 68, 0.85);
    border: 2px solid var(--gold-deep);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 60, 80, 0.25);
}
.slider-btn:hover { background: var(--gold-deep); color: #083344; transform: translateY(-50%) scale(1.1); }
.slider-btn.prev { left: -15px; }
.slider-btn.next { right: -15px; }
@media (max-width: 767px) {
    .slider-btn.prev { left: 5px; }
    .slider-btn.next { right: 5px; }
}

.slider-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(8, 51, 68, 0.3); cursor: pointer; transition: all 0.3s ease; }
.slider-dot.active { width: 24px; border-radius: 10px; background: var(--gold-deep); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
    background:
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(14, 116, 144, 0.10), transparent 70%),
        linear-gradient(180deg, #eef6f8 0%, #dff0f5 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.35);
}
.final-cta-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    background: linear-gradient(135deg, #0e5e72 0%, #0e7490 50%, #118aa8 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: linear-gradient(180deg, #083344 0%, #06222b 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.35);
}
.footer .brand-logo-img { width: 64px; height: 64px; }
.footer-heading { font-family: var(--font-heading); }
.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links a:hover { color: var(--gold); padding-left: 3px; }
.social-links a {
    color: var(--gold);
    font-size: 1.15rem;
    transition: transform 0.2s ease, color 0.2s ease;
}
.social-links a:hover { transform: translateY(-3px); color: #fff; }
.mantra-mini-box { border-color: rgba(212, 175, 55, 0.3) !important; }
.extra-small { font-size: 0.78rem; }

@media (max-width: 767.98px) {
    .footer .brand-logo-img { width: 40px; height: 40px; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed; inset: 0; z-index: 99998;
    background: rgba(6, 34, 43, 0.96);
    display: none;
    align-items: center; justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}
.lightbox.open { display: flex; }
.lb-image {
    max-width: 92vw; max-height: 78vh;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.lb-caption { color: var(--gold); font-family: var(--font-title); font-size: 0.9rem; letter-spacing: 1px; }
.lb-close, .lb-prev, .lb-next {
    position: absolute;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: rgba(8, 51, 68, 0.9);
    color: var(--gold);
    border-radius: 50%;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gradient-gold); color: #083344; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-prev.disabled, .lb-next.disabled { opacity: 0.3; pointer-events: none; }

/* ============================================================
   THEME TEXT OVERRIDES
   Light sections sit on a light page, so Bootstrap light
   utilities (text-white-50 / text-warning) must flip to dark
   peacock tones there. The dark navbar and footer keep the
   default Bootstrap light-on-dark colors.
   ============================================================ */
.hero-section .text-white-50,
.contest-section .text-white-50,
.contest-section-alt .text-white-50,
.how-to-register .text-white-50,
.gallery-section .text-white-50,
.final-cta .text-white-50 { color: var(--text-muted) !important; }

.hero-section .text-warning,
.contest-section .text-warning,
.contest-section-alt .text-warning,
.how-to-register .text-warning,
.gallery-section .text-warning,
.final-cta .text-warning { color: var(--gold-dark) !important; }
