/* Reset and Base Styles */
:root {
    --primary-blue: #1a3a6c;
    --secondary-blue: #2a5a8c;
    --accent-red: #e63946;
    --light-red: #ff6b7c;
    --light-gray: #f5f7fa;
    --dark-gray: #2d3748;
    --medium-gray: #718096;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --title-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  background-color: #f9fafb;
  color: #1f2937;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

  /* Navbar Styles */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background-color: var(--light-gray);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  }
  
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 70px;
  }
  
  .header-container .main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  
  .logo img {
    width: 100px;
    height: auto;
    padding: 0;
  }
  
  .nav-links {
      display: flex;
      flex-wrap: wrap;
      list-style: none;
      justify-content: center;
      margin: 0;
      padding: 5px;
  }
  
  .nav-links li {
      margin: 0;
      position: relative;
  }
  
  .nav-link {
      text-decoration: none;
      color: var(--dark-gray);
      font-size: 1.1rem;
      font-weight: 600;
      padding-bottom: 10px !important;
      padding: 0 2vw;
      position: relative;
      transition: var(--transition);
  }
  
  .nav-link::after {
      content: '';
      position: absolute;
      bottom: 5px;
      left: 50%;
      width: 0;
      height: 2px;
      background: white;
      transition: all 0.3s ease;
      transform: translateX(-50%);
  }
  
  .nav-link:hover:not(.active) {
      color: var(--dark-gray);
  }
  .nav-link:hover:not(.active)::after {
      background-color: var(--dark-gray);
      width: 80%;
      animation: slideIn 0.3s ease-in-out;
  }
  
  .nav-link.active {
      color: var(--primary-blue);
      height: 100%;
  }
  
  .nav-link.active::after {
      display: none;
  }

  /* Mobile hamburger menu button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hamburger to cross animation */
.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile dropdown menu styles */
.mobile-menu {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: 60vh;
    background-color: var(--light-gray);
    transform: translateY(-300%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu .nav-links {
    flex-direction: column;
}

.mobile-menu .nav-links li {
    margin: 0 10px;
}

.mobile-menu .nav-link {
    display: block;
    padding: 0.5rem;
    font-size: 1rem;
}

.mobile-menu .nav-link::after {
    display: none;
}

/* Footer */

  footer {
    background: var(--dark-gray);
    color: white;
    padding: 70px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* For inner text and headings */
  }
  
        
  .footer-grid {
    width: 100%;
    max-width: 1200px;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    text-align: left; /* Optional: keep column content aligned left */
  }
  
        
.footer-col h3 {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
        
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-red);
}
        
.footer-links {
    list-style: none;
}
        
.footer-links li {
    margin-bottom: 15px;
}
        
.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
}
        
.footer-links a:hover {
    color: white;
    padding-left: 5px;
}
        
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
        
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}
        
.social-links a:hover {
    background: var(--accent-red);
    transform: translateY(-5px);
}
        
.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Tablet and Mobile Responsive Styles */
@media (max-width: 1024px) {
    .header-container {
        padding: 10px 4%;
    }
}

@media (max-width: 820px) {
    .header-container {
        justify-content: space-between;
        padding: 10px 4%;
    }
    
    .main-nav {
        display: none !important;
    }
    
    .mobile-toggle {
        display: flex;
    }

    .mobile-menu .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .logo img {
        width: 80px;
    }

    .mobile-menu .nav-links li {
        margin: 0 30px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 8px 3%;
    }
    
    .mobile-menu .nav-links li {
        margin: 0 10px;
    }
    /* Footer */
    .social-links a {
        width: 30px;
        height: 30px;
    }
}