/* Reset and base box model */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  /* Ensure content does not hide under fixed navbar */
  padding-top: 100px; /* adjust to navbar height */
}

/* Navbar */
#mainNavbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
}

.navbar .nav-link:hover,
.dropdown-menu .dropdown-item:hover {
  background-color: #003a1b !important;
  color: white !important;
}

/* Top Bar */
.top-bar {
  background-color: #003a1b;
  color: white;
  font-size: 12px;
  padding: 3px 0;
  z-index: 1031; /* stay above hero */
}

.top-bar i {
  color: yellow;
}

/* Highlight Banner */
.highlight-banner {
  background-color: #ffcc00;
  color: black;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 11px;
}

/* Hero Section */
.hero-container {
  position: relative;
  width: 100vw;
  height: 65vh; /* 65% of viewport height */
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-slide {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 1s ease-in-out;
}

.hero-image {
  width: 100vw;
  height: 65vh;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2rem;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
  z-index: 2;
}

/* Main Content */
.container {
  position: relative;
  background: #fff;
  padding-top: 20px;
  z-index: 2;
}

/* Dropdown menus */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

.navbar-nav .dropdown:hover > .dropdown-menu {
  display: block;
  margin-top: 0;
}

/* Search Box */
.search-box-container {
  position: absolute;
  top: 100%;
  right: 20px;
  z-index: 1000;
  width: 300px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 10px;
  display: none;
}

.suggestion-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.suggestion-list li {
  padding: 4px 8px;
  cursor: pointer;
}

.suggestion-list li:hover {
  background-color: #eee;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-container {
    height: 50vh;
  }

  .hero-image {
    height: 50vh;
  }

  .hero-text {
    font-size: 1.5rem;
  }
}
