/* ================================================
   MOBILE APP-LIKE CSS FOR ABOUT_US.HTML
   Optimized for small screens (Up to 1023px)
   ================================================ */

@media screen and (max-width: 1023px) {
    /* App-like Body Padding */
    body {
        background-color: #f8fafc;
        padding-bottom: 65px !important;
    }

    /* Compact Header Navigation */
    nav.sticky.top-0 {
        padding: 0.75rem 1.25rem !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dark nav.sticky.top-0 {
        background: rgba(26, 35, 46, 0.95) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Main Content Container */
    .px-4.py-6 {
        padding: 1.25rem !important;
    }

    /* Hero Section - App Banner Style */
    .relative.bg-cover.bg-center.min-h-\[260px\] {
        min-height: 220px !important;
        border-radius: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    }

    .relative.bg-cover.bg-center.min-h-\[260px\] h1 {
        font-size: 2rem !important;
    }

    /* Card Styling - App-like elevation */
    .bg-surface-light.dark\:bg-surface-dark {
        border-radius: 1.5rem !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    }

    /* Highlights Grid - Better Spacing */
    .grid.grid-cols-2.gap-4 {
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .grid.grid-cols-2.gap-4 > div {
        padding: 1.25rem !important;
        border-radius: 1.25rem !important;
    }

    /* Doctor Profile - Compact App Card */
    .size-24.rounded-full {
        width: 5rem !important;
        height: 5rem !important;
    }

    .bg-gradient-to-r.from-primary\/20.to-primary\/5 {
        padding: 1.5rem !important;
    }

    /* Core Values - App List Style */
    .space-y-3 > div {
        padding: 1.25rem !important;
        border-radius: 1.25rem !important;
        border: 1px solid rgba(0, 0, 0, 0.03) !important;
    }

    /* Facility Gallery - Smoother Scroll */
    .flex.gap-3.overflow-x-auto {
        padding-bottom: 0.5rem;
    }

    .min-w-\[200px\].h-\[140px\] {
        min-width: 180px !important;
        height: 120px !important;
        border-radius: 1.25rem !important;
    }

    /* Drawer Menu - App Side Drawer Style */
    .drawer {
        width: 290px;
        border-radius: 2rem 0 0 2rem;
    }

    .drawer nav ul li a {
        border-radius: 1rem;
        margin: 0.25rem 0.5rem;
    }

    .drawer-overlay {
        backdrop-filter: blur(4px);
    }

    /* Footer - More compact for mobile */
    footer .py-16 {
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
    }

    footer .grid-cols-1 {
        gap: 2.5rem !important;
    }

    footer .flex.gap-4 {
        justify-content: flex-start !important;
    }

    footer .border-t {
        padding-bottom: 1.5rem !important;
    }
}

/* Common Mobile Styles */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Drawer Core Styles (From Inline) */
.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
}
.dark .drawer {
    background: #1a232e;
}
.drawer.open {
    right: 0;
}
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}
.drawer nav ul li a span.font-medium {
    font-size: 0.875rem !important;
}
.drawer nav ul li a {
    padding: 0.5rem 1rem !important;
    gap: 0.75rem !important;
}
.drawer nav ul li a .material-symbols-outlined {
    font-size: 1.125rem !important;
}
.drawer h3 {
    font-size: 0.9375rem !important;
}
.drawer nav ul.space-y-1 > li {
    margin-bottom: 0.125rem !important;
    margin-top: 0.125rem !important;
}
.drawer nav ul li[class*="border-t"] {
    padding-top: 0.75rem !important;
    margin-top: 0.75rem !important;
}

/* Safe Area Utilities */
.pb-safe {
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0)) !important;
}

@supports (padding: env(safe-area-inset-bottom)) {
    .pb-safe {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0)) !important;
    }
}
