/* === Hero Section Styling === */
.hero-section {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero-section video {
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: brightness(0.5);
}

.hero-section .overlay {
  position: relative;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
}

/* === Dropdown on Hover for Desktop === */
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease-in-out forwards;
    margin-top: 0;
  }
}



/* === Smooth Slide Animation === */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Dropdown Item Hover === */
.dropdown-menu .dropdown-item:hover {
  background-color: #8B0000;
  color: #fff;
}

/* === Announcement Popup === */
.advert-popup {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  max-width: 300px;
  z-index: 9999;
}

.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5);
}

.hero-section .overlay {
  position: relative;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  z-index: 1;
  /* Adjust the last value to control the darkness */
  /* rgba(0, 0, 0, **0.5**) = 50% black = moderately dark
rgba(0, 0, 0, **0.7**) = 70% black = very dark
rgba(0, 0, 0, **0.3**) = lighter fade
Just adjust the last number between 0 and 1 to your liking. */
}

.hero-section .overlay {
  position: relative;
  z-index: 2;
}

.overlay-content h1 {
  font-size: 3rem;
}


.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 800px;
  width: 90%;
  text-align: center;
}

@media (max-width: 768px) {
  .overlay-content h1 {
    font-size: 2rem;
  }

  .overlay-content p {
    font-size: 1rem;
  }

    .overlay-content .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .overlay-content .btn:last-child {
    margin-bottom: 0;
  }
}


/* css for the header for the six html pages from the cards in  the home page */
.animate-next-btn,
.animate-back-btn {
  transition: all 0.3s ease-in-out;
}

.animate-next-btn:hover,
.animate-back-btn:hover {
  transform: translateX(5px);
}

.animated-arrow,
.animated-back {
  transition: transform 0.3s ease;
}

.animate-next-btn:hover .animated-arrow {
  transform: translateX(5px);
}

.animate-back-btn:hover .animated-back {
  transform: translateX(-5px);
}
