/* ==============================================================
   Zenith Coaching Centre - responsive adjustments
   Base styles (style.css) are written first; these rules adapt
   the layout for laptops, tablets and phones.
   ============================================================== */

/* Large laptops and smaller (< 1200px) */
@media (max-width: 1199.98px) {
    .hero-badge-1 {
        left: -4%;
    }

    .hero-badge-2 {
        right: -4%;
    }

    .main-nav .nav-link {
        padding: 0.5rem 0.6rem !important;
    }

    .main-nav .nav-link::after {
        left: 0.6rem;
        right: 0.6rem;
    }
}

/* Tablets and smaller (< 992px) - mobile menu is shown */
@media (max-width: 991.98px) {
    .main-nav .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem 0 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .main-nav .nav-link {
        padding: 0.75rem 0.25rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .main-nav .nav-link::after {
        display: none;
    }

    .main-nav .nav-link.active {
        color: var(--gold);
    }

    .btn-nav {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
    }

    .hero {
        padding: 4.5rem 0 7rem;
        text-align: center;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-courses {
        justify-content: center;
    }

    .hero-visual {
        width: min(340px, 78%);
        margin-top: 1.5rem;
    }

    .section {
        padding: 4.25rem 0;
    }

    .enquiry-info {
        padding: 2.5rem 2rem;
    }

    .form-card {
        padding: 2.5rem 2rem;
    }

    .cta-band {
        padding: 2.5rem 2rem;
        text-align: center;
    }

    .about-visual {
        max-width: 340px;
    }

    .hostel-box .media-placeholder {
        min-height: 220px;
    }
}

/* Phones in landscape and small tablets (< 768px) */
@media (max-width: 767.98px) {
    .topbar {
        font-size: 0.8rem;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-name {
        font-size: 1.35rem;
    }

    .hero-title {
        margin-top: 1.1rem;
    }

    .hero-lead {
        font-size: 1.05rem;
    }

    .hero-curve svg {
        height: 40px;
    }

    .hero-badge {
        padding: 0.55rem 0.8rem;
        font-size: 0.78rem;
    }

    .hero-badge .badge-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .hero-badge-1 {
        left: -12%;
    }

    .hero-badge-2 {
        right: -12%;
    }

    .page-banner {
        padding: 3.25rem 0 3rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-heading {
        margin-bottom: 2.25rem;
    }

    .course-detail {
        padding: 1.75rem 1.5rem;
    }

    .hostel-box .hostel-content {
        padding: 2rem 1.5rem;
    }

    .commitment-box {
        padding: 1.75rem 1.5rem;
    }

    .about-visual .quote-card {
        right: 0;
        bottom: -6%;
        max-width: 210px;
        font-size: 0.95rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        margin-top: 2.5rem;
    }

    .map-frame,
    .map-frame iframe {
        min-height: 300px;
    }
}

/* Small phones (< 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Keep wide gutters inside the 16px side padding so rows never overflow */
    .row.g-5 {
        --bs-gutter-x: 2rem;
    }

    .hero {
        padding: 3.5rem 0 6rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-visual {
        width: min(260px, 72%);
    }

    .hero-visual::before {
        inset: -14px;
    }

    .hero-badge-1 {
        top: -2%;
        left: -16%;
    }

    .hero-badge-2 {
        bottom: -2%;
        right: -16%;
    }

    .hero-badge small {
        display: none;
    }

    .course-card {
        padding: 1.75rem 1.4rem;
    }

    .course-facts li {
        flex-direction: column;
        gap: 0.15rem;
    }

    .course-facts .fact-value {
        text-align: left;
    }

    .enquiry-wrap,
    .cta-band,
    .success-card,
    .empty-state {
        border-radius: 18px;
    }

    .enquiry-info,
    .form-card {
        padding: 2rem 1.25rem;
    }

    .cta-band {
        padding: 2rem 1.25rem;
    }

    .cta-band .btn {
        width: 100%;
    }

    .success-card {
        padding: 2.25rem 1.25rem;
    }

    .reference-box {
        padding: 0.85rem 1.25rem;
    }

    .reference-box strong {
        font-size: 1.4rem;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 14px;
        font-size: 1.6rem;
    }

    .back-to-top {
        right: 20px;
        bottom: 78px;
    }
}

/* Very small phones (< 380px) */
@media (max-width: 379.98px) {
    .brand-sub {
        letter-spacing: 0.1em;
    }

    .topbar .topbar-item:last-child {
        display: none;
    }

    .hero-title {
        font-size: 2.15rem;
    }

    .hero-badge {
        display: none;
    }
}
