/* Hide carousel navigation buttons on mobile for POPULAR SPECIALTIES section */
@media (max-width: 768px) {
    /* Hide Prev/Next buttons in POPULAR SPECIALTIES carousel */
    #specialties-btn-prev-HospitalSpecialtyCardSliderContainer,
    #specialties-btn-next-HospitalSpecialtyCardSliderContainer {
        display: none !important;
    }

    /* Hide empty button area above carousel in POPULAR SPECIALTIES section */
    #section-5197cf44-0aab-46ba-1375-08ddbfb08483 .flex.gap-\[16px\].flex-wrap.sm\:flex-nowrap {
        display: none !important;
    }

    /* Prevent horizontal overflow on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Fix swiper slides breaking out of viewport */
    .swiper-slide {
        max-width: 85vw !important;
    }

    /* Fix sections that may overflow */
    section, main, header, footer, #__next {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Fix YouTube modal */
    #youtube-modal-container {
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* Hide original HTML consultation button on mobile - replaced by JS floating buttons */
    button[aria-haspopup="dialog"] {
        display: none !important;
    }
}

/* Desktop: hide JS floating buttons, show original HTML button */
@media (min-width: 769px) {
    #floating-btns {
        display: none !important;
    }
}
