/* Sticky Navbar Fix */
.sticky-top.bg-white {
  z-index: 1030;
}

/* Optional subtle shadow for better visibility */
.bg-white {
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand img {
  transition: transform 0.3s ease;
}
.navbar-brand:hover img {
  transform: scale(1.1);
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 5px;
}

footer {
  background-color: #066259 !important;
}

.btn-primary,
.btn-custom {
  background-color: #066259;
  border: none;
}
.btn-primary:hover,
.btn-custom:hover {
  background-color: #044d48;
}

section h2, section h3, section h4, section h5 {
  color: #066259;
}

.nav-link {
  color: #333 !important;
}
.nav-link:hover,
.dropdown-item:hover {
  color: #066259 !important;
}

/* Fixed height for carousel */
.carousel {
  height: 500px; /* You can change this value as needed */
  overflow: hidden;
}

.carousel-item {
  height: 100%;
  position: relative;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  display: block;
}

/* Show top-level dropdown on hover */
@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
  }

  /* Show nested submenus on hover */
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }

  /* Style for nested submenu */
  .dropdown-submenu {
    position: relative;
  }

  .dropdown-submenu .dropdown-menu {
    top: -5px;
    left: 100%;
    margin-left: 4px;
    min-width: 200px;
    z-index: 1070;
    border-radius: 0 0.375rem 0.375rem 0.375rem;
    box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.15);
  }

  /* Smooth animation */
  .dropdown-menu {
    transition: all 0.2s ease-in-out;
    opacity: 0;
    transform: translateY(5px);
    pointer-events: none;
  }

  .dropdown:hover > .dropdown-menu,
  .dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}


/* Career Page Enhancements */
.table-responsive {
  border-radius: 0.5rem;
  overflow: hidden;
}

.table td, .table th {
  vertical-align: middle !important;
}

.btn-success {
  background-color: #066259;
  border: none;
}
.btn-success:hover {
  background-color: #044d48;
}

.table thead th {
  background-color: #066259;
  color: white;
  font-weight: 500;
}

.display-5 {
  font-size: calc(1.475rem + 1.4vw);
}

@media (min-width: 992px) {
  .display-5 {
    font-size: 2.5rem;
  }
}