
/* ========== Header #16 ========== */
#header-16 {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

#header-16 .navbar-brand img {
  max-height: 40px;
}

/* Nav-link chung */
#header-16 .navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  color: #333;
  transition: color 0.2s;
}
#header-16 .navbar-nav .nav-link.active,
#header-16 .navbar-nav .nav-link:hover {
  color: #007bff;
}

/* ========== Search Overlay ========== */
#searchOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}
#searchOverlay.active {
  display: flex;
}
#searchOverlay .form-control {
  width: 70%;
  max-width: 400px;
}
#searchOverlay .btn-close {
  margin-left: 1rem;
}

/* ========== Offcanvas Mobile ========== */
#offcanvas16 .offcanvas-body {
  padding-top: 1rem;
}
#offcanvas16 .nav-link {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
}

/* ========== Responsive ========== */
@media (max-width: 991.98px) {
  #header-16 .navbar-expand-lg .navbar-collapse {
    display: none !important;
  }
}
/* Hide mobile-only elements on desktop */
@media (min-width: 992px) {
  #header-16 .d-lg-none {
    display: none !important;
  }
}



/* Footer-8 Styles */
#footer-8 {
  /* Background image will be set inline from data.json */
  background-color: var(--footer-bg-fallback-color, #eef2f5);
  background-size: cover;
  background-position: center center;
  position: relative; /* For overlay */
  color: var(--footer-text-color, #333);
  padding: 3.5rem 0 0 0; /* No bottom padding, bottom bar handles it */
  text-align: center;
}
#footer-8::before {
  /* Optional overlay for readability over background image */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--footer-bg-overlay-color, rgba(255, 255, 255, 0.8));
  z-index: 1;
}
#footer-8 .container {
  position: relative; /* To sit above the overlay */
  z-index: 2;
}
#footer-8 .footer-logo-f8 {
  max-height: 60px; /* Adjust as needed */
  margin-bottom: 1rem;
}
#footer-8 .footer-welcoming-msg {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--footer-text-color, #333);
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}
#footer-8 .footer-block-title-f8 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--footer-text-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#footer-8 .footer-horizontal-list {
  list-style: none;
  padding-left: 0;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem; /* row-gap column-gap */
  max-width: 900px; /* Limit width of horizontal lists for better centering */
}
#footer-8 .footer-horizontal-list li a {
  color: var(--footer-link-color, #d63384);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem; /* Give some clickable area */
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
#footer-8 .footer-horizontal-list li a:hover,
#footer-8 .footer-horizontal-list li a.active {
  color: var(--footer-link-hover-color, #b02a6c);
  background-color: rgba(0, 0, 0, 0.05); /* Subtle hover background */
  text-decoration: none;
}
#footer-8 .footer-bottom-bar-f8 {
  background-color: var(--footer-bottom-bar-bg, rgba(0, 0, 0, 0.05));
  color: var(--footer-bottom-bar-text, #555);
  padding: 1.5rem 0;
  margin-top: 2.5rem;
  font-size: 0.85rem;
}
#footer-8 .footer-bottom-bar-f8 .social-icons-f8 a {
  color: var(
    --footer-bottom-bar-text,
    #555
  ); /* Match text color or define new social color */
  margin: 0 0.7rem;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}
#footer-8 .footer-bottom-bar-f8 .social-icons-f8 a:hover {
  color: var(--footer-link-color, #d63384); /* Use main link color for hover */
}
#footer-8 .footer-bottom-bar-f8 .copyright-f8 {
  margin-top: 1rem; /* Space above copyright if social is present */
  opacity: 0.9;
}
#footer-8 .footer-bottom-bar-f8 .copyright-f8 p {
  margin-bottom: 0;
}
@media (min-width: 768px) {
  #footer-8 .footer-bottom-bar-f8 .row > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #footer-8 .footer-bottom-bar-f8 .copyright-f8 {
    margin-top: 0;
    text-align: right; /* Or left, depends on desired layout */
  }
  #footer-8 .footer-bottom-bar-f8 .social-icons-f8 {
    text-align: left;
  }
}
@media (max-width: 767.98px) {
  #footer-8 .footer-bottom-bar-f8 .social-icons-f8 {
    margin-bottom: 0.75rem;
  }
}


