/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and Mobile Styles (1200px and below) */
@media screen and (max-width: 1200px) {
    :root {
        --container-padding: 50px;
        --section-padding: 40px 0;
    }
    
    /* Navigation - Hide nav menu items and show hamburger */
    .nav-menu {
        position: fixed;
        left: 0;
        top: 70px;
        flex-direction: column;
        background-color: var(--main-blue);
        width: 100%;
        text-align: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }
    
    /* Hide social icons on tablet/mobile */
    .social-icons {
        display: none;
    }
    
    /* Hide desktop language switcher on tablet/mobile */
    .language-switch {
        display: none;
    }
    
    /* Show language switcher in mobile menu */
    .nav-menu .mobile-lang-switcher {
        display: block;
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 1rem;
    }
    
    .mobile-lang-switcher .lang-link {
        color: var(--white);
        padding: 0.5rem 1rem;
        font-weight: 500;
    }
    
    .mobile-lang-switcher .lang-link.active {
        color: var(--main-green);
    }
    
    .mobile-lang-switcher .lang-separator {
        color: rgba(255, 255, 255, 0.5);
        margin: 0 0.5rem;
    }
    
    /* Dropdown menu styling for mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        background-color: rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
        display: none;
    }
    
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        color: var(--white);
        padding: 0.75rem 1rem;
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--main-green);
    }
    
    /* Typography */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    /* Hero Banner */
    .hero-banner {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    /* Grid Layouts */
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Info sections - stack on tablet */
    .info-section-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .info-section-container.reverse {
        direction: rtl;
    }
    
    /* Footer - adjust to 2 columns */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-logo-section {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }
}

/* Small Tablet and Mobile Styles (768px and below) */
@media screen and (max-width: 768px) {
    /* Hero Banner - smaller on mobile */
    .hero-banner {
        height: 300px;
    }
    
    /* Grid Layouts */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-logo-section {
        align-items: center;
    }
    
    .footer-guide-links {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* About Page */
    .about-logo img {
        max-width: 200px;
    }
    
    .mission-values {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Contact Page */
    .contact-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    /* Section title decorative lines - adjust for mobile */
    .section-title {
        gap: 1rem;
        font-size: 1.75rem;
    }
    
    .section-title::before,
    .section-title::after {
        height: 2px;
    }
}

/* Mobile Styles (480px and below) */
@media screen and (max-width: 480px) {
    :root {
        --container-padding: 40px;
        --section-padding: 30px 0;
    }
    
    /* Header */
    .nav-container {
        padding: 0 var(--container-padding);
    }
    
    .logo-img {
        height: 40px;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Hero Banner - 50% of screen height on mobile */
    .hero-banner {
        height: 50vw;
    }
    
    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
    
    /* Cards and Content */
    .news-item {
        margin-bottom: 1rem;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .social-feed {
        padding: 1.5rem;
        min-height: 200px;
    }
    
    .social-icon {
        font-size: 2rem;
    }
    
    /* Team Members */
    .team-member {
        padding: 1.5rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* About Page */
    .about-logo img {
        max-width: 150px;
    }
    
    .mission-values {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Contact Page */
    .contact-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .contact-method {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .contact-link {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .main-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-container {
        gap: 1rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Large Desktop Styles (1200px and above) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .nav-container {
        max-width: 1400px;
    }
    
    .footer-container {
        max-width: 1400px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-banner {
        height: 600px;
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .hamburger,
    .language-switch {
        display: none;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .hero-banner {
        height: auto;
        page-break-inside: avoid;
    }
    
    .news-item,
    .team-member,
    .contact-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-gray);
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: var(--dark-gray);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --main-blue: #000080;
        --secondary-blue: #000080;
        --accent-blue: #0000ff;
        --light-blue: #4169e1;
        --main-green: #008000;
        --dark-gray: #000000;
        --border-gray: #808080;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: #000000;
        color: #ffffff;
    }
    
    .news-item,
    .team-member,
    .contact-card {
        border: 2px solid var(--dark-gray);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .banner-slide {
        transition: none;
    }
    
    .hamburger .bar {
        transition: none;
    }
}