/* Responsive Styles for IHC Website */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .hero-section {
        padding: 40px 0 30px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .step {
        padding: 20px 15px;
    }
    
    .step-arrow {
        display: none;
    }
    
    .flow-steps .col-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .dashboard-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quiz-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .timer {
        font-size: 0.9rem;
    }
}

/* Small devices (tablets, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .step-arrow {
        display: none;
    }
    
    .flow-steps .col-sm-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Medium devices (desktops, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .step-arrow {
        font-size: 1.5rem;
    }
}

/* Large devices (large desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Styles for large screens */
}

/* Extra large devices (extra large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Styles for extra large screens */
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .hero-buttons,
    .cta-section,
    .simulation-controls,
    .quiz-navigation,
    .btn {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
        background: white !important;
    }
    
    .container {
        max-width: 100% !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .feature-card:hover,
    .news-card:hover,
    .stat-card:hover,
    .scenario-card:hover,
    .card:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}