@media only screen and (max-width: 1200px) {
    .hero-content .hero-heading {
        font-size: 60px;
    }

    .appointment-panel {
        padding: 70px 6vw;
    }
}

@media only screen and (max-width: 991px) {
    /* The page scrolled sideways on a phone — 482px of content in a 390px viewport.
       Nothing in the layout is that wide: it is AOS, which parks every [data-aos]
       element 100px to the left or right of where it belongs until the reveal
       animation runs. Off to the right that is scrollable width, and on a touch
       screen it reads as the page being broken. Clipped rather than hidden because
       overflow:hidden on these two elements turns the viewport into a scroll
       container, which kills position:sticky and the anchor jump to #appointment;
       overflow:clip cuts the overhang without any of that. The hidden line is the
       fallback for browsers too old for clip. */
    html,
    body {
        overflow-x: hidden;
        overflow-x: clip;
    }

    /* The open menu had no background of its own — the hero photo showed straight
       through the links — and it only spanned from the logo to the toggler, so the
       panel stopped 60px short of the right edge. Full width, and opaque enough to
       read against whatever it covers. */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(20, 20, 22, 0.97);
        backdrop-filter: blur(10px);
        padding: 10px 24px 24px;
        border-top: 1px solid rgba(255, 255, 255, .08);
        box-shadow: var(--shadow, 0 18px 40px rgba(0, 0, 0, .45));
    }

    .navbar-collapse .navbar-nav .nav-link {
        padding: 13px 0;   /* 44px tall rows — a thumb, not a cursor */
    }

    .section-title {
        font-size: 34px;
    }

    .highlight-item {
        min-height: 200px;
    }

    .appointment-media,
    .appointment-panel {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .appointment-media {
        min-height: 320px;
    }

    .appointment-panel {
        padding: 60px 24px;
    }

    .appointment-title {
        font-size: 30px;
        margin-bottom: 36px;
    }

    .gallery-title {
        font-size: 26px;
    }

    .gallery-grid {
        --gallery-cols: 2;
    }

    .team-title {
        font-size: 26px;
    }

    .team-img {
        height: 380px;
    }

    .hero-content .hero-heading {
        font-size: 46px;
    }

    .about-media-primary {
        height: 340px;
    }

    .about-media-secondary {
        height: 280px;
    }

    .about-badge-ring {
        width: 90px;
        height: 90px;
        top: -40px;
        right: 0;
    }

    footer h3.footer-title {
        font-size: 28px;
    }

    .scroll-down {
        display: none;
    }

    .hero-numbering {
        display: none;
    }

    .hero-content .hero-heading .hero-icon-badge {
        width: 52px;
        height: 52px;
        margin-left: 10px;
    }
}

@media screen and (max-width: 768px) {
    .section-pad {
        padding: 30px 0;
    }
        .section-pad .container-fluid {
            padding: 0px 20px!important;
            
        }
    .price-row-head h5{
        font-size:13px
    }
    .price-row .price{
        font-size:15px
    }
    .hero-content .hero-heading {
        font-size: 38px;
    }

    .hero-slider .item {
        min-height: 90vh;
    }

    .section-title {
        font-size: 20px;
    }
    .container-fluid.appointment{
        padding:0px 20px!important;
    }
    .faq-accordion .accordion-button{
        font-size:13px
    }
    .newsletter-section h2{
        font-size:25px
    }
    .price-tabs .nav-pills .nav-link {
        padding: 10px 18px;
        font-size: 12px;
    }

    .testimonial-card {
        padding: 24px;
    }

    /* One column and a peek of the next, so it is obvious the row swipes. */
    .gallery-grid {
        --gallery-gap: 16px;
        grid-auto-columns: 82%;
    }

    .gallery-item-sm,
    .gallery-item-lg {
        height: 320px;
        margin-top: 0 !important;
    }

    .team-head {
        flex-wrap: wrap;
        gap: 20px;
    }

    .team-nav {
        margin-left: auto;
    }
}

@media screen and (max-width: 450px) {
    .hero-content .hero-heading {
        font-size: 30px;
    }

    .hero-content .hero-heading .hero-icon-badge {
        width: 38px;
        height: 38px;
        margin-left: 8px;
        border-width: 2px;
    }

    .eyebrow {
        font-size: 12px;
    }

    #header .navbar-brand {
        font-size: 20px;
    }

    .about-media-primary {
        height: 220px;
    }

    .about-media-secondary {
        height: 200px;
    }

    .team-img {
        height: 280px;
    }

    .team-nav button {
        width: 48px;
        height: 48px;
    }
}
