/* ==========================================================================
   GYAN BHOOMI EDUCARE - Complete Professional Responsive Stylesheet
   ========================================================================== */

/* --- 1. Global Responsive Layout Protection --- */
html, body {
    overflow-x: hidden;
    width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    -webkit-text-size-adjust: 100%;
}

/* Ensure row/col grids do not introduce negative margin overflows */
.row {
    margin-right: -15px;
    margin-left: -15px;
}
.container, .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

/* Base interactive button mobile size default */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* ==========================================================================
   2. EXTRA LARGE DESKTOP BREAKPOINT (1400px+)
   ========================================================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    .hero-title {
        font-size: 4.5rem;
    }
    .section-padding {
        padding: 7rem 0;
    }
}

/* ==========================================================================
   3. LARGE DESKTOP / LAPTOP BREAKPOINT (1200px - 1399.98px)
   ========================================================================== */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }
    .hero-title {
        font-size: 3.8rem;
    }
    .floating-badge-1 {
        left: -20px;
    }
    .floating-badge-2 {
        right: -10px;
    }
    .cta-banner-premium {
        padding: 3.5rem;
    }
}

/* ==========================================================================
   4. MEDIUM LAPTOP / SMALL DESKTOP BREAKPOINT (992px - 1199.98px)
   ========================================================================== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    .navbar-nav-custom .nav-link {
        padding: 0.5rem 0.55rem !important;
        font-size: 0.92rem;
    }
    .brand-logo-img {
        height: 48px;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .hero-desc {
        font-size: 1.15rem;
        max-width: 500px;
    }
    .floating-badge {
        transform: scale(0.9);
    }
    .floating-badge-1 {
        left: -30px;
    }
    .floating-badge-2 {
        right: -15px;
    }
    .floating-badge-3 {
        left: -40px;
        bottom: 35%;
    }
}

/* ==========================================================================
   5. TABLET LANDSCAPE & PORTRAIT BREAKPOINT (768px - 991.98px)
   ========================================================================== */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 4.5rem 0;
    }
    
    /* Navbar Custom Adjustments for Collapsed Mobile/Tablet State */
    .navbar-collapse-custom {
        background: #FFFFFF;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-hover);
        padding: 1.5rem;
        margin-top: 1rem;
        border: 1px solid rgba(13, 34, 64, 0.08);
    }
    
    .navbar-nav-custom .nav-link {
        color: var(--text-main) !important;
        padding: 0.75rem 1rem !important;
    }
    
    .navbar-nav-custom .nav-link::after {
        display: none; /* Disable underline on mobile for simpler layout */
    }
    
    .navbar-nav-custom .nav-link:hover {
        padding-left: 1.5rem !important;
    }
    
    .dropdown-menu-custom {
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
        margin-top: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        transform: none !important;
        background-color: rgba(13, 34, 64, 0.02);
    }
    
    .nav-item-dropdown:hover .dropdown-menu-custom {
        display: block;
    }
    
    .navbar-brand-custom {
        color: #FFFFFF !important;
    }
    
    .header-scrolled .navbar-brand-custom {
        color: var(--primary-color) !important;
    }
    
    /* Hide top bar scroll adjustment if collapsed is active */
    .header-scrolled .top-bar {
        margin-top: -38px;
    }
    
    /* Hero layout stack on tablets */
    .hero-section {
        padding-top: 8.5rem !important;
        padding-bottom: 4.5rem !important;
        min-height: auto;
        text-align: center;
    }
    
    .hero-tagline {
        justify-content: center;
    }
    
    .hero-tagline::before {
        display: none;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.15rem;
    }
    
    .hero-cta-btn-group {
        justify-content: center;
    }
    
    .hero-stats-row {
        justify-content: center;
        max-width: 480px;
        margin: 3.5rem auto 0 auto;
    }
    
    .hero-stat-card {
        border-left: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 1.25rem 0 !important;
        margin-bottom: 0 !important;
        align-items: center;
    }
    
    .hero-stat-card:last-child {
        border-bottom: none !important;
    }
    
    .hero-visual {
        margin-top: 3.5rem;
    }
    
    /* Hide floating badges on mobile/tablet to avoid cluttering layout */
    .floating-badge {
        display: none !important;
    }
    
    /* Grid adjustments for tablet - become 2-column configurations */
    .col-lg-3, .col-lg-4 {
        width: 50% !important;
    }
    
    .col-lg-6 {
        width: 100% !important;
    }

    /* Partner logo grid */
    .partner-logo-box {
        height: 80px;
        padding: 0.75rem 1.25rem;
    }
    
    /* About visual positioning */
    .about-visual {
        margin-bottom: 2.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-content-box {
        max-width: 92%;
    }
}

/* ==========================================================================
   6. MOBILE LANDSCAPE Breakpoint (480px - 767.98px)
   ========================================================================== */
@media (min-width: 480px) and (max-width: 767.98px) {
    .section-title {
        font-size: 2.1rem;
    }
    
    .section-desc {
        margin-bottom: 2.5rem;
    }
    
    /* Grid stacks cleanly on mobile landscape */
    .col-lg-3, .col-lg-4, .col-lg-6, .col-md-6 {
        width: 100% !important;
    }
    
    /* Fluid responsive cards */
    .card-premium, .course-card-body, .form-card, .eligibility-checker-box {
        padding: 1.75rem;
    }
    
    .cta-banner-premium {
        padding: 2.5rem 1.75rem;
        text-align: center;
    }
    
    .cta-banner-premium .btn {
        width: 100%;
        margin-top: 1.5rem;
    }
    
    /* Timeline adjustments */
    .timeline-wrapper {
        padding-left: 1.25rem;
    }
    
    .timeline-wrapper::before {
        left: 7px;
    }
    
    .timeline-step {
        padding-left: 1.25rem;
        margin-bottom: 2.5rem;
    }
    
    .timeline-number {
        left: -17px;
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        border-width: 2.5px;
    }
    
    .timeline-card {
        padding: 1.25rem 1.5rem;
    }
    
    .timeline-step:hover .timeline-card {
        transform: translateX(5px);
    }
    
    /* Testimonial slider space */
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-quote-icon {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }
    
    .testimonial-text {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
    
    /* Footer bottom adjustments */
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

/* ==========================================================================
   7. SMALL MOBILE BREAKPOINT (Under 480px)
   ========================================================================== */
@media (max-width: 479.98px) {
    .container {
        padding-right: 12px;
        padding-left: 12px;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .top-bar {
        display: none !important; /* Hide tiny details on very small mobile to save space */
    }
    
    /* Hero section font sizing */
    .hero-title {
        font-size: 2.1rem;
        letter-spacing: -0.02em;
    }
    
    .hero-desc {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-cta-btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    
    .section-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .navbar-brand-custom {
        font-size: 1.25rem;
    }
    
    .brand-logo-img {
        height: 38px;
    }
    
    /* Grid force collapse to single columns */
    .col-lg-3, .col-lg-4, .col-lg-6, .col-md-6, .col-6 {
        width: 100% !important;
    }
    
    /* Responsive card padding reductions for screen efficiency */
    .card-premium, .course-card-body, .form-card, .eligibility-checker-box {
        padding: 1.25rem !important;
        border-radius: var(--radius-md) !important;
    }
    
    /* Center align counselor trust bar on small phone viewports */
    .hero-counselor-trust {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .avatar-group-img {
        width: 34px;
        height: 34px;
    }
    
    .trust-text {
        font-size: 0.82rem;
    }
    
    /* CTA button layout adjustments */
    .cta-banner-premium {
        padding: 2rem 1.25rem;
        text-align: center;
    }
    
    .cta-banner-premium h3 {
        font-size: 1.5rem;
    }
    
    .cta-banner-premium .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Gallery Filter alignment */
    .gallery-filters {
        gap: 0.35rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery-filter-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Form control elements optimization */
    .form-control-custom {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }
    
    /* Footer responsiveness */
    .footer-section {
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-info-item {
        justify-content: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 1rem;
    }
}
