/* Shared phone/tablet navigation and homepage refinements. */
@media (max-width: 991.98px) {
    html { scroll-padding-top: 136px; }
    body .site-chrome { position: sticky; top: 0; z-index: 1030; }
    body .site-chrome .navbar { position: relative; padding-block: 10px; }
    body .site-chrome .navbar > .container { gap: 12px; }
    body .site-chrome .mobile-nav-actions { align-items: center; gap: 8px; }
    body .site-chrome .mobile-nav-call {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid #dce7f4;
        border-radius: 11px;
        background: #f0f6ff;
        color: #0b3f7a;
    }
    body .site-chrome .navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 84px;
        min-height: 44px;
        padding: 8px 11px;
        border: 1px solid #cddcee;
        border-radius: 11px;
        background: #fff;
        color: #17375b;
        box-shadow: none;
    }
    body .site-chrome .mobile-menu-label { font-size: .8rem; font-weight: 700; }
    body .site-chrome .navbar-toggler-icon { width: 20px; height: 20px; }
    body .site-chrome .navbar-toggler[aria-expanded="true"] { border-color: #1266d6; background: #edf5ff; }
    body .site-chrome #mainMenu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        max-height: calc(100vh - 128px);
        max-height: calc(100dvh - 128px);
        padding-inline: 16px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-bottom: 1px solid #dbe5f1;
        border-radius: 0 0 18px 18px;
        background: #fff;
        box-shadow: 0 18px 30px rgba(8, 46, 91, .14);
    }
    body .site-chrome #mainMenu.collapsing { overflow: hidden; }
    body .site-chrome #mainMenu .navbar-nav { gap: 4px; margin: 10px 0 16px !important; }
    body .site-chrome #mainMenu .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 46px;
        padding: 10px 14px !important;
        font-size: .95rem;
        white-space: normal;
    }
    body .site-chrome #mainMenu .nav-link::before { display: none; }
    body .site-chrome #mainMenu .dropdown-menu { padding: 4px 0 4px 14px; border: 0; box-shadow: none; background: #f7faff; }
    body .site-chrome #mainMenu .dropdown-item { display: flex; align-items: center; min-height: 44px; padding: 9px 14px; white-space: normal; }
    body .site-chrome :is(.navbar-toggler, .mobile-nav-call):focus-visible { outline: 3px solid #1266d6; outline-offset: 3px; }
}
@media (max-width: 767.98px) {
    html { scroll-padding-top: 88px; }
    body .site-chrome .navbar { min-height: 72px; }
    body .site-chrome .navbar > .container { padding-inline: 16px; }
    body .site-chrome #mainMenu { max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); }
    main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea), .modal :is(input, select, textarea) { font-size: 16px; }
    main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select) { min-height: 46px; }
    main :is(.btn, button), .modal .btn { min-height: 44px; }
    .home-page .hero-slider__controls {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px 68px;
        align-items: center;
        gap: 10px;
        padding: 8px 16px;
    }
    .home-page .hero-slider__controls[hidden] { display: none; }
    .home-page .hero-slider__dots { display: none; }
    .home-page .hero-slider__arrow { width: 44px; min-width: 44px; }
    .home-page .hero-slider__arrow[data-direction="-1"] { grid-area: 1 / 1; }
    .home-page .hero-slider__arrow[data-direction="1"] { grid-area: 1 / 3; }
    .home-page .hero-slider__count { display: block; grid-area: 1 / 2; text-align: center; color: #dae7fa; font-size: .85rem; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
    .home-page .hero-slider__pause { grid-area: 1 / 4; min-width: 68px; font-size: .8rem; }
    .home-page .institute-intro { padding-block: 40px; }
    .home-page .institute-intro__layout { width: calc(100% - 36px); gap: 26px; }
    .home-page .institute-intro__description p { font-size: 1rem; line-height: 1.75; }
    .home-page .institute-intro__values { gap: 10px 16px; margin-block: 20px; }
    .home-page .institute-intro__values li { font-size: .8rem; }
    .home-page .institute-intro__link { width: 100%; min-height: 48px; font-size: .9rem; }
    .home-page .institute-intro__visual > img { aspect-ratio: 16 / 9; }
    .home-page #why-section .wrap, .home-page .featured-courses > .wrap { width: calc(100% - 36px); }
    .home-page .why-heading { flex-wrap: wrap; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
    .home-page .why-copy p { font-size: 1rem; line-height: 1.75; }
    .home-page .why-copy .why-lead { font-size: 1.08rem; }
    .home-page .why-benefit { min-height: 72px; padding: 16px; }
    .home-page .why-benefit h3 { font-size: .94rem; }
    .home-page .why-detail { font-size: .8rem; }
    .home-page .featured-courses__all { width: 100%; min-height: 48px; }
    .home-page .featured-course { padding: 22px 20px; }
    .home-page .featured-course__topics li { font-size: .94rem; }
    .home-page .featured-course__duration { font-size: .8rem; }
    .home-page #recognition-section .credential-body p { font-size: .9rem; }
    .home-page .testimonial-section .section-title { margin-bottom: 14px; font-size: 1.7rem; }
    .home-page .student-top p { font-size: .95rem; line-height: 1.75; }
    .home-page .ntbx-section > .container > .row { --bs-gutter-x: 24px; --bs-gutter-y: 28px; }
    .home-page .ntbx-content, .home-page .ntbx-board { opacity: 1; transform: none; }
    .home-page .ntbx-content { margin-bottom: 0; }
    .home-page .ntbx-content > p { font-size: 1rem; line-height: 1.75; }
    .home-page .ntbx-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .home-page .ntbx-feature { min-width: 0; min-height: 48px; gap: 8px; padding: 10px; font-size: .83rem; }
    .home-page .ntbx-feature i { flex-shrink: 0; font-size: .9rem; }
    .home-page .ntbx-section .ntbx-wrapper { max-height: min(70vh, 620px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
    .home-page .ntbx-wrapper:focus-visible { outline: 3px solid #1266d6; outline-offset: -3px; }
    .home-page .ntbx-item { grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 12px; }
    .home-page .ntbx-date { width: 48px; min-width: 48px; height: 54px; }
    .home-page .ntbx-info { min-width: 0; }
    .home-page .ntbx-info :is(h3, h4) { font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
    .home-page .ntbx-info p { font-size: .9rem; line-height: 1.65; }
    .home-page .ntbx-link { min-height: 44px; margin: 12px 0 0; padding: 9px 12px; }
    body .footer { padding: 40px 0 calc(76px + env(safe-area-inset-bottom)); }
    body .footer .wrap { width: calc(100% - 36px); }
    body .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; }
    body .footer__grid > div { min-width: 0; }
    body .footer__grid > div:first-child, body .footer__grid > div:last-child { grid-column: 1 / -1; }
    body .footer h3 { font-size: 1rem; margin-bottom: 10px; }
    body .footer :is(p, li) { font-size: .9rem; line-height: 1.7; }
    body .footer li a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
    body .footer__bottom { flex-direction: column; gap: 10px; font-size: .8rem; line-height: 1.7; }
    body .whatsapp-btn { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 48px; height: 48px; font-size: 25px; animation: none; }
    body .backToTop { right: 12px !important; bottom: calc(12px + env(safe-area-inset-bottom)) !important; width: 44px !important; height: 44px !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
