/* =====================================
   GLOBAL SETTINGS
===================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #fffaf0, #f3f0ff, #fff5f5);
    color: #222;
    line-height: 1.6;
}

/* =====================================
   HOME PAGE
===================================== */

.home-page {
    min-height: 100vh;
    margin: 0;
    padding: 30px 16px;
    background: radial-gradient(circle at top, #7e22ce 0%, #3b0764 48%, #170526 100%);
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.home-container {
    width: min(100%, 850px);
    margin: 0 auto;
    text-align: center;
}

.home-container h1 {
    margin: 18px 0 10px;
    font-size: clamp(1.7rem, 5vw, 3rem);
    line-height: 1.3;
}

.home-subtitle {
    margin: 0 0 24px;
    color: #f3e8ff;
    font-size: 1.2rem;
}

.hero-tag {
    display: inline-block;
    padding: 9px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    color: #fde68a;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.poster-container {
    width: min(100%, 560px);
    margin: 0 auto 28px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

.kalolsavam-poster {
    display: block;
    width: 100%;
    height: auto;
    max-height: 850px;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
}

.home-page .hero-button {
    display: inline-block;
    max-width: 100%;
    padding: 15px 26px;
    border: none;
    border-radius: 50px;
    background: #facc15;
    color: #3b0764;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-page .hero-button:hover {
    transform: translateY(-3px);
    background: #fde68a;
}

.home-footer {
    margin-top: 28px;
    color: #e9d5ff;
    font-size: 0.8rem;
}

/* =====================================
   HEADER
===================================== */

.header {
    position: relative;
    padding: 24px 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #3b0764, #701a75, #9d174d, #78350f);
    color: white;
    text-align: center;
}

.header h1 {
    font-size: clamp(22px, 4vw, 36px);
    margin-bottom: 8px;
}

.header p {
    margin-top: 5px;
}

/* =====================================
   MAIN CONTAINER
===================================== */

.container {
    width: 94%;
    max-width: 1050px;
    margin: 30px auto;
}

/* =====================================
   STATISTICS CARDS
===================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 24px 12px;
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    text-align: center;
    box-shadow: 0 8px 25px rgba(76, 29, 149, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(76, 29, 149, 0.16);
}

.stat-card h2 {
    color: #7e22ce;
    font-size: clamp(22px, 3vw, 32px);
}

.stat-card p {
    color: #575569;
    font-size: 13px;
}

/* =====================================
   SEARCH PANEL
===================================== */

.panel {
    padding: 26px;
    margin-bottom: 28px;
    border: 1px solid #ede9fe;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(76, 29, 149, 0.08);
}

.panel h2 {
    margin-bottom: 18px;
    color: #701a75;
    font-size: 24px;
}

input,
select {
    display: block;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    background: #fdfcff;
    font-size: 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.12);
}

/* =====================================
   NOTICE BOX
===================================== */

.notice {
    padding: 15px 18px;
    margin-bottom: 20px;
    border-left: 5px solid #f59e0b;
    border-radius: 10px;
    background: #fffbeb;
    color: #78350f;
    font-size: 14px;
}

/* =====================================
   PROGRAM SCHEDULE
===================================== */

.schedule-section > h2 {
    margin: 25px 0 20px;
    color: #581c87;
    font-size: clamp(22px, 4vw, 30px);
}

.program-card {
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #ede9fe;
    border-left: 6px solid #9333ea;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(76, 29, 149, 0.07);
    overflow-wrap: anywhere;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(76, 29, 149, 0.13);
}

.program-card h3 {
    margin-bottom: 14px;
    color: #7e22ce;
    font-size: 21px;
}

.program-card p {
    margin: 8px 0;
    color: #44405a;
}

.program-countdown {
    padding: 10px 12px;
    margin-top: 12px !important;
    border-radius: 10px;
    background: #f5f3ff;
    color: #581c87 !important;
    font-weight: 600;
}

/* =====================================
   BADGES
===================================== */

.badge {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 8px;
    border-radius: 30px;
    background: #f3e8ff;
    color: #6b21a8;
    font-size: 13px;
    font-weight: bold;
}

/* =====================================
   PROGRAM STATUS
===================================== */

.status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
}

.upcoming {
    background: #fef3c7;
    color: #92400e;
}

.ongoing {
    background: #dcfce7;
    color: #166534;
}

.completed {
    background: #e5e7eb;
    color: #374151;
}

/* =====================================
   NO SEARCH RESULTS
===================================== */

.no-result {
    padding: 35px 20px;
    border: 1px dashed #c4b5fd;
    border-radius: 16px;
    background: #ffffff;
    color: #6b21a8;
    text-align: center;
}

.no-result h3 {
    margin-bottom: 8px;
}

/* =====================================
   FOOTER
===================================== */

.footer {
    padding: 30px 16px;
    margin-top: 45px;
    background: linear-gradient(135deg, #3b0764, #581c87, #831843);
    color: #ffffff;
    text-align: center;
}

.footer p {
    margin-top: 6px;
    font-size: 14px;
}

/* =====================================
   MOBILE RESPONSIVE DESIGN
===================================== */

@media (max-width: 600px) {
    .home-page {
        padding: 22px 12px;
    }

    .home-container h1 {
        font-size: 1.6rem;
    }

    .home-subtitle {
        font-size: 1rem;
    }

    .home-page .hero-button {
        width: 100%;
        box-sizing: border-box;
    }

    .header {
        padding: 20px 12px;
    }

    .container {
        width: 94%;
        margin: 18px auto;
    }

    .stats {
        gap: 9px;
    }

    .stat-card {
        padding: 16px 5px;
        border-radius: 12px;
    }

    .stat-card h2 {
        font-size: 21px;
    }

    .stat-card p {
        font-size: 11px;
    }

    .panel {
        padding: 18px;
        border-radius: 15px;
    }

    .program-card {
        padding: 18px;
        border-radius: 13px;
    }

    .program-card h3 {
        font-size: 18px;
    }

    .footer {
        margin-top: 30px;
    }
}

/* =====================================
   ACCESSIBILITY
===================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
