/* ==========================================================================
   MAKE FUTURE MODEL SCHOOL — RESPONSIVE ENGINE & BREAKPOINT OVERRIDES
   ========================================================================== */

/* --- Desktop Layouts (>= 992px) --- */
@media (min-width: 992px) { 
    .mobile-fb-menu { 
        display: none !important; 
    } 
    .navbar { 
        padding: 5px 0; 
    }
    .navbar-brand-wrapper { 
        flex: 1.5; 
        margin-left: 0; 
    }
    .brand-text span { 
        font-size: 1.15rem !important; 
        font-weight: 800; 
        letter-spacing: 0.5px; 
    }
    .brand-text .small { 
        font-size: 0.72rem !important; 
        letter-spacing: 1px; 
    }
    .desktop-menu-wrapper { 
        flex: 2; 
        display: flex; 
        justify-content: flex-end; 
        margin-right: 20px; 
    } 
    .desktop-menu .nav-link { 
        font-size: 0.78rem !important; 
        padding: 6px 14px !important; 
        margin: 0 2px; 
    }
    .right-controls { 
        flex: 0 0 auto; 
        justify-content: flex-end !important; 
    } 
    .btn-admission-desktop { 
        font-size: 0.8rem !important; 
        padding: 7px 18px !important; 
    }
}

/* --- Tablet & Mobile Navigation (< 992px) --- */
@media (max-width: 991px) { 
    .top-bar, 
    .desktop-menu-wrapper, 
    .btn-admission-desktop { 
        display: none !important; 
    } 
    
    .navbar { 
        position: fixed !important; 
        top: 0 !important; 
        left: 0 !important; 
        width: 100% !important; 
        z-index: 1010 !important; 
        background-color: #fff !important; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important; 
        padding: 4px 0 0 0 !important; 
        border-bottom: 2px solid var(--secondary-color); 
    }
    
    body {
        padding-top: 108px !important; /* Offset for fixed navbar + mobile-fb-menu */
    }

    .custom-logo-img { 
        max-height: 40px !important; 
        margin-right: 8px !important; 
    }
    .brand-logo-icon { 
        font-size: 1.4rem !important; 
        margin-right: 8px !important; 
    }
    .navbar-brand-wrapper { 
        max-width: calc(100% - 90px) !important; 
        overflow: hidden; 
        padding-bottom: 2px !important; 
        flex: 1 1 auto; 
        min-width: 0; 
    }
    .brand-text { 
        overflow: hidden; 
        min-width: 0; 
        width: 100%; 
    }
    .brand-text span { 
        font-size: 0.95rem !important; 
        white-space: nowrap !important; 
        overflow: hidden !important; 
        text-overflow: ellipsis !important; 
        display: block; 
        width: 100%; 
        letter-spacing: 0; 
    }
    .brand-text .small { 
        font-size: 0.68rem !important; 
        white-space: nowrap !important; 
        overflow: hidden !important; 
        text-overflow: ellipsis !important; 
        display: block; 
        width: 100%; 
        letter-spacing: 0; 
    }
    
    .right-controls { 
        padding-bottom: 2px !important; 
        flex: 0 0 auto; 
        display: flex; 
        align-items: center; 
        justify-content: flex-end; 
    }
    
    .mobile-fb-menu { 
        display: flex !important; 
        padding: 4px 8px !important; 
        justify-content: space-between; 
        align-items: center; 
        background: #fff; 
        border-top: 1px solid #e1e5eb; 
        width: 100%; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; 
    }
    .fb-menu-item .icon-wrapper { 
        width: 32px !important; 
        height: 32px !important; 
    }
    .fb-menu-item i { 
        font-size: 14px !important; 
    }
}

/* --- Mobile Breakpoint (<= 768px) --- */
@media (max-width: 768px) {
    /* Split Admission Poster */
    .image-container-col {
        min-height: 260px;
    }
    .adm-poster-img {
        min-height: 260px;
        max-height: 350px;
    }
    .adm-content-wrapper {
        padding: 20px 15px;
    }
    .adm-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .adm-btn-compact {
        padding: 8px 4px;
        font-size: 0.72rem;
    }
    .adm-btn-compact i {
        font-size: 1.15rem;
    }

    /* Hero Section */
    .hero-section { 
        min-height: 480px; 
        padding: 2rem 0 2.5rem 0 !important; 
    }
    .hero-search-wrapper { 
        max-width: 100%; 
        margin-bottom: 1.2rem; 
    }
    .hero-search-input { 
        padding: 8px 15px; 
        font-size: 0.85rem; 
    }
    .hero-search-btn { 
        padding: 8px 16px; 
        font-size: 0.85rem; 
    }
    .hero-title { 
        font-size: 1.35rem; 
    } 
    .hero-subtitle-text { 
        font-size: 0.85rem; 
        line-height: 1.5; 
        margin-bottom: 1rem !important; 
    }
    
    .hero-marquee-wrapper { 
        margin-top: 1.5rem; 
        padding: 10px 0; 
    } 
    .marquee-group { 
        gap: 10px; 
    }
    .hero-feature-card { 
        width: 125px; 
        height: 78px; 
        font-size: 0.65rem; 
        padding: 6px; 
        border-radius: 10px; 
    }
    .hero-feature-card i { 
        font-size: 1.15rem; 
        margin-bottom: 4px;
    }
    
    .hero-social-sidebar { 
        bottom: 1rem; 
        right: 1rem; 
    }
    .hero-social-sidebar .hero-btn { 
        width: 30px; 
        height: 30px; 
        font-size: 0.8rem; 
    } 
    .hero-nav-dots-wrapper { 
        bottom: 1rem; 
        left: 2rem; 
        transform: none; 
    }
    .hero-nav-dots-wrapper .dot { 
        width: 8px; 
        height: 8px; 
    }

    /* Highlights Section */
    .inline-legends { 
        gap: 8px; 
    }
    .inline-legend-portrait { 
        width: 48px; 
        height: 48px; 
    }
    .high-global-caption {
        padding: 6px 10px;
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    /* Facilities Section */
    .facility-card-wrapper {
        flex: 0 0 240px;
        max-width: 240px;
    }

    /* Gallery Section */
    .gallery-card {
        height: 135px;
    }
    .gallery-title-text {
        font-size: 1.35rem;
    }

    /* Bot Widget Fullscreen Drawer on Mobile */
    .bot-widget-container { 
        bottom: 0; 
        right: 0; 
        width: 100%; 
        height: 100%; 
        max-height: 100vh; 
        border-radius: 0; 
        transform: translateY(100%); 
    }

    /* FAB Menu */
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    .fab-toggle {
        width: 52px;
        height: 52px;
        font-size: 1.35rem;
    }
    .fab-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .fab-label {
        padding: 5px 12px;
        font-size: 12px;
        min-width: 85px;
    }
    .fab-tooltip-msg {
        right: 68px;
        bottom: 10px;
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* --- Small Mobile Phones (<= 480px) --- */
@media (max-width: 480px) {
    .adm-content-wrapper {
        padding: 16px 12px !important;
    }
    .adm-buttons-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .adm-btn-compact {
        min-width: 0 !important;
        padding: 10px 6px !important;
        font-size: 0.75rem !important;
    }
    .adm-btn-compact.btn-result {
        grid-column: span 2;
    }
    .branch-img {
        height: 170px;
    }
    }
    .custom-gallery-grid {
        gap: 8px;
    }
    .gallery-card {
        height: 120px;
    }
}

/* Print Overrides */
@media print {
    .fab-container,
    .btn-chat-transparent,
    .top-bar,
    .mobile-fb-menu {
        display: none !important;
    }
}
