/* 
* Just English İngilizce Yaz Okulu
* Responsive Stylesheet
*/

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .programs-grid,
    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .program-overview,
    .safety-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .program-image,
    .safety-image {
        order: -1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial {
        flex: 0 0 calc(50% - 15px);
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    .header-content {
        position: relative;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 0 0 15px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .programs-grid,
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        flex: 0 0 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
        .popup-form {
        padding: 20px;
        width: 90%;
    }
    
    .popup-form h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .submit-button {
        padding: 10px;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .program-hero-section {
        padding: 60px 0;
    }
    
    .program-hero-section h1 {
        font-size: 1.8rem;
    }
    
    .program-features li,
    .safety-text li {
        font-size: 0.9rem;
    }
    
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .footer-links h3,
    .footer-contact h3,
    .footer-social h3 {
        font-size: 1.3rem;
    }
    
    .footer-bottom {
        margin-top: 30px;
        font-size: 0.9rem;
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .popup-form {
        height: 90vh;
        overflow-y: auto;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        margin-bottom: 10px;
    }
    
    .hero-section p {
        margin-bottom: 15px;
    }
}

/* Animation delays for AOS library */
@media (prefers-reduced-motion: no-preference) {
    [data-aos-delay="100"] {
        transition-delay: 100ms;
    }
    
    [data-aos-delay="200"] {
        transition-delay: 200ms;
    }
    
    [data-aos-delay="300"] {
        transition-delay: 300ms;
    }
    
    [data-aos-delay="400"] {
        transition-delay: 400ms;
    }
    
    [data-aos-delay="500"] {
        transition-delay: 500ms;
    }
}

/* Print styles */
@media print {
    .sticky-header,
    .cta-section,
    .whatsapp-button,
    .footer-social,
    .cta-button {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    .program-overview,
    .safety-content,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .programs-grid,
    .features-grid,
    .benefits-grid,
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .footer-contact p {
        margin-bottom: 5pt;
    }
    
    .footer-bottom {
        margin-top: 10pt;
        border-top: 1pt solid #ccc;
        padding-top: 10pt;
    }
}
