/* ===============================
   Global
=============================== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  overflow-x: hidden;
}

/* ===============================
   Navbar
=============================== */
.navbar {
  padding: 0.6rem 1rem;
}
.navbar-brand img {
  height: 80px;
  transition: transform 0.2s ease;
}
.navbar-brand img:hover {
  transform: scale(1.05);
}
.navbar-nav .nav-link {
  font-weight: 500;
  color: #001f4d !important;
  padding: 10px 15px !important;
  transition: all 0.2s ease-in-out;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: #353433 !important;
  border-bottom: 2px solid #52514e;
}

/* Align brand + right logo */
.navbar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Responsive navbar */
@media (max-width: 991px) {
  .navbar-brand img {
    height: 65px;
  }
  .navbar-collapse {
    text-align: center;
  }
}

/* ===============================
   Hero Slider
=============================== */
#hero-slider {
  overflow: hidden;
}
.slider-row {
  min-height: 520px;
  display: flex;
  flex-wrap: nowrap;
}

/* Left overlay section */
.slider-left {
  width: 42%;
  min-height: 520px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 50px;
  padding-right: 30px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-sizing: border-box;
}
.slider-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 31, 77, 0.90);
  z-index: 0;
}
.slider-left .hero-text {
  position: relative;
  z-index: 1;
}

/* Right image section */
.slider-right {
  width: 58%;
  position: relative;
  overflow: hidden;
}
.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caption bar on bottom of image */
.carousel-caption-bottom {
  position: absolute;
  left: 10%;
  bottom: 20px;
  width: 60%;
}
.caption-inner {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(3px);
  color: #001f4d;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
}

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
}

/* ===============================
   Info Cards
=============================== */
.info-cards {
  margin-top: -60px;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}
.info-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
  padding: 20px;
}
.info-card small.muted {
  color: #b99b2f;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ===============================
   Responsive Adjustments
=============================== */
@media (max-width: 991px) {
  .slider-row {
    flex-direction: column-reverse;
    min-height: auto;
  }
  .slider-left {
    width: 100%;
    min-height: 300px;
    padding: 2rem 1.25rem;
    text-align: center;
    background-size: cover;
  }
  .slider-right {
    width: 100%;
    height: 320px;
  }
  .hero-text h1 {
    font-size: 1.6rem;
  }
  .carousel-caption-bottom {
    left: 8%;
    width: 80%;
    bottom: 15px;
  }
  .info-cards {
    margin-top: -40px;
  }
}

@media (max-width: 576px) {
  .slider-right {
    height: 240px;
  }
  .navbar-brand img {
    height: 55px;
  }
}
/* ===== Navbar fixes for includes/menus.php ===== */

/* Ensure navbar background + spacing */
.navbar {
  padding-top: .45rem;
  padding-bottom: .45rem;
  background: #fff;
  z-index: 1050;
}

/* Brand left (logo) */
.navbar .brand-left {
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* Keep right logo pinned to the far right of the container */
.navbar .brand-right {
  margin-left: auto; /* push to the far right within the .container */
  display: flex;
  align-items: center;
}

/* On small screens keep right logo visible but smaller */
@media (max-width: 991px) {
  .navbar .brand-right img {
    height: 56px;
  }
  .navbar .brand-left img {
    height: 56px;
  }
}

/* Nav links style override (increase specificity to beat Bootstrap) */
.navbar .navbar-nav .nav-link {
  font-weight: 500;
  color: #001f4d !important;
  padding: 10px 12px !important;
  transition: color .15s, border-bottom .15s;
}

/* Active / hover */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: #202020 !important;
  border-bottom: 2px solid #383838;
}

/* Dropdown on hover (for desktop) */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0; /* remove small gap */
  }
  .navbar .dropdown-toggle::after { transform: rotate(180deg); }
}

/* Small fix: make collapse content center on mobile */
@media (max-width: 991px) {
  .navbar .navbar-collapse {
    text-align: center;
  }
  .navbar .navbar-nav {
    width: 100%;
  }
}

/* Ensure right-logo doesn't stick near toggler on small screens:
   make sure it sits after collapse in DOM or float to right */
.navbar .right-logo-wrapper {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Utility to vertically center nav items with large logos */
.navbar .container > .navbar-brand,
.navbar .container > .right-logo-wrapper,
.navbar .container > .collapse {
  align-self: center;
}

/* If Bootstrap still overrides something, use very specific selector */
.container .navbar .navbar-nav .nav-link {
  color: #001f4d !important;
}

/* End navbar fixes */
