body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.top-bar {
  background-color: #4f0101;
  color: white;
  padding: 6px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-align: center;
}

.top-bar .social-icons {
  margin-bottom: 8px;
}

.top-bar .social-icons a {
  color: white;
  margin: 0 8px;
  font-size: 18px;
  display: inline-block;
}

.top-bar .contact-info span {
  display: inline-block;
  margin: 0 10px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .top-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .top-bar .social-icons {
    margin-bottom: 0;
  }
}


/* Nav bar */
.nav-bar {
  background-color: #9c0505;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.logo img {
  height: auto;
  max-height: 40px; /* Limits the height so it fits in the nav */
  width: auto;
  display: block;
  margin-right: 0
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.nav-links li {
  position: relative;
}
/* Global nav link styles */
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 6px;
  display: inline-block;
}
.arrow {
  font-size: 12px; /* Adjust this size as needed */
  margin-left: 4px;
}

/* Links that include an arrow (for dropdowns) */
.nav-links a.with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hide dropdown by default */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #9c0505;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 180px;
  z-index: 999;
}
/* Keep it open when hovering over parent li OR dropdown itself */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Clean item styles */
.dropdown-menu li {
  padding: 6px 8px;
  display: block;    /* Keep it inline */  /* optional: reduce from default */
}

.dropdown-menu li a {
  color: white;
  text-decoration: none;
  display: block;
  background-color: transparent;
  white-space: nowrap;
  line-height: 0.1;


}

.dropdown-menu li a:hover {
  color: #ffcc00;
  background-color: transparent;
}

/* --------------------- */
/* SUB DROPDOWN - SECOND LEVEL (FLYOUT) */
/* --------------------- */
.dropdown-menu .sub-dropdown {
  position: relative;
}

.dropdown-menu .sub-dropdown-menu {
  list-style: none;
  display: none;
  position: absolute;
  top: 0;
  left: 100%; /* flyout to right */
  background-color: #9c0505;
  min-width: 200px;
  z-index: 1001;
  padding: 4px 8px;
}

.dropdown-menu .sub-dropdown:hover > .sub-dropdown-menu {
  display: block;

}

.sub-dropdown-menu li a:hover {
  color: #ffcc00;
  background-color: transparent;
}


/* Search box */
.search-box input {
  padding: 6px 12px;
  border-radius: 5px;
  border: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.hamburger div {
  width: 28px;
  height: 3px;
  background-color: white;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 75vw;
  height: 100vh;
  background-color: #4d0000;
  padding: 20px;
  padding-bottom: 140px; /* 👈 KEY FIX: Enough padding for nav bar */
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: 140px; /* 👈 ensures scroll-to-bottom works */
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
  border-bottom: 2px solid #330000;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu li {
  margin-bottom: 12px;
}
.mobile-menu a,
.mobile-menu summary {
  font-size: 18px;
  color: #eee;
  text-decoration: none;
  padding: 8px 0;
  display: block;
  cursor: pointer;
}
.mobile-menu details[open] summary {
  font-weight: bold;
}
.mobile-menu details a {
  padding-left: 20px; /* 👈 Indented submenu */
  font-size: 16px;
}
.mobile-menu details {
  border-bottom: 1px solid #811111;
  padding-bottom: 5px;
  margin-bottom: 5px;
  max-height: none;
  overflow: visible;
  display: block;
}

.mobile-menu .close-btn {
  font-size: 28px;
  color: #fff;
  float: right;
  cursor: pointer;
  margin-bottom: 20px;
}


/* 2nd-level <details> */
.mobile-menu details details summary {
  padding-left: 20px;
  font-size: 16px;
  color: #ffcc00; /* optional: yellow arrow-level highlight */
}

/* 2nd-level <a> links */
.mobile-menu details details a {
  padding-left: 35px;
  font-size: 15px;
}

/* Optional: add arrow next to nested summary manually */
.mobile-menu summary .arrow {
  float: right;
  font-size: 12px;
  margin-left: 5px;
  color: #ffffff;
}
.mobile-menu details[open] summary .arrow {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* Overlay background */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 998;
}

/* Responsive */
.desktop {
  display: flex;
}
@media (max-width: 768px) {
  .nav-links.desktop,
  .search-box.desktop {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
/* ✅ Prevent body scroll when menu is open */
body.no-scroll {
  overflow: hidden;
}
