  @font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  @font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
  }
  @font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
  }
  @font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
  }

  .equation-img {
    display: block;         
    width: auto;             
    max-width: 40%;          /* keeps equations smaller than main content */
    height: auto;            
    margin: 10px 0 10px 0;
    text-align: left;      
    padding: 5px;            /* small padding around image */
  }
.medium-banner {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
}

.medium-banner-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.medium-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75); /* Slight darkening for contrast */
}

.medium-banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

.medium-banner-title {
  font-size: 3.5rem;
  font-weight: 600;
  margin: 0;
}



  body { 
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif; /* Use 'Papyrus' or 'Comic Sans' to debug fonts! */
    background-color: #163E64;
  }
  .left-aligned { margin-left: auto; }
  .bg-dark { background-color: #2C8C99 !important; } /*footer and menu bar*/

  .bg-hero {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical center */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    height: 50vh;
    overflow: hidden;
  }
  
  .bg-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    
    background-image: var(--header-bg);
    background-size: cover;
    background-position: center;

    /* Dark overlay */
    background-color: rgba(0, 0, 0, 0.3);

    /* Blend background image with dark overlay */
    background-blend-mode: darken;

    /* Blur effect */
    filter: blur(3px);
  }

  .bg-hero .container {
    position: relative;
    z-index: 2; /* ensures text sits above the overlay */
  } 

  .bg-hero .container h1 {
    font-size: 6rem; 
    color: #EDF4F8;    
    margin: 0;
    font-weight: bold;
  }

  .navbar-dark .navbar-nav .nav-link {
    font-size: 1.1rem; /*scale*/
    color: #CAEEFB !important;
    /*color: white !important;*/
    opacity: 1 !important; /* default is non-opaque*/
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .navbar-dark .navbar-nav .nav-link:hover { 
    color: #CCFF99 !important; 
    opacity: 1 !important; /* default is non-opaque*/
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  /* hide navbar on home page */
  .navbar-hide {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
  }

.navbar-show {
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
  }
  /* CALLOUT */
  .bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
  .bd-callout h4 { margin-bottom: 1.25rem }
  .bd-callout p:last-child { margin-bottom:0 }
  .bd-callout code { border-radius:.25rem }
  .bd-callout+.bd-callout { margin-top:-.25rem }
  .bd-callout-info { border-left-color:#5bc0de }
  .bd-callout-warning { border-left-color:#f0ad4e }
  .bd-callout-danger { border-left-color:#d9534f }

  /* footer */
  footer a { color: rgb(189, 230, 255); font-weight: bold; text-decoration: none; }
  footer a:hover { color: rgb(71, 232, 130); text-decoration: underline; }

  .centered-home {
    display: block;
    width: 100%;    
    height: auto;    
    object-fit: contain ; 
    margin: 0 auto;   
  }

  .centered-container {
    display: flex;
    justify-content: center; /* centers horizontally */
    align-items: center;     /* centers vertically */
    width: 100%;
    overflow: hidden;
  }

    #splash {
    position: fixed;
    background-color: #163e64;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    top: 0;
    left: 0;
    overflow: hidden;
  }

  /*This is basically just positioning water drop on screen */
  .drop {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 25px;
    background: #ffffff;
    border-radius: 50%;
    animation: drip 2s cubic-bezier(1, 0, 0.91, 0.19) infinite;
  }

  .drop:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 30px solid rgba(255, 255, 255, 1);
    top: -22px;
  }

  /* Ripple starts after drop lands */
  .wave {
    position: absolute;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 1px;
    opacity: 0;
    border: #0B76A0 7px solid;
    border-radius: 300px / 150px;
    animation: ripple 2s ease-out 2s infinite;
  }

  .wave:after {
    content: "";
    position: absolute;
    opacity: 0;
    top: -5px;
    left: -5px;
    width: 2px;
    height: 1px;
    border: #a9d8da 5px solid;
    border-radius: 300px / 150px;
    animation: ripple-2 2s ease-out 2s infinite;
  }


  /* Centering drop */
  @keyframes drip {
    to {
      top: 50vh;
    }
  }

  /* Ripple movement */
  @keyframes ripple {
    from {
      opacity: 1;
      width: 2px;
      height: 1px;
    }
    to {
      width: 600px;
      height: 300px;
      border-width: 1px;
      opacity: 0;
    }
  }

  /* Second ring of water ripple*/
  @keyframes ripple-2 {
    0% {
      opacity: 1;
      width: 2px;
      height: 1px;
    }
    50% {
      opacity: 0;
    }
    100% {
      width: 200px;
      height: 100px;
      border-width: 1px;
      left: 200px;
      top: 100px;
    }
  }

  #splash-text {
    position: absolute;
    top: 45vh;        
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: #163E64;
    opacity: 0;               
    animation: fadeInText 1.5s ease forwards;
    animation-delay: 3.2s;      
    z-index: 10;             
  }

  @keyframes fadeInText {
    to {
      opacity: 1;
    }
  }

  /* ---TEAM PAGE */
  /*--Header*/
  .hero-header {
    position: relative;
    background: url('/static/pictures/h.jpg') no-repeat center center/cover;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
  }

  /*.hero-header .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 50%;
    background: #15836E;
    z-index: 1;
  }*/

  .hero-text {
    position: relative;
    z-index: 2;
  }

  .hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
  }

  .hero-text h1 span {
    display: inline-block;
    animation: waveText 1.5s ease-in-out infinite;
  }

  .hero-text h1 span:nth-child(odd) {
    animation-delay: 0.1s;
  }
  .hero-text h1 span:nth-child(even) {
    animation-delay: 0.3s;
  }
  .hero-text h1 span:nth-child(3n) {
    animation-delay: 0.5s;
  }

  @keyframes waveText {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
  }

  .hero-text p {
    font-size: 50rem;
    max-width: 700px;
    margin: 0 auto;
    margin-top: 10px;
  }

  /*--Body*/
  html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
  }

  .logo {
    height: 60px; 
    width: auto;
  }

  .title_row {
    display: flex;
    align-items: center;
    gap: 15px; /* space between title and date */
  }

  .title_row .date {
    font-style: italic;
    font-size: 1.1em;
    color: #163E64;
  }

  .team-card {
    background: #CAEEFB;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 18px #163e64;
    transition: transform 0.3s;
    text-align: center;
  }
  .team-card:hover {
    transform: translateY(-5px);
  }

  .wave-container {
    position: relative;
    display: inline-block;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
  }

  .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;   
    object-position: center;
    border-radius: 50%;  
    position: relative;
    z-index: 2;
  }
  .side-by-side {
  display: flex;          /* enable flexbox */
  gap: 20px;              /* space between images */
  flex-wrap: wrap;        /* wrap on small screens */
  justify-content: center; /* center the row if extra space */
  }

  .side-by-side .column {
    flex: 1 1 45%;           /* take ~45% width each, flexible */
    max-width: 300px;        /* optional: limit max size */
  }

  .side-by-side img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;      /* optional rounded corners */
  }
  .img-citation {
    font-size: 0.8rem;     /* smaller than normal text */
    text-align: center;    /* center-align text */
    color: #163E64;           
    margin-top: 5px;       /* a little spacing above */
    font-style: italic;    
  }
  .img-citation2 {
    font-size: 0.8rem;     /* smaller than normal text */
    text-align: center;    /* center-align text */
    color: #EDF4F8;          
    margin-top: 5px;       /* a little spacing above */
    font-style: italic;    
  }

  
  .wave-border {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(0,123,255,0.4) 40%, transparent 70%);
    animation: wave 4s ease-in-out infinite;
    z-index: 1;
  }
  .video-row {
    display: flex;
    justify-content: center;   
    align-items: flex-start;    
    gap: 20px;                  
    flex-wrap: wrap;            
    margin: 20px auto;
    width: 100%;
    max-width: 1300px;          
  }

  .video-row video {
    flex: 1 1 45%;              
    max-width: 600px;           
    height: auto;             
    border-radius: 8px;         
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  @keyframes wave {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50%      { transform: scale(1.1) rotate(15deg); opacity: 1; }
  }

  .wave-border.delay {
    animation-delay: 2s;
    opacity: 0.5;
  }

  .description {
    font-size: 0.9rem;
    color: #444;
    margin-top: 10px;
  }

  /* ---GENERAL */

  /* Sidebar container */
  .layout-wrapper {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
  }

   .sidebar {
    position: sticky;
    top: 56px; /* after the header */              
    left: 0;
    width: 240px;
    background-color: #c4e3e2;
    padding-top: 15px;
    box-shadow: 4px 0 8px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 12px;
    margin-left: 0;
  }

  /* Sidebar links */
  .sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }

  .sidebar li {
    margin: 10px 0;
  }

  .sidebar a {
    display: block;
    padding: 8px 10px;
    font-size: 16px;
    color: #163E64;
    text-decoration: none;
    transition: background 0.3s;
    border-bottom: 1px solid #0B76A0; /* ← this adds the line */
  }

  .sidebar a:hover {
    background-color: #0B76A0;
    color: #fff;
    border-radius: 6px;
  }
  
  .main-content {
    flex: 1;
    margin-left: 40px; 
  }

  .info_container {
    background: #c2e4e2;
    padding: 10px 20px;
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
    gap: 40px; 
    margin: 40px auto;
    scroll-margin-top: 66px;
  }

  .section {
    background: #EDF4F8;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    color: #163E64;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #0B76A0;
    margin: 16px 0;
  }

  .centered-img { 
    display: block; 
    margin: 1em auto; 
    width: 100%; 
    max-width: 600px; 
    height: auto; 
  }

  .wave-divider {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: transparent;
  }

  .wave-shape {
    position: absolute;
    width: 400%;
    height: 100%;
    top: 0;
    left: 0;
    background: #0B76A0;
    clip-path: path(
      "M0,80
      C100,40 200,120 300,80
      C400,40 500,120 600,80
      C700,40 800,120 900,80
      C1000,40 1100,120 1200,80
      C1300,40 1400,120 1500,80
      L1500,150 L0,150 Z"
    );

    animation: waveSlide 12s linear infinite;
  }

  .wave-shape.wave2 {
    background: rgba(202,238,251,0.7);
    animation-duration: 20s;
    animation-direction: reverse;
  }

  @keyframes waveSlide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* Dropdown Button */
  .dropdown-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    font-size: 20px;       
    line-height: 1; 
    text-align: left;
    background-color: #163E64;
    color: #CAEEFB;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .dropdown-button:hover {
    background-color: #133554;
  }

  /* Dropdown content default - inactive */
  .dropdown-content {
    display: none; /* hidden initially */
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 5px;
    background-color: #2C8C99;
    color: #CAEEFB;
  }

  /* Show dropdown content when active */
  .dropdown-content.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
  }

  .dropdown-icon {
    transition: transform 0.3s ease;
    display: inline-block;  
  }

  .dropdown-button.active .dropdown-icon {
    transform: rotate(180deg); /* flips arrow when open */
  }

  .hyperlink-button { 
    display: block; 
    width: 100%; 
    padding: 10px 15px; 
    font-size: 20px; 
    line-height: 1; 
    background-color: #163E64; 
    color: #CAEEFB; 
    border: none; 
    border-radius: 8px; 
    text-decoration: none; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.3s, 
    box-shadow 0.3s, 
    transform 0.1s; 
  }
  
  .hyperlink-button:hover { 
    background-color: #133554; 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); 
    transform: translateY(-2px); }

  .hyperlink-button:active { 
    background-color: #0d273f; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); 
    transform: translateY(0); }

  .wave-divider {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: transparent;
  }

  .wave-shape {
    position: absolute;
    width: 400%;
    height: 100%;
    top: 0;
    left: 0;
    background: #0B76A0;
    clip-path: path(
      "M0,80
      C100,40 200,120 300,80
      C400,40 500,120 600,80
      C700,40 800,120 900,80
      C1000,40 1100,120 1200,80
      C1300,40 1400,120 1500,80
      L1500,150 L0,150 Z"
    );

    animation: waveSlide 12s linear infinite;
  }

  .wave-shape.wave2 {
    background: rgba(202,238,251,0.7);
    animation-duration: 20s;
    animation-direction: reverse;
  }

  @keyframes waveSlide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* Dropdown Button */
  .dropdown-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    font-size: 24px;       
    text-align: left;
    background-color: #163E64;
    color: #CAEEFB;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .dropdown-button:hover {
    background-color: #133554;
  }

  /* Dropdown content default - inactive */
  .dropdown-content {
    display: none; /* hidden initially */
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 5px;
    background-color: #2C8C99;
    color: #CAEEFB;
  }

  /* Show dropdown content when active */
  .dropdown-content.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
  }

  .dropdown-icon {
    transition: transform 0.3s ease;
    display: inline-block;  
  }

  .dropdown-button.active .dropdown-icon {
    transform: rotate(180deg); /* flips arrow when open */
  }

/* --- HOMEPAGE CONTENT CONTAINER (Must be relative parent for the button) --- */
#homepage-content {
    position: relative; /* CRITICAL: Allows the button to be positioned absolutely inside it */
    display: block; 
    width: 100%;
    margin: 0 auto;
}

/* --- ACTION BUTTON: FINAL STYLING (Default: Invisible and Unclickable) --- */
#action-button {
    position: absolute;
    
    /* POSITIONING (CONFIRMED TO WORK) */
    bottom: 2%; /* YOUR FINAL BOTTOM VALUE */
    left: 50%; 
    transform: translate(-50%, 0); 
    
    /* SIZE (CONFIRMED TO WORK) */
    /* This padding controls the height and width of the clickable area */
    padding: 210px 35px; /* YOUR FINAL PADDING (HEIGHT/WIDTH) */

    /* TEXT APPEARANCE */
    font-size: 0; /* Use the size that looks best, likely 1.5em or 2.2em */
    line-height: 0; 
    font-weight: bold;
    text-align: center;
    width: 60%; /* Keep this to help contain the text */

    /* INVISIBLE STYLES (The default state) */
    color: transparent;      
    background: none;       
    border: none;            
    cursor: pointer;
    z-index: 11; 

    /* VISIBILITY CONTROLS (Starts invisible and unclickable) */
    opacity: 0; 
    pointer-events: none;    
    transition: opacity 0.5s ease-in-out; 
}

/* --- VISIBLE STATE --- */
#action-button.visible-button {
    opacity: 1; /* Fades in */
    pointer-events: auto; 
    color: #163E64; 
}

/* --- NEW: STATIC AWARD PLACEMENT ON HOMEPAGE --- */
#award-fixed {
    position: absolute; /* Position relative to homepage-content */
    top: 90px;         /* Position it well below the fixed navbar (70px + margin) */
    right: 1%;         /* Position it from the right edge */
    z-index: 5;        /* Ensure it sits above the background scrollable image */
}

/* New class for the image itself + hover effect */
.award-image-display {
    max-width: 150px; 
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    transition: transform 0.3s ease;
}

.award-image-display:hover {
    transform: scale(1.05);
}
