/* Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Small screens (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Extra small screens (up to 575px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        border-radius: 5px;
        text-align: center;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .navbar-toggle {
        display: none;
    }
    
    .hero {
        background: #fff !important;
        color: #000 !important;
        padding: 20px 0;
    }
    
    .btn {
        border: 1px solid #000;
        background: #fff !important;
        color: #000 !important;
    }
    
    .about-card,
    .news-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #fff;
    }
    
    .header {
        background: #2a2a2a;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .about {
        background: #2a2a2a;
    }
    
    .about-card,
    .news-card {
        background: #333;
        color: #fff;
    }
    
    .section-title {
        color: #fff;
    }
    
    .section-subtitle {
        color: #ccc;
    }
    
    .nav-link {
        color: #fff;
    }
    
    .navbar-toggle span {
        background: #fff;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus,
.read-more:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #007bff;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* Mobile Navigation Styles */
@media screen and (max-width: 880px) {
  .site-branding {
    width: 30%;
    padding: 1em;
    padding-left: 1em;
    padding-right: 0em;
  }
  
  .languageSwitch {
    width: 30%;
    padding: 1em;
    padding-left: 0em;
    padding-right: 1em;
  }
  
  #site-navigation {
    width: 40%;
  }
  
  html.mobileMenuOpened {
    overflow-y: hidden;
    height: 100vh;
  }
  
  #site-navigation.toggled {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary-blue);
    z-index: 99;
    padding: 1em 0.5em;
    transition-duration: 500ms;
    animation: showMenuAnimation 500ms ease-in-out;
    opacity: 0.98;
  }
  
  @keyframes showMenuAnimation {
    0% {
      opacity: 0;
      width: 100%;
    }
    10% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  #site-navigation .sub-menu {
    background-color: transparent;
    box-shadow: none;
  }
  
  #site-navigation.toggled ul li a,
  #site-navigation.toggled ul ul li a,
  .sticky #site-navigation.toggled ul li a,
  .sticky #site-navigation.toggled ul ul li a {
    color: #fff;
    padding-left: 1em;
  }
  
  #site-navigation .current-menu-item a,
  .sticky.hasSlider #site-navigation ul li.current-menu-item a,
  .sticky.hasHero #site-navigation ul li.current-menu-item a {
    color: #fff;
    border: 0;
    position: relative;
    font-weight: normal;
  }
  
  #site-navigation .current-menu-item::after {
    content: "";
    position: absolute;
    background-color: var(--primary-green);
    width: 25%;
    height: 2px;
    bottom: -2px;
    left: 1em;
  }
  
  #site-navigation .sub-menu .current-menu-item {
    display: block;
  }
  
  .menu-toggle {
    width: 32px;
    height: 32px;
    align-self: center;
    padding: 0;
    background: transparent;
    border: none;
    transition-duration: 500ms;
    display: flex;
  }
  
  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--grey-100);
    margin: 3px 0;
    transition: 0.3s;
  }
  
  .sticky .menu-toggle .bar {
    background: var(--grey-100);
  }
  
  .sticky .toggled .bar {
    background: #fff;
  }
  
  .toggled .menu-toggle .bar:nth-child(2) {
    opacity: 0;
  }
  
  .toggled .menu-toggle .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .toggled .menu-toggle .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .toggled.main-navigation ul ul {
    position: static;
    background-color: transparent;
    box-shadow: none;
    padding-left: 1em;
  }
  
  .toggled.main-navigation ul ul li a {
    color: #fff;
    padding-left: 1em;
  }
  
  .toggled#site-navigation .sub-menu .current-menu-item {
    display: block;
  }
} 