﻿/* ---- Global Typography & Colors ---- */
body {
    font-family: 'Poppins', sans-serif; /* Clean modern font */
    background-color: #f8f9fa; 
    
}

/* Hindi text gets a specialized elegant font */
.college-name-hi, .hindi-text {
    font-family: 'Noto Serif Devanagari', serif;
}

.bg-maroon { background-color: #800000 !important; }
.text-maroon { color: #800000 !important; }
.bg-navy { background-color: #0b1c3a !important; }
.text-navy { color: #0b1c3a !important; }
.text-golden { color: #f4c20d !important; }
.border-top-golden { border-top: 4px solid #f4c20d; }

/* ---- Top Utility Bar ---- */
.top-bar {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.top-bar a {
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.top-bar a:hover {
    color: #f4c20d !important;
}

/* ---- Branding Header ---- */
.college-name-en {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
}
.college-name-hi {
    font-size: 1.6rem;
    margin-top: 5px;
}
.affiliation-text {
    font-size: 0.95rem;
    font-weight: 500;
}
.college-code-badge {
    border-radius: 5px;
    border: 2px solid #e0e0e0 !important;
}

/* ---- Main Navigation (Pure CSS, No JS) ---- */
.main-nav {
    border-bottom: 3px solid #f4c20d;
    border-bottom: 3px solid #f4c20d;   
    
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1050; 
    /* ------------------------------------------------ */
}
.main-nav .nav-menu {
    list-style: none;
}
.main-nav .nav-menu > li {
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.main-nav .nav-menu > li:first-child {
    border-left: 1px solid rgba(255,255,255,0.1);
}
.main-nav .nav-menu a {
    display: block;
    padding: 14px 22px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}
.main-nav .nav-menu a:hover, 
.main-nav .nav-menu a:focus {
    background-color: #5c0000;
    color: #f4c20d;
}

/* Dropdown Menu CSS Logic */
.main-nav .dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    list-style: none;
    padding: 0;
    min-width: 240px;
    z-index: 1000;
    border-top: 3px solid #800000;
}
.main-nav .dropdown li {
    border-bottom: 1px solid #f0f0f0;
}
.main-nav .dropdown a {
    color: #333333;
    padding: 12px 20px;
    font-size: 0.9rem;
}
.main-nav .dropdown a:hover {
    background-color: #f8f9fa;
    color: #800000;
    padding-left: 25px; /* Nice sliding hover effect */
    transition: all 0.3s ease;
}

/* Reveal dropdown on hover or focus (No JS required) */
.main-nav .has-dropdown:hover .dropdown,
.main-nav .has-dropdown:focus-within .dropdown {
    display: block;
}

/* ---- Footer ---- */
.footer-links a {
    color: #d1d1d1;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s, transform 0.2s;
}
.footer-links a:hover {
    color: #f4c20d;
    transform: translateX(5px);
}
.text-light-gray { color: #cccccc; }


/* ---- CSS-Only Hamburger Menu (NO JS) ---- */

/* डेस्कटॉप पर हैमबर्गर बटन को छिपा कर रखें */
.hamburger-icon {
    display: none;
    color: #f4c20d;
    background-color: #5c0000;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

/* ---- Mobile Responsive Rules ---- */
@media (max-width: 768px) {
    /* टॉप बार सेंटर करें */
    .top-bar .container { flex-direction: column; text-align: center; }
    .top-links { margin-top: 8px; text-align: center !important; }
    
    /* हेडर सेंटर करें */
    .header-area .d-flex { flex-direction: column; text-align: center; }
    .logo-placeholder { margin-right: 0 !important; margin-bottom: 15px; }
    
    /* मोबाइल पर हैमबर्गर बटन दिखाएं */
    .hamburger-icon {
        display: block;
    }

    /* मेनू को डिफ़ॉल्ट रूप से छिपा दें */
    .main-nav .nav-menu {
        display: none !important; 
        flex-direction: column;
        width: 100%;    
    }
    #menu-toggle:checked ~ .nav-menu {
        display: flex !important;
    }

    /* जादू यहाँ है: जब चेकबॉक्स चेक (Tick) होगा, तब मेनू दिखेगा */
    #menu-toggle:checked ~ .nav-menu {
        display: flex;
    }

    /* मोबाइल मेनू की स्टाइलिंग */
    .main-nav .nav-menu > li {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }

    /* मोबाइल पर ड्रॉपडाउन सेटिंग्स */
    .main-nav .dropdown {
        position: static;
        width: 100%;
        box-shadow: none !important;
        border-top: none;
        background-color: #f8f9fa;
    }
    .main-nav .dropdown a {
        padding-left: 30px;
        color: #800000; /* मैरून रंग ताकि साफ़ दिखे */
    }
}


/* ---- Header Social Media Icons ---- */
.header-social-icons {
    align-items: center;
    background: transparent !important; /* बैकग्राउंड को पूरी तरह पारदर्शी (गायब) कर देगा */
    box-shadow: none !important;        /* परछाई (shadow) हटा देगा */
    border: none !important;            /* कोई बॉर्डर होगी तो उसे हटा देगा */
    padding: 0;
}
.header-social-icons .s-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f1f1f1; /* डिफ़ॉल्ट हल्का ग्रे बैकग्राउंड */
    color: #555555;            /* डिफ़ॉल्ट आइकॉन कलर */
    margin-left: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease-in-out;
    border: 1px solid #e0e0e0;
}

/* होवर करने पर थोड़ा ऊपर उठने का इफ़ेक्ट */
.header-social-icons .s-icon:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: transparent;
}

/* होवर करने पर असली ब्रांड कलर्स (Brand Colors) */
.header-social-icons .fb:hover { background-color: #1877F2; } /* Facebook Blue */
.header-social-icons .yt:hover { background-color: #FF0000; } /* YouTube Red */
.header-social-icons .ig:hover { 
    /* Instagram Gradient */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
}
.header-social-icons .x:hover  { background-color: #000000; } /* X (Twitter) Black */




#btnBackToTop 
{
    
            display: none; /* शुरुआत में छुपा रहेगा */
            position: fixed; 
            bottom: 30px; 
            right: 30px; 
            z-index: 999; 
            border: none; 
            outline: none; 
            background-color: #800000; /* Maroon Color */
            color: white; 
            cursor: pointer; 
            width: 45px;
            height: 45px;
            border-radius: 50%; /* गोल बनाने के लिए */
            font-size: 20px; 
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            transition: all 0.3s ease-in-out;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #btnBackToTop:hover {
            background-color: #d4af37; /* Golden hover color */
            color: #002147; /* Navy Blue Icon */
            transform: translateY(-5px); /* Hover par thoda upar uthega */
        }

