/* 1. GLOBAL FOUNDATION & VARIABLES*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Mukta:wght@400;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #0a2e5c;      
    --secondary: #1e40af;     
    --accent: #b45309;        
    --success: #059669;       
    --bg-light: #f8fafc;      
    --bg-white: #ffffff;
    --text-main: #1e293b;    
    --text-muted: #64748b;
    
    /* UI Specs */
    --radius-md: 12px;
    --radius-sm: 6px;
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 75px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Mukta', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { 
    flex: 1; 
    padding-top: var(--nav-height); /* Space for Fixed Nav */
}

/* ============================================================
   ELITE MAIN NAV - CUSTOM STYLE (Overrides Bootstrap)
   ============================================================ */
.main-nav {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: var(--primary) !important; /* Deep Navy */
    padding: 0 5%;
    height: 75px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    z-index: 2000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff !important; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* NAVIGATION LINKS */
#nav-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#nav-menu a {
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.9) !important; 
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

#nav-menu a:hover, #nav-menu a.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
}

/* Lang Buttons */
.controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.controls button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important; 
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.controls button:hover, 
.controls button.active-lang {
    background: #ffffff;
    color: var(--primary) !important; 
    border-color: #ffffff;
}

/* HAMBURGER (Mobile) */
.hamburger {
    display: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* MOBILE FIX */
@media (max-width: 1024px) {
    #nav-menu { display: none; }
    .hamburger { display: block; }
}
.controls button.active-lang { background: white; color: var(--primary); }

.hamburger { display: none; color: white; font-size: 28px; cursor: pointer; }

/* ============================================================
   3. HOME PAGE COMPONENTS (DASHBOARD & ANNOUNCEMENTS)
   ============================================================ */
.main-dashboard-grid {
    display: grid; grid-template-columns: 2.5fr 1fr;
    gap: 30px; padding: 30px 5%; max-width: 1500px; margin: 0 auto;
}


.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 550px; 
    background: #000; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}


.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; 
    transition: opacity 1.2s ease-in-out; 
    z-index: 1;
}

.slide.active {
    opacity: 1; 
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CAPTION & GRADIENT FIX */
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Gradient only at the bottom 30% so images stay clear */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    z-index: 5;
}

.caption h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* RESPONSIVE CAROUSEL */
@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }
    .caption h2 {
        font-size: 18px;
    }
    .caption {
        padding: 20px;
    }
}


/* NOTICES CARD */
.notices-section, .notices-card {
    flex: 1;
    background: var(--bg-white);
    padding: 25px;
    border-radius: 8px;
    height: 550px; /* Matches the Carousel height for a clean line */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 5px solid var(--primary); /* Thick blue line at the top for authority */
    display: flex;
    flex-direction: column;
}

.notices-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* NOTICE FEED LIST */
.notice-list, .notice-feed {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto; 
    flex-grow: 1;
}

.notice-list li, .notice-feed li {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 6px;
    background: #f8fafc; 
    transition: transform 0.2s ease, background 0.2s ease;
}

.notice-list li:hover, .notice-feed li:hover {
    background: #eef2ff; 
    transform: translateX(5px); 
}

.notice-list a, .notice-feed a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-list a:hover, .notice-feed a:hover {
    color: var(--secondary);
}


.notice-feed::-webkit-scrollbar {
    width: 5px;
}
.notice-feed::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.notice-feed::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}








/* ANNOUNCEMENT BAR */
.announcement-bar {
    display: flex;
    background: var(--primary);
    margin: 0 5% 30px;
    border-radius: var(--radius-sm);
    overflow: hidden; 
    position: relative;
}

.announcement-label {
    background: var(--accent) !important; 
    color: white;
    padding: 12px 24px;
    font-weight: 700;
    position: relative;
    z-index: 10; 
    box-shadow: 10px 0 15px rgba(0,0,0,0.3); 
    white-space: nowrap;
}

.announcement-content {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden; 
    position: relative;
    z-index: 5;
}

.announcement-track {
    display: flex;
    animation: scroll-left 25s linear infinite;
    white-space: nowrap;
}

.announcement-item { color: white; padding: 0 50px; font-weight: 500; }
.announcement-label { background: var(--accent); color: white; padding: 12px 24px; font-weight: 700; }
.announcement-track { display: flex; animation: scroll-left 25s linear infinite; white-space: nowrap; align-items: center; }
.announcement-item { color: white; padding: 0 50px; font-weight: 500; }

/* ============================================================
   4. ABOUT & MEMBERS (CARDS & GRIDS)
   ============================================================ */
.section-title { text-align: center; color: var(--primary); margin: 40px 0 20px; font-size: 2rem; }

.info-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; padding: 0 5% 40px;
}
.info-card {
    background: white; padding: 25px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.member-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px; padding: 0 5% 40px;
}
.member-card {
    background: white; border-radius: var(--radius-md); overflow: hidden;
    text-align: center; padding: 20px; box-shadow: var(--shadow-sm);
}
.member-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #f1f5f9; }

/* ============================================================
   5. SCHEMES & GALLERY
   ============================================================ */
.scheme-card { border: none; box-shadow: var(--shadow-sm); border-radius: var(--radius-md); }
.gallery-card {
    border-radius: var(--radius-md); overflow: hidden; 
    cursor: pointer; transition: var(--transition);
}
.gallery-card img { width: 100%; height: 250px; object-fit: cover; }

/* ============================================================
   6. CONTACT & FOOTER
   ============================================================ */
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 2fr;
    gap: 30px; padding: 0 5% 40px;
}
.main-footer-small {
    background: #0f172a; color: white; padding: 30px 5%;
    margin-top: auto; text-align: center;
}

/* ============================================================
   7. RESPONSIVENESS
   ============================================================ */
@media (max-width: 1024px) {
    .main-dashboard-grid, .contact-wrapper { grid-template-columns: 1fr; }
    #nav-menu { display: none; } /* JS will handle this */
    .hamburger { display: block; }
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}