/* Responsive Design for Childcare Center Template */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .timeline-item {
        width: 45%;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .timeline-item::before {
        left: -45px !important;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Disable autoplay and effects for Swiper on tablets */
    .swiper-autoplay {
        --swiper-autoplay-delay: 0;
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-item::before {
        left: -35px !important;
    }
    
    .feature-card, .service-card, .pricing-card {
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 70px;
        height: 70px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Disable autoplay and effects for Swiper on mobile */
    .swiper-autoplay {
        --swiper-autoplay-delay: 0;
    }
    
    .swiper-effect-fade,
    .swiper-effect-cube,
    .swiper-effect-flip,
    .swiper-effect-coverflow {
        --swiper-effect: none;
    }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575.98px) {
    body {
  overflow-x: hidden;
        font-size: 14px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-nav .nav-link {
  font-size: 10px !important;
        padding: 0.5rem 0;
        margin: 0;
    }
    
    /* Hero section mobile optimization */
    .hero-section {
        min-height: 70vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Section padding adjustments */
    section {
        padding: 3rem 0 !important;
    }
    
    /* Card adjustments */
    .feature-card, .service-card, .pricing-card, 
    .program-card, .care-card, .special-program, 
    .safety-feature, .partnership-feature, .job-card, 
    .info-card, .case-study-card, .facility-card, 
    .outdoor-feature, .kitchen-feature, .tech-feature, 
    .comfort-feature {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card .card-img-top,
    .blog-card .card-img-top {
        height: 150px;
    }
    
    .service-card .card-body,
    .blog-card .card-body {
  overflow-x: hidden;
        padding: 1rem;
    }
    
    /* Timeline mobile layout */
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        padding: 1rem;
    }
    
    .timeline-item::before {
        left: -30px !important;
    }
    
    /* Team section mobile */
    .team-member {
        margin-bottom: 1.5rem;
    }
    
    .team-photo {
        width: 60px;
        height: 60px;
    }
    
    /* Process steps mobile */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1rem;
    }
    
    .contact-form .form-control {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Gallery mobile */
    .gallery-img {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    /* Review cards mobile */
    .review-card {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .review-card p {
        font-size: 0.9rem;
    }
    
    /* Pricing mobile */
    .pricing-card .price {
        font-size: 1.5rem;
    }
    
    /* Footer mobile */
    footer {
        margin-top: 2rem;
    }
    
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Icon sizes mobile */
    .fa-3x {
        font-size: 2rem !important;
    }
    
    .fa-2x {
        font-size: 1.5rem !important;
    }
    
    /* Feature items mobile */
    .feature-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    /* Accordion mobile */
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .accordion-body {
  overflow-x: hidden;
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Blog grid mobile spacing */
    #blog_grid .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Service list mobile */
    .service-card ul {
        font-size: 0.85rem;
    }
    
    /* Disable autoplay and effects for Swiper on mobile */
    .swiper-autoplay {
        --swiper-autoplay-delay: 0;
    }
    
    .swiper-effect-fade,
    .swiper-effect-cube,
    .swiper-effect-flip,
    .swiper-effect-coverflow {
        --swiper-effect: none;
    }
    
    /* Swiper pagination mobile */
    .swiper-pagination {
        bottom: 10px;
    }
    
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section h2 {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0 !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb,
    footer,
    .btn,
    .swiper-pagination,
    .accordion-button {
        display: none !important;
    }
    
    body {
  overflow-x: hidden;
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    .row {
        display: block !important;
    }
    
    .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-12,
    .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
        width: 100% !important;
        display: block !important;
        margin-bottom: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #FF6600;
        --text-dark: #000000;
        --text-light: #333333;
        --border-light: #000000;
    }
    
    .feature-card, .service-card, .pricing-card {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary {
        background: var(--text-dark);
        border: 2px solid var(--text-dark);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .swiper {
        --swiper-autoplay-delay: 0;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .gallery-img:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
} 