
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.bg-image.show {
    opacity: 1;
}

.services {
    padding-top: 70px;
}

.services-flex {
    margin-top: 120px;
    display: flex;
    flex-direction: row;
    justify-content: space-around; /* or use space-between / center depending on spacing preference */
    flex-wrap: wrap; /* Optional: allows wrapping on smaller screens */
    gap: 2rem; /* Optional: adds spacing between columns */
    padding: 2rem; /* Optional: adds space around the entire section */
}

.services-category-box {
    width: 30rem;
    height: 15rem;
    background-color: var(--site-color-01-hover);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 2px solid #fff;
    z-index: 3;
}

.dark-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--site-color-01);
    opacity: 0.35;
    transition: all ease-in-out 200ms;
    z-index: 20;
}

.services-category-box:hover .dark-overlay {
    opacity: 0;
}

.services-category-box {
    position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  width: 100%;
  text-align: center;
  z-index: 25;
}

.dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown ul li {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
  font-size: 2rem;
}

.services-category-box.active .dropdown {
  display: block;
}

.protocols-list,
.services-list,
.limits-list {
    z-index: 3;
}

.protocols-list {
    flex-basis: 400px;
}

.protocols-img-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 30px auto;
  border-radius: 50%;
  overflow: hidden;
}

.protocols-img {
  background-image: url(../img/services/headshot.jpg);
  background-size: cover;
  background-position: center 30%; /* try 30%, adjust as needed */
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
  position: relative;
  z-index: 1;
}

.protocols-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(127, 17, 17, 0.4); /* Adjust opacity/color */
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
}

.protocols-text {
    background-color: rgba(0, 0, 0, 0.7); /* semi-transparent black */
    padding: 2rem;
    border-radius: 10px; /* optional: rounded corners */
    color: #fff;
    font-size: 2.5rem;
    text-align: center;
    border: 2px solid #fff;
}

.protocols-text h2 {
    text-decoration: 2px underline #fff;
}

.protocols-text ul li {
    margin-bottom: 0.2rem; /* adjust spacing as needed */
    line-height: 1.5;
    border-bottom: 1px dotted #fff; /* Adds a white dotted line */
    padding-bottom: 0.5rem;
}

.protocols-text ul li:last-child {
    border-bottom: none;
}

.services-list {
    flex-basis: 300px;
}

.limits-list {
    flex-basis: 300px;
}

.bg-adjust-down {
    background-position: center 70%;
}

.bg-adjust-down-1 {
  background-position: center 30%;
}

.bg-bad-boy-adjust {
    background-size: 130%;
    background-position: 80% 70%;  /* ← Moves image LEFT and slightly down */
}





@media (max-width: 768px) {
  .services-flex {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 2rem;
    margin-top: 60px;
  }
  .services-category-box {
    width: 90%;
    height: auto;
    padding: 2rem 1rem;
    text-align: center;
  }
  .dropdown ul li {
    font-size: 1.4rem;
    padding: 8px;
  }
  .protocols-list {
    padding-top: 50px;
    flex-basis: auto;
    width: 90%;
    padding-bottom: 50px;
  }
  .protocols-img-wrapper {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
  }
  .protocols-text {
    font-size: 1.6rem;
    padding: 1.5rem;
  }
  .protocols-text ul li {
    font-size: 1.4rem;
  }

   .services-category-box {
    position: relative;
    z-index: 998; /* Ensure dropdown container is above others */
  }

  .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999; /* Must be higher than the other boxes/images */
  }

  .services-category-box.active .dropdown {
    display: block;
  }

  .protocols-list,
  .limits-list {
    z-index: 1; /* Lower so dropdown appears above */
    position: relative;
  }
}


@media (max-width: 390px) {
  .protocols-text {
    font-size: 1.4rem;
  }

  .protocols-text ul li {
    font-size: 1.2rem;
  }

  .dropdown ul li {
    font-size: 1.2rem;
  }
}