/* Responsive Styles for School Website */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    /* Header responsive */
    .navbar {
        padding: 15px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--light-color);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero sections */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Grid adjustments */
    .facilities-grid,
    .fees-grid,
    .rules-container,
    .testimonial-slider,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Gallery */
    .gallery-item {
        height: 180px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    /* Sections */
    .boarding-hero,
    .boarding-overview,
    .boarding-facilities,
    .daily-schedule,
    .boarding-fees,
    .rules-section,
    .testimonials-section,
    .gallery-preview,
    .contact-boarding {
        padding: 60px 0;
    }
    
    /* Grid adjustments */
    .facilities-grid,
    .fees-grid,
    .rules-container,
    .testimonial-slider,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cards */
    .facility-card,
    .fee-card,
    .rules-category,
    .testimonial-card,
    .contact-info {
        padding: 20px;
    }
    
    .facility-icon {
        font-size: 2.5rem;
    }
    
    /* Schedule table */
    .schedule-table {
        display: block;
        overflow-x: auto;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 10px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Sections */
    .boarding-hero {
        padding: 50px 0;
    }
    
    .boarding-hero h1 {
        font-size: 2rem;
    }
    
    /* Gallery */
    .gallery-grid {
        gap: 10px;
    }
    
    .gallery-item {
        height: 150px;
    }
    
    /* Fees */
    .fee-amount {
        font-size: 2rem;
    }
    
    /* Testimonials */
    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .author-image {
        margin-bottom: 10px;
        margin-right: 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .gallery-preview,
    .testimonials-section,
    .contact-boarding {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .schedule-table,
    .facility-card,
    .fee-card {
        page-break-inside: avoid;
    }
}