/* CSS Variables - Emerald Green Design */
:root {
    --emerald-green: #50C878;
    --dark-emerald: #046307;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --dark-text: #1a1a1a;
    --metallic-gold: #D4AF37;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
}

/* Scroll Down Button */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 10;
    transition: var(--transition);
}

.scroll-down:hover {
    opacity: 0.8;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
    margin-bottom: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
    margin: -4px 0;
    animation: arrow-down 1.5s infinite;
}

.arrow span.s2 {
    animation-delay: 0.2s;
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes arrow-down {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* Glowing Highlight for hero-section Scroll Button */
.hero-section .scroll-down .mouse {
    animation: glow-pulse 2s infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(80, 200, 120, 0.8), 0 0 30px rgba(80, 200, 120, 0.4);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--dark-emerald);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top span {
    font-size: 1.5rem;
    font-weight: 700;
}

.scroll-top:hover {
    background: var(--emerald-green);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 900;
    padding: 0.8rem 0;
}

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

.nav-logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-logo .logo-img {
    height: 70px;
    /* Prominent size */
    width: auto;
}

.nav-center {
    flex: 2;
    text-align: center;
}

.dept-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2E8B57;
    /* Elegant Green */
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.uni-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2E8B57;
    /* Elegant Green */
    margin-top: 0.1rem;
}

.jubilee-badge-text {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Darker silver gradient for better visibility on white */
    background: linear-gradient(135deg, #7a7a7a 0%, #b8b8b8 50%, #4a4a4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* More pronounced shadow */
    filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2));
    font-family: 'Montserrat', sans-serif;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.reg-badge {
    background: #2E8B57;
    /* Requested Color */
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(46, 139, 87, 0.3);
    /* Matching shadow */
    transition: var(--transition);
    border: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Modal Z-Index Fix */
#registration_modal,
#signin_modal,
#forgotten_password_modal {
    z-index: 9999 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}


.reg-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    /* Full screen height */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    /* Remove margin to go behind transparent header if needed, or keep if fixed nav dictates */
    padding-top: 80px;
    /* Compensation for fixed header */
    overflow: hidden;
    background-color: var(--white);
}

.hero-section-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    /* Key requirement */
    z-index: 0;
}

/* Remove old containers */
.video-container,
.hero-section-content {
    display: none;
}

.hero-section-overlay-content {
    /* Removed styles as per request */
    display: none;
}

.hero-section-title-gradient {
    font-size: 4.5rem;
    /* Larger for impact */
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(135deg, #2E8B57, #E0E0E0, #2E8B57);
    /* Enhanced Green/Silver */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Text */
@media (max-width: 768px) {
    .hero-section-title-gradient {
        font-size: 2.5rem;
    }
}

/* Remove old backgrounds */
.color-blast-bg,
.hero-section-bg-gif,
.hero-section-overlay {
    display: none;
}

/* Remove old logo styles if not used in this version */
.jubilee-logo-container,
.jubilee-logo {
    display: none;
}

/* Banner Section */
.banner-section {
    padding: 0;
    background: var(--light-gray);
    position: relative;
}

.banner-section .scroll-down {
    bottom: 20px;
}

.scroll-down.dark-arrow {
    background: rgba(255, 255, 255, 0.4);
    padding: 10px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    width: 60px;
    height: 100px;
    justify-content: center;
}

.scroll-down.dark-arrow .mouse {
    border-color: var(--dark-emerald);
}

.scroll-down.dark-arrow .wheel {
    background: var(--dark-emerald);
}

.scroll-down.dark-arrow .arrow span {
    border-bottom: 2px solid var(--dark-emerald);
    border-right: 2px solid var(--dark-emerald);
}

@media (max-width: 768px) {
    .scroll-down {
        bottom: 10px;
    }

    .banner-section {
        padding-bottom: 90px;
    }

    .banner-section .scroll-down {
        bottom: 10px;
    }

    .scroll-down.dark-arrow {
        width: 45px;
        height: 75px;
        padding: 5px;
    }

    .scroll-down.dark-arrow .mouse {
        width: 20px;
        height: 32px;
    }

    .scroll-down.dark-arrow .wheel {
        width: 3px;
        height: 6px;
    }
}


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

/* Schedule Section */
.schedule-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-emerald);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--emerald-green);
}

.schedule-timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 3px solid var(--emerald-green);
    padding-left: 2rem;
}

.timeline-block {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-block::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 4px solid var(--emerald-green);
    border-radius: 50%;
}

.time {
    font-weight: 700;
    color: var(--emerald-green);
    margin-bottom: 0.5rem;
}

.event-details {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--emerald-green);
}

.event-details h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

/* Countdown Section */
.countdown-section {
    background: var(--light-gray);
    padding: 6rem 0;
    color: var(--dark-text);
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.count-box {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border-bottom: 4px solid var(--emerald-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-width: 140px;
    transition: var(--transition);
}

.count-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.count-box span {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-emerald);
}

.count-box label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--emerald-green);
    font-weight: 600;
}

/* Footer */
.footer {
    background: #111;
    color: #aaa;
    padding: 3rem 0;
}

.footer-address {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section-title-gradient {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.4rem 0;
        position: relative;
        /* Change to relative or keep fixed? User says it gets enlarged. Let's keep it fixed but more compact. */
    }

    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .nav-logo .logo-img {
        height: 50px;
    }

    .nav-center h3.jubilee-badge-text {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .nav-center h1.dept-title {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 0.1rem;
        padding: 0 10px;
    }

    .nav-center h2.uni-title {
        font-size: 0.75rem;
        margin-top: 0;
    }

    .reg-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero-section {
        height: 70vh;
        min-height: 450px;
        padding-top: 0;
        margin-top: 0;
    }

    /* If user wants it to NOT go behind, we should either:
           1. Make navbar position: relative on mobile
           2. Or keep fixed and use a spacer. 
           Let's try position: sticky or relative for mobile to avoid overlap issues if it's too tall.
        */
    .navbar {
        position: sticky;
        top: 0;
    }

    .hero-section-title-gradient {
        font-size: 2.2rem;
    }

    .schedule-section {
        padding: 3rem 0;
    }

    .schedule-timeline {
        padding-left: 1.5rem;
        margin-left: 10px;
        /* offset for bullet points */
    }

    .timeline-block::before {
        left: -2.1rem;
        width: 12px;
        height: 12px;
        border-width: 3px;
    }

    .countdown-grid {
        gap: 1rem;
    }

    .count-box {
        min-width: 80px;
        padding: 1rem;
        flex: 1 1 40%;
        /* 2 items per row */
    }

    .count-box span {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.3rem 0;
    }

    .nav-logo .logo-img {
        height: 40px;
    }

    .dept-title {
        font-size: 0.8rem !important;
    }

    .uni-title {
        font-size: 0.75rem !important;
    }

    .reg-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .hero-section {
        height: 50vh;
        min-height: 350px;
    }

    .hero-section-title-gradient {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .timeline-block {
        margin-bottom: 1.5rem;
    }

    .event-details {
        padding: 1rem;
    }

    .count-box {
        flex: 1 1 40%;
        padding: 0.8rem;
    }

    .count-box span {
        font-size: 1.6rem;
    }

    .count-box label {
        font-size: 0.7rem;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-address {
        font-size: 0.85rem;
    }
}