/* Enhanced Mega Menu Styles for Organized Header */
/* Sticky Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 4000;
  background: var(--cream);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-bottom: 2px solid var(--brown);
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  /* Ensure header is visible and not covered */
  display: block;
  visibility: visible;
  opacity: 1;
  /* Force full width */
  min-width: 100vw;
  /* Ensure header stays above other content */
  z-index: 2000;
}

.header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  background: var(--cream);
}

/* Modern Futuristic Header Styles */
.header.futuristic {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(to bottom, var(--cream), rgba(245, 245, 220, 0.9));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(139, 92, 42, 0.2);
}

.header-top {
  padding: 1rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.flag-logo {
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(139, 92, 42, 0.3);
  transition: transform 0.3s ease;
}

.logo-link:hover .flag-logo {
  transform: scale(1.1);
}

.logo-text h1 {
  font-size: 1.8rem;
  color: var(--brown);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.tagline {
  font-size: 1rem;
  color: var(--black);
  font-style: italic;
}

.action-btn {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.action-btn.donate {
  background: var(--brown);
  color: var(--cream);
}

.action-btn.contact {
  background: var(--black);
  color: var(--cream);
}

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Main Header Styles */
.header-main {
  padding: 0.2rem 0;
  background: var(--cream);
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  overflow-x: hidden;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  /* Force full width */
  min-width: 100vw;
}

.header-main .container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  overflow-x: hidden;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 280px;
  max-width: 100%;
  overflow-x: hidden;
}

.flag-container {
  position: relative;
}

.flag-logo {
  height: 50px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--brown);
}

.logo-text h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--brown);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-text .tagline {
  margin: 0.1rem 0 0 0;
  font-size: 0.85rem;
  color: var(--green);
  font-style: italic;
  font-weight: 500;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  max-width: 100%;
  overflow-x: hidden;
}

.action-buttons {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  border-radius: 18px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn .btn-icon {
  font-size: 1rem;
}

.action-btn .btn-icon svg {
  width: 1.1em;
  height: 1.1em;
}

.call-btn {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}

.call-btn:hover {
  background: var(--brown);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 42, 0.3);
}

.donate-btn {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.donate-btn:hover {
  background: var(--brown);
  border-color: var(--brown);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 42, 0.3);
}

/* Modern Nav */
.mega-nav {
  background: rgba(0, 0, 0, 0.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-item {
  position: relative;
}

/* Ensure hover works on desktop */
.nav-item.has-mega-menu {
  position: relative;
}

.nav-item.has-mega-menu:hover .mega-menu,
.nav-item.has-mega-menu:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Keep mega menu open when hovering over it */
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  color: var(--brown);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  background-color: transparent;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(139, 92, 42, 0.1);
  color: var(--brown);
  transform: translateY(-1px);
}

.nav-icon {
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
}

.nav-icon svg {
  width: 1.2em;
  height: 1.2em;
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

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

/* Mega Menu Styles - Fixed positioning and hover */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--cream);
  border: 2px solid var(--brown);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 5000;
  min-width: 800px;
  max-width: 90vw;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  /* Add invisible padding at top to create hover bridge */
  padding-top: 10px;
  margin-top: -10px;
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
  /* Ensure content is visible */
  position: relative;
  z-index: 3001;
}

.mega-column {
  min-width: 200px;
}

.mega-column h3 {
  color: var(--brown);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--green);
  position: relative;
}

.mega-column h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--brown);
}

.mega-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-column li {
  margin-bottom: 0.4rem;
}

.mega-column a {
  display: block;
  padding: 0.4rem 0;
  color: var(--black);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-radius: 4px;
  padding-left: 0.5rem;
}

.mega-column a:hover {
  color: var(--green);
  background: rgba(30, 130, 76, 0.1);
  transform: translateX(5px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-top: 0;
  padding-top: 0;
}

/* --- FULL WIDTH HEADER & NAVBAR --- */
.header,
.header-main,
.mega-nav {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
}

.header .container,
.header-main .container,
.mega-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

/* --- FLEXIBLE MEGA MENU COLUMNS --- */
.mega-menu-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

/* --- REDUCE HEADER HEIGHTS --- */
.header-main {
  padding: 0.2rem 0;
}

.mega-nav {
  padding-top: 0.3rem;
}

/* Mega Menu with Futuristic Glow */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--cream);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease-in-out;
  opacity: 0;
  transform: translateY(-20px);
}

.nav-item:hover .mega-menu {
  opacity: 1;
  transform: translateY(0);
}

.mega-column a {
  transition: all 0.3s ease;
}

.mega-column a:hover {
  color: var(--brown);
  transform: translateX(5px);
  box-shadow: 0 0 10px rgba(139, 92, 42, 0.3);
}

@media (max-width: 1024px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
    overflow-x: hidden;
  }
  .logo-section {
    min-width: 250px;
    gap: 0.6rem;
    overflow-x: hidden;
  }
  
  .header-content {
    gap: 0.6rem;
  }
  
  .action-buttons {
    gap: 0.4rem;
    overflow-x: hidden;
  }
  
  .mega-menu {
    min-width: 600px;
    max-height: 60vh;
    overflow-x: hidden;
  }
  
  .mega-menu-content {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    padding: 1.2rem;
    overflow-x: hidden;
  }
  
  /* Ensure full-width on tablet */
  .header,
  .header-main,
  .mega-nav {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
}

/* ===== COMPLETELY REDESIGNED MOBILE HEADER ===== */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --bottom-nav-height: 80px;
    --floating-btn-size: 56px;
  }

  /* Hide desktop header on mobile */
  .header {
    display: none;
  }
  
  /* Reset full-width on mobile */
  .header,
  .header-main,
  .mega-nav {
    width: 100%;
    max-width: 100%;
    position: static;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
  }

  /* Mobile Header - Top Bar */
  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(to right, var(--cream), rgba(245, 245, 220, 0.8));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 42, 0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    overflow-x: hidden;
  }

  .mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    overflow-x: hidden;
  }

  .mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
  }

  .mobile-logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .mobile-logo-text h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brown);
    margin: 0;
    line-height: 1.1;
  }

  .mobile-logo-text .tagline {
    font-size: 0.7rem;
    color: var(--green);
    margin: 0;
    font-style: italic;
  }

  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brown), var(--green));
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 42, 0.3);
  }

  .mobile-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 42, 0.4);
  }

  .mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Bottom Navigation Bar */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(245, 245, 220, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(139, 92, 42, 0.2);
    z-index: 1999;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
  }

  .bottom-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--brown);
    transition: all 0.3s ease;
    min-width: 60px;
  }

  .bottom-nav-item.active {
    background: rgba(139, 92, 42, 0.1);
    color: var(--brown);
  }

  .bottom-nav-item:hover {
    background: rgba(139, 92, 42, 0.15);
    transform: translateY(-2px);
  }

  .bottom-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bottom-nav-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  .bottom-nav-text {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
  }

  /* Floating Action Button */
  .mobile-fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 1rem);
    right: 1rem;
    width: var(--floating-btn-size);
    height: var(--floating-btn-size);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--brown));
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(30, 130, 76, 0.4);
    transition: all 0.3s ease;
    z-index: 1998;
  }

  .mobile-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(30, 130, 76, 0.5);
  }

  .mobile-fab svg {
    width: 24px;
    height: 24px;
    fill: white;
  }

  /* Slide-up Mobile Menu */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

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

  .mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 3001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 1rem;
  }

  .mobile-menu-panel.active {
    transform: translateY(0);
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(139, 92, 42, 0.2);
    margin-bottom: 1rem;
  }

  .mobile-menu-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brown);
  }

  .mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brown);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .mobile-menu-close:hover {
    background: var(--black);
    transform: scale(1.1);
  }

  .mobile-menu-close svg {
    width: 20px;
    height: 20px;
    fill: white;
  }

  /* Mobile Menu Items - Card Layout */
  .mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .mobile-menu-item {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(139, 92, 42, 0.1);
    transition: all 0.3s ease;
  }

  .mobile-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  }

  .mobile-menu-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .mobile-menu-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brown), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-item-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
  }

  .mobile-menu-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brown);
    margin: 0;
  }

  .mobile-menu-item-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
  }

  .mobile-menu-subitem {
    padding: 0.75rem;
    background: rgba(139, 92, 42, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: var(--black);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }

  .mobile-menu-subitem:hover {
    background: rgba(139, 92, 42, 0.1);
    border-color: var(--brown);
    transform: translateX(4px);
  }

  /* Quick Actions Section */
  .mobile-quick-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 42, 0.2);
  }

  .quick-actions-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 0.75rem;
  }

  .quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--green), var(--brown));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 130, 76, 0.3);
  }

  .quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 130, 76, 0.4);
  }

  .quick-action-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  /* Adjust main content for mobile layout */
  main {
    margin-top: var(--header-height);
    margin-bottom: var(--bottom-nav-height);
    padding: 1rem;
  }

  /* Hide desktop navigation on mobile */
  .mega-nav {
    display: none;
  }
}

/* Small Mobile Optimizations */
@media (max-width: 480px) {
  :root {
    --header-height: 65px;
    --bottom-nav-height: 75px;
  }

  .mobile-header {
    padding: 0 0.75rem;
  }

  .mobile-logo img {
    height: 35px;
  }

  .mobile-logo-text h1 {
    font-size: 1rem;
  }

  .mobile-logo-text .tagline {
    font-size: 0.65rem;
  }

  .mobile-menu-btn {
    width: 40px;
    height: 40px;
  }

  .mobile-menu-btn span {
    width: 18px;
  }

  .bottom-nav-item {
    min-width: 50px;
    padding: 0.4rem;
  }

  .bottom-nav-icon svg {
    width: 18px;
    height: 18px;
  }

  .bottom-nav-text {
    font-size: 0.65rem;
  }

  .mobile-fab {
    width: 50px;
    height: 50px;
    bottom: calc(var(--bottom-nav-height) + 0.75rem);
    right: 0.75rem;
  }

  .mobile-fab svg {
    width: 20px;
    height: 20px;
  }

  .mobile-menu-panel {
    padding: 0.75rem;
  }

  .mobile-menu-item {
    padding: 0.75rem;
  }

  .mobile-menu-item-content {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  :root {
    --header-height: 60px;
    --bottom-nav-height: 70px;
  }

  .mobile-header {
    padding: 0 0.5rem;
  }

  .mobile-logo {
    gap: 0.5rem;
  }

  .mobile-logo img {
    height: 30px;
  }

  .mobile-logo-text h1 {
    font-size: 0.9rem;
  }

  .mobile-logo-text .tagline {
    font-size: 0.6rem;
  }

  .mobile-menu-btn {
    width: 36px;
    height: 36px;
  }

  .mobile-menu-btn span {
    width: 16px;
  }

  .bottom-nav-item {
    min-width: 45px;
    padding: 0.3rem;
  }

  .bottom-nav-icon svg {
    width: 16px;
    height: 16px;
  }

  .bottom-nav-text {
    font-size: 0.6rem;
  }

  .mobile-fab {
    width: 45px;
    height: 45px;
    bottom: calc(var(--bottom-nav-height) + 0.5rem);
    right: 0.5rem;
  }

  .mobile-fab svg {
    width: 18px;
    height: 18px;
  }
}

/* Add touch-action for swipe closing */
.mobile-menu-panel {
  touch-action: pan-y pinch-zoom;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Additional Mobile Menu JavaScript (unchanged) */
@media (max-width: 768px) {
  .nav-item {
    position: relative;
  }

  .nav-link {
    cursor: pointer;
  }

  .nav-link:after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 0.5em;
    transition: transform 0.3s ease;
  }

  .nav-item.active .nav-link:after {
    transform: rotate(180deg);
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 55px;
  }
  
  .header-main {
    padding: 0.4rem 0;
  }
  
  .header-content {
    gap: 0.4rem;
    padding: 0 0.5rem;
  }
  
  .logo-section {
    margin: 0;
    gap: 0.4rem;
    max-width: calc(100% - 90px);
  }
  
  .logo-text h1 {
    font-size: 1rem;
    line-height: 1.1;
  }
  
  .logo-text .tagline {
    font-size: 0.65rem;
    margin-top: 0.05rem;
  }
  
  .flag-logo {
    height: 32px;
  }
  
  .action-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    min-width: 34px;
    height: 34px;
  }
  
  .header-actions {
    margin: 0;
  }
  
  .action-buttons {
    gap: 0.3rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
    padding: 0.9rem 0.75rem;
  }
  
  .mega-menu-content {
    padding: 0.6rem;
  }
  
  .mega-column h3 {
    font-size: 0.9rem;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .header-content {
    padding: 0 0.25rem;
    gap: 0.25rem;
  }
  
  .logo-section {
    max-width: calc(100% - 80px);
    gap: 0.25rem;
  }
  
  .logo-text h1 {
    font-size: 0.9rem;
  }
  
  .logo-text .tagline {
    font-size: 0.6rem;
  }
  
  .flag-logo {
    height: 30px;
  }
  
  .action-btn {
    min-width: 30px;
    height: 30px;
    padding: 0.25rem 0.4rem;
  }
  
  .action-buttons {
    gap: 0.2rem;
  }
}

/* Add touch-action for swipe closing (requires JS support) */
.nav-menu {
  touch-action: pan-y pinch-zoom;
} 

@media (min-width: 769px) {
  .mobile-header,
  .mobile-bottom-nav,
  .mobile-fab,
  .mobile-menu-overlay,
  .mobile-menu-panel {
    display: none !important;
  }
  
  /* Desktop full-width header */
  .header {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .header-main {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .mega-nav {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
} 