html, body {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.body {
  padding-top: 64px !important;
}

* {
  box-sizing: border-box !important;
}

/* Always blue links, matching menu */
a, a:visited, a:active {
    color: #244882;
    text-decoration: none;
    transition: color 0.15s;
}
a:hover, a:focus {
    color: #163d7a;
    text-decoration: underline;
}
h1 {
    text-align: center;
    /*font-size: clamp(2rem, 4vw, 2.5rem);*/
    line-height: 1.3;
    margin: 0.5rem 0;
}
h2 {
    font-size: clamp(1.32rem, 2.5vw, 1.5rem);
}
h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.2rem);
}
/* Responsive event images layout */
.events-images {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin: 32px 0;
}
/*.event-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}*/

@media (max-width: 900px) {
    .events-images {
        gap: 18px;
    }
    /*.event-img {
        max-width: 45vw;
    }*/
}

@media (max-width: 600px) {
    .events-images {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }
    /*.event-img {
        max-width: 90vw;
    }*/
}
/* Add your logo image to the images/ directory and update the src below if needed */
.header {
    width: 100%;
    height: 64px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0 24px;
}
.header .waffle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}
.header .waffle svg {
    width: 28px;
    height: 28px;
    fill: #333;
}
.header .waffle {
    margin-right: 30px;
}
.header .logo {
    height: 44px;
    width: auto;
}

/* Dropdown menu (mobile): appears below header and covers content */
.menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  background: rgba(230,242,251,0.98);
  padding: 12px 20px;
  display: none;
  flex-direction: column;
  z-index: 1200;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.menu a {
    font-family: 'Baloo 2', 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
    font-weight: 700;
    color: #244882;
    font-size: 1.35rem;
    border-radius: 24px;
  padding: 10px 18px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.5px;
    display: inline-block;
}
.menu a:hover, .menu a:focus {
    background: #e6edfa;
    color: #163d7a;
}

/* Header inline links (show on wide screens) */
.header-links {
  display: none;
  gap: 18px;
  align-items: right;
  margin-left: auto;
  margin-right: 45px;
}
.header-links a {
  color: #244882;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1.5rem;
}
.header-links a:hover, .header-links a:focus {
  /*background: #e6edfa;
  color: #163d7a;*/
  text-decoration: underline;
}

/* Breakpoint: show inline links when there's enough horizontal space */
@media (min-width: 800px) {
  .header .waffle { display: none; }
  .header-links { display: flex; }
  .menu { display: none !important; }
}

@media (max-width: 799px) {
  .header-links { display: none; }
}

/* Custom scrollbar styling
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}*/

/* Firefox scrollbar
* {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}*/

body {
    padding: 64px 0px 0px 0px; /* top padding for header, rest for edges */
    box-sizing: border-box;
    min-height: 100vh;
    background-color: #fff;
    /*background-image: none;*/
    font-family: 'Baloo 2', 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
    color: #181818;
    font-weight: 700;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

h1, h2, h3, h4, h5, h6, p, a, li, label, input, button, span, div {
    font-family: inherit;
    color: inherit;
    font-weight: inherit;
}

@media (max-width: 600px) {
    body {
        padding: 80px 8px 16px 8px;
    }
    .menu a {
        font-family: 'Baloo 2', 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
        font-weight: 700;
        color: #244882;
        font-size: 1.35rem;
        border-radius: 24px;
        padding: 8px 24px;
        text-decoration: none;
        transition: background 0.15s, color 0.15s;
        letter-spacing: 0.5px;
        display: inline-block;
    }
    .menu a:hover, .menu a:focus {
        background: #e6edfa;
        color: #163d7a;
    }

    a, a:visited {
        color: #244882;
        text-decoration: underline;
        transition: color 0.15s;
    }
    a:hover, a:focus {
        color: #163d7a;
        text-decoration: underline;
    }
        /* Always blue links, matching menu */
        a, a:visited, a:active {
            color: #244882;
            text-decoration: none;
            transition: color 0.15s;
        }
        a:hover, a:focus {
            color: #163d7a;
            text-decoration: underline;
        }
}

.opening-section {
  /* 1. Set the background image */
  background-image: url("Images/BabyBlueGrid.png");

  /* 2. Set responsive dimensions */
  width: auto;
  height: 92vh;
  /*min-height: clamp(500px, 85vh, 900px); */
  aspect-ratio: auto;
  margin-left: 0px;
  margin-right: 0px;

  /* 3. Handle the image scaling */
  background-position: center; /* Keeps the center of the image visible */
  background-repeat: repeat; /* Change to 'repeat' if you'd prefer tiling */
  background-size: cover; /* This crops the image to fill the area without stretching */
  /* background-attachment: fixed; */

  /* 4. Center the text inside */
  display: flex;
  justify-content: center; /* Horizontal centering */
  align-items: center;     /* Vertical centering */
  text-align: center;
  color: #244882;            /* Ensures text is readable */
  /*padding: clamp(20px, 5vw, 60px) 20px;*/
  box-sizing: border-box;
}

.opening-text {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vh, 30px);
}

.opening-text h1 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 3rem);
  line-height: 1.2;
  word-wrap: break-word;
}

.opening-text br {
  display: none;
}

@media (max-width: 600px) {
  .opening-section {
    min-height: clamp(400px, 80vh, 700px);
    margin-top: -15px;
    width: 103%;
    margin-left: -7px;
    margin-right: -auto;
  }
  
  .opening-text {
    gap: clamp(8px, 1.5vh, 20px);
  }
  
  .opening-text h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
}

.blog-header {
    padding-bottom: 100px;
    padding-top: 65px;
    padding-left: 20px;
    text-align: center !important;
    align-items: left;
    color: #244882; 
    background-color: #d2e8fc;
    width: 100%;
    margin: 0;
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    line-height: 1.2;
    word-wrap: break-word;
    mask: 
        radial-gradient(51.43px at 50% calc(100% - 69px),#000 99%,#0000 101%) calc(50% - 46px) 0/92px 100%,
        radial-gradient(51.43px at 50% calc(100% + 46px),#0000 99%,#000 101%) 50% calc(100% - 23px)/92px 100% repeat-x;
}

.navigation {
    width: auto;
    height: auto;
    justify-content: center; /* Horizontal centering */
    align-items: center;     /* Vertical centering */
    text-align: center;
    background-color: #d2e8fc;
    mask: 
        radial-gradient(51.43px at 50% 69px,#000 99%,#0000 101%) calc(50% - 46px) 0/92px 51% repeat-x,
        radial-gradient(51.43px at 50% -46px,#0000 99%,#000 101%) 50% 23px/92px calc(51% - 23px) repeat-x,
        radial-gradient(51.43px at 50% calc(100% - 69px),#000 99%,#0000 101%) 50% 100%/92px 51% repeat-x,
        radial-gradient(51.43px at 50% calc(100% + 46px),#0000 99%,#000 101%) calc(50% - 46px) calc(100% - 23px)/92px calc(51% - 23px) repeat-x;
}

.nav-title {
    justify-content: left;
    text-align: left;
    align-items: left;
}

.nav-items {
    display: flex;
    justify-content: space-evenly;
    padding-left: 200px !important;
    padding-right: 200px !important;
    align-items: center;
    flex-wrap: wrap;
    word-wrap: break-word;
    /*color: black;*/
    gap: 45px;
}

@media (max-width: 1300px) {
  .nav-items {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}

@media (max-width: 790px) {
  .nav-items {
    flex-direction: column;
  }
  .nav-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }
}

.nav-link {
    /*color: #1b3a6b !important;*/
    color: #244882 !important;
}

.nav-icon {
  height: 50px;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1250px;
  margin: 30px auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: auto;
  gap: 0;
  will-change: transform;
}

.card {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  max-width: clamp(280px, 85vw, 400px);
  max-height: clamp(280px, 85vw, 400px);
}

/* Tablet adjustments */
@media (max-width: 1250px) {
  .card img {
    max-width: clamp(240px, 80vw, 350px);
    max-height: clamp(240px, 80vw, 350px);
  }
  .carousel-container {
    max-width: 1100px;
  }
}

@media (max-width: 1100px) {
  .carousel-container {
    max-width: 740px;
  }
  .inspiring-testimonial {
    max-width: 800px !important;
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 750px) {
  .carousel-container {
    max-width: 370px;
  }
}

/* Mobile adjustments
@media (max-width: 600px) {
  .card img {
    max-width: clamp(200px, 90vw, 300px);
    max-height: clamp(200px, 90vw, 300px);
  }
  
  .event-images {
    padding: 30px 10px;
  }
}*/

/* Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
}

.dot-container {
  text-align: center;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dot {
  cursor: pointer;
  height: 8px;
  width: 8px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot:hover {
  background-color: #999;
}

.dot.active {
  background-color: #244882;
}

/* Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  z-index: 10;
}
.prev { left: 15px; }
.next { right: 15px; }

.nav-btn img { 
  display: block; 
  width: 20px; 
  height: auto; 
  pointer-events: none; 
}

.what-we-do {
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
  /*background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(230,245,255,0.4) 100%);*/
}

.what-title {
  width: 100%;
  text-align: center;
  margin: 0 0 18px 0;
  /*font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  color: #244882;*/
}

.what-content {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.lift {
  flex: 0 0 auto;
}

.lift img {
  display: block;
  width: 100%;
  max-width: clamp(320px, 28vw, 480px); /* slightly larger than carousel images */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.what-text {
  flex: 1 1 380px;
  min-width: 220px;
  color: #181818;
  /*: clamp(1rem, 1.6vw, 1.125rem);*/
  line-height: 1.6;
}

/* Responsive: when narrow, stack image above text */
@media (max-width: 780px) {
  .what-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .lift img {
    max-width: clamp(200px, 55vw, 320px);
  }
  .what-text { padding: 0 6px; }
  .what-we-do {
    padding-bottom: 0px !important;
  }
}

.carousel-container2 {
  position: relative;
  width: 100%;
  max-width: 1250px;
  margin: 30px auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

/* Blog carousel (matches carousel-container and carousel-container2) */
.carousel-container3 {
  position: relative;
  width: 100%;
  max-width: 1250px;
  margin: 30px auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.carousel-track3 {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: auto;
  gap: 0;
  will-change: transform;
}

.card3 {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.card3 img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  max-width: clamp(280px, 85vw, 400px);
  max-height: clamp(280px, 85vw, 400px);
}

@media (max-width: 1024px) {
  .card3 img {
    max-width: clamp(240px, 80vw, 350px);
    max-height: clamp(240px, 80vw, 350px);
  }
}

/*@media (max-width: 600px) {
  .card3 img {
    max-width: clamp(200px, 90vw, 300px);
    max-height: clamp(200px, 90vw, 300px);
  }
}*/

.carousel-track2 {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: auto;
  gap: 0;
  will-change: transform;
}

.card2 {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.card2 img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  max-width: clamp(280px, 85vw, 400px);
  max-height: clamp(280px, 85vw, 400px);
}

/* Tablet adjustments
@media (max-width: 1024px) {
  .card2 img {
    max-width: clamp(240px, 80vw, 350px);
    max-height: clamp(240px, 80vw, 350px);
  }
}*/

@media (max-width: 1250px) {
  .card2 img {
    max-width: clamp(240px, 80vw, 350px);
    max-height: clamp(240px, 80vw, 350px);
  }
  .carousel-container2 {
    max-width: 1100px;
  }
}

@media (max-width: 1100px) {
  .carousel-container2 {
    max-width: 740px;
  }
}

@media (max-width: 750px) {
  .carousel-container2 {
    max-width: 370px;
  }
}

/* Mobile adjustments
@media (max-width: 600px) {
  .card2 img {
    max-width: clamp(200px, 90vw, 300px);
    max-height: clamp(200px, 90vw, 300px);
  }
}*/

.instagram-images {
    background: linear-gradient(to bottom, #fff9e6, #ffe6f0);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
}

.instagram-images h1 {
    margin-bottom: 20px;
}

.instagram-images h2 {
    margin-top: 20px;
}

.instagram-link {
    color: #244882;
}

/* Upcoming event layout on events.html */
.event {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.event .event-img {
  flex: 0 0 auto;
  width: 250px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.event .event-description {
  flex: 1 1 420px;
  min-width: 260px;
  color: #181818;
}

.event .event-description h2 {
  /*line-height: 1.4;*/
  margin: 8px 0;
}

.event .event-description h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.125rem);
}

.upcoming-events {
  padding-left: 100px;
  padding-right: 100px;
  padding-top: 100px; 
  padding-bottom: 100px;
  /*background-image: 
    url("Images/sun.png"),
    url("Images/floaty.png");
  background-size: 300px;
  background-repeat: no-repeat;
  background-position: 
    97% 0%,
    20% 105%;*/
}

.past-events {
  padding-left: 100px;
  padding-right: 100px;
  padding-bottom: 70px;
  /*background-image: 
    url("Images/flamingo.png"),
    url("Images/beachBall.png");
  background-size: 
    300px,
    200px;
  background-repeat: no-repeat;
  background-position: 
    97% 36%,
    20% 90%;*/
}

.event-desktop-only {
  display: block;
}
.event-mobile-only {
  display: none;
}

@media (max-width: 1050px) {
  .upcoming-events, .past-events {
    background-image: none;
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 910px) {
  .event {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0px;
  }
  .event, .event-description {
    width: 100%;
    /*padding: 0 12px;*/
    text-align: left;
    /*padding-bottom: 0px !important;
    padding-top: 0px !important;*/
    height: auto;
  }
  .event-description {
    max-height: fit-content;
  }
  .event {
    padding-bottom: 40px !important;
  }
  .upcoming-events {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 5px !important;
    background-image: none;
    padding-bottom: 75px !important;
  }
  .past-events {
    padding-left: 15px;
    padding-right: 15px;
    background-image: none;
  }
  .upcoming-events h1, .past-events h1 {
    text-align: center;
    margin-bottom: -20px;
  }
  .event-mobile-only {
    display: block;
    text-align: left;
    align-self: flex-start !important;
  }
  .event-desktop-only {
    display: none;
  }
  /* Small-screen: tighten vertical spacing between event elements */
  /* Remove gap after the "Register Now!" h3 inside upcoming event */
  .upcoming-events .event .event-description h3:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  /* Reduce space before the Instagram h2 in upcoming events */
  .upcoming-events > h2 {
    margin-top: 6px;
  }
  /* Lessen gap between stacked past event blocks */
  .past-events .event {
    margin-bottom: 8px;
    padding-bottom: 4px !important;
  }
  /* Remove extra space between last past event and the review h2 */
  .past-events > h2 {
    margin-top: 6px;
  }
}

.inspiring-testimonial {
    max-width: 900px;
    margin: 20px auto 0;
    text-align: center;
}

.inspiring-testimonial h3 {
    font-style: italic;
    margin-bottom: 15px;
    /*font-size: clamp(1.3rem, 1.6vw, 1.125rem);*/
    line-height: 1.6;
}

    /* Blog promo row: keep images same width, top-aligned, centered, ~75% width*/
    .blog-promo {
      display: flex;
      flex-direction: column;
      padding: 5px 12px;
      align-items: center;
      justify-content: center;
    }
    /*.blog-promo .blog-row {
      display: flex;
      gap: 16px;
      justify-content: center;
      align-items: flex-start;
      max-width: 75vw;
      margin: 12px auto;
      box-sizing: border-box;
    }
    .blog-promo .blog-row a {
      flex: 0 0 calc((100% - 32px) / 3);
      max-width: calc((75vw - 32px) / 3);
    }
    .blog-promo .blog-row img.blog-image {
      width: 100%;
      height: auto;
      display: block;
      vertical-align: top;
      border-radius: 8px;
      object-fit: cover;
    }*/

    .blog-row {
      display: flex;
      gap: 16px;
      justify-content: center;
      align-items: flex-start;
      flex-direction: row;
      box-sizing: border-box;     
    }
    .blog-image {
      width: 390px;
      height: auto;
      display: block;
      justify-content: center;
      border-radius: 8px;
      object-fit: cover;
    }
    .blog-carousel {
      display: none;
    }

    @media (max-width: 1220px) {
      .blog-image {
        width: 340px;
      }
      .blog-carousel {
        display: none;
      }
    }

    @media (max-width: 1070px) {
      .blog-image {
        width: 320px;
      }
      .blog-carousel {
        display: none;
      }
    }

    /*@media (max-width: 1000px) {
      .blog-image {
        width: 300px;
      }
      .blog-carousel {
        display: none;
      }
    }*/

    @media (max-width: 1000px) {
      .blog-carousel {
        display: block;
        max-width: 740px;
      }
      .blog-row, .blog-image {
        display: none;
      }
    }

    @media (max-width: 800px) {
      .blog-carousel {
        display: block;
        max-width: 350px;
      }
      .blog-row, .blog-image {
        display: none;
      }
      .blog-promo h2 {
        max-width: 600px;
      }
    }

    /* Stack to column on small screens
    @media (max-width: 720px) {
      .blog-promo .blog-row {
        flex-direction: column;
        max-width: 90vw;
        gap: 12px;
      }
      .blog-promo .blog-row a {
        flex: 0 0 auto;
        max-width: 100%;
      }
    }*/

    /* About page: mission statement centered */
    .mission-statement {
      max-width: 900px;
      margin: 0 auto;
      text-align: center;
      padding-left: 16px;
      padding-right: 16px;
    }
    .mission-statement .mission-text p {
      margin: 0 auto;
      max-width: 820px;
      line-height: 1.6;
      font-size: clamp(1rem, 1.6vw, 1.125rem);
    }

    @media (max-width: 1000px) {
      .mission-statement {
        max-width: 550px !important;
      }
    }

    /* Our goals: centered, each goal approx 1/5 width and wrap responsively */
    .our-goals { 
      padding: 32px 12px;
      padding-bottom: 80px;
    }
    .our-goals h1 { text-align: center; margin-bottom: 18px; }
    .goals-row {
      display: flex;
      gap: 20px;
      justify-content: center;
      align-items: flex-start;
      flex-wrap: wrap;
      max-width: 1500px;
      margin: 0 auto;
    }

    @media (max-width: 600px) {
      .goals-row {
        flex-direction: column;
        align-items: center;
        gap: 0px !important;
        max-width: 550px;
        padding-left: 15px;
        padding-right: 10px;
      }
      .our-goals {
        padding-bottom: 1px !important;
      }
      .goal-item p {
        text-align: center !important;
      }
      .goal-item {
        flex: auto !important;
        padding-bottom: 30px;
      }
      .our-team {
        padding-top: 40px !important;
      }
    }

    .goal-item {
      flex: 0 0 clamp(160px, 25vw, 260px);
      box-sizing: border-box;
    }
    .goal-item p { margin: 0; text-align: center; line-height: 1.5; }

    /* Team members: alternate image left/right on wide screens */
    .team-members { display: flex; flex-direction: column; gap: 20px; max-width: 1000px; margin: 0 auto; padding: 20px; }
    .team-member { display: flex; gap: 20px; align-items: center; padding: 12px; box-sizing: border-box; }
    .team-member:nth-child(even) { flex-direction: row-reverse; }
    .team-photo {
      width: clamp(120px, 20vw, 220px); /* about 1/5 of width on medium screens */
      height: auto;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      border-radius: 8px;
    }
    .team-info h2 { margin: 0 0 6px 0; }
    .team-info h3 { margin: 0 0 8px 0; font-weight: 700; }
    .team-info p { margin: 0; }

    /* When space is limited stack vertically and ensure image comes before text */
    @media (max-width: 830px) {
      .team-member { flex-direction: column; text-align: center; }
      .team-member:nth-child(even) { flex-direction: column; }
      .team-photo { width: clamp(140px, 32vw, 220px); }
    }

.join-our-team {
  /*padding-left: 150px;
  padding-right: 150px;*/
  max-width: 1150px; 
  margin: 0 auto; 
  padding: 20px;
}

.join-our-team h3 {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

@media (max-width: 1000px) {
  .join-our-team {
    /*padding-left: 10px;
    padding-right: 10px;*/
  }
}

.stats-background {
    width: auto;
    mask: 
        radial-gradient(51.43px at 50% 69px,#000 99%,#0000 101%) calc(50% - 46px) 0/92px 51% repeat-x,
        radial-gradient(51.43px at 50% -46px,#0000 99%,#000 101%) 50% 23px/92px calc(51% - 23px) repeat-x,
        radial-gradient(51.43px at 50% calc(100% - 69px),#000 99%,#0000 101%) 50% 100%/92px 51% repeat-x,
        radial-gradient(51.43px at 50% calc(100% + 46px),#0000 99%,#000 101%) calc(50% - 46px) calc(100% - 23px)/92px calc(51% - 23px) repeat-x;
}

.stats {
    padding-top: 50px;
    padding-bottom: 50px;
    color: #244882 !important;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-left: 150px !important;
    padding-right: 150px !important;
}

@media (max-width: 1300px) {
  .stats {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 790px) {
  .stats {
    flex-direction: column;
  }
  .stat {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
}

.affiliation-logos {
  /* This centers the content both ways */
  display: flex;
  justify-content: center; /* Horizontal centering */
  align-items: center;     /* Vertical centering */
  
  /* This allows items to wrap when they run out of space */
  flex-wrap: wrap;
  gap: 50px;               /* Adds space between images */
}

/* Optional: Forces a single column on mobile specifically */
@media (max-width: 900px) {
  .affiliation-logos {
    flex-direction: column;
  }
}

.mission-statement {
    max-width: 700px;
    justify-content: center;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.ending-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: auto;
    padding-left: 40px;   
    padding-right: 45px; 
    padding-bottom: 20px; 
    padding-right: 75px;           
    box-sizing: border-box;
}

.ending-combined-column {
  display: none;
}

@media (max-width: 1300px) {
  .ending-column-two {
    display: none;
  }
  .ending-combined-column {
    display: none;
  }
}

@media (max-width: 1000px) {
    .ending-section {
        flex-direction: column;
        padding-right: 0px;
    }
    .ending-column-three {
        /*text-align: left !important;*/
        display: none;
    }
    .ending-column-two {
      display: none;
    }
    .ending-column-one {
      display: none;
    }
    .footer-link {
        color: #5a5a63 !important;
    }
    .footer-text {
        color: #323236 !important;
    }
    .ending-combined-column {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: flex-start;
      width: 100%;
      padding-bottom: 20px; 
      box-sizing: border-box;
      max-width: 600px;
    }
    .ending-column-combined-two {
      text-align: right;
    }
}

@media (max-width: 630px) {
    .ending-section {
        flex-direction: column;
        padding-right: 0px;
    }
    .ending-column-three {
        text-align: left !important;
        display: block;
    }
    .ending-column-two {
      display: none;
    }
    .ending-column-one {
      display: block;
    }
    .footer-link {
        color: #5a5a63 !important;
    }
    .footer-text {
        color: #323236 !important;
    }
    .ending-combined-column {
      display: none;
    }
    .ending-column-combined-two {
      display: none;
    }
    .ending-column-combined-one {
      display: none;
    }
}

.ending-column-one {
    padding-top: 20px;
}

.ending-column-two {
    padding-top: 20px;
}

.ending-column-three {
    /*flex: 0 1 auto;*/
    text-align: right;
    padding-top: 20px;
}

.footer-link {
  color: #5a5a63 !important;
}

.footer-text {
    color: #323236 !important;
}

.deco-image {
  width: 40px;          
  height: auto;   
}

/* Event image overlay and modal */
.event-img-wrapper {
  position: relative;
  display: inline-block;
}
.event-img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.event-img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  text-transform: lowercase;
  background: rgba(255,255,255,0);
  opacity: 0;
  transition: opacity 0.18s ease, background 0.18s ease;
  pointer-events: none;
}
.event-img-wrapper:hover .event-img-overlay {
  background: rgba(255,255,255,0.45);
  opacity: 1;
  pointer-events: auto;
}

.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2200;
}
.image-modal[aria-hidden="false"] { display: flex; }
.image-modal-backdrop {
  position: absolute; 
  inset:0; 
  background: rgba(0,0,0,0.6);
}
.image-modal-inner {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  box-sizing: border-box;
  z-index: 2201;
}
.image-modal-inner img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
}
.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.modal-close img { width: 28px; height: auto; display:block; }