/* Mobile Optimization and Responsiveness */

/* Mobile Navigation Fixes */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0 !important;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        display: none !important;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem !important;
        margin: 0.25rem 0 !important;
    }
    
    .language-switcher {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        margin-left: 0;
        padding-left: 0;
        padding-top: 1rem;
        margin-top: 1rem;
    }
    
    .nav-toggle {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        color: #4a5568;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 3rem 1rem !important;
        min-height: auto !important;
    }
    
    .hero h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem !important;
        align-items: flex-start;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem !important;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        display: none !important;
    }
    
    /* Language Support Banner Mobile */
    .language-support-banner {
        padding: 1.5rem 1rem !important;
    }
    
    .language-support-content p {
        font-size: 1.1rem !important;
    }
    
    .language-support-content i {
        font-size: 2rem !important;
    }
    
    /* Trust Badges Mobile */
    .badges-container {
        flex-direction: column;
        gap: 1.5rem !important;
    }
    
    .trust-badge {
        width: 100%;
        padding: 1.5rem !important;
        text-align: center;
    }
    
    /* KOD95 Section Mobile */
    .kod95-main {
        flex-direction: column !important;
        padding: 1.5rem !important;
    }
    
    .kod95-main img {
        width: 100% !important;
        height: 200px !important;
    }
    
    .kod95-list {
        grid-template-columns: 1fr !important;
    }
    
    /* Courses Mobile */
    .courses-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .course-card {
        margin-bottom: 0 !important;
    }
    
    /* Accommodation Mobile */
    .accommodation-overview {
        flex-direction: column !important;
    }
    
    .accommodation-photo {
        flex: none !important;
        width: 100% !important;
        height: 200px !important;
    }
    
    .accommodation-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .accommodation-feature i {
        font-size: 1.5rem !important;
    }
    
    .accommodation-feature span {
        font-size: 0.85rem !important;
    }
    
    /* Training Overview Mobile */
    .training-main-photo img {
        height: 250px !important;
    }
    
    .training-features {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Photo Gallery Mobile */
    .photo-gallery {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .gallery-photo img {
        height: 250px !important;
    }
    
    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
    
    .author-avatar {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Partners Scrolling Mobile */
    .partners-scroll {
        animation-duration: 25s !important;
    }
    
    .partner-logo {
        width: 140px !important;
        height: 60px !important;
    }
    
    .partner-logo.text-logo span {
        font-size: 1rem !important;
    }
    
    /* CTA Section Mobile */
    .cta-section h2 {
        font-size: 1.75rem !important;
    }
    
    .cta-section p {
        font-size: 1rem !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 1rem !important;
    }
    
    .cta-buttons .btn {
        width: 100% !important;
    }
    
    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column ul {
        list-style: none;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Chat Widget Mobile */
    .chat-widget {
        bottom: 20px !important;
        left: 20px !important;
    }
    
    .chat-button {
        width: 50px !important;
        height: 50px !important;
    }
    
    .chat-popup {
        width: 90vw !important;
        max-width: 320px !important;
    }
}

/* Small Mobile (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .section-header h2 {
        font-size: 1.5rem !important;
    }
    
    .accommodation-grid {
        grid-template-columns: 1fr !important;
    }
    
    .partner-logo {
        width: 120px !important;
        height: 50px !important;
    }
    
    .lang-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto !important;
        padding: 2rem 1rem !important;
    }
}

/* Touch-Friendly Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav-link,
    .btn,
    .lang-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .gallery-photo:hover,
    .course-card:hover,
    .blog-card:hover {
        transform: none !important;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden !important;
}

.container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

