/* ==========================================================================
   UNAKOTI HOSPITAL - RESPONSIVE STYLES (responsive.css)
   Breakpoints: 1440px, 1280px, 1024px, 768px, 480px, 375px, 360px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LARGE DESKTOPS (<= 1440px)
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
    :root {
        --container-max-width: 1200px;
    }
}

/* --------------------------------------------------------------------------
   2. STANDARD DESKTOPS & SMALL LAPTOPS (<= 1280px)
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
    :root {
        --container-max-width: 1120px;
        --section-padding-y: 70px;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        gap: 18px;
    }

    .service-card {
        padding: 22px 18px;
    }

    .placeholder-doctor-banner {
        height: 420px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

/* --------------------------------------------------------------------------
   3. TABLETS & SMALL LAPTOPS (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --section-padding-y: 60px;
    }

    /* Header Nav */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 30px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right var(--transition-normal);
        z-index: 999;
        gap: 20px;
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-nav-toggle {
        display: block;
        z-index: 1001;
    }

    /* Hero Section */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

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

    .hero-visual {
        max-width: 540px;
        margin: 0 auto;
    }

    /* Trust Section */
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .trust-images {
        min-height: 380px;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Services Grid */
    .service-card {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: calc((100% - 20px) / 2);
    }

    /* Standards Section */
    .standards-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .standards-doctor-visual {
        display: none;
    }

    /* Diagnostics Section */
    .diag-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Facilities Section */
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Testimonials */
    .testimonial-card {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: calc((100% - 20px) / 2);
    }

    /* Experts */
    .expert-card {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: calc((100% - 20px) / 2);
    }

    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* --------------------------------------------------------------------------
   4. TABLETS PORTRAIT & LARGE MOBILES (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --section-padding-y: 50px;
        --section-padding-x: 16px;
    }

    .hero-section {
        padding-top: 24px;
        padding-bottom: 40px;
        height: auto;
        min-height: auto;
        background-position: center;
    }

    .hero-container {
        padding-top: 0;
        margin-top: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 0;
    }

    .hero-section::before {
        width: 100%;
        background: linear-gradient(180deg, rgba(6, 19, 45, 0.94) 0%, rgba(6, 19, 45, 0.88) 100%);
    }

    .hero-visual {
        min-height: 60px;
        justify-content: center;
    }

    .hero-live-badge {
        position: static;
        margin-top: 10px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .service-card {
        flex: 0 0 85%;
        min-width: 85%;
    }

    /* News Grid */
    .news-card {
        flex: 0 0 85%;
        min-width: 85%;
    }

    .testimonial-card {
        flex: 0 0 85%;
        min-width: 85%;
    }

    .expert-card {
        flex: 0 0 85%;
        min-width: 85%;
    }

    /* Doctors Banner */
    .placeholder-doctor-banner {
        height: 320px;
    }

    .doctors-banner-content-box {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        padding: 24px 18px;
    }

    .news-section {
        padding-top: 50px;
    }

    .standards-cards-wrap {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .standards-card {
        padding: 12px 14px;
        align-items: center;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .standards-card-wide {
        grid-column: span 1;
    }

    .standards-card-highlight {
        white-space: normal;
        flex-shrink: 0;
        font-size: 1rem;
    }

    .standards-card-text {
        white-space: normal;
        word-break: break-word;
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .standards-section {
        padding: 50px 0;
        min-height: auto;
        background-color: #06193d;
        background-image: linear-gradient(rgba(6, 25, 61, 0.92), rgba(6, 25, 61, 0.95)), url('../images/home/banners/standards-bg.png');
        background-size: cover;
        background-position: center;
    }

    .standards-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 16px;
    }

    .standards-feature-box {
        background: rgba(15, 34, 75, 0.88);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-left: 4px solid #e21b24;
        padding: 14px 16px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    }

    .standards-feature-box h4 {
        color: #ffffff !important;
        font-size: 0.92rem;
        font-weight: 700;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .standards-feature-box p {
        color: #e2e8f0 !important;
        font-size: 0.8rem;
        line-height: 1.45;
        margin: 0;
    }

    .trust-checklist {
        grid-template-columns: 1fr;
    }

    .diag-checklist {
        grid-template-columns: 1fr;
    }

    .diag-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Facilities Layout Responsive */
    .facilities-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
    }

    .facilities-left-col {
        padding: 50px 0 0 0;
    }

    .facilities-visual-col {
        flex-direction: column;
        gap: 20px;
        height: auto;
        align-self: auto;
        padding-bottom: 50px;
    }

    .facility-building-wrap {
        width: 100%;
        max-width: 480px;
        height: 380px;
        border-radius: 0;
        margin: 0 auto;
    }

    .facility-floating-card {
        position: relative;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 480px;
        margin: -40px auto 0 auto;
        padding: 24px 18px;
    }

    .contact-dual-row,
    .floating-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .patient-details-card {
        padding: 28px 20px;
    }
}

/* --------------------------------------------------------------------------
   5. MOBILE DEVICES (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .standards-features-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .hero-section {
        padding-top: 18px;
        padding-bottom: 28px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .trust-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .experts-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .trust-images {
        min-height: 280px;
    }

    .trust-img-main {
        width: 85%;
    }

    .trust-img-secondary {
        width: 75%;
    }

    .contact-form-card {
        padding: 20px 16px;
    }

    .facility-float-cards {
        position: static;
        margin-top: 14px;
        flex-direction: column;
    }
}

/* --------------------------------------------------------------------------
   6. SMALL MOBILES (<= 375px & 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .btn-header-appointment {
        display: none;
    }

    .diag-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   7. ABOUT US PAGE RESPONSIVE RULES
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .about-overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-capabilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .leader-row {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .metrics-pills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero-title {
        font-size: 2.2rem;
    }

    .about-overview-visual {
        flex-direction: column;
        min-height: auto;
    }

    .about-pill-img-wrap.primary-pill,
    .about-pill-img-wrap.secondary-pill {
        margin-top: 0;
        height: 260px;
        border-radius: 20px;
    }

    .about-capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .about-pillars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tech-highlight-card {
        padding: 32px 20px;
    }

    .quote-bar-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .about-capabilities-grid {
        grid-template-columns: 1fr;
    }

    .metrics-pills-grid {
        grid-template-columns: 1fr;
    }

    .values-cards-grid {
        grid-template-columns: 1fr;
    }

    .about-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   8. CONTACT US PAGE RESPONSIVE RULES
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .contact-hero-section {
        min-height: 320px;
        padding: 75px 0 65px;
        background-position: center right 25%;
    }

    .contact-hero-content {
        margin-left: 0;
        max-width: 440px;
    }

    .contact-hero-title {
        font-size: 2.2rem;
    }

    .contact-booking-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-side-visual {
        min-height: 340px;
        max-height: 420px;
    }

    .contact-info-map-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-map-wrapper {
        min-height: 380px;
    }

    .contact-map-wrapper iframe {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .contact-hero-section {
        padding: 60px 0 50px;
        min-height: auto;
        background: #06193d;
        background-image: linear-gradient(rgba(6, 25, 61, 0.88), rgba(6, 25, 61, 0.95)), url('../images/contact/contact-hero-banner.png');
        background-size: cover;
        background-position: center;
        text-align: center;
    }

    .contact-hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .contact-hero-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-hero-title {
        font-size: 1.95rem;
    }

    .contact-main-wrapper {
        padding: 45px 0 60px;
    }

    .contact-booking-card {
        padding: 26px 20px 30px;
    }

    .floating-form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-side-visual {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .contact-hero-section {
        padding: 45px 0 40px;
        min-height: 220px;
    }

    .contact-hero-title {
        font-size: 1.6rem;
    }

    .contact-hero-desc {
        font-size: 0.88rem;
    }

    .contact-info-block {
        padding: 20px 18px;
    }

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

/* --------------------------------------------------------------------------
   9. PATIENT ZONE PAGE RESPONSIVE RULES
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .patient-zone-hero-section {
        min-height: 320px;
        padding: 75px 0 65px;
        background-position: center right 25%;
    }

    .patient-zone-hero-content {
        margin-left: 0;
        max-width: 440px;
    }

    .patient-zone-hero-title {
        font-size: 2.2rem;
    }

    .patient-zone-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .patient-zone-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .patient-zone-hero-section {
        padding: 60px 0 50px;
        min-height: auto;
        background: #06193d;
        background-image: linear-gradient(rgba(6, 25, 61, 0.88), rgba(6, 25, 61, 0.95)), url('../images/patient-zone/patient-zone-hero-banner.png');
        background-size: cover;
        background-position: center;
        text-align: center;
    }

    .patient-zone-hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .patient-zone-hero-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .patient-zone-hero-title {
        font-size: 1.95rem;
    }

    .patient-zone-main-section {
        padding: 50px 0 65px;
    }

    .patient-zone-section-title {
        font-size: 1.65rem;
    }

    .video-media-box {
        aspect-ratio: 16 / 10;
        height: auto;
    }
}

@media (max-width: 480px) {
    .patient-zone-hero-section {
        padding: 45px 0 40px;
        min-height: 220px;
    }

    .patient-zone-hero-title {
        font-size: 1.6rem;
    }

    .patient-zone-hero-desc {
        font-size: 0.88rem;
    }

    .patient-zone-gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .patient-zone-videos-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 100%;
        margin: 0 auto;
    }

    .video-media-box {
        aspect-ratio: 16 / 10;
        height: auto;
    }
}

/* ==========================================================================
   24. TESTIMONIALS LIST PAGE RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .testimonial-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .testimonials-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .testimonials-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .testimonials-hero-section {
        padding: 60px 0 50px;
        min-height: auto;
        text-align: center;
    }

    .testimonials-hero-content {
        max-width: 100%;
    }

    .testimonials-hero-content .breadcrumb-nav {
        justify-content: center;
    }

    .testimonials-hero-divider {
        margin: 0 auto 18px;
    }

    .testimonials-hero-title {
        font-size: 2.1rem;
    }

    .testimonials-main-section {
        padding: 50px 0 65px;
    }

    .testimonials-section-title {
        font-size: 1.75rem;
    }

    .testimonial-stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .testimonials-list-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .testimonial-cta-card {
        padding: 36px 24px;
    }

    .testimonial-cta-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .testimonials-hero-section {
        padding: 45px 0 40px;
    }

    .testimonials-hero-title {
        font-size: 1.65rem;
    }

    .testimonials-hero-desc {
        font-size: 0.88rem;
    }

    .filter-tab-btn {
        padding: 7px 14px;
        font-size: 0.78rem;
    }

    .testimonial-review-card {
        padding: 20px 18px;
    }

    .testimonial-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .testimonial-cta-actions .btn {
        width: 100%;
    }

    /* OPD Page Responsive */
    .opd-hero-section {
        padding: 90px 0 85px;
        min-height: 340px;
    }

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

    .opd-hero-content {
        max-width: 100%;
        text-align: left;
    }

    .opd-main-grid {
        grid-template-columns: 1fr;
    }

    .opd-treatment-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .opd-slot-card {
        flex-direction: row;
    }

    .opd-card-inner {
        padding: 14px 16px;
    }

    .opd-card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .opd-actions-cluster {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .btn-opd-book {
        flex: 1;
        justify-content: center;
    }

    /* Blog Page Responsive */
    .blog-hero-content {
        margin: 0 auto !important;
        text-align: center;
    }

    .blog-featured-card {
        grid-template-columns: 1fr !important;
    }

    .blog-main-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-featured-card {
        grid-template-columns: 1fr !important;
    }

    .blog-main-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}





/* Mobile Navigation Overlay Backdrop */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 25, 61, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.mobile-nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   TOPBAR MOBILE RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 992px) {
    .topbar-address span {
        max-width: 260px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 768px) {
    .topbar {
        background-color: #06193d !important;
        color: #ffffff !important;
        padding: 6px 0 !important;
        font-size: 0.78rem !important;
    }

    .topbar-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }

    .topbar-address {
        display: none !important;
    }

    .topbar-info:last-child {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .topbar-phone {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        color: #ffffff !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .topbar-phone a {
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .topbar-phone strong {
        color: #ff4d4d !important;
        font-weight: 800 !important;
    }

    .topbar-social {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: auto !important;
    }

    .topbar-social-link {
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .topbar-info:first-child {
        display: none !important;
    }

    .topbar-phone {
        font-size: 0.78rem !important;
    }
}

/* ==========================================================================
   GLOBAL MOBILE TYPOGRAPHY, BUTTONS & LAYOUT ALIGNMENT RULES
   ========================================================================== */
@media (max-width: 768px) {
    /* Container Padding & Max-Width */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Headings Alignment & Scaling */
    h1, .hero-title, .about-hero-title, .services-hero-title, .opd-hero-title, 
    .patient-zone-hero-title, .testimonials-hero-title, .contact-hero-title, .departments-hero-title {
        font-size: 1.85rem !important;
        line-height: 1.25 !important;
        letter-spacing: -0.3px !important;
        word-wrap: break-word !important;
    }

    h2, .section-title, .testimonials-section-title, .patient-zone-section-title, 
    .doctors-cta-title, .patient-details-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    h3, .service-card-title, .news-title, .doctor-card-name, .contact-block-heading {
        font-size: 1.2rem !important;
        line-height: 1.35 !important;
    }

    p, .hero-desc, .services-hero-desc, .about-hero-subtitle, .section-subtitle, 
    .doctors-cta-desc, .news-excerpt, .footer-brand-desc {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
    }

    /* Full Website Button Alignment on Mobile */
    .hero-actions, 
    .trust-actions, 
    .testimonial-cta-actions, 
    .doctors-cta-banner .container, 
    .patient-details-card form {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .btn, 
    .btn-primary, 
    .btn-pill, 
    .btn-confirm-appointment, 
    .btn-cta-contact, 
    .btn-apt-submit, 
    .btn-emergency-action, 
    .btn-get-directions {
        width: 100% !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        border-radius: 50px !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }

    /* Filter Tabs Responsive Horizontal Scroll */
    .doctor-filter-tabs, 
    .testimonials-filter-tabs, 
    .filter-tabs-wrapper {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 8px !important;
        margin-bottom: 20px !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
    }

    .filter-tab-btn {
        flex: 0 0 auto !important;
        padding: 8px 16px !important;
        font-size: 0.82rem !important;
        border-radius: 25px !important;
    }

    /* Forms & Inputs Scaling */
    .floating-form-group input, 
    .floating-form-group select, 
    .floating-form-group textarea,
    .apt-input, 
    .apt-select, 
    .apt-textarea {
        width: 100% !important;
        font-size: 0.9rem !important;
        padding: 12px 14px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    .floating-form-row, 
    .apt-form-grid-2, 
    .contact-dual-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

@media (max-width: 480px) {
    h1, .hero-title, .about-hero-title, .services-hero-title, .opd-hero-title, 
    .patient-zone-hero-title, .testimonials-hero-title, .contact-hero-title, .departments-hero-title {
        font-size: 1.55rem !important;
        line-height: 1.25 !important;
    }

    h2, .section-title, .testimonials-section-title, .patient-zone-section-title, 
    .doctors-cta-title, .patient-details-title {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }

    .btn, 
    .btn-primary, 
    .btn-pill, 
    .btn-confirm-appointment, 
    .btn-cta-contact, 
    .btn-apt-submit {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
}

/* ==========================================================================
   HEADER-CONTAINER MOBILE & GLOBAL ANTI-OVERFLOW FIXES
   ========================================================================== */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

img, svg, iframe, video {
    max-width: 100% !important;
}

@media (max-width: 992px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #ffffff;
        width: 100% !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 10px 16px !important;
        box-sizing: border-box !important;
    }

    .site-logo img {
        height: 42px !important;
        max-width: 220px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .header-action {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .btn-header-appointment {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 1.5rem !important;
        line-height: 1 !important;
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        color: #06193d !important;
        cursor: pointer !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 8px 12px !important;
    }

    .site-logo img {
        height: 36px !important;
        max-width: 180px !important;
    }

    .mobile-nav-toggle {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.35rem !important;
    }
}

/* ==========================================================================
   SERVICES-TITLE-ROW MOBILE FIX
   ========================================================================== */
@media (max-width: 768px) {
    .services-title-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .services-title-row .section-title {
        font-size: 1.6rem !important;
        line-height: 1.28 !important;
        text-align: left !important;
        word-break: break-word !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .services-view-all {
        align-self: flex-start !important;
        font-size: 0.85rem !important;
        padding: 6px 16px !important;
        border-radius: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .services-title-row .section-title {
        font-size: 1.4rem !important;
        line-height: 1.28 !important;
    }
}

/* ==========================================================================
   UNIVERSAL SECTION HEADER & VIEW ALL BUTTON OVERLAP FIX
   ========================================================================== */
/* ==========================================================================
   UNIVERSAL MOBILE-ONLY LEFT-ALIGNED SECTION HEADER & VIEW ALL BUTTON LAYOUT
   ========================================================================== */
@media (max-width: 768px) {
    .view-all-link,
    .services-view-all,
    .testimonials-view-all-link,
    .experts-view-all-link,
    a[class*="view-all"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 6px 16px !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        color: #e21b24 !important;
        background-color: rgba(226, 27, 36, 0.08) !important;
        border: 1px solid rgba(226, 27, 36, 0.2) !important;
        border-radius: 20px !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        transition: all 0.25s ease !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        margin-left: 0 !important;
        align-self: flex-start !important;
    }

    .view-all-link:hover,
    .services-view-all:hover,
    .testimonials-view-all-link:hover,
    .experts-view-all-link:hover,
    a[class*="view-all"]:hover {
        background-color: #e21b24 !important;
        color: #ffffff !important;
        border-color: #e21b24 !important;
    }
    .services-header-wrap,
    .services-header-top,
    .section-header-flex,
    .services-title-row,
    .testimonials-header-row,
    .experts-header-row,
    .section-header-row {
        text-align: left !important;
    }

    .services-header-top {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        margin-bottom: 8px !important;
    }

    .section-header-flex,
    .services-title-row,
    .testimonials-header-row,
    .experts-header-row,
    .section-header-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        margin-bottom: 24px !important;
        width: 100% !important;
        text-align: left !important;
    }

    .section-header-flex > div:first-child,
    .services-title-row .section-title,
    .testimonials-header-row h2,
    .experts-header-row h2,
    .section-header-flex .section-title,
    .services-title-row h2 {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 1.55rem !important;
        line-height: 1.28 !important;
        text-align: left !important;
        word-break: break-word !important;
        margin: 0 !important;
    }

    .view-all-link,
    .services-view-all,
    .testimonials-view-all-link,
    .experts-view-all-link,
    a[class*="view-all"] {
        position: static !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        margin-left: 0 !important;
        align-self: flex-start !important;
        padding: 6px 16px !important;
        font-size: 0.82rem !important;
        border-radius: 20px !important;
        display: inline-flex !important;
    }
}

@media (max-width: 480px) {
    .section-header-flex > div:first-child,
    .services-title-row .section-title,
    .testimonials-header-row h2,
    .experts-header-row h2,
    .section-header-flex .section-title,
    .services-title-row h2 {
        font-size: 1.38rem !important;
        line-height: 1.25 !important;
    }
}

/* ==========================================================================
   TESTIMONIALS SECTION MOBILE LEFT ALIGN & VIEW ALL FIX
   ========================================================================== */
@media (max-width: 768px) {
    .testimonials-section .section-header,
    .testimonials-section .section-header.text-center,
    .testimonials-section .section-title {
        text-align: left !important;
        margin-bottom: 8px !important;
    }

    .testimonials-section .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .testimonials-view-all-link {
        position: static !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        margin-left: 0 !important;
        margin-bottom: 20px !important;
        align-self: flex-start !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 16px !important;
        font-size: 0.85rem !important;
        color: #e21b24 !important;
        background-color: rgba(226, 27, 36, 0.08) !important;
        border: 1px solid rgba(226, 27, 36, 0.2) !important;
        border-radius: 20px !important;
        text-decoration: none !important;
    }
}

/* Text MD Center Responsive Utility */
@media (max-width: 768px) {
    .text-md-center {
        text-align: left !important;
    }
}