:root {
    /* --- NEW COLOR THEME --- */
    --bg-color: #03081a;
    /* Very dark blue/black */
    --primary-color: #0b132b;
    /* Dark blue */
    --accent-red: #3c6e71;
    /* Teal/Blue-Green accent (Replacing red) */
    --accent-orange: #5bc0de;
    /* Light blue/Cyan accent (Replacing orange) */
    --text-color: #adb5bd;
    /* Cool light gray */
    --heading-color: #f8f9fa;
    /* Bright off-white */
    /* ----------------------- */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;

    /* --- BACKGROUND IMAGE (Assuming you still want it) --- */
    background-image: linear-gradient(rgba(3, 8, 26, 0.6), rgba(3, 8, 26, 0.7)), url(bg1.jpg);
    /* Adjusted gradient colors */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* --- END UPDATE --- */
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.6);
    /* Slightly darker shadow */
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    background: rgba(3, 8, 26, 0.7);
    /* Darker scrolled background */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(60, 110, 113, 0.3);
    /* Use new accent color for border */
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--heading-color);
    text-decoration: none;
    line-height: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-red);
    /* New accent color */
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover {
    color: var(--heading-color);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    /* Keep low opacity for subtlety */
    animation: slow-pan 60s linear infinite alternate;
}

.hero-bg-layer.smoke {
    background-image: url(https://www.transparenttextures.com/patterns/realistic-white-smoke.png);
    opacity: 0.05;
    /* Make smoke even subtler */
}

.hero-bg-layer.embers {
    /* Maybe remove or replace this if it clashes with the blue theme */
    background-image: url(https://www.transparenttextures.com/patterns/wavecut.png);
    /* Example replacement */
    opacity: 0.03;
    animation-duration: 40s;
}

@keyframes slow-pan {
    from {
        transform: translateX(-10%) translateY(-5%) scale(1.2);
    }

    to {
        transform: translateX(10%) translateY(5%) scale(1.2);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .hero-logo-img {
    max-width: 90%;
    width: 1100px;
    height: auto;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 0 20px rgba(91, 192, 222, 0.4));
    /* Lighter blue drop shadow */
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: backwards;
}

/* ===== START: COUNTDOWN TIMER STYLES ===== */
#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto 40px;
    /* Add space around the timer */
    animation: fadeInUp 0.8s ease-out 0.3s;
    /* Slightly delayed animation */
    animation-fill-mode: backwards;
}

.countdown-block {
    background: rgba(11, 19, 43, 0.6);
    /* Consistent bg */
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid rgba(60, 110, 113, 0.3);
    /* Accent border */
    backdrop-filter: blur(5px);
    text-align: center;
    min-width: 80px;
    /* Ensure blocks have some width */
}

.countdown-block span {
    display: block;
}

.countdown-block span:first-child {
    /* The number */
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--heading-color);
    line-height: 1;
}

.countdown-block .label {
    /* The label (Days, Hours, etc.) */
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 5px;
    text-transform: uppercase;
}

/* ===== END: COUNTDOWN TIMER STYLES ===== */


/* ===== START: UPDATED INFO LAYOUT STYLES ===== */
.info-layout-section {
    width: 100%;
    max-width: 1100px;
    /* Wider for the two-column layout */
    margin: 40px auto;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: backwards;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    /* Mobile-first: stacks them */
    align-items: stretch;
    /* Makes children same height */
    margin-bottom: 40px;

    /* These styles are for the SINGLE container */
    background: rgba(11, 19, 43, 0.6);
    border: 1px solid rgba(60, 110, 113, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    overflow: hidden;
    /* This is critical! */
    transition: all 0.3s ease;
}

.info-row:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 5px 25px rgba(60, 110, 113, 0.3);
}

.info-text {
    flex-grow: 1;
    /* Allows it to grow */
    flex-basis: 400px;
    /* Base width before growing/shrinking */
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Removed all background, border, etc. */
}

.info-text h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.info-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    max-width: none;
}

.info-image-wrapper {
    flex-grow: 1;
    flex-basis: 400px;
    min-width: 0;
    /* Prevents flex overflow */
}

.info-image {
    width: 100%;
    height: 100%;
    /* Fills the stretched parent */
    overflow: hidden;
    /* Removed border and radius */
}

.info-image img {
    width: 100%;
    height: 100%;
    /* Fills the container */
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.info-image:hover img {
    transform: scale(1.1);
}

/* Slanted shapes are now handled in the media query */
/* ===== END: UPDATED INFO LAYOUT STYLES ===== */


.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent-red);
    /* New accent color */
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(60, 110, 113, 0.6);
    /* New accent shadow */
    font-size: 1.1rem;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 0.6s, pulse 2s infinite 1s;
    animation-fill-mode: backwards;
}

/* Updated Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 25px rgba(60, 110, 113, 0.6);
        /* Use new accent color */
    }

    50% {
        box-shadow: 0 0 35px rgba(91, 192, 222, 0.8);
        /* Use lighter accent for pulse */
    }

    100% {
        box-shadow: 0 0 25px rgba(60, 110, 113, 0.6);
        /* Use new accent color */
    }
}


.cta-button:hover {
    transform: scale(1.05);
    background: var(--accent-orange);
    /* Lighter blue on hover */
    box-shadow: 0 5px 35px rgba(91, 192, 222, 0.7);
    /* Lighter blue shadow on hover */
}

/* Banner Carousel Section */
/* =================================================== */
/* START: Replace this block in your index.css */
/* =================================================== */

/* Banner Carousel Section */
.banner-carousel-section {
    padding: 130px 0 50px 0;
    background-color: rgba(11, 19, 43, 0.6);
    border-top: 1px solid rgba(60, 110, 113, 0.3);
    border-bottom: 1px solid rgba(60, 110, 113, 0.3);
    position: relative;
    /* This is key: it clips the slides that go off-screen */
    overflow: hidden;
}

.banner-carousel {
    position: relative;
    width: 100%;
    /* Overflow must be visible so slides can "peek" */
    overflow: visible;
}

.slides {
    /* Changed from flex to block (JS will handle positioning) */
    /* Switched to a flex layout */
    display: flex;
    align-items: center;
    /* Vertically center scaled-down slides */

    /* This transition is crucial for the sliding animation */
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide {
    /* Remove old opacity/display rules */
    /* min-width: 100%; */
    /* Remove this */
    /* opacity: 0; */
    /* Remove this */
    /* display: none; */
    /* Remove this */

    /* This is the new layout */
    position: relative;
    flex: 0 0 70%;
    /* Each slide takes up 70% of the container */
    margin: 0 2%;
    /* Adds spacing between slides */

    /* Style for non-active slides */
    opacity: 0.4;
    transform: scale(0.85);
    transition: 0.5s ease all;

    /* Make sure images don't break layout */
    border-radius: 8px;
    overflow: hidden;
}

.slide.active {
    /* Remove old display:block */
    /* display: block; */
    /* Remove this */

    /* Style for the active (centered) slide */
    opacity: 1;
    transform: scale(1);
}

.slide img {
    width: 100%;
    display: block;
    object-fit: fill;
    height: 500px;
    /* Reduced height a bit, adjust as needed */
    /* border-radius: 8px; */
    /* Moved to .slide */
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(3, 8, 26, 0.95) 20%, transparent);
    color: var(--heading-color);
    text-align: left;
    border-radius: 0 0 8px 8px;
}

.slide-content h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-transform: uppercase;
    margin: 0;
}

.slide-content p {
    margin: 5px 0 20px;
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 500px;
}

.slide-cta {
    background: var(--accent-red);
    color: var(--heading-color);
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.slide-cta:hover {
    background: var(--accent-orange);
    transform: scale(1.05);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(11, 19, 43, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(11, 19, 43, 0.8);
}

.carousel-control.prev {
    /* Adjusted position to be outside the main slide area */
    left: 40px;
}

.carousel-control.next {
    /* Adjusted position to be outside the main slide area */
    right: 40px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--accent-red);
    transform: scale(1.2);
}

/* =================================================== */
/* END: CSS Replacement Block */
/* =================================================== */

/* Section Styling */
.section {
    padding: 100px 0;
    position: relative;
    /* Removed transition properties for scroll reveal */
}

.section.visible {
    /* Keep this for potential future use or consistency */
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 50px;
    color: var(--heading-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- EVENT TAB STYLES - UPDATED --- */
.event-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    /* Increased margin below tabs */
    gap: 10px;
    /* Slightly reduced gap for a tighter look */
    flex-wrap: wrap;
    border-bottom: 2px solid var(--primary-color);
    /* Added a base underline */
    padding-bottom: 5px;
    /* Space between tabs and underline */
}

.tab-button {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    /* Slightly larger font */
    letter-spacing: 1.5px;
    /* More spacing */
    padding: 14px 30px;
    /* Increased padding */
    cursor: pointer;
    background: transparent;
    color: var(--text-color);
    border: none;
    /* Removed default border */
    border-bottom: 3px solid transparent;
    /* Placeholder for active/hover border */
    border-radius: 0;
    /* Removed rounding */
    transition: all 0.3s ease;
    margin-bottom: -5px;
    /* Align with the container's bottom border */
    position: relative;
    /* For pseudo-elements if needed */
}

.tab-button:hover {
    background-color: transparent;
    /* Keep background transparent on hover */
    color: var(--heading-color);
    /* Make text brighter on hover */
    border-bottom-color: var(--accent-orange);
    /* Add colored underline on hover */
}

.tab-button.active {
    background-color: transparent;
    /* Keep background transparent */
    color: var(--heading-color);
    /* Bright text for active */
    border-bottom-color: var(--accent-red);
    /* Stronger accent color for active underline */
    font-weight: bold;
    /* Make active tab text bolder */
    box-shadow: none;
    /* Removed previous shadow */
}

/* Optional: Add a subtle top border effect on active tab */
.tab-button.active::before {
    content: '';
    position: absolute;
    top: -2px;
    /* Position above the tab */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-red);
    border-radius: 3px 3px 0 0;
    animation: slideInTop 0.3s ease-out;
}

@keyframes slideInTop {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- END OF EVENT TAB UPDATES --- */

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content .department-section:first-child {
    margin-top: 0;
}

/* Event Department Styling */
.department-section {
    margin-top: 30px;
    /* Added margin above department title after tabs */
    margin-bottom: 50px;
}

.department-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}

.department-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-red);
    /* New accent color */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease-out;
}

/* Scroll reveal for the underline (if IntersectionObserver is used) */
.section.visible .department-title::after {
    transform: scaleX(1);
}

/* Event Grid Styles */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    justify-items: center;
    /* Center items within their grid cell */
}

.event-card {
    background-color: var(--primary-color);
    border-radius: 4px;
    border: 1px solid rgba(60, 110, 113, 0.2);
    /* New accent border */
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    /* Prevent cards from becoming too wide */
    margin-left: auto;
    /* Center card if max-width applies */
    margin-right: auto;
    /* Center card if max-width applies */
    width: 100%;
    /* Ensure card takes available space up to max-width */
}

.event-card:hover {
    border-color: var(--accent-red);
    /* New accent color */
    transform: scale(1.02);
    box-shadow: 0 5px 25px rgba(60, 110, 113, 0.3);
    /* New accent shadow */
}

.event-card .event-image {
    width: 100%;
    display: block;
    /* aspect-ratio: 16 / 9; */
    /* <<< REMOVED THIS LINE */
    height: auto;
    /* <<< ADDED THIS LINE */
    object-fit: cover;
}

.event-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.event-card-content p {
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.7;
}

.organizer-contact {
    margin-bottom: 25px;
    font-weight: 500;
    color: var(--heading-color);
}

.card-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
    /* Push buttons to bottom if content is short */
}

.guidelines-button {
    background: transparent;
    border: 1px solid var(--accent-orange);
    /* Lighter blue border */
    color: var(--accent-orange);
    /* Lighter blue text */
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.guidelines-button:hover {
    background: var(--accent-orange);
    /* Lighter blue background */
    color: var(--bg-color);
    /* Dark text on hover */
}

.register-button {
    background: var(--accent-red);
    /* New accent color */
    color: var(--heading-color);
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.register-button:hover {
    transform: scale(1.05);
    background: var(--accent-orange);
    /* Lighter blue hover */
    color: var(--bg-color);
    /* Darker text */
    box-shadow: 0 0 20px var(--accent-orange);
    /* Lighter blue shadow */
}

/* --- UPDATED GUIDELINES SECTION STYLES --- */
#guidelines {
    background-color: #050a1f;
    /* Slightly darker than primary */
    border-top: 1px solid var(--accent-red);
    /* New accent color */
    border-bottom: 1px solid var(--accent-red);
    /* New accent color */
    box-shadow: 0 0 40px rgba(60, 110, 113, 0.1);
    /* New accent shadow */
}

.guidelines-list {
    list-style-type: none;
    counter-reset: guidelines-counter;
    padding-left: 0;
}

.guidelines-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    padding-left: 55px;
    transition: all 0.2s ease-out;
}

.guidelines-list li:hover {
    color: var(--heading-color);
}

.guidelines-list li::before {
    counter-increment: guidelines-counter;
    content: counter(guidelines-counter);
    position: absolute;
    left: 0;
    top: 2px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-red);
    /* New accent color */
    background-color: var(--primary-color);
    border: 1px solid rgba(60, 110, 113, 0.3);
    /* New accent border */
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.guidelines-list li:hover::before {
    transform: scale(1.1);
    color: var(--heading-color);
    border-color: var(--accent-red);
    /* New accent color */
    box-shadow: 0 0 15px rgba(60, 110, 113, 0.5);
    /* New accent shadow */
}

.guidelines-list li a {
    color: var(--accent-orange);
    /* Lighter blue links */
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.guidelines-list li a:hover {
    color: var(--accent-red);
    /* Main accent hover */
    text-decoration: underline;
}

/* --- END UPDATED GUIDELINES SECTION STYLES --- */


/* Gallery Section */
#gallery {
    padding-bottom: 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item-full {
    grid-column: 1 / -1;
}

.gallery-item.video-container {
    position: relative;
    padding-top: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100%;
}

.gallery-item.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery-item.cell-video {
    position: relative;
    padding-top: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100%;
}

.gallery-item.cell-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--primary-color);
    box-shadow: inset 0 0 0 0px var(--accent-red);
    /* New accent color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: inset 0 0 0 4px var(--accent-red);
    /* New accent color */
}


/* Sponsors Section */
/* ===== START: UPDATED SPONSORS SECTION (Including Food Tier) ===== */
#sponsors {
    /* Use the darkest background for high contrast */
    background-color: var(--bg-color);
    border-top: 1px solid var(--accent-red);
    border-bottom: 1px solid var(--accent-red);
    padding: 100px 0;
}

.sponsor-tier {
    /* Add space between each tier */
    margin-bottom: 50px;
}

.tier-heading {
    /* Style for the tier titles (e.g., "GOLD SPONSORS") */
    font-family: var(--font-heading);
    font-size: 2.2rem;
    /* Increased size */
    color: var(--accent-orange);
    /* Use the lighter accent color */
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
}

.tier-heading::after {
    /* A bold underline for the tier heading */
    content: '';
    display: block;
    width: 150px;
    height: 4px;
    background-color: var(--accent-red);
    /* Use the main accent */
    margin: 15px auto 0;
    border-radius: 2px;
}

.logo-grid {
    /* This is the flex container for the logos */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    /* Increased gap */
}

.sponsor-plaque {
    /* This is the base "plaque" for each logo */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    border: 1px solid rgba(91, 192, 222, 0.3);
    /* Faint light accent border */
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
    min-height: 100px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.sponsor-plaque img {
    /* Base style for all sponsor images */
    width: 100%;
    height: auto;
    /* filter: grayscale(80%) opacity(0.8); */
    transition: all 0.5s ease;
}

/* --- TIER-SPECIFIC STYLES --- */

/* 1. Educational Partner (Largest and most prominent) */
.logo-grid.tier-education .sponsor-plaque {
    flex-basis: 90%;
    max-width: 650px;
    padding: 40px;
    /* Larger padding */
    /* Special "lit up" border for the largest sponsor */
    border: 2px solid var(--accent-red);
    box-shadow: 0 0 40px rgba(60, 110, 113, 0.6);
}

.logo-grid.tier-education .sponsor-plaque img {
    /* Full color for the main sponsor */
    filter: grayscale(0%) opacity(1);
    max-width: 80%;
}


/* 2. Food Partners (Two different sizes, horizontal layout) */
.logo-grid.tier-food {
    /* Ensure only two items are on one line on desktop */
    max-width: 800px;
    margin: 0 auto;
    justify-content: space-between;
}

.logo-grid.tier-food .tier-food-main {
    flex-basis: 60%;
    max-width: 450px;
    padding: 30px;
    border-color: var(--accent-orange);
    box-shadow: 0 0 25px rgba(91, 192, 222, 0.4);
}

.logo-grid.tier-food .tier-food-co {
    flex-basis: 30%;
    max-width: 250px;
    padding: 20px;
}


/* 3. Fashion Partner (Two different sizes, horizontal layout) */
.logo-grid.tier-fashion {
    /* Ensure only two items are on one line on desktop */
    max-width: 800px;
    margin: 0 auto;
    justify-content: space-evenly;
}

.logo-grid.tier-fashion .tier-fashion-main {
    flex-basis: 40%;
    max-width: 250px;
    padding: 20px;
    border-color: var(--accent-orange);
    /* box-shadow: 0 0 25px rgba(91, 192, 222, 0.4); */
}

.logo-grid.tier-fashion .tier-fashion-co {
    flex-basis: 30%;
    max-width: 250px;
    padding: 20px;
}

/* 4. General Partners (Smaller, uniform size) */
.logo-grid.tier-general .sponsor-plaque {
    flex-basis: 200px;
    min-height: 100px;
    padding: 15px;
    background-color: transparent;
    border: 1px dashed rgba(60, 110, 113, 0.2);
    box-shadow: none;
}

/* --- HOVER EFFECTS (Applied to all) --- */

.sponsor-plaque:hover {
    transform: scale(1.03);
    border-color: var(--accent-red);
    box-shadow: 0 5px 25px rgba(60, 110, 113, 0.5);
    background-color: #070e24;
}

.sponsor-plaque:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

/* Specific hover for the main educational partner */
.logo-grid.tier-education .sponsor-plaque:hover {
    box-shadow: 0 0 50px rgba(91, 192, 222, 0.9);
}

/* Mobile adjustment for Fashion and Food Tiers */
@media (max-width: 768px) {
    .logo-grid.tier-fashion,
    .logo-grid.tier-food {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .logo-grid.tier-fashion .tier-fashion-main,
    .logo-grid.tier-fashion .tier-fashion-co,
    .logo-grid.tier-food .tier-food-main,
    .logo-grid.tier-food .tier-food-co {
        flex-basis: 90%;
        max-width: 400px;
        width: 100%;
    }
}
/* ===== END: UPDATED SPONSORS SECTION (Including Food Tier) ===== */

/* ===== START: NEW CONTACT & VENUE STYLES ===== */
.contact-venue-section {
    background-color: var(--primary-color);
    /* Use primary as base */
    border-top: 1px solid rgba(60, 110, 113, 0.3);
}

.contact-venue-layout {
    display: flex;
    flex-wrap: wrap;
    /* Stack on mobile */
    gap: 40px;
    align-items: flex-start;
    /* Align items to top */
}

.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.college-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    /* Placeholder bg if logo is transparent */
    border-radius: 4px;
    padding: 10px;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 10px;
    color: var(--text-color);
}

.map-container {
    flex: 1;
    min-width: 300px;
    min-height: 350px;
    /* Give map some initial height */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(60, 110, 113, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    /* Ensure map maintains height */
}

/* --- START: NEW COORDINATOR STYLES --- */
.coordinator-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 30px;
    margin-top: 40px;
    /* Add space above the heading */
}

.coordinator-heading:first-of-type {
    margin-top: 0;
    /* No top margin for the very first one */
}

.coordinator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Responsive grid */
    gap: 30px;
    margin-bottom: 50px;
    /* Space between grids and below the last grid */
    justify-items: center;
}

.coordinator-card {
    background-color: var(--bg-color);
    /* Darker than section bg */
    border: 1px solid rgba(60, 110, 113, 0.3);
    /* Accent border */
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    /* Limit card width */
}

.coordinator-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 5px 25px rgba(60, 110, 113, 0.3);
}

.coordinator-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    /* Circular image */
    overflow: hidden;
    margin: 0 auto 20px auto;
    /* Center it */
    background-color: var(--primary-color);
    /* BG for placeholder */
    border: 3px solid var(--accent-red);
    /* Accent border */
}

.coordinator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coordinator-details h4 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.coordinator-details p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
}

/* --- END: NEW COORDINATOR STYLES --- */


/* ===== END: NEW CONTACT & VENUE STYLES ===== */


/* Footer (Renamed) */
.page-footer {
    padding: 60px 0;
    text-align: center;
    background-color: var(--bg-color);
    /* Ensure it has the base bg */
}

.social-links a {
    color: var(--text-color);
    margin: 0 15px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-red);
    /* New accent color */
}

.page-footer p {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(3, 8, 26, 0.85);
    /* Darker overlay */
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: var(--primary-color);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid rgba(60, 110, 113, 0.5);
    /* New accent border */
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close-button {
    color: var(--text-color);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: var(--heading-color);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.modal-body ul {
    list-style-position: inside;
    line-height: 1.8;
}

.modal-body ul li {
    margin-bottom: 10px;
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--accent-red);
    /* New accent color */
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    box-shadow: 0 0 20px var(--accent-red);
    /* New accent shadow */
    transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: var(--accent-orange);
    /* Lighter blue hover */
}

/* Hamburger & Mobile */
.hamburger {
    display: none;
}

@media(max-width: 900px) {

    /* Changed breakpoint for info layout */
    .info-text {
        text-align: center;
        /* Center text on mobile */
    }

    .info-image {
        /* Remove clip-path on mobile */
        clip-path: none !important;
    }
}

@media(max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background-color: rgba(3, 8, 26, 0.97);
        /* Very dark mobile nav */
        backdrop-filter: blur(10px);
        width: 70%;
        text-align: center;
        transition: 0.3s;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 25px 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--heading-color);
        transition: all 0.3s ease-in-out;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .slide {
    flex: 0 0 90%;      /* Takes 90% of phone width */
    margin: 0 1.5%;
    background-color: var(--primary-color); /* NEW: Adds a "card" background */
    transform: scale(0.9); /* Scale down non-active slides a bit more */
}
.slide.active {
    transform: scale(1); /* Active slide is full size */
}

    .slide img {
    height: 350px;      /* Keeps the shorter image height */
    /* NEW: Rounds *only* the top corners to fit the card */
    border-radius: 8px 8px 0 0; 
}

    .slide-content {
    /* --- THIS IS THE MAIN FIX --- */
    position: relative;   /* Puts it back in the document flow (under the image) */
    bottom: auto;         /* Resets old properties */
    left: auto;
    right: auto;
    background: transparent; /* Removes the overlay gradient */
    /* --- End of main fix --- */
    
    padding: 25px;      /* Keeps padding */
}

  .slide-content h2 {
    /* This makes the title a little smaller */
    font-size: 1.8rem;  /* Was 2rem */
    margin-bottom: 10px; /* Ensures space above stacked buttons */
}
    .slide-content p {
    /* This still hides the extra paragraph to save space */
    display: none;
}

    .slide-content div[style*="display: flex"] {
        flex-direction: column;
        /* Stack the buttons vertically */
        align-items: flex-start !important;
        /* Override inline style to align left */
        gap: 10px !important;
        /* Override inline style for a smaller gap */
    }

    .slide-content .slide-cta,
    .slide-content .guidelines-button {
        width: 100%;
        text-align: center;
        /* Center the text inside the button */
        box-sizing: border-box;
        /* Ensures padding doesn't break the width */
    }

    .slide-content p {
        display: none;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .event-tabs {
        gap: 10px;
        margin-bottom: 40px;
        /* Adjust margin for mobile */
        padding-bottom: 3px;
        /* Adjust padding for mobile */
    }

    .tab-button {
        font-size: 1.3rem;
        /* Adjust font size for mobile */
        padding: 10px 15px;
        /* Adjust padding for mobile */
        margin-bottom: -3px;
        /* Adjust alignment for mobile */
    }

    /* Remove top line effect on mobile if it looks cluttered */
    .tab-button.active::before {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* This rule is needed to reset the desktop layout on mobile */
    .gallery-item-full,
    .gallery-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .event-card {
        max-width: none;
        /* Allow cards to fill width on mobile */
    }

    /* Countdown mobile styles */
    .countdown-block {
        padding: 10px 15px;
        min-width: 60px;
    }

    .countdown-block span:first-child {
        font-size: 2rem;
    }

    .countdown-block .label {
        font-size: 0.7rem;
    }

    /* Contact/Venue mobile styles */
    .contact-info {
        text-align: center;
        /* Center contact info on mobile */
    }

    .college-logo {
        margin-left: auto;
        margin-right: auto;
    }

    /* Coordinator mobile styles */
    .coordinator-grid {
        grid-template-columns: 1fr;
        /* Stack on small mobile */
        gap: 20px;
    }

    .coordinator-card {
        max-width: none;
        /* Full width */
    }
}

/* --- UPDATED DESKTOP MEDIA QUERY --- */
@media (min-width: 900px) {
    .info-row {
        flex-wrap: nowrap;
        /* Go side-by-side on desktop */
    }

    /* Row 1: Text | Image (default order) */
    /* No rule needed, this is the default */

    /* Row 2: Image | Text (reversed order) */
    #about-nimit-row {
        flex-direction: row-reverse;
    }

    /* Align text to the right for the NIMIT block */
    #about-nimit-row .info-text {
        text-align: right;
    }

    /* --- Add the clip-path *only* on desktop --- */
    #laqshya-image {
        /* Slants the left edge: / */
        clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    #nimit-image {
        /* Slants the right edge: \ */
        clip-path: polygon(0% 0%, 80% 0%, 100% 100%, 0% 100%);
    }
}

/* ===== BROCHURE MODAL STYLES (Refined Alignment) ===== */
.brochure-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 8, 26, 0.9); /* Darker background for better focus */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    
    /* ADDED: Extra padding prevents the sticker from hitting screen edges */
    padding: 40px; 
}

.brochure-modal.show-brochure {
    display: flex;
    opacity: 1;
}

.brochure-content {
    position: relative;
    width: auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: scaleUp 0.5s ease;
    
    /* CRITICAL: Allows the sticker to hang OUTSIDE the box */
    overflow: visible; 
}

/* Main Poster Image Styling */
.brochure-content img:not(.food-sticker) {
    max-height: 80vh; /* Slightly reduced to give sticker room at top */
    width: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    border: 2px solid var(--accent-red);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

/* The "Food" Sticker Styling - DESKTOP DEFAULTS */
.food-sticker {
    position: absolute;
    
    /* Make it LARGE on desktop */
    width: 220px; 
    
    /* Push it far out to the left so it doesn't cover text */
    top: -30px; 
    left: -110px; 
    
    /* transform: rotate(-25deg); Nice tilt */
    z-index: 2002;
    filter: drop-shadow(8px 8px 15px rgba(0,0,0,0.6)); /* Deep shadow for 3D effect */
    
    /* Reset borders */
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    pointer-events: none; /* Let clicks pass through to the image/close button */
}

/* The Close Button (X) */
.close-brochure {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-red);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid var(--heading-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    z-index: 2003; /* Higher than sticker */
}

.close-brochure:hover {
    background-color: var(--accent-orange);
    transform: scale(1.1);
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== MOBILE & TABLET ADJUSTMENTS ===== */
@media (max-width: 900px) {
    /* Tablet/Small Laptop: Pull it in slightly */
    .food-sticker {
        width: 180px;
        left: -80px;
        top: -60px;
    }
}

@media (max-width: 600px) {
    .brochure-modal {
        padding: 20px; /* Reset padding for mobile */
    }

    .brochure-content {
        /* Push content down so sticker has room at the top */
        margin-top: 60px; 
    }

    .food-sticker {
        /* MOBILE PERFECT FIT */
        width: 140px; /* Good readable size on phone */
        
        /* Position: Sit mostly ON TOP of the poster frame */
        top: -65px;  
        
        /* Align left edge with poster left edge */
        left: -10px; 
        
        /* Less tilt so it fits tighter */
        /* transform: rotate(-15deg);  */
    }

    .close-brochure {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 18px;
        top: -15px;
        right: -10px;
    }
}
/* ===== END: BROCHURE MODAL STYLES ===== */
