/* css/style.css */

/* 1) Box‑sizing */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  /* 2) Font variables */
  :root {
    --default-font: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --heading-font: Montserrat, sans-serif;
    --nav-font: Poppins, sans-serif;
    --primary-color: #315577;
    --hover-color: #102d70;
  }
  
  /* 3) Base body styling */
  body {
    margin: 0;
    padding-top: 60px;
    font-family: var(--default-font);
    line-height: 1.6;
  }
  
  /* 4) Nav */
  nav {
    background-color: var(--primary-color);
    padding: 10px 20px;
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav.open {
    max-height: 100vh;
    overflow: visible;
  }
  nav h1 {
    font-family: var(--heading-font);
    font-size: 1.5em;
    color: white;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  nav ul li a {
    display: block;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-family: var(--nav-font);
    white-space: nowrap;
  }
  nav ul li a:hover {
    background-color: var(--hover-color);
  }
  nav ul li ul {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background-color: var(--primary-color);
    padding: 0;
    margin: 0;
    min-width: 150px;
  }
  nav ul li:hover ul {
    display: block;
  }
  
  /* 5) Shared container styling */
  .description-container,
  .video-container,
  .sponsor-container,
  .team-container,
  .gallery,
  .center-links,
  section,
  .visual-aids {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
  }
  
  /* Section box styling */
  section {
    background-color: var(--secondary-color, #f4f4f4);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
  }
  
  /* Centered list inside sections */
  section ul {
    list-style-position: inside;
    text-align: left;
    display: inline-block;
    margin: 10px auto;
    padding: 0;
  }
  section ul li {
    margin: 5px 0;
  }
  
  /* 6) Headings & text */
  h2, h3, h4, h5 {
    font-family: var(--heading-font);
    font-size: 1.5em;
    text-align: center;
    color: var(--primary-color);
    margin: 0.5em 0;
  }
  .description-container p {
    font-size: 1.2em;
    color: #333;
  }
  
  /* 7) Video */
  .video-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
  }
  .video-wrapper video,
  .video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 8px;
  }
  
  /* 8) Buttons */
  .learn-more,
  .center-links a {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-family: var(--nav-font);
    margin: 20px 5px;
  }
  .learn-more:hover,
  .center-links a:hover {
    background-color: var(--hover-color);
  }
  
  /* 9) Sponsor section */
  .sponsor-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    padding: 20px;
  }
  .contact-info {
    flex: 1 1 200px;
    font-size: 1.1em;
    color: #555;
    margin-right: 20px;
  }
  .sponsor-image {
    flex: 0 0 200px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  /* 10) Gallery grid */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 20px;
  }
  .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s;
  }
  .gallery-item img:hover {
    transform: scale(1.05);
  }
  
  /* Gallery item wrapper & caption */
  .gallery-item {
    position: relative;
    cursor: pointer;
    text-align: center;
  }
  .gallery-item p {
    margin-top: 8px;
    font-size: 1em;
    font-family: var(--nav-font);
    color: #555;
  }
  
  /* Lightbox overlay */
  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
  }
  .lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(255,255,255,0.2);
  }
  .lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: white;
    cursor: pointer;
  }
  
  /* 11) Team cards */
  .team-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
  }
  .team-member {
    width: 300px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .team-member img {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  .team-member h3 {
    margin: 10px 0;
  }
  
  /* Visual Aids Section */
  .visual-aids {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    max-width: 800px;
    margin: 20px auto;
  }
  .visual-aids h3 {
    margin: 0 0 20px;
  }
  .visual-aids img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    object-fit: contain;
  }
  
  /* 12) Documents links */
  .center-links {
    text-align: center;
  }
  .center-links a {
    margin: 10px auto;
  }
  
  /* 13) Media query */
  @media (max-width: 768px) {
    nav {
      flex-direction: column;
      align-items: flex-start;
    }
    nav ul {
      display: none;
      flex-direction: column;
      width: 100%;
    }
    nav ul li {
      width: 100%;
    }
    .sponsor-container {
      flex-direction: column;
    }
    .contact-info {
      margin: 0 0 20px;
    }
    .learn-more,
    .center-links a {
      margin-bottom: 40px;
    }
  
    /* Nav toggle */
    .menu-toggle {
      display: block;
      background: none;
      border: none;
      color: white;
      font-size: 1.8em;
      cursor: pointer;
    }
    nav.open ul {
      display: flex !important;
    }
  }
  
  /* Hide hamburger above 1000px */
  @media (min-width: 1001px) {
    .menu-toggle {
      display: none !important;
    }
  }
  