/* ======================= */
/* AHDA HEADER */
/* ======================= */
.ahda-header{
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  background: var(--ahda-white);
  border-bottom: 1px solid rgba(11, 79, 102, 0.14);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.ahda-header::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg,
    rgba(11, 79, 102, 0.10) 0%,
    rgba(20, 119, 109, 0.08) 45%,
    rgba(245, 123, 44, 0.10) 100%);
  pointer-events:none;
  z-index:0;
}
.ahda-header > *{ position:relative; z-index:1; }

.ahda-accent{
  height: 6px;
  background: linear-gradient(90deg,
    var(--ahda-orange) 0%,
    var(--ahda-maroon) 33%,
    var(--ahda-green) 66%,
    var(--ahda-teal) 100%);
}

/* ======================= */
/* SHARED: CONTACT PILLS + SOCIAL ICONS WITH HOVER EFFECTS */
/* ======================= */
.ahda-util-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ahda-ink);
  background: rgba(243, 250, 250, 0.92);
  border: 1px solid rgba(11,79,102,0.12);
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ahda-util-link i{
  color: var(--ahda-teal);
  transition: all 0.3s ease;
}

/* Contact tooltip container */
.ahda-util-link .contact-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(11, 79, 102, 0.95);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Tooltip arrow */
.ahda-util-link .contact-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(11, 79, 102, 0.95) transparent transparent transparent;
}

/* Show tooltip on hover */
.ahda-util-link:hover .contact-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

.ahda-util-link:hover{
  background: linear-gradient(135deg, rgba(245,123,44,0.15) 0%, rgba(245,123,44,0.08) 100%);
  color: var(--ahda-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 123, 44, 0.15);
  border-color: rgba(245, 123, 44, 0.3);
}

.ahda-util-link:hover i{
  color: var(--ahda-orange);
  transform: scale(1.1);
}

/* Specific contact information display */
.ahda-util-link[href*="maps"] .contact-tooltip {
  content: "Dodoma, Tanzania";
}

.ahda-util-link[href*="tel"] .contact-tooltip {
  content: "+256 225 47165";
}

.ahda-util-link[href*="mailto"] .contact-tooltip {
  content: "info@ahdaafrica.org";
}

.ahda-social{
  width: 34px;
  height: 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 50%;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(11,79,102,0.14);
  text-decoration:none;
  color: var(--ahda-teal);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ahda-social::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--ahda-orange) 0%, var(--ahda-teal) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.ahda-social i {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.ahda-social:hover{
  background: transparent;
  border-color: var(--ahda-orange);
  color: var(--ahda-white);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(245, 123, 44, 0.25);
}

.ahda-social:hover::before {
  opacity: 1;
}

.ahda-social:hover i {
  color: var(--ahda-white);
  transform: scale(1.1);
}

/* ======================= */
/* SEARCH (shared) - ENHANCED FOR MOBILE */
/* ======================= */
.ahda-search{
  display:flex;
  align-items:center;
  border-radius: 999px;
  overflow: hidden;
  border: 1.8px solid rgba(11,79,102,0.22);
  background: rgba(243,250,250,0.95);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

/* Gradient border effect for search bar */
.ahda-search::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    var(--ahda-orange) 0%, 
    var(--ahda-teal) 50%, 
    var(--ahda-green) 100%);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.ahda-search:hover {
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(245, 123, 44, 0.2);
}

.ahda-search:hover::before {
  opacity: 1;
}

.ahda-search-input{
  width: 100%;
  border: 0;
  outline: none;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ahda-ink);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.ahda-search-input:focus {
  color: var(--ahda-teal);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 2px 4px rgba(11, 79, 102, 0.1);
}

/* Placeholder styling */
.ahda-search-input::placeholder {
  color: rgba(11, 79, 102, 0.6);
  font-weight: 500;
  transition: all 0.3s ease;
}

.ahda-search-input:focus::placeholder {
  color: rgba(245, 123, 44, 0.6);
  transform: translateX(5px);
}

.ahda-search-btn{
  border: 0;
  background: linear-gradient(135deg, var(--ahda-teal) 0%, rgba(20, 119, 109, 0.9) 100%);
  padding: 0 16px;
  color: var(--ahda-white);
  font-size: 1.1rem;
  cursor:pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 44px;
}

.ahda-search:hover .ahda-search-btn{
  background: linear-gradient(135deg, var(--ahda-orange) 0%, rgba(245, 123, 44, 0.9) 100%);
}

.ahda-search-btn:hover{
  color: var(--ahda-white);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(245, 123, 44, 0.3);
}

/* ======================= */
/* BRAND (UPDATED - NO HOVER, STATIONARY, TRANSPARENT LOGO) */
/* ======================= */

/* Brand link wrapper */
.ahda-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;

  /* ✅ remove hover movement */
  transform: none !important;
  transition: none !important;

  position: relative;
}

/* ✅ remove underline animation */
.ahda-brand::after{
  content: none !important;
}

/* Logo (desktop) */
.ahda-logo{
  height: 58px;
  width: auto;

  /* ✅ transparent look */
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  mix-blend-mode: normal !important;
  filter: none !important;

  /* ✅ stop hover animation */
  transform: none !important;
  transition: none !important;

  display: block;
}

/* Logo (mobile) */
.ahda-logo--mobile{
  height: 40px;
  width: auto;

  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  mix-blend-mode: normal !important;

  transform: none !important;
  transition: none !important;

  display: block;
}

/* Brand text */
.ahda-brand-text{
  font-weight: 900;
  color: var(--ahda-ink);
  letter-spacing: .2px;

  /* ✅ no hover color or shadow */
  text-shadow: none !important;
  transition: none !important;
}

/* ✅ kill any hover effects that might still apply */
.ahda-brand:hover,
.ahda-brand:hover .ahda-logo,
.ahda-brand:hover .ahda-logo--mobile,
.ahda-brand:hover .ahda-brand-text{
  transform: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* ======================= */
/* DESKTOP TOP ROW (ROW 1) */
/* ======================= */
.ahda-desktop-top{
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.97) 0%, 
    rgba(243, 250, 250, 0.94) 30%,
    rgba(245, 250, 248, 0.92) 50%,
    rgba(255, 248, 243, 0.90) 70%,
    rgba(255, 255, 255, 0.97) 100%);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(11, 79, 102, 0.12);
  position: relative;
  overflow: hidden;
}

/* Enhanced gradient overlay for desktop top row */
.ahda-desktop-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(245, 123, 44, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(20, 119, 109, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(11, 79, 102, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, 
      rgba(245, 123, 44, 0.03) 0%, 
      rgba(20, 119, 109, 0.02) 25%,
      rgba(11, 79, 102, 0.01) 50%,
      rgba(20, 119, 109, 0.02) 75%,
      rgba(245, 123, 44, 0.03) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Subtle animated gradient border */
.ahda-desktop-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    var(--ahda-orange) 20%,
    var(--ahda-teal) 40%,
    var(--ahda-green) 60%,
    var(--ahda-teal) 80%,
    transparent 100%);
  opacity: 0.7;
  z-index: 1;
}

.ahda-desktop-top > * {
  position: relative;
  z-index: 2;
}

.ahda-desktop-top-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 12px 0;
  position: relative;
  z-index: 2;
}

.ahda-desktop-contacts{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}

.ahda-desktop-social{
  display:flex;
  gap: 8px;
  align-items:center;
}

/* ======================= */
/* MOBILE UTILITY ROW (TOP) - WITH COLOR EFFECTS */
/* ======================= */
.ahda-utility{
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.96) 0%, 
    rgba(243, 250, 250, 0.93) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 79, 102, 0.10);
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  position: relative;
}

/* Enhanced color effects for mobile utility */
.ahda-utility::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(245, 123, 44, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(11, 79, 102, 0.08) 0%, transparent 60%),
    linear-gradient(45deg, 
      rgba(245, 123, 44, 0.03) 0%, 
      rgba(20, 119, 109, 0.03) 50%, 
      rgba(11, 79, 102, 0.03) 100%);
  pointer-events: none;
  z-index: 1;
  animation: subtleShift 8s infinite alternate;
}

@keyframes subtleShift {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.ahda-utility-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 8px 0;
  position: relative;
  z-index: 2;
}

.ahda-utility-left{ display:flex; gap:10px; flex-wrap:wrap; }
.ahda-utility-right{ display:flex; gap:8px; align-items:center; }

/* ======================= */
/* SCROLL TO HIDE UTILITY - ENHANCED */
/* ======================= */
@media (max-width: 991.98px){
  .ahda-header.utility-hidden .ahda-utility{
    max-height: 0 !important;
    opacity: 0 !important;
    transform: translateY(-15px) !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  
  /* Header background enhancement when scrolled */
  .ahda-header.utility-hidden {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(11, 79, 102, 0.15);
  }
  
  .ahda-header.utility-hidden .ahda-main {
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.98) 0%, 
      rgba(245, 250, 248, 0.96) 100%);
    backdrop-filter: blur(10px);
  }
  
  .ahda-header.utility-hidden .ahda-main::before {
    opacity: 0.8;
  }
}

/* ======================= */
/* MOBILE MAIN ROW - WITH COLOR EFFECTS */
/* ======================= */
.ahda-main{
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(243, 250, 250, 0.96) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 79, 102, 0.1);
  position: relative;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Enhanced color effects for mobile main row */
.ahda-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(245, 123, 44, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(11, 79, 102, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(20, 119, 109, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
  animation: gradientFlow 12s infinite alternate;
}

@keyframes gradientFlow {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 100%; }
}

.ahda-main-inner{
  padding: 8px 0;
  display:grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  justify-items: center;
  column-gap: 10px;
  position: relative;
  z-index: 2;
}

.ahda-main-inner .ahda-search--mobile {
  grid-column: 2;
  justify-self: center;
  width: 100%;
  margin: 0 auto;
  max-width: 280px;
}

/* ======================= */
/* ENHANCED MOBILE SEARCH BAR - FULLY ROUNDED WITH COLOR EFFECTS */
/* ======================= */
.ahda-search--mobile {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(245, 250, 248, 0.93) 100%);
  border: 2px solid;
  border-image: linear-gradient(135deg, 
    var(--ahda-orange) 0%, 
    var(--ahda-teal) 50%, 
    var(--ahda-green) 100%) 1;
  box-shadow: 
    0 2px 8px rgba(11, 79, 102, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  border-radius: 60px !important;
  height: 44px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

/* Animated glow effect for search bar */
.ahda-search--mobile::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    rgba(245, 123, 44, 0.2) 0%, 
    rgba(20, 119, 109, 0.2) 50%, 
    rgba(11, 79, 102, 0.2) 100%);
  border-radius: 60px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
  0% { opacity: 0; }
  50% { opacity: 0.3; }
  100% { opacity: 0; }
}

.ahda-search--mobile .ahda-search-input {
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  padding: 10px 16px;
  height: 44px;
  border-radius: 60px 0 0 60px !important;
  position: relative;
  z-index: 2;
}

.ahda-search--mobile .ahda-search-input::placeholder {
  color: rgba(245, 123, 44, 0.6);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.ahda-search--mobile .ahda-search-input:focus::placeholder {
  color: rgba(11, 79, 102, 0.6);
  transform: translateX(3px);
}

.ahda-search--mobile .ahda-search-btn {
  background: linear-gradient(135deg, 
    var(--ahda-orange) 0%, 
    rgba(245, 123, 44, 0.9) 100%);
  padding: 0 16px;
  min-height: 44px;
  height: 44px;
  border-radius: 0 60px 60px 0 !important;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.ahda-search--mobile .ahda-search-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.ahda-search--mobile .ahda-search-btn:hover i {
  transform: scale(1.2);
}

.ahda-search--mobile:hover {
  box-shadow: 
    0 6px 16px rgba(245, 123, 44, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.ahda-search--mobile:hover::after {
  opacity: 0.5;
}

.ahda-brand--mobile {
  grid-column: 3;
  justify-self: end;
}

.ahda-logo--mobile{
  height: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  background: transparent !important;
  mix-blend-mode: multiply;
  transition: all 0.3s ease;
}

.ahda-brand--mobile:hover .ahda-logo--mobile {
  transform: rotate(2deg) scale(1.05);
  box-shadow: 0 6px 15px rgba(11, 79, 102, 0.2);
}

/* ======================= */
/* MOBILE MENU TOGGLER - WITH COLOR EFFECTS */
/* ======================= */
.ahda-toggler{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--ahda-orange);
  background: linear-gradient(135deg, 
    rgba(245, 123, 44, 0.1) 0%, 
    rgba(245, 123, 44, 0.05) 100%);
  display:inline-flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 4px;
  box-shadow: 
    0 2px 8px rgba(245, 123, 44, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Animated gradient background */
.ahda-toggler::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    var(--ahda-orange) 0%, 
    rgba(245, 123, 44, 0.8) 50%,
    var(--ahda-orange) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Pulsing effect for toggler */
.ahda-toggler::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    var(--ahda-orange) 0%, 
    var(--ahda-teal) 100%);
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1); }
}

/* Hamburger lines with orange color */
.ahda-toggler span{
  width: 20px;
  height: 2.5px;
  background: var(--ahda-orange);
  border-radius: 3px;
  display:block;
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(245, 123, 44, 0.2);
}

/* Animated hamburger effect on hover */
.ahda-toggler:hover {
  border-color: var(--ahda-orange);
  background: linear-gradient(135deg, 
    rgba(245, 123, 44, 0.2) 0%, 
    rgba(245, 123, 44, 0.1) 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 6px 16px rgba(245, 123, 44, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.ahda-toggler:hover::before {
  opacity: 0.1;
}

.ahda-toggler:hover span {
  background: var(--ahda-orange);
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(245, 123, 44, 0.3);
}

/* First line animation */
.ahda-toggler:hover span:nth-child(1) {
  transform: translateY(2px) rotate(5deg);
}

/* Last line animation */
.ahda-toggler:hover span:nth-child(3) {
  transform: translateY(-2px) rotate(-5deg);
}

/* Active state (when menu is open) */
.ahda-toggler.active {
  background: linear-gradient(135deg, 
    var(--ahda-orange) 0%, 
    rgba(245, 123, 44, 0.9) 100%);
  border-color: var(--ahda-orange);
}

.ahda-toggler.active span {
  background: var(--ahda-white);
}

/* ======================= */
/* NAV ROW (ROW 2) - DESKTOP WITH GRADIENT */
/* ======================= */
.ahda-nav{
  background: linear-gradient(135deg, 
    rgba(11, 79, 102, 0.98) 0%, 
    rgba(20, 119, 109, 0.95) 50%, 
    rgba(11, 79, 102, 0.98) 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 0;
  position: relative;
  overflow: hidden;
}

.ahda-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.ahda-link{
  font-weight: 800;
  color: rgba(255,255,255,0.95) !important;
  padding: 8px 14px !important;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(5px);
  border: 1px solid transparent;
  overflow: hidden;
}

.ahda-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(245, 123, 44, 0.3) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.ahda-link:hover{
  background: linear-gradient(135deg, 
    rgba(245, 123, 44, 0.25) 0%, 
    rgba(245, 123, 44, 0.15) 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 123, 44, 0.2);
  border: 1px solid rgba(245, 123, 44, 0.3);
}

.ahda-link:hover::before {
  opacity: 1;
}

.ahda-link.active{
  background: linear-gradient(135deg, 
    var(--ahda-orange) 0%, 
    rgba(245, 123, 44, 0.9) 100%) !important;
  box-shadow: 
    0 8px 25px rgba(245, 123, 44, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ======================= */
/* MOBILE NAV DRAWER - COMPACT & SLIDE FROM RIGHT */
/* ======================= */
@media (max-width: 991.98px){
  .ahda-nav {
    background: transparent !important;
    padding: 0 !important;
    border-top: none !important;
  }
  
  .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: 80% !important;
    max-width: 340px !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 16px 0 0 16px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 250, 250, 0.95) 100%) !important;
    border: 2px solid rgba(11, 79, 102, 0.15) !important;
    border-right: none !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15) !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1050 !important;
    overflow-y: auto !important;
    display: block !important;
    visibility: visible !important;
  }
  
  .navbar-collapse.show,
  .navbar-collapse.collapsing.show,
  .navbar-collapse:not(.collapse),
  .navbar-collapse.is-open {
    transform: translateX(0) !important;
  }
  
  .navbar-collapse:not(.show) {
    transform: translateX(100%) !important;
    display: block !important;
  }
  
  .navbar-collapse.collapsing {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: auto !important;
  }

  .navbar-collapse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 0% 0%, rgba(245, 123, 44, 0.03) 0%, transparent 60%),
      radial-gradient(circle at 100% 100%, rgba(11, 79, 102, 0.03) 0%, transparent 60%),
      linear-gradient(45deg, rgba(245, 123, 44, 0.02) 0%, rgba(20, 119, 109, 0.02) 50%, rgba(11, 79, 102, 0.02) 100%);
    pointer-events: none;
  }

  .ahda-mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(11, 79, 102, 0.1);
    position: relative;
    z-index: 1;
  }
  
  .ahda-menu-logo img {
    height: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    background: transparent !important;
    mix-blend-mode: multiply;
    transition: all 0.3s ease;
  }

  .ahda-menu-logo:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(11, 79, 102, 0.2);
  }
  
  .ahda-close{
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--ahda-orange) !important;
    background: linear-gradient(135deg, 
      rgba(245, 123, 44, 0.1) 0%, 
      rgba(245, 123, 44, 0.05) 100%) !important;
    color: var(--ahda-orange) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(245, 123, 44, 0.12);
    position: relative;
    overflow: hidden;
  }

  .ahda-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--ahda-orange) 0%, var(--ahda-teal) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .ahda-close i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
  }

  .ahda-close:hover{
    background: transparent !important;
    border-color: var(--ahda-orange) !important;
    color: var(--ahda-white) !important;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 123, 44, 0.25);
  }

  .ahda-close:hover::before {
    opacity: 1;
  }

  .ahda-close:hover i {
    color: var(--ahda-white);
    transform: rotate(-90deg);
  }

  .ahda-links{ 
    gap: 0;
    margin-top: 0 !important;
    width: 100%;
    padding: 12px 16px;
    position: relative;
    z-index: 1;
  }
  
  .ahda-link{
    display: block !important;
    width: 100%;
    border-radius: 8px;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--ahda-teal) !important;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
    border: 1.5px solid rgba(11, 79, 102, 0.08) !important;
    letter-spacing: 0.2px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
  }
  
  .ahda-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--ahda-teal);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .ahda-link:hover{
    background: rgba(11, 79, 102, 0.05) !important;
    transform: translateX(6px);
    border-color: var(--ahda-teal) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--ahda-teal) !important;
  }
  
  .ahda-link:hover::before {
    opacity: 1;
  }
  
  .ahda-link.active{
    background: linear-gradient(135deg, var(--ahda-orange) 0%, rgba(245, 123, 44, 0.85) 100%) !important;
    color: var(--ahda-white) !important;
    box-shadow: 0 4px 12px rgba(245, 123, 44, 0.25);
    border-color: var(--ahda-orange) !important;
    font-weight: 700;
    padding-left: 18px !important;
    padding-right: 18px !important;
    font-size: 0.95rem;
  }
  
  .ahda-link.active::before {
    background: var(--ahda-white) !important;
    width: 4px;
    opacity: 1;
  }

  .ahda-mobile-menu-social{
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px 16px 20px;
    margin-top: 4px;
    border-top: 1px solid rgba(11, 79, 102, 0.1);
    position: relative;
    z-index: 1;
  }
  
  .ahda-mobile-menu-social .ahda-social {
    width: 38px;
    height: 38px;
    background: var(--ahda-white) !important;
    border: 1.5px solid var(--ahda-teal) !important;
    color: var(--ahda-teal) !important;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
  }

  .ahda-mobile-menu-social .ahda-social::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--ahda-orange) 0%, var(--ahda-teal) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .ahda-mobile-menu-social .ahda-social i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
  }
  
  .ahda-mobile-menu-social .ahda-social:hover {
    background: transparent !important;
    border-color: var(--ahda-orange) !important;
    color: var(--ahda-white) !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(245, 123, 44, 0.25);
  }

  .ahda-mobile-menu-social .ahda-social:hover::before {
    opacity: 1;
  }

  .ahda-mobile-menu-social .ahda-social:hover i {
    color: var(--ahda-white);
    transform: scale(1.1);
  }
}

/* ======================= */
/* RESPONSIVE ADJUSTMENTS - COMPACT SIZES */
/* ======================= */
@media (max-width: 767.98px) {
  .ahda-main-inner {
    grid-template-columns: 42px 1fr 42px;
    column-gap: 8px;
    padding: 6px 0;
  }
  
  .ahda-main-inner .ahda-search--mobile {
    max-width: 260px;
  }
  
  .ahda-search--mobile {
    height: 40px;
  }
  
  .ahda-search--mobile .ahda-search-input {
    padding: 8px 14px;
    font-size: 0.85rem;
    height: 40px;
  }
  
  .ahda-search--mobile .ahda-search-btn {
    padding: 0 14px;
    min-height: 40px;
    height: 40px;
    width: 46px;
  }
  
  .ahda-search--mobile .ahda-search-btn i {
    font-size: 0.95rem;
  }
  
  .ahda-logo--mobile {
    height: 36px;
  }
  
  .ahda-toggler {
    width: 38px;
    height: 38px;
  }
  
  .ahda-toggler span {
    width: 18px;
    height: 2.2px;
  }

  .navbar-collapse {
    width: 85% !important;
    max-width: 320px !important;
  }
}

@media (max-width: 575.98px) {
  .ahda-main-inner {
    grid-template-columns: 40px 1fr 40px;
    column-gap: 6px;
    padding: 5px 0;
  }
  
  .ahda-main-inner .ahda-search--mobile {
    max-width: 220px;
  }
  
  .ahda-search--mobile {
    height: 38px;
    border-width: 1.5px;
  }
  
  .ahda-search--mobile .ahda-search-input {
    padding: 7px 12px;
    font-size: 0.8rem;
    height: 38px;
  }
  
  .ahda-search--mobile .ahda-search-input::placeholder {
    font-size: 0.8rem;
  }
  
  .ahda-search--mobile .ahda-search-btn {
    padding: 0 12px;
    min-height: 38px;
    height: 38px;
    width: 42px;
  }
  
  .ahda-search--mobile .ahda-search-btn i {
    font-size: 0.9rem;
  }
  
  .ahda-logo--mobile {
    height: 32px;
  }
  
  .ahda-toggler {
    width: 36px;
    height: 36px;
    border-width: 1.8px;
    gap: 3px;
  }

  .ahda-toggler span {
    width: 16px;
    height: 2px;
  }
  
  .ahda-util-link {
    padding: 4px 6px;
    font-size: 0.75rem;
    gap: 4px;
  }
  
  .ahda-util-link span {
    display: none;
  }

  /* Adjust contact tooltips for mobile */
  .ahda-util-link .contact-tooltip {
    font-size: 0.7rem;
    padding: 5px 8px;
    transform: translateX(-50%) translateY(-8px);
  }

  .ahda-util-link:hover .contact-tooltip {
    transform: translateX(-50%) translateY(-3px);
  }

  .navbar-collapse {
    width: 90% !important;
    max-width: 300px !important;
  }
  
  .ahda-link {
    padding: 10px 14px !important;
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  
  .ahda-mobile-menu-social .ahda-social {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
}

/* ======================= */
/* DESKTOP SEARCH COMPACT */
/* ======================= */
@media (min-width: 992px){
  .ahda-search--desktop{
    width: 400px;        
    max-width: 26vw;     
    min-width: 250px;   
    flex-shrink: 1;     
  }
  .ahda-search-input{
    padding: 8px 12px;
    font-size: 0.88rem;
  }
  .ahda-search-btn{
    padding: 0 12px;
    font-size: 1rem;
  }
}

/* ======================= */
/* BODY PADDING (fixed header) - ADJUSTED FOR COMPACT NAV */
/* ======================= */
body{ 
  padding-top: 142px;
  background: var(--ahda-white);
}
@media (min-width: 992px){ 
  body{ 
    padding-top: 148px; 
  } 
}
@media (max-width: 991.98px) {
  body {
    padding-top: 132px;
  }
}
@media (max-width: 767.98px) {
  body {
    padding-top: 126px;
  }
}
@media (max-width: 575.98px) {
  body {
    padding-top: 118px;
  }
}

/* ======================= */
/* MOBILE MENU OVERLAY */
/* ======================= */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 79, 102, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ======================= */
/* PAGE SECTIONS */
/* ======================= */
.page-section {
    padding-top: 30px;
    padding-bottom: 60px;
    display: none;
}
.page-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======================= */
/* CONTACT TOOLTIPS */
/* ======================= */
@media (max-width: 991.98px) {
  .ahda-search--mobile .ahda-search-input {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .ahda-search--mobile .ahda-search-btn {
    padding: 0 12px;
    font-size: 0.95rem;
  }
}

/* Ensure tooltips work on touch devices */
@media (hover: hover) and (pointer: fine) {
  .ahda-util-link:hover .contact-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Fallback for touch devices */
@media (hover: none) and (pointer: coarse) {
  .ahda-util-link:active .contact-tooltip,
  .ahda-util-link:focus .contact-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
  }
}