/* ===== RESPONSIVE STYLES ===== */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-lg-2-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 4rem 0;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .service-card img,
    .facility-card img,
    .program-card img {
        height: 180px;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .col-lg-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .service-card,
    .feature-card,
    .program-card,
    .price-card,
    .team-member {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card img,
    .facility-card img,
    .program-card img,
    .case-study-card img,
    .blog-card img {
        height: 150px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .timeline {
        padding: 1rem 0;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        margin: 1rem 0;
        padding: 0 1rem;
        text-align: left;
    }
    
    .timeline-year {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .swiper-pagination {
        bottom: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .text-center.mb-5 {
        margin-bottom: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .breadcrumb {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Swiper responsive settings */
@media (max-width: 767.98px) {
    .swiper {
        --swiper-pagination-bullet-size: 8px;
    }
    
    .reviews-swiper {
        padding-bottom: 2rem;
    }
    
    .review-card {
        min-height: 150px;
        padding: 1rem;
    }
    
    /* Disable autoplay and effects on mobile as per requirements */
    .swiper-wrapper {
        transform: none !important;
    }
    
    .swiper-slide {
        opacity: 1 !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb,
    footer,
    .btn,
    .swiper-pagination {
        display: none !important;
    }
    
    body {
  overflow-x: hidden;
        font-size: 12pt;
        line-height: 1.5;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .service-card,
    .feature-card,
    .program-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #ff6600;
        --accent-color: #cc0000;
        --gray: #333333;
        --light-gray: #eeeeee;
    }
    
    .service-card,
    .feature-card,
    .program-card,
    .price-card {
        border: 2px solid var(--gray);
    }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
} 