
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

.center {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.container {
  width: 95%;
  margin: auto;
}

/* TOPBAR & TOPBAR DROPDOWNS STYLES */
.topbar {
  background: #003893;
  color: white;
  padding: 4px 0; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}


.nav-list {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 12px;
  padding-left: 0;
  margin-bottom: 0;
}

.right-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icons a {
  color: white;
  margin-right: 8px;
  text-decoration: none;
}

/* Topbar Login / Online A/C Small Dropdowns */
.dropdown {
  position: relative;
}

.dropdown button {
  background: transparent;
  border: 1px solid white;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  border-radius: 4px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;
  background: white;
  min-width: 150px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 999;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px;
  color: black;
  text-decoration: none;
  font-size: 12px;
}

.dropdown-menu a:hover {
  background: #f2f2f2;
}

/* DESKTOP MAIN NAVIGATION (Single-Line Layout) */


#menu, .hamburger {
  display: none;
}

.menu {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 40px; /* Reduced vertical padding from 15px to 0px */
  background-color: #ffffff;
  position: relative;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  width: fit-content;
  padding: 0; /* Removed padding: 10px */
}
.logo img {
  height: 100px; /* Reduced logo height from 100px to 65px to fit cleanly */
  width: auto;
  display: block; /* Removes inline layout whitespace below image */
}

.items {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Baseline top-level menu link colors */
.item {
  color: #333333;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease-in-out;
  white-space: nowrap;
}

/* CUSTOM MAIN MENU DROPDOWNS (Hover, Arrow Flip & Red Engine) */
.dropdown-custom {
  position: relative; /* Anchors absolute positioning context below */
  display: inline-block;
}

/* Down arrow indicator styling */
.arrow {
  font-size: 8px;
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.25s ease;
}

/* --- Red Hover and State Controls --- */

.dropdown-custom:hover .arrow {
  transform: rotate(180deg);
}

/* Top-level item behavior during an active drop-down state */
.dropdown-custom:hover .dropdown-toggle-custom {
  color: #003893;
}

/* Hidden container dropdown flying state rules */
.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #dddddd;
  padding: 0; /* Cleaned inner padding to ensure the red hover fills to the edge */
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
}

/* Reveal dropdown panel cleanly on element hover */
.dropdown-custom:hover .dropdown-menu-custom {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Inside child subitem links layout formatting */
.dropdown-menu-custom a {
  color: #333333;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Removes double border lines on the last link item */
.dropdown-menu-custom a:last-child {
  border-bottom: none;
}

/* Red block highlight behavior matching your visual example */
.dropdown-menu-custom a:hover {
  background-color: #003893 !important; /* Royal blue for dropdown menu*/
  color: #ffffff !important;            /* Crisp White Text */
}

/* ==========================================================================
   5. RESPONSIVE MOBILE VIEW
   ========================================================================== */
@media screen and (max-width: 768px) {
  .menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
  }

  .logo {
    width: auto; 
    padding: 0;
  }

  .logo img {
    height: 70px;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
  }

  .menu .items {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    gap: 0;
  }

  .menu .item {
    width: 100%;
    padding: 15px;
    border-radius: 0;
    border-top: 1px solid #e0e0e0;
    justify-content: flex-start; /* Aligns menu elements cleanly on mobile left */
  }

  /* Make sure dropdown containers spread full width inside mobile menu vertical stacking */
  .dropdown-custom {
    width: 100%;
  }

  .dropdown-menu-custom {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
    padding-left: 20px;
  }

  .dropdown-custom:hover .dropdown-menu-custom {
    display: block;
  }

  #menu:checked ~ .items {
    max-height: 800px; /* Increased to allow dropdown container heights */
  }

  #menu:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  #menu:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  #menu:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ==========================================================================
   6. CAROUSEL STYLES
   ========================================================================== */
.carousel-inner img {
  height: 400px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

@media screen and (max-width: 768px) {
  .carousel-inner img {
    height: 250px;
  }
}

/* ==========================================================================
   7. MODAL ADVERTISEMENT POPUP STYLES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #fff;
  position: relative;
  width: 85%;
  max-width: 800px; 
  height: 85vh;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.is-active .modal-box {
  transform: translateY(0);
}

.modal-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background-color: #003893;
  color: white;
  height: 45px;
  user-select: none;
}

.header-actions-left, .header-actions-center {
  display: flex;
  align-items: center;
}

.header-btn {
  background: none;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 14px;
  padding: 0 15px;
  height: 100%;
  cursor: pointer;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.header-btn:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.15);
}

.header-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.divider {
  width: 1px;
  background-color: rgba(255,255,255,0.3);
  height: 60%;
}

.close-one-btn {
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  font-weight: bold;
  width: 50px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.close-one-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.modal-body {
  flex: 1;
  background-color: #eaeaea;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-footer-bar {
  display: flex;
  justify-content: center;
  padding: 10px;
  background-color: #f8f9fa;
  border-top: 1px solid #e3e6ea;
}

.view-details-btn {
  background-color: #003893;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.view-details-btn:hover {
  background-color: #003893;
}
