/* ============================= */
/* Header Styles */
/* ============================= */

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: #ffffff;
  box-shadow: 0 2px 10px #002f493f;
  padding: 6px 0;
}

.sticky-header .container-fluid {
  padding: 0 17px;
}

.sticky-header .navbar-brand {
  margin-right: 20px;
  font-family: bitter;
  font-weight: 700;
  font-size: 21px;
  color: #000;
  padding: 3px 15px;
}

.navbar-brand img {
  height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
}

.sticky-header .navbar-nav {
  margin-left: auto;
  align-items: center;
  gap: 20px;
}

/* Unified nav link padding (normal, hover, active) */
.sticky-header .nav-link {
  font-family: "Merriweather", serif;
  font-size: 19px;
  color: #000;
  padding: 3px 15px; /* same as hover/active */
  border-radius: 4px; /* optional, keeps background consistent */
}

.sticky-header .nav-link:hover {
  background-color: #f9e7ef;
  /* padding already applied above – no shift */
}

.sticky-header .nav-link.active {
  background-color: #c4125b;
  color: #fff !important;
  /* padding already applied above – no shift */
}

/* ============================= */
/* Dropdown Styles */
/* ============================= */

.dropdown-menu {
  background-color: #c4125b;
  font-family: "Merriweather", serif;
  font-size: 19px;
  border: none;
  border-radius: 0;
  padding: 0; /* no extra padding */
  margin: 0;
  min-width: 100%; /* at least as wide as parent */
  width: auto; /* can expand wider if needed */
  white-space: nowrap; /* prevent wrapping inside items */
}

.dropdown-menu .dropdown-item {
  display: block;
  padding: 8px 15px;
  text-align: center;
  border-bottom: 1px solid #cfcfcf55;
  background-color: transparent;
  color: #fff; /* White text for mobile pink background */
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Remove border from the last item only */
.dropdown-menu li:last-child .dropdown-item {
  border-bottom: none;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f9e7ef;
}

/* ============================= */
/* Offcanvas Fix */
/* ============================= */

.offcanvas .dropdown-menu {
  position: static;
  width: 100%;
  transform: none !important;
}

/* ============================= */
/* Desktop Hover Dropdown (only above 992px) */
/* ============================= */

@media (min-width: 992px) {
  .navbar .dropdown {
    position: relative;
  }

  /* Show dropdown on hover – no extra padding/border that changes size */
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
  }

  .navbar .dropdown-menu {
    background: #fff;
    padding: 0;
    margin: 0;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    width: auto;
    white-space: nowrap;
  }

  .navbar .dropdown-menu .dropdown-item {
    color: #000; /* Dark text for desktop white background */
    text-align: left;
    padding: 10px 20px;
  }

  .navbar .dropdown-menu .dropdown-item:hover {
    background-color: #f9e7ef;
    color: #c4125b;
  }

  .navbar .dropdown-menu .dropdown-item.active {
    background-color: #c4125b;
    color: #fff;
  }
}

/* ============================= */
/* Mobile Offcanvas Adjustments (below 992px) */
/* ============================= */

@media (max-width: 991.98px) {
  /* Left‑align dropdown items */
  .offcanvas .dropdown-menu .dropdown-item {
    text-align: left !important;
    padding-left: 20px;
  }

  /* Full‑width hover for nav items */
  .offcanvas .nav-item,
  .offcanvas .nav-link,
  .offcanvas .dropdown-item {
    width: 100%;
    box-sizing: border-box;
  }

  /* Ensure dropdown menu fills width */
  .offcanvas .dropdown-menu {
    width: 100% !important;
  }

  /* Allow text wrapping if needed (override nowrap) */
  .dropdown-menu {
    white-space: normal;
  }

  /* Custom Navbar Toggler Icon Color (Black) */
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }
}

/* ============================= */
/* Custom Close Button */
/* ============================= */

.offcanvas-header .btn-close {
  background-image: none;
  position: relative;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  background-color: #c4125b;
  border: none;
  border-radius: 4px;
  opacity: 1;
  box-shadow: none;
}

.offcanvas-header .btn-close::before {
  content: "×";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  font-weight: 300;
}

.offcanvas-header .btn-close:focus {
  outline: none;
  box-shadow: none;
}
