section {
  background-color: rgb(242, 249, 254);
}

body {
  background-color: rgb(242, 249, 254);
  margin: 0;
  padding: 0;
}

/* Navbar list item customization to make them appear like glass buttons */

.navbar-nav li {
  /* Add a drop shadow */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s;
  border-radius: 15px;
  margin: 5px;
}

.navbar-nav li a {
    padding: 10px;
    border-radius: 15px;
}

.navbar-nav li:hover {
  /* Add a highlight effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  border-radius: 15px;
}

.navbar-nav li:hover a {
  background-color: #f1f1f1;
  padding: 10px;
     border-radius: 15px;
}

/*'Apply Now' button class customization*/

.btn.btn-primary.ms-md-2 {
  color: #000000;
  background-color: rgb(250, 255, 80);
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 15px;
}

.btn.btn-primary.ms-md-2:hover,
.btn.btn-primary.ms-md-2:focus {
  color: #000000;
  background-color: rgb(250, 255, 80);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn.btn-primary.ms-md-2:active,
.btn.btn-primary.ms-md-2.active {
  color: #000000;
  background-color: rgb(250, 255, 80);
  box-shadow: none;
}

/*Sticky navbar and faint line along the bottom of the navbar for context*/

.navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari support */
  background-color: rgb(242, 249, 254, 0.75);
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(128, 128, 128, 0.2); /* Adjust the opacity as desired */
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: 50vh; /* Instead of a fixed height, use min-height */
  height: auto; /* This allows the section to expand vertically as needed */
  display: flex;
  flex-direction: column; /* Change the layout direction */
  align-items: center;
  justify-content: center;
  padding: 0 5%; /* Keep some space around content */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 50vh;
  height: 100%; /* This should match the height of the section */
  width: 100%;
  background-size: cover;
/*  filter: blur(5px);*/
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-logo {
  width: 75vw; /* Relative to the width of the parent element */
  height: auto; /* Maintain aspect ratio */
  max-width: 600px;
  margin-top: 2.5em; /* Adjust the margin to desired spacing */
}



/* Member affiliation section styles */

.affiliation-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-row a {
  margin: 0 10px;
}

.center-logo {
  display: block;
}

.logo-img {
  max-width: 160px; /* Adjust as needed */
  height: auto;
}

/* Footer customization and classes */

footer {
  display: flex;
  justify-content: space-between;
  background-color: rgb(242, 249, 254);
  padding: 20px;
}

footer:before {
    border-top: 1px solid #ccc; 
    opacity: 0.5; 
/*    margin: 20px 0;*/
}

.footer-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.footer-left,
.footer-right {
  display: flex;
}

.footer-right p a {
  color: #fff;
  text-decoration: none;
  margin-left: 5px;
}

.footer-right p a:hover {
  color: #ccc;
}

/*Team Page specific classes for office workers and superintendents*/

.team-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 2.5% 5%;
  padding: 20px 0;
}

/* Card sizing: width = (100% - (N-1)*gap) / N  so full rows fill edge-to-edge */
/* Default: 5 columns  →  (100% - 4*16px) / 5  =  20% - 12.8px */
.team-member-office,
.team-member-superintendent {
  flex: 0 0 calc(20% - 12.8px);
}

@media screen and (max-width: 1200px) {
  /* 4 columns  →  (100% - 3*16px) / 4  =  25% - 12px */
  .team-member-office,
  .team-member-superintendent {
    flex: 0 0 calc(25% - 12px);
  }
}

@media screen and (max-width: 900px) {
  /* 3 columns  →  (100% - 2*16px) / 3  ≈  33.333% - 10.667px */
  .team-member-office,
  .team-member-superintendent {
    flex: 0 0 calc(33.333% - 10.667px);
  }
}

@media screen and (max-width: 600px) {
  .team-gallery {
    gap: 12px;
    margin: 2.5% 3%;
  }
  /* 2 columns  →  (100% - 1*12px) / 2  =  50% - 6px */
  .team-member-office,
  .team-member-superintendent {
    flex: 0 0 calc(50% - 6px);
  }
}

@media screen and (max-width: 400px) {
  .team-gallery {
    margin: 2.5% 4%;
  }
  /* 1 column */
  .team-member-office,
  .team-member-superintendent {
    flex: 0 0 100%;
  }
}

.team-member-office {
  position: relative;
  overflow: hidden;
  box-shadow: 0px 0px 5px #ccc;
  border-radius: 8px;
}

.team-member-office img {
  width: 100%;
  height: auto;
  display: block;
  transition: .3s ease-in-out;
}

.team-member-office:hover img {
  box-shadow: 0px 0px 15px #aaa;
}

.team-member-office::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(128, 128, 128, 0.3);
  opacity: 0;
  transition: .3s ease;
}

.team-member-office:hover::before {
  opacity: 1;
}


.team-member-superintendent {
  position: relative;
  overflow: hidden;
  box-shadow: 0px 0px 5px #ccc;
  border-radius: 8px;
}

.team-member-superintendent img {
  width: 100%;
  height: auto;
  display: block;
  transition: .3s ease-in-out;
}

.team-member-superintendent:hover img {
  box-shadow: 0px 0px 15px #aaa;
}

.team-member-superintendent::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(128, 128, 128, 0.3);
  opacity: 0;
  transition: .3s ease;
}

.team-member-superintendent:hover::before {
  opacity: 1;
}


/* Caption bar — shared layout */
.team-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
  box-sizing: border-box;
  gap: 1px;
}

.team-caption--office  { background: rgba(152, 215, 243, 0.85); }
.team-caption--field   { background: rgba(255, 220, 0, 0.85); }

.team-name {
  display: block;
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.team-caption--office .team-name  { color: #fff; }
.team-caption--field  .team-name  { color: #1a1a1a; }

.team-title {
  display: block;
  font-size: 0.68em;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.9;
}

.team-caption--office .team-title  { color: rgba(255, 255, 255, 0.9); }
.team-caption--field  .team-title  { color: rgba(0, 0, 0, 0.7); }

@media screen and (max-width: 600px) {
  .team-caption {
    padding: 7px 9px;
  }
  .team-name  { font-size: 0.78em; }
  .team-title { font-size: 0.6em; }
}




/* Project page styles */

.project-gallery {
        height: 100vh;
        padding: 15px;
    }

    .project-thumbnail {
        position: relative;
        margin: 5px;
        max-height: 300px;
        width: 100%;
        object-fit: cover;
    }

    .project-thumbnail::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(128, 128, 128, 0.5);
        opacity: 0;
        transition: opacity 0.5s;
    }

    .project-thumbnail:hover::after {
        opacity: 1;
    }

    .project-container {
        padding: 15px;
    }

/* Contact page underline stylization */

.underline {
    border-bottom: 3px solid #FAFF50; /* Initial yellow color */
}

