/* ==========================================
   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;
  /* Pushes content down so the fixed header doesn't cover it */
  padding-top: 0px;
}

/* ==========================================
   2. FIXED HEADER & NAVIGATION
   ========================================== */
#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;
}

/* 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;
}

/* 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;
}

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

/* Dark color bars so they show up clearly on a white header background */
.bar {
  width: 25px;
  height: 3px;
  background-color: #2d3748;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Toggle Animation Effect (Active State via JavaScript) */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   4. 3-COLUMN SIDE-BY-SIDE RESPONSIVE BANNERS
   ========================================== */


/* Container to keep elements in a single row and perfectly centered */
.static-banner-wrap {
  display: flex;
  justify-content: center;
  /* Horizontally centers the items */
  align-items: center;
  /* Vertically centers the items if heights differ */
  flex-wrap: nowrap;
  /* Strictly forces items to stay in one single row */
  gap: 15px;
  /* Space between your banner items */
  width: 100%;
  max-width: 1200px;
  /* Keeps it bounded on ultra-wide desktop monitors */
  margin: 20px auto;
  /* Centers the entire container on the page with vertical spacing */
  padding: 0 10px;
  /* Prevents items from clipping the edge of mobile screens */
  box-sizing: border-box;
  background-color: #4062fc;
}

/* Individual item behavior */
.static-banner-item {
  flex: 1 1 33.333%;
  /* Allows items to grow/shrink equally up to 1/3 width */
  max-width: 350px;
  /* Limits max size so gifs don't blow up too massive on desktop */
  min-width: 0;
  /* Crucial fix to allow Flexbox to shrink images below native size */
  text-align: center;
}

/* Make links take full width of their flex item */
.static-banner-item a {
  display: block;
  width: 100%;
}

/* Make the promotional GIFs fluid and highly responsive */
.static-banner-item img {
  width: 100%;
  height: auto;
  /* Maintains aspect ratio perfectly */
  display: block;
  object-fit: contain;
  /* Ensures images scale cleanly without distortion */
  border-radius: 6px;
  /* Optional styling: adds a clean subtle curve to the corners */
  transition: transform 0.2s ease;
  /* Smooth lift animation on hover */
}

/* Simple hover micro-interaction for desktop users */
.static-banner-item img:hover {
  transform: translateY(-3px);
}

/* Mobile Tweak for super small screens (like under 400px wide) */
@media (max-width: 480px) {
  .static-banner-wrap {
    gap: 8px;
    /* Slightly tighter spacing on cramped screens */
    padding: 0 5px;
  }
}

/* ==========================================
   5. MOBILE BREAKPOINT (850px and down)
   ========================================== */
@media (max-width: 850px) {
  .menu-toggle {
    display: flex;
  }
}

/* Slick Slide-Down Professional Mobile Drawer Menu */
.nav-links {
  position: absolute;
  top: 100%;
  /* Snaps exactly below header */
  left: 0;
  right: 0;
  flex-direction: column;
  background-color: #ffffff;
  gap: 0;
  width: 100%;
  max-height: 0;
  /* Hidden by default */
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
  border-top: 1px solid #edf2f7;
}

/* Class triggered by JavaScript to open menu */
.nav-links.active {
  max-height: 350px;
  /* Smooth open */
  opacity: 1;
  padding: 15px 0;
}

.nav-links li {
  width: 100%;
  text-align: center;
}

.nav-links a {
  display: block;
  padding: 12px 0;
  font-size: 1.05rem;
}

.nav-links a::after {
  display: none;
  /* Disables desktop line animation on mobile */
}

.header-socials {
  display: none;
  /* Hides icons cleanly on smaller frames */
}

/* Search wrapper styling */
.search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  padding: 6px 10px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 0.95rem;
}

.search-button {
  background-color: #4062fc;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

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

/* Mobile & desktop overrides */
.mobile-search-toggle {
  display: none;
}
.mobile-search-dropdown {
  display: none;
}
.mobile-nav {
  display: none;
}

@media (max-width: 850px) {
  #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;
    padding: 10px 15px;
    background-color: #ffffff;
    width: 100%;
    position: relative;
  }

  .logo img {
    height: 35px;
  }

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

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

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

  .menu-toggle {
    display: none !important;
  }

  .mobile-search-toggle {
    display: block;
    font-size: 1.2rem;
    color: #4a5568;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background-color: #f7fafc;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
  }

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

  /* Mobile Search Dropdown */
  .mobile-search-dropdown {
    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;
  }

  .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 */
  .mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 9999;
    border-top: 1px solid #edf2f7;
  }

  .mobile-nav-item {
    width: 48px;
    height: 48px;
    background-color: #f7fafc;
    border-radius: 50%;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    text-decoration: none;
  }

  .mobile-nav-item:hover, .mobile-nav-item.active {
    background-color: #4062fc;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(64, 98, 252, 0.3);
  }

  body {
    padding-bottom: 75px !important; /* space for fixed footer navigation */
  }
}