/* =========================================================
   Global Reset & Base Styles
   ========================================================= */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    height: 100%;
  }
  
  body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding-top: 60px; /* Matches header height */
  }
  
  /* =========================================================
     Header & Navigation
     ========================================================= */
  
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5em 0;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 20px;
  }
  
  header.scrolled {
    background-color: #003366;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }
  
  nav a {
    display: inline-block;
    color: #003366;
    background-color: rgba(255, 255, 255, 0.8);
    margin: 0 8px;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: background-color 0.3s ease, color 0.3s ease, outline 0.3s ease;
  }
  
  nav a:hover {
    background-color: #0055aa;
    color: #ffffff;
    outline: 2px solid #003366;
    outline-offset: 2px;
  }
  
  header.scrolled nav a {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }
  
  header.scrolled nav a:hover {
    background-color: #ffffff;
    color: #003366;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
  }
  
  /* =========================================================
     Shared Container (Unified Width)
     ========================================================= */
  
  .container,
  section,
  .honours {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 15px;
  }
  
  .seventyfive-width-image {
    width: 75%;
    height: auto;
    display: block;
    margin: 0 auto; /* centers the image horizontally */
  }
  .section-width-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* centers the image horizontally */
  }

  /* =========================================================
     Main Content & Sections
     ========================================================= */
  
  main {
    flex: 1;
  }
  
  section h2 {
    color: #003366;
    margin-bottom: 0.5em;
  }
  
  section h3 {
    color: #000000;
    font-size: 2em;
  }
  
  section p {
    margin-bottom: 1em;
  }
  
  /* Buttons */
  .button {
    display: inline-block;
    background-color: #003366;
    color: #ffffff;
    padding: 0.5em 1em;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .button:hover {
    background-color: #0055aa;
  }
  
  /* =========================================================
     Honours & Awards Section
     ========================================================= */
  
  .honours {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: #111827;
  }
  
  .awards h2 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
  }
  
  .year-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .year-list > li {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #f9fafb;
  }
  
  .year-list h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
  }
  
  .year-list ul {
    margin: 0.25rem 0 0 0;
    padding-left: 1.25rem;
  }
  
  .year-list ul li {
    margin: 0.4rem 0;
    position: relative;
    line-height: 1.45;
  }
  
  .year-list ul li::before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: #2563eb;
    font-weight: 700;
  }
  
  .year-list ul li a {
    color: #2563eb;
    text-decoration: none;
  }
  
  .year-list ul li a:hover {
    text-decoration: underline;
  }
  
  /* =========================================================
     Footer
     ========================================================= */
  
  footer {
    background-color: #f5f5f5;
    color: #666666;
    text-align: center;
    padding: 1em;
    border-top: 1px solid #dddddd;
    font-size: 0.9em;
  }
  
  /* =========================================================
   Responsive Tweaks
   ========================================================= */

/* Medium screens and below (tablets, small laptops, large phones) */
@media (max-width: 768px) {
  /* --- Typography adjustments --- */
  body {
    font-size: 1.05em;   /* slightly larger text for readability */
    line-height: 1.8;    /* more comfortable line spacing */
    padding-top: 50px;   /* reduced offset to match smaller header */
  }

  section h2 {
    font-size: 1.4em;    /* scale down section headings */
  }

  section h3 {
    font-size: 1.6em;    /* scale down subheadings */
  }

  section p {
    line-height: 1.8;    /* improve paragraph readability */
  }

  /* --- Navigation links --- */
  nav a {
    margin: 4px;         /* tighter spacing between links */
    font-size: 0.9em;    /* slightly smaller font size */
    padding: 5px 8px;    /* balanced tap target size */
  }

  /* --- Hero section text --- */
  .hero h1 {
    font-size: 2em;      /* smaller hero headline */
  }

  .hero h2 {
    font-size: 1.2em;    /* smaller hero subheadline */
  }

  /* --- Layout spacing --- */
  section,
  .container,
  .honours {
    padding: 30px 15px;  /* reduce vertical padding for compact layout */
  }

  /* --- Images --- */
  .seventyfive-width-image {
    width: 100%;         /* make images full width on mobile */
  }

  .hero .hero-image {
    border-radius: 6px;  /* softer corners for hero image */
  }

  /* --- Header adjustments --- */
  header {
    padding: 0.2em 0;    /* slimmer header bar */
  }
}

/* Small screens (phones under 500px wide) */
@media (max-width: 500px) {
  nav {
    flex-direction: row;       /* keep horizontal */
    flex-wrap: wrap;           /* allow wrapping if needed */
    justify-content: center;
  }

  nav a {
    font-size: 0.8em;          /* smaller text */
    padding: 4px 6px;          /* tighter buttons */
    margin: 2px;               /* less spacing */
    width: auto;               /* don’t stretch full width */
  }
}


  /* =========================================================
     Video Container (Responsive Embed)
     ========================================================= */
  
  .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    width: 100%;
    margin: 0;
  }
  
  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
