/* --- Tablet Viewports (max-width: 991px) --- */
@media (max-width: 991px) {
    .section-padding {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Hide top announcement bar on mobile/tablet to eliminate messy text wrap and white space */
    .header-top {
        display: none !important;
    }

    .header-accent-strip {
        display: none !important;
    }

    .main-menu__list {
        display: none !important;
    }

    .main-menu__cta-apply,
    .main-menu__btn-apply {
        display: none !important;
    }

    /* Compact header on tablet */
    .main-menu {
        padding: 10px 0 !important;
    }

    .main-menu__logo-seal {
        width: 42px !important;
        height: 42px !important;
    }

    .main-menu__logo-title {
        font-size: 24px !important;
    }

    .main-menu__logo-subtitle {
        font-size: 8px !important;
    }

    .hero-section {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hero-section__title {
        margin-bottom: 16px;
    }

    /* Hide hero admissions card on tablet/mobile */
    .hero-admissions-card {
        display: none !important;
    }

    .hero-section__admissions-card {
        display: none !important;
    }

    .stats-section__wrapper {
        margin-top: 0;
        padding: 32px 16px;
    }

    .stats-card {
        margin-bottom: 16px;
    }

    /* CTA section mobile: hide the center student image */
    .cta-col-image {
        display: none !important;
    }

    .cta-mobile-student {
        display: none !important;
    }

    .cta-three-col {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .cta-col-text {
        text-align: center !important;
    }

    .cta-col-text .d-flex {
        flex-direction: column !important;
        align-items: center !important;
    }

    .cta-text-block {
        text-align: center !important;
    }

    .cta-col-button {
        text-align: center !important;
    }

    .cta-main-heading {
        font-size: clamp(22px, 5vw, 30px) !important;
    }

    .cta-description {
        font-size: 13px !important;
    }

    .premium-cta-banner {
        padding: 28px 20px !important;
    }

    .cta-section__banner,
    .contact-cta-section__card {
        padding: 48px 24px;
    }

    /* Application form: hide student cutout, stack layout */
    .form-student-cutout-wrapper {
        display: none !important;
    }

    .application-banner {
        padding: 24px 16px !important;
        border-radius: 20px !important;
    }

    .form-card {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    .form-section__info {
        text-align: center !important;
    }

    .form-section__info .section-subtitle,
    .form-section__info .section-title {
        text-align: center !important;
    }

    .form-section__info .section-title-divider {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .form-section .col-lg-5 {
        min-height: auto !important;
    }

    /* Why Sabarmati section mobile: better card design */
    .why-us-section {
        padding: 30px 0 !important;
    }

    .why-us-section .col-lg-3 {
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .why-us-section .col-lg-3 .section-subtitle,
    .why-us-section .col-lg-3 .section-title {
        text-align: center !important;
    }

    .why-us-section .col-lg-3 .section-title-divider {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .why-us-grid-item {
        text-align: center !important;
        background: #FAF2E8 !important;
        border-radius: 16px !important;
        padding: 20px 16px !important;
        border: 1px solid var(--border) !important;
    }

    .why-us-grid-item__icon-wrapper {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 12px;
        background: rgba(200, 154, 61, 0.1);
        margin-bottom: 12px !important;
    }

    /* Bento Grid stack */
    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .bento-item--large,
    .bento-item--small,
    .bento-grid > :nth-child(3),
    .bento-grid > :nth-child(4),
    .bento-grid > :nth-child(5),
    .bento-grid > :nth-child(6) {
        grid-column: span 12 !important;
        padding: 30px 20px !important;
    }

    /* Mobile drawer: full-height and 50% width on tablet/mobile */
    .mobile-drawer {
        height: 100vh !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 2000 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    .mobile-drawer.mobile-drawer--open {
        pointer-events: auto !important;
    }

    .mobile-drawer__content {
        width: 50% !important;
        right: -50% !important;
        height: 100vh !important;
        top: 0 !important;
        z-index: 2002 !important;
    }

    .mobile-drawer--open .mobile-drawer__content {
        right: 0 !important;
    }
}



/* --- Mobile Viewports (max-width: 575px) --- */
@media (max-width: 575px) {

    /* Compact mobile header */
    .main-menu {
        padding: 8px 12px !important;
    }

    .main-menu__logo-seal {
        width: 36px !important;
        height: 36px !important;
    }

    .main-menu__logo-title {
        font-size: 20px !important;
    }

    .main-menu__logo-subtitle {
        font-size: 7px !important;
        letter-spacing: 1.5px !important;
    }

    .main-menu__logo-link {
        gap: 6px !important;
    }

    /* Hero section mobile */
    .hero-section {
        min-height: 420px !important;
        height: 55vh !important;
    }

    .hero-title {
        font-size: clamp(24px, 6vw, 32px) !important;
    }

    .hero-desc {
        font-size: 13px !important;
        margin-bottom: 20px !important;
    }

    .hero-eyebrow span {
        font-size: 10px !important;
    }

    .hero-section__buttons {
        flex-direction: column;
    }

    .hero-section__buttons a {
        width: 100%;
    }

    /* Application form compact mobile */
    .application-banner {
        padding: 20px 14px !important;
        border-radius: 16px !important;
    }

    .form-card {
        padding: 18px 14px !important;
        border-radius: 14px !important;
    }

    .form-section .section-title {
        font-size: clamp(22px, 5vw, 28px) !important;
    }

    /* Why Sabarmati section mobile: single column cards */
    .why-us-horizontal-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .why-us-grid-item {
        padding: 18px 14px !important;
    }

    .why-us-section .section-title {
        font-size: clamp(22px, 5vw, 30px) !important;
    }

    /* CTA section compact */
    .premium-cta-banner {
        padding: 24px 16px !important;
        border-radius: 20px !important;
    }

    .cta-main-heading {
        font-size: clamp(20px, 5vw, 26px) !important;
        line-height: 1.3 !important;
    }

    .cta-luxury-btn {
        font-size: 14px !important;
        padding: 12px 28px !important;
    }

    .cta-seal-mobile {
        width: 60px !important;
        height: 60px !important;
    }

    /* Footer compact */
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-bottom__links {
        justify-content: center;
        margin-top: 8px;
    }

    .footer-bottom__link {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* ============================================
   Hamburger Toggle Button (All Mobile Sizes)
   ============================================ */
.main-menu__toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid rgba(200, 154, 61, 0.2);
    border-radius: 10px;
    background: rgba(88, 2, 27, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-menu__toggle-btn:hover,
.main-menu__toggle-btn:focus {
    background: rgba(88, 2, 27, 0.1);
    border-color: rgba(200, 154, 61, 0.35);
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2.5px;
    background-color: #58021B;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Active state hamburger transforms to X */
.main-menu__toggle-btn.active .hamburger-bar:nth-child(1) {
    transform: rotate(45deg) translateY(7.5px);
}

.main-menu__toggle-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.main-menu__toggle-btn.active .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-7.5px);
}

/* --- Compact Desktop Menu link gaps to prevent wrapping (992px - 1199px) --- */
@media (min-width: 992px) and (max-width: 1199px) {
    .main-menu__list {
        gap: 12px !important;
    }
    .main-menu__link {
        font-size: 13.5px !important;
    }
}
