/* Responsive Styles */

/* Large Devices (Desktops) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .overview-grid,
    .newsletter-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .newsletter-content {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Devices (Landscape Phones) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 0 0 15px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title,
    .programs h2,
    .why-choose-us h2,
    .testimonials h2,
    .cta-section h2 {
        font-size: 28px;
    }
    
    .programs-grid,
    .features-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 90px;
    }
    
    .popup-container {
        width: 90%;
    }
    
    .cookie-consent {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .programs,
    .why-choose-us,
    .testimonials,
    .stats-section,
    .gallery-section,
    .blog-section,
    .newsletter-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .popup-container {
        padding: 30px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-text {
        font-size: 16px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin: 0 auto 10px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 4px;
        width: 100%;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }
    
    .popup-container {
        height: 90vh;
        overflow-y: auto;
    }
}

/* High-resolution displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
    /* Serve higher resolution images if needed */
    .hero {
        background-image: linear-gradient(rgba(227, 6, 19, 0.85), rgba(227, 6, 19, 0.85)), url('../images/hero-banner@2x.jpg');
    }
}

/* Print styles */
@media print {
    .header, 
    .footer, 
    .whatsapp-button, 
    .back-to-top, 
    .popup-overlay,
    .cta-section,
    .newsletter-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .hero, 
    .programs,
    .why-choose-us,
    .testimonials,
    .stats-section,
    .gallery-section,
    .blog-section {
        padding: 20pt 0 !important;
    }
    
    .hero {
        background-image: none !important;
        background-color: #fff !important;
        color: #000 !important;
    }
    
    .hero h1, 
    .section-title {
        color: #000 !important;
    }
    
    .programs-grid,
    .features-grid,
    .stats-grid,
    .blog-grid {
        display: block;
    }
    
    .program-card,
    .feature-card,
    .blog-card {
        page-break-inside: avoid;
        margin-bottom: 20pt;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    p, blockquote, ul, ol, dl, table {
        page-break-inside: avoid;
    }
}

/* Responsive - Testimonials ve FAQ */
@media (max-width: 768px) {
    /* FAQ Responsive */
    .faq-question {
        padding: 15px;
    }
    
    .faq-question h3 {
        font-size: 16px;
        padding-right: 10px;
    }
    
    .faq-toggle {
        font-size: 18px;
    }
    
    /* Testimonials Responsive */
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .testimonial-content::before {
        font-size: 40px;
    }
    
    .testimonial-author img {
        width: 60px;
        height: 60px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .testimonials-slider {
        padding: 0 10px 50px;
    }
    
    .testimonial-slide {
        padding: 5px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}
