/* ==========================================
   1. GLOBAL & RESET STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

/* ==========================================
   2. FIXED HEADER & NAVIGATION (Desktop Styles)
   ========================================== */
#header-placeholder {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  background-color: #ffffff;
}

/* Professional Logo Sizing */
.logo img {
  height: 45px;
  width: auto;
  display: block;
}

.navbar .brand-name {
  display: none;
}

/* Navigation Menu */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #2d3748;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
  transition: color 0.2s ease;
}

/* Professional hover underline effect */
.nav-links a:hover {
  color: #4062fc;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #4062fc;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* === DESKTOP SEARCH BAR STYLING === */
.search-wrapper {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.search-wrapper form {
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-input {
  padding: 8px 15px;
  border: 1px solid #cbd5e0;
  border-radius: 20px;
  font-size: 0.9rem;
  outline: none;
  width: 180px;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #4062fc;
  width: 220px;
  box-shadow: 0 0 5px rgba(64, 98, 252, 0.15);
}

.search-button {
  background-color: #4062fc;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background-color: #2c4ed9;
}

/* Hidden by default on desktop and mobile until toggled */
.mobile-search-toggle {
  display: none !important;
}

.mobile-search-dropdown {
  display: none;
}

/* Social Icons */
.header-socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-socials a {
  color: #4a5568;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.header-socials a:hover {
  color: #4062fc;
}

/* Container to keep socials and download button aligned on desktop */
.header-actions-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Premium Navigation APK Download button */
.nav-download-btn {
  background-color: #0c80c0;
  /* Matches your main footer brand color */
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(12, 128, 192, 0.2);
}

.nav-download-btn i {
  font-size: 1rem;
}

.nav-download-btn:hover {
  background-color: #096294;
  transform: translateY(-1px);
}

/* ==========================================
   3. RESPONSIVE HAMBURGER MENU (If needed)
   ========================================== */
.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #2d3748;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================
   4. 3-COLUMN SIDE-BY-SIDE RESPONSIVE BANNERS
   ========================================== */
.static-banner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #4062fc;
  flex-wrap: nowrap;
  gap: 15px;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.static-banner-item {
  flex: 1 1 33.333%;
  max-width: 350px;
  min-width: 0;
  text-align: center;
}

.static-banner-item a {
  display: block;
  width: 100%;
}

.static-banner-item img {
  width: 55%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.2s ease;
}
.static-banner-order img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.static-banner-item img:hover {
  transform: translateY(-3px);
}

/* Mobile Tweak for super small screens */
@media (max-width: 480px) {
  .static-banner-wrap {
    gap: 8px;
    padding: 0 5px;
  }
}

/* ==========================================
   4.5 MOBILE NAVIGATION BAR (Desktop Default - Hidden)
   ========================================== */
.mobile-nav {
  display: none;
}

/* ==========================================
   5. CONSOLIDATED MOBILE BREAKPOINT (850px and down)
   ========================================== */
@media (max-width: 850px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #ffffff;
    width: 100%;
    position: relative;
  }

  .logo img {
    height: 46px;
  }

  .logo a {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
  }

  .navbar .brand-name {
    display: inline;
    color: #0c80c0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .nav-links {
    display: none !important;
  }

  .search-wrapper {
    display: none !important;
  }

  /* Hides both desktop socials & the desktop download button cleanly on mobile */
  .header-actions-wrap {
    display: none !important;
  }

  .header-socials {
    display: none !important;
  }

  .menu-toggle {
    display: none !important;
  }
  .static-banner-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.2s ease;
  }
  .mobile-search-toggle {
    display: flex !important;
    font-size: 1.2rem;
    color: #4a5568;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background-color: #f7fafc;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
  }

  .mobile-search-toggle:hover {
    background-color: #edf2f7;
  }

  /* Mobile Search Dropdown */
  .mobile-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 10px 15px;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 9998;
  }

  .mobile-search-dropdown.active {
    display: block !important;
  }

  .mobile-search-dropdown form {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .mobile-search-input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 20px;
    font-size: 0.95rem;
    outline: none;
  }

  .mobile-search-input:focus {
    border-color: #4062fc;
  }

  .mobile-search-btn {
    background: #4062fc;
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Sticky Footer Mobile Navigation Bar */
  /* Sticky Footer Mobile Navigation Bar */
  .mobile-nav {
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 8px 0 12px 0;
    /* Increased padding slightly for vertical breathing room */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    border-top: 1px solid #edf2f7;
  }

  /* Changed from circular width/height to stacked flexbox */
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    /* Stacks the icon on top of the text label */
    align-items: center;
    justify-content: center;
    color: #4a5568;
    text-decoration: none;
    font-size: 1.25rem;
    /* Icon size */
    gap: 4px;
    /* Space between the icon and text */
    transition: all 0.2s ease-in-out;
    width: 60px;
    /* Base container width to balance layout */
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    color: #4062fc;
    /* Changes the text and icon color together on hover */
    transform: translateY(-2px);
  }

  /* New text label styles */
  .mobile-nav-item .nav-label {
    font-size: 0.68rem;
    /* Keeps the text small and professional */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
}

@media (max-width: 360px) {
  .navbar .logo img {
    height: 40px;
  }

  .navbar .brand-name {
    font-size: 0.9rem;
  }
}
