/* ==========================================================================
   💎 BHSS SOGAM - MODERN DESIGN SYSTEM (FINAL COMPLETE FIX)
   ========================================================================== */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --dark: #1e293b;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.95);
   --font-main: 'Segoe UI', Roboto, sans-serif;
    --h1-size: 2.5rem;
    --h2-size: 1.8rem;
    --p-size: 1rem;
}

/* 1. VIEWPORT & CONTENT ALIGNMENT */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important; /* Prevents horizontal scroll */
    width: 100% !important;
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
   
}

h1, h2, h3 { 
    color: var(--dark); 
    font-weight: 700; 
}

section {
    padding: 3rem 0;
}

/* Fixes the "unfit" gap - Content starts exactly below headers */
main {
    margin-top: 85px !important; /* Mobile total height */
    width: 100% !important;
}

@media (min-width: 992px) {
    main { margin-top: 100px !important; } /* Desktop total height */
}

/* 2. PINNED HEADER WRAPPER (Pins to very top) */
.sticky-top:has(header) {
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 2000 !important;
    background: white !important;
    overflow: visible !important; /* Critical for dropdown */
}

/* --- Oval Branding Badge (Slim & Latitudinal) --- */
.logo-pill-badge {
    display: flex !important;
    align-items: center !important;
    background-color: #f1f5f9 !important;
    border-radius: 50px !important;
    border: 1px solid #dee2e6 !important;
    padding: 2px 10px 2px 2px !important;
    gap: 8px !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin-left: 10px !important;
}

.logo-img {
    border-radius: 50% !important;
    object-fit: cover !important;
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
}

.school-name {
    font-weight: 700 !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: var(--dark) !important;
}
/* header image    */
.post-header-img {
    max-height: 450px;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

/* --- Student Portal Button & Dropdown Fix --- */
.btn-portal {
    border-radius: 50px !important;
    transition: all 0.3s ease;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.btn-portal:hover {
    background-color: var(--primary-dark) !important;
    color: #ffffff !important;
}

/* Force dropdown visibility */
.dropdown-menu.show {
    display: block !important;
    position: absolute !important;
    right: 0 !important;
    top: 100% !important;
    z-index: 9999 !important;
    background-color: white !important;
    min-width: 210px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* --- Mobile View (Default) --- */
@media (max-width: 991px) {
    header.sticky-top {
        height: 44px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        overflow: visible !important;
    }
    
    .header-responsive {
        display: flex !important;
        justify-content: space-between !important; 
        align-items: center !important;
        padding: 0 10px !important;
        width: 100% !important;
    }

    .btn-portal {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        width: auto !important;
    }

    .search-socials-container, .school-tagline { display: none !important; }
}

/* --- Desktop View (Slim Sticky Design) --- */
@media (min-width: 992px) {
    header.sticky-top {
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
    }

    .logo-img { width: 40px !important; height: 40px !important; }
    .school-name { font-size: 1.1rem !important; }
    
    /* Social Icons on Desktop */
    .search-socials-container {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        margin-left: auto !important;
        margin-right: 20px !important;
    }
    .search-socials-container form { display: none !important; }

    /* Blue Nav Bar - Stacked under branding */
    nav.navbar.sticky-top {
        display: flex !important;
        background-color: var(--primary) !important;
        height: 44px !important;
        position: relative !important;
        padding: 0 !important;
    }
    
    nav.navbar .nav-link {
        padding: 5px 12px !important;
        font-size: 0.9rem !important;
        color: white !important;
    }
}

/* --- Aesthetic Utility --- */
.pulse-dot {
    width: 8px; height: 8px;
    background: #dc3545;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* --- Restore Social Icons Visibility (FB, YouTube, etc.) --- */

/*1 Social Icons on Desktop */
    .search-socials-container {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        margin-left: auto !important;
        margin-right: 20px !important;
    }
    
    /*2 ENABLED: Search bar now visible on desktop */
    .search-socials-container form { 
        display: flex !important; 
    }

/* 3. Ensure the icons look good on both Mobile and Desktop */
@media (max-width: 991px) {
    .search-socials-container {
        /* On small screens, keep them slim so they don't overlap branding */
        gap: 8px !important;
    }
    
    .search-socials-container a {
        font-size: 1.1rem !important; /* Adjust icon size for mobile */
    }
}

/* Force Logo Rendering on Physical Mobile Devices */
.logo-img {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 32px !important;  /* Ensures it never shrinks to 0 */
    min-height: 32px !important;
    content-visibility: visible !important; /* Prevents mobile browser from "skipping" the render */
}

/* Fix for ALL dropdown menus in the sticky headers */
.dropdown-menu.show {
    display: block !important;
    position: absolute !important;
    z-index: 9999 !important;
    background-color: white !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

/* Ensure the blue navbar doesn't cut off the Admissions dropdown */
nav.navbar {
    overflow: visible !important;
}


/* ==========================================================================
   3. COMPONENT: MODERN NOTICE BOARD & CARDS
   ========================================================================== */

.notice-card {
    background: var(--light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-dark);
}

.notice-date {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notice-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.notice-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.notice-link:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   4. HERO SECTION VISIBILITY & CONTRAST FIX
   ========================================================================== */

/* 1. Force the Hero text to be white with a strong drop shadow for readability */
.carousel-caption h1,
.carousel-caption h2,
.carousel-caption h3,
.carousel-caption p {
    color: #ffffff !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.6) !important;
}

/* 2. Fix the invisible "View Subjects" & "Download" buttons with a frosted glass effect */
.carousel-caption .btn-outline-light,
.btn-outline-light {
    background-color: rgba(0, 0, 0, 0.4) !important; /* Semi-transparent dark background */
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(4px); /* Modern frosted glass effect */
    font-weight: 600;
    text-shadow: none !important;
}

.carousel-caption .btn-outline-light:hover,
.btn-outline-light:hover {
    background-color: #ffffff !important;
    color: var(--dark) !important;
    border-color: #ffffff !important;
}

/* ==========================================================================
   5. BULLETPROOF HERO TEXT GLOW
   ========================================================================== */
.hero-text-glow {
    color: #ffffff !important;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 1), 0 0 40px rgba(0, 0, 0, 0.8) !important;
    font-weight: 800 !important;
}


/* --- ACADEMICS SECTION STYLES --- */
.academics-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative Background Shapes (Floating Orbs) */
.academics-section::before,
.academics-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.01));
    z-index: 0;
}
.academics-section::before { top: -100px; right: -100px; }
.academics-section::after { bottom: -100px; left: -100px; }

/* Glassmorphism for the Info Badge */
.info-badge-glass {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Card Animations & Hover Effects */
.academic-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    z-index: 1; /* Ensures cards stay above the background orbs */
}
.academic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Faculty Icons Backgrounds */
.stream-icon-bg {
    width: 80px; height: 80px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; margin-bottom: 1.5rem;
}
.faculty-science { background: rgba(40, 167, 69, 0.1); color: #28a745; }
.faculty-humanities { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.faculty-commerce { background: rgba(23, 162, 184, 0.1); color: #17a2b8; }

/* Subject Pills */
.subject-pill {
    background: #f8f9fa; border: 1px solid #dee2e6;
    color: #495057; font-weight: 500; padding: 0.4rem 0.8rem;
    border-radius: 50px; display: inline-block; margin: 0.2rem;
    font-size: 0.85rem; transition: all 0.2s ease;
}
.subject-pill:hover { 
    background: #0d6efd; 
    color: white; 
    border-color: #0d6efd; 
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0d6efd;
}

/* New css update 28/06/2026 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Playfair+Display:wght@700&display=swap');

:root {
    --school-primary: #1E4D2B !important; 
    --school-accent: #D4AF37 !important;  
    --school-text: #2D3436 !important;
}

body { font-family: 'Inter', sans-serif !important; }
h1, h2, h3, .school-name { font-family: 'Playfair Display', serif !important; }

/* Announcement Bar & New Sections */
#announcement-top-bar { background: var(--school-primary); color: white; border-bottom: 2px solid var(--school-accent); padding: 8px 0; text-align: center; z-index: 1030; position: relative; }
.text-accent { color: var(--school-accent) !important; }
.bg-accent { background-color: var(--school-accent) !important; }
.faculty-card-modern img { transition: all 0.3s ease; aspect-ratio: 1/1; object-fit: cover; }
.faculty-card-modern:hover img { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }
