/* ==========================================================================
   SHREE BHAGWAN ENGLISH SCHOOL (TULSI ENGLISH SCHOOL), BEED, MAHARASHTRA
   Custom Stylesheet (style.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Variables & Root Settings
   -------------------------------------------------------------------------- */
:root {
    --primary-navy: #0c2340;
    --primary-navy-dark: #08162b;
    --primary-blue: #1d4ed8;
    --primary-light: #eff6ff;
    --accent-gold: #f59e0b;
    --accent-gold-hover: #d97706;
    --accent-gold-light: #fef3c7;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Helper Utilities */
.bg-navy {
    background-color: var(--primary-navy) !important;
}
.text-navy {
    color: var(--primary-navy) !important;
}
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.max-w-700 {
    max-width: 700px;
}
.tracking-wide {
    letter-spacing: 0.08em;
}

/* Section Title Styling */
.section-title h2 {
    margin-top: 0.5rem;
}
.title-divider {
    width: 70px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
    margin-top: 12px;
}

/* --------------------------------------------------------------------------
   2. Top Bar & Navbar
   -------------------------------------------------------------------------- */
.top-bar {
    background-color: var(--primary-navy-dark);
    font-size: 0.875rem;
}
.social-links-top a {
    transition: var(--transition-smooth);
    opacity: 0.85;
}
.social-links-top a:hover {
    opacity: 1;
    color: var(--accent-gold) !important;
}

.school-logo-badge {
    width: 44px;
    height: 44px;
    background: var(--primary-navy);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.school-brand-title {
    font-size: 1.2rem;
    color: var(--primary-navy);
    line-height: 1.2;
}
.school-brand-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.navbar {
    transition: var(--transition-smooth);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    position: relative;
    transition: var(--transition-smooth);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

/* --------------------------------------------------------------------------
   3. Section 1: Hero Carousel & Stats
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
}

.carousel-item {
    height: 75vh;
    min-height: 520px;
    background-color: var(--primary-navy);
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
}

.carousel-caption {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 1rem;
}

.hero-lead {
    max-width: 780px;
    font-size: 1.15rem;
    line-height: 1.6;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: var(--transition-smooth);
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.stats-strip {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    border-radius: 16px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card {
    transition: var(--transition-smooth);
    padding: 0.5rem;
}
.stat-card:hover {
    transform: translateY(-5px);
}

/* --------------------------------------------------------------------------
   4. Section 2: About Us
   -------------------------------------------------------------------------- */
.about-img-wrapper {
    position: relative;
}
.about-img-wrapper img {
    border: 6px solid #ffffff;
}
.about-experience-badge {
    bottom: -20px;
    right: -10px;
    min-width: 130px;
}

.vision-mission-card {
    transition: var(--transition-smooth);
    border: 1px solid #e2e8f0;
}
.vision-mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover) !important;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   5. Section 3: Principal's Message
   -------------------------------------------------------------------------- */
.principal-box {
    background: linear-gradient(135deg, #0c2340 0%, #17365d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.principal-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   6. Section 4: Academics
   -------------------------------------------------------------------------- */
.academic-card {
    transition: var(--transition-smooth);
    border: 1px solid #f1f5f9;
}
.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover) !important;
    border-color: var(--accent-gold);
}
.academic-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teaching-methods {
    border: 1px solid #e2e8f0;
}

/* --------------------------------------------------------------------------
   7. Section 5: Facilities
   -------------------------------------------------------------------------- */
.facility-card {
    transition: var(--transition-smooth);
    border: 1px solid #e2e8f0;
}
.facility-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover) !important;
}

.facility-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.facility-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.facility-card:hover .facility-img {
    transform: scale(1.08);
}
.facility-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   8. Section 6: Teachers / Faculty
   -------------------------------------------------------------------------- */
.teacher-card {
    transition: var(--transition-smooth);
    border: 1px solid #e2e8f0;
}
.teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover) !important;
}
.teacher-img-wrap {
    width: 130px;
    height: 130px;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid var(--accent-gold-light);
}
.teacher-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.teacher-card:hover .teacher-img-wrap img {
    transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   9. Section 7: Gallery
   -------------------------------------------------------------------------- */
.filter-btn {
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.gallery-card {
    height: 250px;
    position: relative;
}
.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(12, 35, 64, 0.9) 0%, rgba(12, 35, 64, 0.2) 60%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}
.gallery-card:hover .gallery-thumb {
    transform: scale(1.08);
}
.gallery-zoom-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-navy);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}
.gallery-zoom-btn:hover {
    background-color: var(--accent-gold);
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.15) !important;
}

/* --------------------------------------------------------------------------
   10. Section 8: Notice Board
   -------------------------------------------------------------------------- */
.notice-card {
    transition: var(--transition-smooth);
    border: 1px solid #e2e8f0;
}
.notice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover) !important;
    border-color: #cbd5e1;
}
.notice-date-box {
    min-width: 65px;
}

/* --------------------------------------------------------------------------
   11. Section 9: Contact Us & Map
   -------------------------------------------------------------------------- */
.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* --------------------------------------------------------------------------
   12. Section 10: Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--primary-navy-dark);
}
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}
.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}
.social-icon-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.social-icon-btn:hover {
    background: var(--accent-gold);
    color: #000000;
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   13. Floating Action Buttons
   -------------------------------------------------------------------------- */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.back-to-top-btn {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-navy);
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.back-to-top-btn.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top-btn:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   14. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .section-padding {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    .carousel-item {
        height: 60vh;
        min-height: 440px;
    }
    .hero-lead {
        font-size: 1rem;
    }
    .stats-strip {
        margin-top: 15px;
    }
    .principal-photo {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        height: 70vh;
        min-height: 400px;
    }
    .school-brand-title {
        font-size: 1rem;
    }
    .hero-section h1 {
        font-size: 1.75rem;
    }
    .floating-whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 26px;
    }
    .back-to-top-btn {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
