/* Responsive Styles for Aarogyam Hospital */

/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .top-bar {
        font-size: 12px;
        padding: 4px 0;
    }
    
    .top-bar .row {
        flex-direction: column;
        text-align: center;
    }
    
    .top-bar .col-md-6:first-child {
        margin-bottom: 5px;
    }
    
    .contact-info span {
        display: block;
        margin: 2px 0;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nabh-img {
        height: 40px;
        margin-bottom: 10px;
    }
    
    .hospital-name {
        font-size: 1.3rem;
    }
    
    .hospital-subtitle {
        font-size: 0.8rem;
    }
    
    .certification {
        font-size: 0.7rem;
    }
    
    /* Hero Slider Mobile */
    .slider-container {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide h1 {
        font-size: 1.8rem !important;
    }
    
    .slide .lead {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .slider-nav.prev {
        left: 15px;
    }
    
    .slider-nav.next {
        right: 15px;
    }
    
    .slider-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    /* Quick Actions Mobile */
    .quick-actions .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .action-card .card-body {
        padding: 20px 10px;
    }
    
    .action-card i {
        font-size: 1.5rem !important;
    }
    
    .action-card h6 {
        font-size: 0.8rem;
    }
    
    /* Section Spacing Mobile */
    .py-5 {
        padding: 2rem 0 !important;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* About Section Mobile */
    .about-content {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .hospital-placeholder {
        padding: 50px 20px;
    }
    
    .hospital-placeholder i {
        font-size: 4rem !important;
    }
    
    /* Services Cards Mobile */
    .service-card .card-body {
        padding: 20px 15px;
    }
    
    .service-card i {
        font-size: 2rem !important;
    }
    
    /* Features Mobile */
    .feature-item {
        text-align: center;
        flex-direction: column;
    }
    
    .feature-icon {
        margin-bottom: 15px;
    }
    
    .feature-content {
        margin-left: 0 !important;
    }
    
    /* CTA Section Mobile */
    .cta-section .row {
        text-align: center;
    }
    
    .cta-section .col-lg-4 {
        margin-top: 20px;
    }
    
    .cta-section .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    /* Footer Mobile */
    .footer .col-lg-4 {
        text-align: center;
        margin-bottom: 30px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .logo-container {
        flex-direction: row;
    }
    
    .nabh-img {
        height: 50px;
    }
    
    .hospital-name {
        font-size: 1.5rem;
    }
    
    .slider-container {
        height: 80vh;
        min-height: 550px;
    }
    
    .slide h1 {
        font-size: 2.2rem !important;
    }
    
    .quick-actions .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-buttons .btn {
        width: auto;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .top-bar .row {
        align-items: center;
    }
    
    .contact-info span {
        margin-right: 15px;
    }
    
    .slider-container {
        height: 90vh;
        min-height: 600px;
    }
    
    .slide h1 {
        font-size: 2.5rem !important;
    }
    
    .quick-actions .col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    
    .navbar-nav .nav-link {
        margin: 0 3px;
    }
    
    .feature-item {
        flex-direction: row;
        text-align: left;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .slider-container {
        height: 100vh;
        min-height: 650px;
    }
    
    .slide h1 {
        font-size: 2.8rem !important;
    }
    
    .navbar-nav .nav-link {
        margin: 0 5px;
    }
    
    .hospital-placeholder i {
        font-size: 8rem !important;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .slider-container {
        height: 100vh;
        min-height: 700px;
    }
    
    .slide h1 {
        font-size: 3rem !important;
    }
    
    .hospital-placeholder i {
        font-size: 10rem !important;
    }
    
    .service-card:hover {
        transform: translateY(-15px);
    }
    
    .action-card .card:hover {
        transform: translateY(-8px);
    }
}

/* Ultra Wide Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape Orientation for Mobile */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .slider-container {
        height: 100vh;
        min-height: 400px;
    }
    
    .slide h1 {
        font-size: 1.8rem !important;
    }
    
    .slide .lead {
        font-size: 0.9rem;
    }
    
    .cta-buttons .btn {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nabh-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: none;
    }
    
    .animate-fadeInUp,
    .animate-fadeInRight {
        animation: none;
    }
    
    .service-card,
    .action-card .card,
    .btn {
        transition: none;
    }
    
    .pulse-animation {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .hero-slider,
    .slider-nav,
    .slider-indicators,
    .quick-actions,
    .top-bar,
    .navbar,
    .cta-section {
        display: none !important;
    }
    
    .main-header {
        position: static;
        box-shadow: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 16pt;
        font-weight: bold;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Focus Styles for Accessibility */
@media (min-width: 768px) {
    .navbar-nav .nav-link:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
    
    .btn:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
    
    .slider-nav:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
    
    .indicator:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
}
