/* --- GLOBAL RESET & VARIABLES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-dark: #0a192f;
    --primary-blue: #003366;
    --accent-teal: #64ffda;
    --light-gray: #f0f2f5; /* Slightly darker shade for better contrast */
    --white: #ffffff;
    --text-dark: #333333;
    --table-header-bg: #003366;
    --notice-bg: #fff8e1; /* Light yellow for notices */
    --notice-border: #ffc107; /* Amber border for notices */
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: var(--text-dark); background-color: var(--white); }

/* --- NAVBAR STYLING --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    background-color: var(--primary-dark); padding: 0.7rem 5%;
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.logo-container { display: flex; align-items: center; gap: 15px; }

/* UPDATED: ROUND LOGOS */
.nav-logo {
    height: 55px; width: 55px; /* Fixed width/height for perfect circle */
    border-radius: 50%; /* Makes it round */
    object-fit: cover; /* Ensures image doesn't stretch */
    border: 2px solid rgba(255,255,255,0.2); /* Subtle border */
}

.logo-text { color: var(--white); font-size: 1.2rem; font-weight: 600; }
.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.8); font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--accent-teal); }
.ext-link i { color: red; margin-right: 5px; }

/* Mobile Menu Icons (Hidden on desktop) */
.navbar .fa-bars, .navbar .fa-times { display: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    height: 60vh;
    /* UPDATED PATH: pointing to gallery/images/ for the background */
    background: url('gallery/images/hero-bg.png') no-repeat center center/cover;
    position: relative;
}

.hero-overlay {
    background: rgba(10, 25, 47, 0.7);
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-content .tagline {
    font-style: italic;
    color: var(--accent-teal);
    margin-top: 15px;
    font-weight: 600;
}
/* --- INFINITE SCROLL / MARQUEE STYLES --- */
.marquee-container {
    overflow: hidden; /* Hides the scrollbar */
    padding: 20px 0;
    position: relative;
    background: var(--light-gray);
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 20px; /* Space between photos */
    width: max-content; /* Ensures track is as wide as all photos combined */
    /* The Magic: Move left by 50% of the total width */
    animation: scroll-left 500s linear infinite; 
}

/* Pause animation when hovering so people can look closer */
.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex: 0 0 auto; /* Prevents squishing */
    width: 300px;   /* Fixed Width */
    aspect-ratio: 3 / 2; /* FORCES 3:2 RATIO */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: #fff; /* White bg in case image loads slow */
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image perfectly to fill the 3:2 box */
}

/* The Animation Keyframes */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        /* We move -50% because we will double the content in JS */
        transform: translateX(-50%);
    }
}

/* On mobile, make the photos a bit smaller */
@media (max-width: 768px) {
    .marquee-item {
        width: 240px; /* Still 3:2 ratio (240x160) */
    }
}
/* --- HOMEPAGE MINI MARQUEE --- */
.home-marquee-item {
    flex: 0 0 auto;
    width: 270px;  /* Smaller width */
    height: 180px; /* Smaller height (3:2 ratio) */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    background: #fff;
    margin-right: 20px; /* Space between photos */
}

.home-marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* --- GENERAL SECTION STYLING --- */
.section-container { padding: 4rem 10%; }
.alt-bg { background-color: var(--light-gray); }
.section-title { text-align: center; font-size: 2rem; color: var(--primary-blue); margin-bottom: 2rem; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background-color: var(--accent-teal); }

/* --- NEW NOTICEBOARD STYLING --- */
.notice-board {
    background-color: var(--notice-bg);
    border-left: 5px solid var(--notice-border);
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.notice-board h3 { color: var(--primary-dark); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.notice-board h3 i { color: var(--notice-border); }
.notice-board ul { list-style: none; padding-left: 10px; }
.notice-board li { margin-bottom: 10px; padding-left: 25px; position: relative; }
/* Custom bullet point for notices */
.notice-board li::before {
    content: '\f0da'; /* FontAwesome caret */
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    color: var(--primary-blue); position: absolute; left: 0; top: 2px;
}

/* --- UPDATED TABLE STYLING --- */
/* A container to give tables a clean white box look on grey backgrounds */
.table-container-styled {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow-x: auto; /* For mobile scrolling */
}

.data-table {
    width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 0.95rem; text-align: left;
}
.data-table thead tr { background-color: var(--table-header-bg); color: var(--white); }
.data-table th, .data-table td { padding: 12px 15px; border-bottom: 1px solid #eee; }
.data-table tbody tr:hover { background-color: rgba(0, 51, 102, 0.05); }

/* Specific Table Tweaks */
/* Removed S.No from student table to save space, tweaked widths */
.student-table th:nth-child(1) { width: 30%; } /* Post */
.student-table th:nth-child(2) { width: 35%; } /* Name */
.student-table th:nth-child(3) { width: 35%; } /* Course */

/* PDF Link Button Styling */
.pdf-link {
    display: inline-block; padding: 6px 12px;
    background-color: var(--primary-blue); color: var(--white);
    text-decoration: none; border-radius: 4px; font-size: 0.85rem;
    transition: background 0.3s;
}
.pdf-link:hover { background-color: var(--accent-teal); color: var(--primary-dark); }
.pdf-link i { margin-right: 5px; }

.convener-box {
    text-align: center; margin-top: 20px; padding: 15px;
    background-color: var(--primary-blue); color: var(--white);
    border-radius: 8px; font-weight: 600;
}

/* --- GALLERY & FOOTER --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { overflow: hidden; border-radius: 10px; height: 250px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item img:hover { transform: scale(1.1); }

.footer { background-color: var(--primary-dark); color: var(--white); text-align: center; padding: 2rem 0; }
.designer-credit a { color: var(--accent-teal); text-decoration: none; }

/* --- MOBILE RESPONSIVENESS (Added Menu Toggle) --- */
@media (max-width: 768px) {
    .navbar .fa-bars { display: block; } /* Show menu icon */
    .navbar .fa-times { display: block; position: absolute; top: 20px; right: 25px; } /* Show close icon inside menu */

    .nav-links {
        position: fixed; background: var(--primary-dark); height: 100vh; width: 200px;
        top: 0; right: -200px; /* Hidden by default */
        flex-direction: column; align-items: flex-start; padding: 50px 20px;
        transition: right 0.3s ease; z-index: 2000; /* Smooth slide in */
    }
    .nav-logo { height: 45px; width: 45px; }
    .hero-title { font-size: 2rem; }
    .section-container { padding: 3rem 5%; }
    .data-table th, .data-table td { padding: 10px; } /* tighter table padding on mobile */
}
/* --- VIDEO SECTION STYLES (9:16 Vertical Format) --- */
.video-grid {
    display: grid;
    /* Reduced width to 250px so vertical videos aren't too massive */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    padding: 20px 0;
}

.video-card {
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card video {
    width: 100%;
    /* UPDATED: Forces 9:16 Ratio (Vertical/Reel Style) */
    aspect-ratio: 9 / 16; 
    border-radius: 8px;
    background: #000; 
    object-fit: cover; 
}

.video-card h3 {
    font-size: 1.1rem;
    margin-top: 10px;
    text-align: center;
    color: var(--primary-blue);
    font-weight: 600;
}
/* --- VIEW ALL BUTTON & GRID STYLES --- */
.view-all-btn {
    display: block;
    margin: 20px auto 10px auto; /* Centers the button */
    padding: 10px 30px;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2);
}

/* The Grid Container (Hidden by default) */
.full-grid-view {
    display: none; /* Keeps it hidden until button is clicked */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

/* When Javascript adds the 'active' class, show the grid */
.full-grid-view.active {
    display: grid;
}

.full-grid-view img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.full-grid-view img:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Add this to your style.css or inside <style> tags */
.btn-container {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 20px;
}

.view-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-dark, #333); /* Fallback color if var not found */
    color: white;
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.view-btn:hover {
    background-color: white;
    color: var(--primary-dark, #333);
    border: 1px solid var(--primary-dark, #333);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}