/* =============================================
   02-header-navbar.css — CLEAN UNIFIED VERSION
   ============================================= */

.navbar {
  background: #ffffff;
  padding: 8px 15px;
  border-bottom: 1px solid #e5e7eb;
}

.nav-item {
  margin-left: 20px;
  font-weight: 700;
  color: #233467;
}

.logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* FIX: centers logo image + tagline text horizontally */
  margin-left: 1.2rem;
}

.tagline {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  color: #4b5563;
  font-size: 0.75rem; /* readable but subtle */
  letter-spacing: 0.6px;
  margin-top: 3px;
}

.navbar .nav-link {
  font-size: 1rem;
  font-weight: 700;
  color: #233467;
}

.navbar .nav-link:hover {
  color: #f58220;
}

/* =============================
   DROPDOWN (UNIFIED SYSTEM)
   ============================= */

/* Show dropdown on hover (desktop only) */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Disable hover dropdown on mobile */
@media (max-width: 991px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: none;
  }
}

/* Dropdown styling */
.navbar .dropdown-menu {
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
}

/* Dropdown items */
.navbar .dropdown-item {
  position: relative;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  transition: all 0.25s ease;
}

.navbar .dropdown-item:hover {
  background: rgba(241, 152, 57, 0.08);
  color: #f58220;
  padding-left: 26px;
}

.navbar .dropdown-item:hover::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: #f58220;
  border-radius: 2px;
}

.navbar .dropdown-item:active {
  background-color: rgba(241, 152, 57, 0.12);
  color: #f58220;
}

.navbar .nav-link.dropdown-toggle {
  font-weight: 600;
}

/* =============================
   SUPPORT BUTTON
   ============================= */

.navbar .support-btn {
  background: #243e7e;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.navbar .support-btn:hover {
  background: #f58220;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* =============================
   MOBILE LOGO FIX
   ============================= */

@media (max-width: 576px) {
  .navbar-brand {
    margin-left: 0; /* FIX: remove left indent on mobile */
    align-items: center; /* FIX: center logo + tagline */
  }

  .logo {
    height: 30px !important;
    object-fit: contain;
    margin-left: 0 !important;
  }

  .tagline {
    font-size: 0.5rem !important;
    margin-top: 2px;
    margin-left: 0 !important;
    text-align: center;
    width: 100%;
  }
}

/* =============================
   MODAL (UNCHANGED - CLEANED)
   ============================= */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(15, 28, 63, 0.75);
}

.modal-content {
  background: #ffffff;
  margin: 100px auto 5%;
  padding: 30px;
  border-radius: 6px;
  width: 90%;
  max-width: 600px;
  color: #0f1c3f;
  font-family: "Montserrat", sans-serif;
  box-shadow: 0 20px 50px rgba(15, 28, 63, 0.2);
  animation: fadeInModal 0.25s ease;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  font-size: 32px;
  cursor: pointer;
  color: #243e7e;
}

.close:hover {
  color: #f58220;
}

/* =============================
   VALIDATION POPUP
   ============================= */

.validation-popup {
  position: fixed;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: #fee2e2;
  color: #7f1d1d;
  border: 1px solid #fca5a5;
  padding: 14px 24px;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(15, 28, 63, 0.15);
  z-index: 3000;
  max-width: 420px;
  width: 90%;
  text-align: center;
  font-size: 14px;
  animation: fadeInEnterprise 0.2s ease;
}

.validation-popup .close-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 16px;
  cursor: pointer;
}

@keyframes fadeInEnterprise {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Prevent background scroll when modal open */
body.modal-open {
  overflow: hidden;
}
