/* ============================================================
   Ganeshotsav Spardha — Central Theme
   Loaded once via layouts/app.blade.php AFTER Bootstrap so tokens win.
   Holds design tokens, fonts, resets, and shared component styles
   (public header, hero, cards, tiers, LIVE banner, gallery,
   winners, footer, bottom nav). Page-specific CSS stays per page.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Devanagari:wght@400;500;600;700&display=swap');

/* ---------------- Design tokens ---------------- */
:root {
    /* Legacy names — kept so existing inline var(--...) refs keep working */
    --primary-orange: #FF6600;
    --maharashtra-saffron: #FF9933;
    --secondary-blue: #003366;
    --accent-gold: #FFD700;
    --accent-green: #006600;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #FFF8F0;
    --border-light: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* New redesign tokens (from proposed screenshot) */
    --brand-maroon: #8B1A0E;
    --brand-red: #B71C1C;
    --brand-saffron: #FF9933;
    --brand-orange: #FF6600;
    --brand-orange-deep: #E55A00;
    --brand-cream: #FFF8F0;
    --brand-gold: #FFD700;
    --brand-gold-deep: #D4AF37;
    --medal-silver: #C0C0C0;
    --medal-bronze: #CD7F32;

    --header-gradient: linear-gradient(135deg, var(--brand-maroon) 0%, var(--brand-red) 100%);
    --hero-gradient: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-saffron) 100%);
    --cta-gradient: linear-gradient(135deg, var(--brand-orange) 0%, #ff8533 100%);
    --footer-gradient: linear-gradient(135deg, var(--brand-maroon) 0%, var(--brand-orange) 100%);

    --radius: 16px;
    --shadow-card: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 14px 35px rgba(0, 0, 0, 0.15);
    --bottom-nav-h: 66px;
}

/* ---------------- Resets & base ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Devanagari', 'Inter', 'Hind', sans-serif;
    background: linear-gradient(135deg, var(--brand-cream) 0%, #ffffff 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* clear the fixed bottom nav */
    padding-bottom: var(--bottom-nav-h);
}

.site-main {
    flex: 1 0 auto;
}

/* ---------------- Fonts ---------------- */
.devanagari-text,
.marathi-text {
    font-family: 'Noto Serif Devanagari', 'Noto Sans Devanagari', 'Hind', 'Mangal', 'Kalam', 'Tiro Devanagari Hindi', 'Arial Unicode MS', 'Times New Roman', system-ui !important;
}

.english-text {
    font-family: 'Inter', 'Arial', sans-serif;
}

/* Font Awesome family override (was duplicated inline per page) */
.fas, .far, .fab, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro" !important;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.far { font-weight: 400; }
.fab {
    font-weight: 400;
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
}

.container-fluid.app-shell {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   PUBLIC HEADER (sticky, maroon → red)
   ============================================================ */
.public-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--header-gradient);
    color: #fff;
    box-shadow: 0 4px 18px rgba(139, 26, 14, 0.35);
}

.public-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="ph" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.12)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.12)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23ph)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.public-header .ph-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 0;
}

.ph-emblem {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    /* Mobile: two left logos + right logo grouped on top row */
    order: 0;
}

.emblem-chip {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.emblem-chip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Right-most header logo (copy of footer logo) */
.ph-logo-right {
    order: 1;
}

.ph-titles {
    min-width: 0;
    text-decoration: none;
    color: #fff;
    /* Mobile: title drops below the logo row */
    order: 3;
    flex-basis: 100%;
}

.ph-titles .ph-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
}

.ph-titles .ph-sub {
    font-size: 0.8rem;
    opacity: 0.9;
    color: #ffe8d6;
}

.ph-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    /* Mobile: hamburger sits at the far right of the logo row */
    order: 2;
    margin-left: auto;
}

/* Desktop navigation bar (hidden on mobile) */
.ph-nav {
    display: none;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
}

.ph-nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 8px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.ph-nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 2px;
    background: var(--brand-gold);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.ph-nav-link:hover,
.ph-nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.ph-nav-link:hover::after,
.ph-nav-link:focus::after {
    transform: scaleX(1);
}

/* Language toggle chip */
.ph-lang {
    display: none;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ph-lang i {
    color: var(--brand-gold);
    font-size: 1rem;
}

.ph-lang:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

/* Language dropdown (desktop) */
.ph-lang-dropdown .ph-lang { cursor: pointer; }
.ph-lang-caret { font-size: 0.7rem !important; color: rgba(255, 255, 255, 0.8) !important; }
.ph-lang-menu {
    min-width: 160px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.ph-lang-menu .dropdown-item {
    border-radius: 8px;
    font-weight: 600;
    padding: 9px 14px;
}
.ph-lang-menu .dropdown-item:hover {
    background: rgba(255, 102, 0, 0.1);
    color: var(--brand-maroon);
}
.ph-lang-menu .dropdown-item.active {
    background: var(--brand-orange);
    color: #fff;
}

/* Competition registration dropdown in the desktop nav.
   The trigger is a <button>, so the anchor styling from .ph-nav-link needs resetting. */
.ph-nav-dropdown .ph-nav-link {
    background: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.ph-nav-caret {
    font-size: 0.7rem;
    margin-left: 6px;
    opacity: 0.85;
}
.ph-nav-menu {
    min-width: 250px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.ph-nav-menu .dropdown-item {
    border-radius: 8px;
    font-weight: 600;
    padding: 9px 14px;
    white-space: normal;
}
.ph-nav-menu .dropdown-item:hover {
    background: rgba(255, 102, 0, 0.1);
    color: var(--brand-maroon);
}
.ph-nav-menu .dropdown-item.active {
    background: var(--brand-orange);
    color: #fff;
}

/* Competition submenu inside the mobile offcanvas */
.ph-offcanvas button.ph-menu-link {
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
}
.ph-menu-caret {
    transition: transform 0.25s ease;
}
.ph-menu-link[aria-expanded="true"] .ph-menu-caret {
    transform: rotate(180deg);
}
.ph-menu-sub {
    padding-left: 14px;
}
.ph-menu-sublink {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Language selector inside mobile offcanvas menu */
.ph-menu-lang {
    margin-top: 8px;
    padding: 14px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.ph-menu-lang-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.ph-menu-lang-label i { color: var(--brand-orange); width: 22px; text-align: center; }
.ph-menu-lang-options { display: flex; gap: 8px; flex-wrap: wrap; }
.ph-menu-lang-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ph-menu-lang-btn:hover { background: rgba(255, 102, 0, 0.1); color: var(--brand-maroon); }
.ph-menu-lang-btn.active {
    background: var(--brand-orange);
    color: #fff;
    border-color: var(--brand-orange);
}

.ph-burger {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ph-burger:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Desktop: show language chip, single-row header */
@media (min-width: 992px) {
    .ph-lang { display: inline-flex; }
    body { padding-bottom: 0; }

    /* Branding + nav + language chip need more room than the 1320px page container,
       so the header gets a wider one of its own. */
    .public-header .container { max-width: min(1600px, 100% - 2rem); }

    /* Header single-row layout: logos + title | nav + lang | right logo */
    .public-header .ph-inner { flex-wrap: nowrap; }
    .ph-emblem { order: 0; }
    .ph-titles { order: 1; flex-basis: auto; margin-right: 8px; overflow: hidden; }
    .ph-actions { order: 2; }
    .ph-logo-right { order: 3; }

    /* Keep one line per title. English nav labels are far wider than their Devanagari
       equivalents, and without this the academy name wraps onto four lines and
       doubles the header height. */
    .ph-titles .ph-title,
    .ph-titles .ph-sub {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Inline nav only from the width where it actually fits beside the branding; below
   this the hamburger (which carries the same links) stays in charge. */
@media (min-width: 1300px) {
    .ph-nav { display: flex; gap: 0; margin-right: 4px; }
    .ph-burger { display: none; }
    .ph-nav-link { font-size: 0.85rem; padding: 9px 8px; }
    .ph-nav-link::after { left: 8px; right: 8px; }
    .ph-lang { padding: 8px 12px; gap: 6px; }
    .ph-titles .ph-title { font-size: 0.95rem; }
    .ph-titles .ph-sub { font-size: 0.7rem; }
    /* Decorative duplicate of the footer logo — first thing to go when space is tight */
    .ph-logo-right { display: none; }
}

@media (min-width: 1600px) {
    .ph-nav { gap: 4px; margin-right: 6px; }
    .ph-nav-link { font-size: 0.95rem; padding: 10px 14px; }
    .ph-nav-link::after { left: 14px; right: 14px; }
    .ph-lang { padding: 9px 16px; gap: 8px; }
    .ph-titles .ph-title { font-size: 1.05rem; }
    .ph-titles .ph-sub { font-size: 0.8rem; }
    .ph-logo-right { display: flex; }
}

/* Offcanvas menu styling */
.ph-offcanvas .offcanvas-header {
    background: var(--header-gradient);
    color: #fff;
}

.ph-offcanvas .offcanvas-body {
    background: var(--brand-cream);
}

.ph-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.ph-menu-link i {
    width: 22px;
    text-align: center;
    color: var(--brand-orange);
}

.ph-menu-link:hover {
    background: rgba(255, 102, 0, 0.1);
    color: var(--brand-maroon);
}

/* ============================================================
   DEADLINE MARQUEE (sits under the header on every page)
   ============================================================ */
.marquee-container {
    background: linear-gradient(135deg, #FF6600, #FF9933);
    color: white;
    padding: 0.8rem 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(255, 102, 0, 0.3);
}

.marquee-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: marqueeSlide 30s linear infinite;
    white-space: nowrap;
}

@keyframes marqueeSlide {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Respect users who ask the OS to reduce motion: show the notice, hold it still. */
@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
        white-space: normal;
        text-align: center;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .marquee-content {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* ============================================================
   HERO — full-width banner image (text baked into the image)
   ============================================================ */
.hero-banner-full {
    width: 100%;
    line-height: 0;
    background: var(--brand-red);
}

.hero-banner-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Floating category cards that overlap the bottom of the banner */
.hero-float {
    position: relative;
    z-index: 5;
    margin-top: -48px;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-float {
        margin-top: -28px;
    }
}

/* ============================================================
   Section shell + heading
   ============================================================ */
.section {
    padding: 2.5rem 0;
}

.section-heading {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-maroon);
    margin-bottom: 0.4rem;
    position: relative;
}

.section-heading::after {
    content: '❁';
    display: block;
    color: var(--brand-orange);
    font-size: 1rem;
    margin-top: 6px;
}

.section-subheading {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============================================================
   Two big category cards
   ============================================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card {
    position: relative;
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.category-card.cat-home {
    background: linear-gradient(135deg, #FF7A18 0%, #FF9933 100%);
}

.category-card.cat-public {
    background: linear-gradient(135deg, var(--brand-red) 0%, #E53935 100%);
}

.category-card .cat-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.category-card .cat-text {
    flex: 1;
    min-width: 0;
}

.category-card .cat-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.category-card .cat-desc {
    opacity: 0.92;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.category-card .cat-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-card:hover .cat-arrow {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
}

/* ============================================================
   Feature tiles (row of 4)
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}

/* Single remaining tile: keep it from stretching the full container width */
.feature-grid-single {
    grid-template-columns: minmax(200px, 320px);
    justify-content: center;
}

.feature-tile {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
    display: block;
}

.feature-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    color: var(--text-dark);
}

.feature-tile .ft-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.9rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: var(--cta-gradient);
}

.feature-tile:nth-child(2) .ft-icon { background: linear-gradient(135deg, var(--brand-red), #E53935); }
.feature-tile:nth-child(3) .ft-icon { background: linear-gradient(135deg, var(--brand-maroon), var(--brand-red)); }
.feature-tile:nth-child(4) .ft-icon { background: linear-gradient(135deg, var(--brand-gold-deep), var(--brand-gold)); }

.feature-tile .ft-title {
    font-weight: 700;
    font-size: 1.02rem;
}

/* ============================================================
   3-tier registration cards
   ============================================================ */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tier-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    border-top: 5px solid var(--brand-orange);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.tier-card.tier-state { border-top-color: var(--brand-orange); }
.tier-card.tier-national { border-top-color: var(--brand-red); }
.tier-card.tier-intl { border-top-color: var(--secondary-blue); }

.tier-card .tier-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
}

.tier-card.tier-state .tier-icon { background: var(--cta-gradient); }
.tier-card.tier-national .tier-icon { background: linear-gradient(135deg, var(--brand-red), #E53935); }
.tier-card.tier-intl .tier-icon { background: linear-gradient(135deg, var(--secondary-blue), #0f4c81); }

.tier-card .tier-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-maroon);
    margin-bottom: 0.5rem;
}

.tier-card .tier-note {
    color: var(--brand-maroon);
    font-size: 0.9rem;
    font-weight: 500;
    margin: -0.25rem 0 0.5rem;
    line-height: 1.4;
}

.tier-card .tier-desc {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    min-height: 48px;
}

.tier-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cta-gradient);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tier-card.tier-national .tier-btn { background: linear-gradient(135deg, var(--brand-red), #E53935); }
.tier-card.tier-intl .tier-btn { background: linear-gradient(135deg, var(--secondary-blue), #0f4c81); }

.tier-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* "Coming soon" state for a tier marked soon in config. Not a link, so it
   must not look or behave like one — the gradient is replaced by a flat muted fill and
   the lift-on-hover is cancelled, including for the per-tier colour overrides above. */
.tier-btn-soon,
.tier-card.tier-national .tier-btn-soon,
.tier-card.tier-intl .tier-btn-soon {
    background: var(--border-light, #E5E5E5);
    color: var(--text-light, #6c757d);
    cursor: default;
    box-shadow: none;
}

.tier-btn-soon:hover {
    transform: none;
    box-shadow: none;
    color: var(--text-light, #6c757d);
}

/* ============================================================
   LIVE darshan banner
   ============================================================ */
.live-banner {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #7a1108 0%, var(--brand-red) 100%);
    color: #fff;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
}

/* Live banner with a provided background image (scrim keeps text legible) */
.live-banner.has-bg {
    background:
        linear-gradient(90deg, rgba(122, 17, 8, 0.94) 0%, rgba(122, 17, 8, 0.55) 45%, rgba(122, 17, 8, 0.12) 100%),
        var(--darshan-bg) center / cover no-repeat;
    min-height: 260px;
}

.live-banner .live-copy { flex: 1 1 260px; }

.live-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.live-desc {
    opacity: 0.92;
    margin-bottom: 1rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    padding: 5px 14px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.live-badge .dot {
    width: 10px;
    height: 10px;
    background: #ff3b3b;
    border-radius: 50%;
    animation: livePulse 1.3s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); }
    50% { transform: scale(1.15); opacity: 0.85; box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); }
}

.live-cta {
    background: #fff;
    color: var(--brand-red);
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease;
    white-space: nowrap;
}

.live-cta:hover {
    transform: translateY(-2px);
    color: var(--brand-maroon);
}

.live-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.live-cta-outline {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.live-cta-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* ============================================================
   Gallery strip
   ============================================================ */
.gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-head h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-maroon);
    margin: 0;
}

.gallery-more {
    color: var(--brand-orange);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gallery-more:hover { color: var(--brand-red); }

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.gallery-strip .g-item {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: relative;
}

.gallery-strip .g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-strip .g-item:hover img {
    transform: scale(1.08);
}

/* ============================================================
   Notices list
   ============================================================ */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--brand-orange);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-card);
}

.notice-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 102, 0, 0.12);
    color: var(--brand-red);
    font-size: 1.05rem;
}

.notice-body { flex: 1 1 auto; min-width: 0; }

.notice-title {
    font-weight: 600;
    line-height: 1.45;
}

/* Trailing "click here" link inside a notice — sits inline after the text. */
.notice-link {
    color: var(--brand-red);
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
    margin-left: 0.35rem;
}

.notice-link:hover {
    color: var(--brand-maroon);
}

@media (max-width: 576px) {
    .notice-item { gap: 0.75rem; padding: 0.85rem 1rem; }
    .notice-icon { width: 36px; height: 36px; font-size: 0.95rem; }
}

/* ============================================================
   Past winners
   ============================================================ */
.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.winners-col {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border-top: 5px solid var(--brand-gold);
}

.winners-col.col-state { border-top-color: var(--brand-orange); }
.winners-col.col-national { border-top-color: var(--brand-red); }
.winners-col.col-intl { border-top-color: var(--secondary-blue); }

.winners-col .wc-title {
    text-align: center;
    font-weight: 700;
    color: var(--brand-maroon);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px dashed var(--border-light);
}

.winner-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.winner-medal {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.winner-medal.gold { background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-deep)); }
.winner-medal.silver { background: linear-gradient(135deg, #e6e6e6, var(--medal-silver)); color: #555; }
.winner-medal.bronze { background: linear-gradient(135deg, #e0a060, var(--medal-bronze)); }

.winner-info .w-name {
    font-weight: 600;
    color: var(--text-dark);
}

.winner-info .w-place {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================================
   Footer
   ============================================================ */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 0.5rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a.fb { background: #1877F2; }
.footer-social a.ig { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.footer-social a.yt { background: #FF0000; }
.footer-social a.wa { background: #25D366; }

.footer-social a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* ============================================================
   Bottom navigation (persistent)
   ============================================================ */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    height: var(--bottom-nav-h);
    background: #fff;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
}

.bottom-nav .bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 6px 2px;
    transition: color 0.2s ease;
}

.bottom-nav .bn-item i {
    font-size: 1.2rem;
}

.bottom-nav .bn-item.active,
.bottom-nav .bn-item:hover {
    color: var(--brand-orange);
}

.bottom-nav .bn-item.active {
    position: relative;
}

.bottom-nav .bn-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--cta-gradient);
}

/* Competition dropup in the bottom nav. The trigger is a <button>, and the menu has to
   escape the fixed bar, so the wrapper cannot clip it. */
.bottom-nav .bn-item-wrap {
    flex: 1;
    display: flex;
    position: static;
}

.bottom-nav button.bn-item {
    background: none;
    border: 0;
    width: 100%;
    cursor: pointer;
}

.bn-dropup-menu {
    min-width: 250px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

.bn-dropup-menu .dropdown-item {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 14px;
    white-space: normal;
}

.bn-dropup-menu .dropdown-item:hover {
    background: rgba(255, 102, 0, 0.1);
    color: var(--brand-maroon);
}

.bn-dropup-menu .dropdown-item.active {
    background: var(--brand-orange);
    color: #fff;
}

/* Bottom navigation is mobile-only — hidden on desktop */
@media (min-width: 992px) {
    .bottom-nav { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .ph-titles .ph-title { font-size: 0.92rem; }
    .ph-titles .ph-sub { display: none; }
    .section-heading { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .emblem-chip { width: 44px; height: 44px; }
    .hero-title { font-size: 1.7rem; }
    .live-banner { padding: 1.5rem; }
    .bottom-nav .bn-item { font-size: 0.6rem; }
}

/* ============================================================
   Gallery year tabs (household + public mandal photo galleries)
   Fallback colours are spelled out because both gallery views push their own
   :root block and do not inherit every brand variable.
   ============================================================ */
.year-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 1rem 1.5rem;
    padding: 0.9rem 1.1rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.year-tabs-label {
    font-weight: 600;
    color: var(--brand-maroon, #7B1E1E);
    margin-right: 0.25rem;
}

.year-tabs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.year-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #faf7f2;
    color: var(--brand-maroon, #7B1E1E);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.year-tab:hover {
    background: var(--accent-gold, #FFD700);
    color: #7B1E1E;
    transform: translateY(-1px);
}

.year-tab.active {
    background: linear-gradient(135deg, var(--primary-orange, #FF6600), var(--brand-red, #C62828));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(198, 40, 40, 0.25);
}

.year-tab-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.year-tab:not(.active) .year-tab-badge {
    background: rgba(198, 40, 40, 0.12);
}

@media (max-width: 576px) {
    .year-tabs { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   "Uploads open soon" notice, shown in place of the upload buttons
   ============================================================ */
.uploads-closed {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    max-width: 640px;
    margin: 0 auto;
    padding: 1.4rem 1.6rem;
    background: #fffdf7;
    border: 1px dashed rgba(198, 40, 40, 0.35);
    border-radius: 14px;
}

.uploads-closed-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--primary-orange, #FF6600), var(--brand-red, #C62828));
    color: #ffffff;
}

.uploads-closed-title {
    margin: 0;
    font-weight: 700;
    color: var(--brand-maroon, #7B1E1E);
}

.uploads-closed-text {
    margin: 0;
    color: var(--text-light, #666666);
    line-height: 1.6;
}
