/* 
    Project: ROYAL EDUCATIONAL CONSULTANCY
    Description: Advanced Responsive Styles
*/

/* --- Tablets and Small Laptops --- */
@media (max-width: 1200px) {
    .hero-section {
        height: auto;
        padding: 100px 0;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

/* --- Mobile View Overhaul (Congestion Fix) --- */
@media (max-width: 991px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 18px !important;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-radius: 15px;
        margin-top: 10px;
        border: 1px solid #eee;
    }

    .nav-link {
        margin: 8px 0;
        padding: 10px 15px !important;
        border-bottom: 1px solid #f8f9fa;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 50px 0;
    }
}

/* --- Small Mobile Devices (Fixing the 'B भरा-भरा' look) --- */
@media (max-width: 768px) {
    /* Hide top bar on mobile to save space */
    .top-bar {
        display: none !important;
    }

    /* Make Marquee smaller and non-overlapping */
    .marquee-container {
        padding: 5px 0;
        font-size: 12px;
    }

    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-btns .btn {
        margin-bottom: 12px;
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    /* Fixed Floating Icons - Smaller for mobile */
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        font-size: 25px !important;
        bottom: 20px !important;
        right: 20px !important;
    }

    .call-float {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
        bottom: 85px !important;
        right: 20px !important;
    }

    /* Promise Banner - Reduce congestion */
    .promise-banner {
        width: 95%;
        padding: 15px 10px;
        margin-top: -20px;
    }

    .promise-banner h3 {
        font-size: 1.1rem !important;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 1.7rem !important;
    }

    /* Grid spacing */
    .g-5, .gx-5 {
        --bs-gutter-x: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 15px !important;
    }

    .navbar-brand img {
        height: 40px !important;
        width: 40px !important;
        object-fit: cover;
    }

    .loader-text {
        font-size: 20px !important;
    }

    .loader-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100vw;
    }

    .loader-img-container {
        width: 100px !important;
        height: 100px !important;
    }

    .hero-content h1 {
        font-size: 1.6rem !important;
    }

    /* Compact Breadcrumbs */
    .breadcrumb-section {
        padding: 8px 0;
    }
    
    .breadcrumb {
        font-size: 12px;
    }

    /* Founder Card fix */
    .founder-assurance-card {
        padding: 25px !important;
    }
    
    .founder-img {
        width: 180px !important;
        height: 180px !important;
    }
}

/* Mobile Bottom Action Bar */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 65px !important; /* Prevent content from hiding behind the bar */
    }
    
    .mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1050;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        background-color: #fff;
    }
    
    .mobile-bottom-bar a {
        text-decoration: none;
        transition: background-color 0.3s ease;
        padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
        flex: 1 1 0;
        min-width: 0;
    }
    
    .mobile-bottom-bar a:active {
        opacity: 0.8;
    }
    
    /* Hide desktop floaters explicitly just in case */
    .whatsapp-float, .call-float {
        display: none !important;
    }
}
