/* ====== 🔍 Live Search Dropdown (Final Version) ====== */
#headerSearchForm {
  position: relative;
}

.live-search-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
  border: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* When active (fade-in effect) */
.live-search-dropdown.show {
  pointer-events: auto;
  opacity: 1;
}

/* Dropdown Card */
.live-search-dropdown .card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  backdrop-filter: blur(12px); /* ✨ glass effect */
}

/* Scrollable Area */
.live-search-dropdown {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #007bff #f1f1f1;
}

.live-search-dropdown::-webkit-scrollbar {
  width: 6px;
}
.live-search-dropdown::-webkit-scrollbar-thumb {
  background-color: #007bff;
  border-radius: 10px;
}
.live-search-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Rows inside dropdown */
.live-search-dropdown .hover-light:hover {
  background: rgba(0, 123, 255, 0.08);
  transition: background 0.2s ease;
}
.live-search-dropdown img {
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.live-search-dropdown h6 {
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .live-search-dropdown {
    width: 100%;
    left: 0;
  }
  .header-search-input {
    width: 100%;
  }
}

/* ===== SEARCH DROPDOWN (FULL FIX) ===== */
#headerSearchForm { position: relative; }

.live-search-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  max-height: 420px;               /* ⬅ scroll limit */
  overflow-y: auto;                /* ⬅ scroll within */
  z-index: 99999;                  /* ⬅ always on top */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  border-radius: 14px;
  scrollbar-width: thin;
  scrollbar-color: #007bff #e9ecef;
}

/* visible state */
.live-search-dropdown.show {
  opacity: 1;
  pointer-events: auto;
}

/* style scrollbars */
.live-search-dropdown::-webkit-scrollbar {
  width: 6px;
}
.live-search-dropdown::-webkit-scrollbar-thumb {
  background-color: #007bff;
  border-radius: 10px;
}
.live-search-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* dropdown inner card */
.live-search-dropdown .card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.live-search-dropdown .hover-light:hover {
  background: rgba(0,123,255,0.08);
  transition: background 0.2s ease;
}
/* 🌐 ===== FOOTER SECTION ===== */
.footer-section {
  position: relative;
  background: #0b1727;
  color: #f8f9fa;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.footer-overlay {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 162, 255, 0.1));
  padding-top: 60px;
  padding-bottom: 40px;
}

/* --- Footer Headings --- */
.footer-section h5,
.footer-section h6 {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer-section p {
  color: #d9e2ec;
  line-height: 1.6;
}

/* --- Footer Links --- */
.footer-link {
  color: #cfd8e3;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}
.footer-link:hover {
  color: #00a2ff;
  transform: translateX(3px);
}

/* --- Footer Nav (bottom right) --- */
.footer-nav {
  color: #cfd8e3;
  text-decoration: none;
  margin-left: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
}
.footer-nav:hover {
  color: #00a2ff;
}

/* --- Divider Line --- */
.footer-section hr {
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- Button --- */
.footer-section .btn-light {
  background: #fff;
  color: #007bff;
  font-size: 0.85rem;
  border: none;
  transition: all 0.25s ease;
}
.footer-section .btn-light:hover {
  background: linear-gradient(90deg, #007bff, #00a2ff);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .footer-section {
    text-align: center;
  }
  .footer-section .footer-nav {
    display: inline-block;
    margin: 6px 10px;
  }
}

/* 🔹 Optional Smooth Gradient Animation (subtle effect) */
@keyframes footerGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.footer-overlay {
  background: linear-gradient(135deg, #0b1727, #0e203b, #0b1727);
  background-size: 300% 300%;
  animation: footerGradientMove 12s ease infinite;
}

/* --- Scroll Header Transition (optional tie-in) --- */
.site-header.scrolled {
  background: linear-gradient(90deg, #0067d8, #0089e0);
  transition: background 0.3s ease;
}