/* ============================================================
   IHRF — PREMIUM NAVBAR STYLES (v4 - FIXED)
   Matches all class names used in header.php
   ============================================================ */

:root {
  --nav-height: 72px;
  --nav-height-scrolled: 60px;
  --nav-bg: rgba(16, 24, 100, 0.98);
}

/* ────────────────────────────────────────────────
   ANNOUNCEMENT TICKER BAR
───────────────────────────────────────────────── */
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ────────────────────────────────────────────────
   MAIN NAVBAR WRAPPER
───────────────────────────────────────────────── */
#main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9900;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ────────────────────────────────────────────────
   NAVBAR MAIN (inner strip)
───────────────────────────────────────────────── */
.navbar-main {
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s ease;
}

#main-navbar.scrolled .navbar-main {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.navbar-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  transition: height 0.35s ease;
  gap: 8px;
}

#main-navbar.scrolled .navbar-main .container {
  height: var(--nav-height-scrolled);
}

/* ────────────────────────────────────────────────
   BRAND / LOGO
───────────────────────────────────────────────── */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #c9a84c, #f0d080);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #1a237e;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.35);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.navbar-brand:hover .brand-logo-icon {
  transform: rotate(-6deg) scale(1.07);
}

.brand-text-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
  line-height: 1.1;
}

.brand-text-sub {
  font-size: 0.58rem;
  color: var(--secondary, #c9a84c);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ────────────────────────────────────────────────
   DESKTOP MENU (ul.navbar-menu)
───────────────────────────────────────────────── */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  justify-content: center;
}

/* Every <li> in the menu */
.navbar-menu>li {
  position: relative;
}

/* Base nav link */
.nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.81rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none !important;
  transition: color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
  user-select: none;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: var(--secondary, #c9a84c);
  background: rgba(255, 255, 255, 0.07);
}

/* Chevron arrow inside nav items */
.nav-arrow {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.dropdown-wrapper:hover .nav-arrow {
  transform: rotate(180deg);
}

/* ────────────────────────────────────────────────
   DROPDOWN PANEL (ul.nav-dropdown)
───────────────────────────────────────────────── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  min-width: 220px;
  padding: 10px 0;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.28s ease;
  z-index: 1100;
}

.dropdown-wrapper:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Standard dropdown items */
.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: #2d3748;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none !important;
  border-radius: 8px;
  margin: 2px 8px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  border-bottom: none !important;
}

.nav-dropdown li a:hover {
  background: rgba(26, 35, 126, 0.07);
  color: var(--primary, #1a237e);
  padding-left: 20px;
}

/* ────────────────────────────────────────────────
   MEGA DROPDOWN (nav-dropdown-mega)
   2-column grid for Donate
───────────────────────────────────────────────── */
.nav-dropdown-mega {
  min-width: 520px;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  left: 50%;
  transform: translateX(-50%) translateY(10px) !important;
  border-radius: 16px;
  overflow: hidden;
}

.dropdown-wrapper:hover .nav-dropdown-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) !important;
}

/* Initiatives mega */
.nav-dropdown-initiatives {
  min-width: 460px;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateX(-40%) translateY(10px) !important;
  border-radius: 16px;
  overflow: hidden;
}

.dropdown-wrapper:hover .nav-dropdown-initiatives {
  opacity: 1;
  visibility: visible;
  transform: translateX(-40%) translateY(0) !important;
}

/* Dropdown columns inside mega */
.dropdown-col {
  padding: 18px 14px;
  list-style: none;
  margin: 0;
}

.dropdown-col:first-child {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.dropdown-col-title {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary, #1a237e);
  padding: 0 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Override li a inside mega columns */
.dropdown-col li {
  list-style: none;
}

.dropdown-col li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 10px;
  margin: 2px 0;
  color: #2d3748;
  font-size: 0.84rem;
  text-decoration: none !important;
  transition: background 0.2s ease, padding-left 0.2s ease;
  border-bottom: none !important;
}

.dropdown-col li a:hover {
  background: rgba(26, 35, 126, 0.06);
  padding-left: 14px;
}

/* Icon badges inside dropdowns */
.dropdown-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────
   NAVBAR ACTIONS (right side)
───────────────────────────────────────────────── */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Language button */
.lang-btn-wrap {
  position: relative;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.lang-btn:hover {
  background: var(--secondary, #c9a84c);
  color: #1a237e;
  border-color: var(--secondary, #c9a84c);
}

/* Login button */
.btn-login {
  background: linear-gradient(135deg, #c9a84c, #f0d080);
  color: #1a237e;
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.3);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(201, 168, 76, 0.45);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.3s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: block;
}

/* ────────────────────────────────────────────────
   MOBILE NAV PANEL
───────────────────────────────────────────────── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9950;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: #0c1460;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-100%);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav-panel.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.mobile-nav-links {
  flex: 1;
  padding: 10px 0;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--secondary, #c9a84c);
}

.mobile-sub-links {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 0;
}

.mobile-sub-links a {
  padding: 10px 20px 10px 40px !important;
  font-size: 0.84rem !important;
  color: rgba(255, 255, 255, 0.65) !important;
  border-bottom: none !important;
}

.mobile-sub-links a:hover {
  color: var(--secondary, #c9a84c) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.mobile-sub-links.open {
  display: block;
}

.mobile-nav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-nav-actions .btn-outline-white {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.mobile-nav-actions .btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-actions .btn-primary-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  background: linear-gradient(135deg, #c9a84c, #f0d080);
  border-radius: 50px;
  color: #1a237e;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.mobile-nav-actions .btn-primary-gold:hover {
  box-shadow: 0 5px 18px rgba(201, 168, 76, 0.4);
  transform: translateY(-1px);
}

/* ────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
───────────────────────────────────────────────── */

/* Large screens - slightly compact */
@media (max-width: 1400px) {
  .brand-text-sub {
    display: none;
  }

  .nav-link-item {
    padding: 7px 9px;
    font-size: 0.79rem;
  }
}

/* Medium-large – hide desktop menu */
@media (max-width: 1100px) {
  .navbar-menu {
    display: none;
  }

  .lang-btn {
    display: none;
  }

  .btn-login {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ────────────────────────────────────────────────
   BODY PADDING (push content below fixed navbar)
───────────────────────────────────────────────── */
body {
  padding-top: var(--nav-height);
}