/* Hide navmenu on desktop if it's handled by other CSS, but let it be visible for toggle */
@media (min-width: 1200px) {
  #navmenu {
    display: flex;
  }
}

@media (max-width: 1199px) {
  #navmenu {
    display: block;
  }
}

/* Increase transparency of hero text background */

#hero .carousel-item .container {
  background-color: rgba(20, 118, 122, 0.65);
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
  margin-bottom: 3rem;
}

/* Ensure text is readable */

#hero h1,
#hero h2,
#hero p {
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile navigation styles */

#header.sticky-top {
  z-index: 9999 !important;
  /* Ensure header is always on top */
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    cursor: pointer;
    z-index: 9999;
    position: relative;
  }
}

@media (max-width: 1199px) {
  #navmenu {
    position: relative;
    width: 100%;
  }
}

@media (max-width: 1199px) {
  #navmenu ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    /* Allow growth */
    transform: translateY(-20px);
    visibility: hidden;
    opacity: 0;
    background: rgba(20, 118, 122, 0.98);
    width: 100%;
    height: auto;
    flex-direction: column;
    padding: 2.5rem 0 1.5rem 0;
    /* More vertical padding */
    border-radius: 0 0 15px 15px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex !important;
  }

  .mobile-nav-active #navmenu ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Mobile Close Button */
.mobile-nav-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  line-height: 0;
  display: none;
}

/* Define bi-x content as it's missing from subset */
.bi-x::before {
  content: "\f62a" !important;
}

.mobile-nav-close:hover {
  opacity: 0.7;
}

@media (max-width: 1199px) {
  /* Keep toggle visible if needed, or remove hiding logic */
}

@media (max-width: 1199px) {
  #navmenu ul li {
    margin: 0;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
  }

  .mobile-nav-active #navmenu ul li {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav-active #navmenu ul li:nth-child(2) {
    transition-delay: 0.1s;
  }

  .mobile-nav-active #navmenu ul li:nth-child(3) {
    transition-delay: 0.15s;
  }

  .mobile-nav-active #navmenu ul li:nth-child(4) {
    transition-delay: 0.2s;
  }

  .mobile-nav-active #navmenu ul li:nth-child(5) {
    transition-delay: 0.25s;
  }

  #navmenu ul li:last-child {
    border-bottom: none;
  }
}

@media (max-width: 1199px) {
  #navmenu ul li a {
    padding: 1.2rem 1rem;
    /* More space for fingers */
    display: block;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
  }
}

/* Carousel indicators styling */

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-indicators .active {
  background-color: #fff;
}