/* Playful Theme Core Variables */
:root {
    --primary-bg: #f0fdf4;
    --navbar-bg: #ffd166;
    --btn-color: #ff4757;
    --btn-hover: #ff2138;
    --dark-border: #2f3542;
    --green-accent: #10ac84;
}

/* Pure CSS Reset for stability */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Comic Sans MS', sans-serif;
}

body {
    background-color: var(--primary-bg);
    color: #2c3e50;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navbar Flexbox Styling */
.custom-navbar {
    background-color: var(--navbar-bg);
    border-bottom: 5px solid var(--dark-border);
    border-radius: 0 0 20px 20px;
    padding: 15px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--btn-color);
    text-decoration: none;
    text-shadow: 2px 2px 0px #fff;
}

.navbar-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: var(--dark-border);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 5px 10px;
}

.nav-link:hover {
    color: var(--btn-color);
}

/* Buttons */
.btn-magical {
    background-color: var(--btn-color);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 12px 35px;
    border-radius: 50px;
    border: 3px solid var(--dark-border);
    box-shadow: 0 5px 0px var(--dark-border);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-magical:hover {
    transform: translateY(3px);
    box-shadow: 0 2px 0px var(--dark-border);
}

.btn-magical-sm {
    background-color: var(--green-accent);
    color: white;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    border: 2px solid var(--dark-border);
    box-shadow: 0 4px 0px var(--dark-border);
    text-decoration: none;
}

.btn-magical-sm:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0px var(--dark-border);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.85), rgba(72, 219, 251, 0.85)), url('https://images.unsplash.com/photo-1513151233558-d860c5398176?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 35px 35px;
    border-bottom: 6px solid var(--dark-border);
    color: white;
    text-shadow: 2px 2px 0px var(--dark-border);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* Generic Sections */
.content-section {
    padding: 50px 0;
    text-align: center;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.text-muted {
    color: #57606f;
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Card Floating Animations */
@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.image-card-wrapper:nth-child(1) .custom-card { animation: floatAnimation 4s ease-in-out infinite; }
.image-card-wrapper:nth-child(2) .custom-card { animation: floatAnimation 4.5s ease-in-out infinite 0.5s; }
.image-card-wrapper:nth-child(3) .custom-card { animation: floatAnimation 4.2s ease-in-out infinite 0.2s; }
.image-card-wrapper:nth-child(4) .custom-card { animation: floatAnimation 4.7s ease-in-out infinite 0.7s; }

.custom-card {
    background: white;
    border: 4px solid var(--dark-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 6px 6px 0px var(--dark-border);
    transition: transform 0.3s ease;
}

.custom-card:hover {
    transform: scale(1.03) !important;
    box-shadow: 10px 10px 0px var(--dark-border);
    animation-play-state: paused;
}

.custom-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 4px solid var(--dark-border);
}

.card-body-custom {
    padding: 12px;
    background: #f1f2f6;
    font-weight: 600;
}

/* Timeline Box */
.timeline-box {
    background: white;
    border: 4px dashed #ff9f43;
    border-radius: 20px;
    padding: 25px;
    max-width: 500px;
    margin: 0 auto;
}

.timeline-item {
    font-size: 1.05rem;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid #ff9f43;
    text-align: left;
}

footer {
    background: var(--dark-border);
    color: #a4b0be;
    padding: 25px;
    text-align: center;
    border-top: 5px solid var(--btn-color);
    margin-top: 40px;
}

/* --- MOBILE RESPONSIVENESS AND NAVBAR HIDE --- */
@media (max-width: 768px) {
    .custom-navbar {
        display: none !important; /* Mobile screens par pura navbar section hide ho jayega */
    }
    
    .hero-section {
        padding: 60px 15px;
        border-radius: 0 0 25px 25px;
    }
    
    .hero-section h1 {
        font-size: 1.9rem;
    }
    
    .hero-section p {
        font-size: 1.05rem;
    }
}











/* ==========================================================================
   HOME.HTML - MAGICAL LOGIN BOX & AUTO-SCROLL BANNER CSS
   ========================================================================== */

.login-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--primary-bg);
}

/* 1. AUTO-SCROLL IMAGE BANNER SETUP */
.scroll-banner-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 5px solid var(--dark-border);
}

.scroll-track {
    display: flex;
    width: calc(250px * 6); /* Images count * standard width */
    animation: scrollLoop 20s linear infinite;
}

.scroll-track img {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-right: 3px solid var(--dark-border);
}

/* Seamless infinite scroll keyframes */
@keyframes scrollLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 4)); } /* Total unique images pull size */
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay h2 {
    color: #fff !important;
    font-size: 2rem;
    text-shadow: 3px 3px 0px var(--dark-border);
    font-weight: 700;
}

/* 2. MAGICAL LOGIN FORM BOX */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start; /* 'center' ki jagah 'flex-start' kiya taaki content upar se shuru ho */
    justify-content: center;
    padding: 60px 15px 30px 15px; /* Upar se halka sa natural gap diya hai */
}

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.login-box {
    background: white;
    border: 5px solid var(--dark-border);
    border-radius: 25px;
    padding: 35px 25px;
    width: 100%;
    max-width: 420px;
    box-shadow: 10px 10px 0px var(--dark-border);
    text-align: center;
    animation: popIn 0.5s ease-out;
}

.lock-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: floatAnimation 3s ease-in-out infinite;
}

.login-box h3 {
    font-size: 1.6rem;
    color: var(--dark-border);
    font-weight: 700;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #57606f;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Styled Inputs */
.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 3px solid var(--dark-border);
    border-radius: 50px;
    outline: none;
    background-color: #f1f2f6;
    font-weight: 600;
    text-align: center;
    color: var(--dark-border);
    transition: all 0.2s ease;
}

.input-group input:focus {
    background-color: #fff;
    border-color: var(--btn-color);
    box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.2);
}

.w-100 {
    width: 100%;
}

/* Error Alert State */
.error-msg {
    background-color: #ffeaa7;
    border: 2px dashed #ff9f43;
    color: #d63031;
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: center;
}

.hide-msg {
    display: none;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #57606f;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--btn-color);
}

/* Mobile responsive tweak for login */
/* Mobile responsive tweak for login */
@media (max-width: 480px) {
    .login-wrapper {
        padding: 20px 15px; /* Mobile par upar ka padding bohot kam kar diya */
        align-items: flex-start;
    }
    
    .login-box {
        margin-top: 10px; /* Banner ke just thoda sa niche fit ho jayega */
        padding: 25px 15px;
        border-width: 4px;
        box-shadow: 6px 6px 0px var(--dark-border);
    }
    
    .scroll-banner-container {
        height: 120px; /* Mobile par height thodi aur compact kar di */
    }
    
    .scroll-track img {
        height: 120px;
        width: 180px;
    }
    
    @keyframes scrollLoop {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-180px * 4)); }
    }
    
    .banner-overlay h2 {
        font-size: 1.4rem;
    }
}





/* ==========================================================================
   UPDATED DASHBOARD WITH RAINBOW HEADER & 1.5s SMOOTH HORIZONTAL SCROLL
   ========================================================================== */

.dashboard-body {
    background-color: var(--primary-bg);
    min-height: 100vh;
}

/* New Playful Rainbow Gradient Header */
.dashboard-header {
    background: linear-gradient(45deg, #ff6b6b, #ffbe0b, #1dd1a1, #2e86de);
    text-align: center;
    padding: 30px 15px;
    border-bottom: 5px solid var(--dark-border);
    border-radius: 0 0 25px 25px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.dashboard-header h2 {
    font-size: 2.2rem;
    color: white !important;
    margin-bottom: 5px;
}

.dashboard-header p {
    font-size: 1.1rem;
    font-weight: 500;
}

.years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

/* Comic Styled Card */
.year-card {
    background: white;
    border: 4px solid var(--dark-border);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 6px 6px 0px var(--dark-border);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.year-card:hover {
    transform: scale(1.03) translateY(-3px);
    box-shadow: 10px 10px 0px var(--dark-border);
}

/* 1.5s SMOOTH HORIZONTAL FILM STRIP SCROLL */
.slideshow-frame {
    width: 100%;
    height: 180px;
    background: #eaeaea;
    overflow: hidden; /* Baki content chupa dega */
    position: relative;
    border-bottom: 4px solid var(--dark-border);
}

.strip-track {
    display: flex;
    width: calc(100% * 4); /* Total 4 images support space */
    height: 100%;
    animation: smoothRightScroll 6s linear infinite; /* 4 images * 1.5s = 6s Total Cycle */
}

.strip-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0; /* Auto compress hone se rokega */
}

/* Smooth continuous side scroll animation loop */
@keyframes smoothRightScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-75%); } /* Total slide set movement */
}

/* Year details text setup */
.year-info-box {
    padding: 15px;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 0px var(--dark-border);
}

.card-2026 .year-info-box { background-color: #ff4757; }
.card-2025 .year-info-box { background-color: #ff9f43; }
.card-2024 .year-info-box { background-color: #10ac84; }

.year-number {
    font-size: 2.2rem;
    font-weight: 700;
}

.year-status {
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(0,0,0,0.15);
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 2px;
}

.btn-logout {
    background-color: var(--dark-border);
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 0px #111;
    font-size: 1rem;
}

.btn-logout:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0px #111;
}

.mt-5 { margin-top: 3rem; }

@media (max-width: 480px) {
    .years-grid { grid-template-columns: 1fr; padding: 20px 10px; }
}