/* ==========================================================================
   MEGA MENU SIDEBAR OVERRIDE (Purple/Winota Theme)
   ========================================================================== */
:root {
  /* --header-height: 60px; */
  --sidebar-bg: #3c064e; /* Deep purple base */
  --sidebar-bg-gradient: linear-gradient(180deg, #4a0e5c 0%, #2a0538 100%);
  --sidebar-text: #ffffff;
  --sidebar-gold: #ffcc00;
  --sidebar-hover: rgba(255, 255, 255, 0.1);
  --promo-text-color: #ffffff;
}

/* 1. Container - Top Down Animation */
.sidebar.mega-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 450px;
  max-height: 95vh !important;
  background: url("/media/winlegend_media/assets/bg-sidemenu.08b8d56.webp")
      no-repeat left center,
    url("/media/winlegend_media/assets/bg-welcome.fc2605f.webp") no-repeat
      center center !important;
  background-size: 80% 100%, cover !important;
  background-position: left center, center center !important;
  color: var(--sidebar-text);
  z-index: 9999 !important;
  transform: translateY(-150%) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  display: flex !important;
  flex-direction: column !important;
  padding: 0;
  overflow-y: auto;
  border-bottom: none !important; /* Replaced by image */
}

.sidebar.mega-menu.active {
  transform: translateY(0) !important;
}

/* 2. Top Bar (Close Button) */
.mega-menu-top-bar {
  padding: 20px 40px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.close-menu-btn {
  background: #a91c1c; /* Deep red */
  border: 2px solid #c53030;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.close-menu-btn:hover {
  transform: scale(1.05);
  background: #c53030;
}

.close-menu-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* Ensure white icon */
}

/* 3. Main Content Area */
.mega-menu-content {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px 10px 40px;
  gap: 20px;
  position: relative;
  flex-grow: 1;
}

/* Left Side: Menu Grid */
.mega-menu-content .menu-grid {
  flex: 0 1 auto; /* Stop taking full width */
  display: grid;
  grid-template-columns: max-content max-content max-content; /* Columns fit content closely */
  gap: 60px; /* Moderate gap between columns */
  padding: 0 !important;
  margin: 0 !important;
  z-index: 2;
  width: auto;
}

.menu-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Menu Items (Text + Icon style) */
.menu-item {
  display: flex !important;
  align-items: center;
  gap: 15px;
  padding: 5px 0;
  color: #7b2c00; /* Updated color from user request */
  text-decoration: none;
  font-weight: 700; /* Bold */
  font-size: 14px; /* Updated font size */
  transition: color 0.2s, transform 0.2s;
  background: transparent !important;
  border: none !important;
  font-family: "Montserrat", sans-serif; /* Updated font family */
}

.menu-item:hover {
  color: #5a2000; /* Slightly darker on hover */
  text-shadow: none; /* Removed glow to match reference */
  transform: translateX(5px);
}

.menu-item.active {
  color: #aa3d00; /* A brighter variation for active state, or keep same */
}

.menu-item .icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  /* Remove old filter if applied */
  filter: none;
  /* Center icon inside container */
  position: relative;
  z-index: 2;
}

/* Icon Container using background image */
.menu-item .icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; /* Adjust size as needed */
  height: 48px;
  background-image: url("/media/winlegend_media/assets/sidebar_icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 10px; /* Space between container and text */
}

/* Special Panel Item */
.menu-item.panel-item {
  margin-bottom: 10px;
  padding-left: 0 !important;
}

/* Right Side: Promo Section */
.menu-promo-section {
  flex: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  min-height: 250px;
  background: transparent;
  border: none;
  z-index: 2; /* Text above image if needed */
  margin-right: 250px; /* Keep distance from the cat */
}

.promo-text {
  z-index: 2;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.promo-text h3 {
  font-family: "Oswald", sans-serif;
  font-size: 42px; /* Bigger title */
  line-height: 1.1;
  color: #fff;
  margin-bottom: 25px;
  text-transform: none;
  font-weight: 700;
}

.promo-text h3::before {
  content: "Choose";
  display: block;
  font-size: 22px;
  color: var(--sidebar-gold);
  text-transform: none;
  font-family: "Oswald", sans-serif;
  margin-bottom: 5px;
  font-weight: 500;
}

/* Custom 3-Part Button */
.btn-promo-custom {
  display: flex;
  align-items: stretch;
  justify-content: center;
  text-decoration: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.1s;
  height: 60px; /* Adjust based on image height */
  margin-top: 10px;
}

.btn-promo-custom:active {
  transform: translateY(2px);
}

.btn-left {
  width: 32px; /* Adjust width based on left cap */
  background-image: url("/media/winota_media/assets/btn-primary-left.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
}

.btn-center {
  background-image: url("/media/winota_media/assets/btn-primary-center.png");
  background-size: 100% 100%; /* Stretch to fill text width */
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Oswald", sans-serif;
  font-weight: bold;
  font-size: 24px;
  text-transform: uppercase;
  padding: 0 10px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.btn-right {
  width: 32px; /* Adjust width based on right cap */
  background-image: url("/media/winota_media/assets/btn-primary-right.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
}

/* 3.1 Hero Characters & Promo Box */
.heroes-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13%; /* Adjust as needed */
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-char {
  position: absolute;
  bottom: 0;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hero-lara {
  right: 130px;
  height: 85%;
  bottom: -20%; /* Mover más abajo */
  z-index: 2;
}

.hero-ben {
  right: 50px;
  height: 90%;
  bottom: -20%; /* Mover más abajo */
  z-index: 3;
}

.hero-indy {
  right: -50px;
  height: 85%;
  bottom: -20%; /* Mover más abajo */
  z-index: 2;
}

.hero-promo-box {
  position: absolute;
  bottom: 80px;
  right: 0px;
  width: 320px;
  background: #e8e8e8;
  border: 4px solid #d4af37; /* Gold border */
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 10;
  pointer-events: auto;
  color: #333;
}

.hero-promo-box::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid #b8860b;
  border-radius: 18px;
  pointer-events: none;
}

/* Decorative gems on corners (simulated) */
.hero-promo-box::after {
  content: "♦";
  position: absolute;
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
  color: #9c27b0;
  font-size: 20px;
}

.hero-promo-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #4a3b2a;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.hero-promo-subtitle {
  font-size: 14px;
  color: #5a4b3a;
  margin-bottom: 15px;
  font-weight: 600;
}

.hero-promo-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(180deg, #66ff66 0%, #33cc33 100%);
  border: 1px solid #2eb82e;
  border-radius: 8px;
  color: #003300;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 4px 0 #2eb82e;
  transition: transform 0.1s;
}

.hero-promo-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2eb82e;
}

/* 4. Bottom Bar */
.mega-menu-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between; /* Links left, User right */
  align-items: center;
  position: relative;
  z-index: 5;
}

.bottom-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.bottom-links a {
  color: #a0aec0;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bottom-links a:hover {
  color: #fff;
}

.menu-user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* 5. Bottom Decoration (Golden Line) - Adapted from Reference */
.sidebar.mega-menu::after {
  content: "";
  background-image: url("/media/winlegend_media/assets/liana.e1f65be.webp");
  background-repeat: repeat-x;
  background-position: center;
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  height: 15px;
  z-index: 151;
  pointer-events: none;
}

/* 6. Mobile Responsive Adjustments */
@media (max-width: 1024px) {
  .mega-menu-content {
    flex-direction: column;
    gap: 30px;
  }

  .menu-promo-section {
    order: -1;
    flex-direction: row;
    justify-content: center;
  }

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .promo-image-container {
    opacity: 0.2; /* Fade cat on tablet to read text? Or just hide? */
    right: -50px;
    bottom: 15px;
    z-index: 0;
  }
}

@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-promo-section {
    display: none;
  }

  .promo-image-container {
    display: none; /* Hide cat on mobile */
  }

  .mega-menu-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .bottom-links {
    justify-content: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .mega-menu-top-bar {
    padding: 15px 20px;
  }

  .mega-menu-content {
    padding: 0 20px 20px;
  }
}

/* Header & Helper Overrides (Keep existing) */
.main-content {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Winota Header Override */
/* Header Styles Override */
.top-header.winota-header {
  height: 80px;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 20px !important;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: none !important;
}

/* Animated Curtain Background */
.header-bg-curtain {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url("/media/winota_media/assets/winota-header-bg.png");
  background-size: contain;
  background-repeat: repeat-x;
  background-position: top center;
  z-index: -1;
  pointer-events: none;
}

/* Header Groups */
.header-left-group {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-start;
}

.header-center-group {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  justify-content: flex-end;
}

/* Header Logo */
.header-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s;
}

.header-logo:hover {
  transform: scale(1.05);
}

/* Header Navigation Links */
.header-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav-links a {
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.header-nav-links a.active,
.header-nav-links a:hover {
  color: var(--sidebar-gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Header Login Button */
.btn-header-login {
  background: linear-gradient(
    180deg,
    #e7b5ff,
    #e6b0ff 14.22%,
    #ba63ff 82.29%,
    #b658ff
  );
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  font-family: "Oswald", sans-serif;
  transition: all 0.2s;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-header-login:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Header Join Button */
.btn-header-join {
  background: linear-gradient(
    180deg,
    #9dff85,
    #8aff5c 14.22%,
    #69ec35 83.85%,
    #50df17
  );
  color: #0a0a0f; /* Dark text for contrast on light green */
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  font-family: "Oswald", sans-serif;
  transition: all 0.2s;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-header-join:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Hamburger Button */
.hamburger-btn-winota {
  background: url("/media/winlegend_media/assets/ca311cb88f22d902ec1786f4fd73e7e6.svg")
    center center no-repeat;
  background-size: contain;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  z-index: 1001;
  box-shadow: none;
}

.hamburger-btn-winota .bar {
  display: none; /* Hide bars as the SVG likely contains the icon */
}

.hamburger-btn-winota:hover {
  filter: brightness(1.1);
}

.hamburger-btn-winota:hover .bar {
  background-color: #fff; /* Keep white */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .header-nav-links {
    display: none;
  }
  .header-logo {
    height: 40px;
  }
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Buttons definitions moved to top of file to avoid duplication */

/* Hamburger */
.hamburger-btn-winota {
  width: 45px;
  height: 45px;
  background: url("/media/winlegend_media/assets/ca311cb88f22d902ec1786f4fd73e7e6.svg")
    center center no-repeat;
  background-size: contain;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s;
  margin-right: 0 !important; /* Reset override */
}
.hamburger-btn-winota:hover {
  transform: scale(1.05);
}
.hamburger-btn-winota .bar {
  width: 22px;
  height: 3px;
  background: white;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Nav Links */
.header-nav-links {
  display: flex;
  gap: 20px;
  margin-left: 20px;
}
.header-nav-links a {
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: color 0.2s;
}
.header-nav-links a:hover,
.header-nav-links a.active {
  color: #ffcc00; /* Gold */
}

/* Logo */
.header-logo {
  height: 80px; /* Adjust */
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.5));
  transition: transform 0.2s;
}
.header-logo:hover {
  transform: scale(1.05);
}

/* User Logged Panel */
.user-logged-panel {
  display: flex;
  align-items: center;
  gap: 15px;
}
.user-balance {
  font-family: "Oswald", sans-serif;
  color: #ffcc00;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.header-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transition: background 0.2s;
  margin-left: 15px;
}
.header-logout-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Responsive Header */
@media (max-width: 1024px) {
  .header-nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-header.winota-header {
    padding: 0 10px !important;
    height: 70px;
  }
  .btn-header-join {
    display: none; /* Hide join on small screens if too crowded? Or just scale down. Let's hide text or buttons. */
  }
  .btn-header-login {
    padding: 8px 15px;
    font-size: 12px;
  }
  .hamburger-btn-winota {
    width: 40px;
    height: 40px;
  }
  .header-logo {
    height: 45px;
  }
}

/* =========================================
   WINOTA HERO CAROUSEL STYLES
   ========================================= */

.winota-hero-container {
  position: relative;
  width: 100%;
  height: 550px; /* Adjust height as needed */
  overflow: hidden;
  background: #1a0525; /* Fallback deep purple */
  margin-top: var(--header-height); /* Ensure it starts below header */
}

/* Optional: Add a spotlight effect */
.winota-hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(
    ellipse at top,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Cat */
.winota-hero-cat {
  position: absolute;
  bottom: 202px;
  left: 27%;
  width: 169px;
  height: auto;
  z-index: 25;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.winota-hero-cat:hover {
  transform: scale(1.05) rotate(-5deg);
}

.hero-char {
  position: absolute;
  bottom: 0;
  width: 350px; /* Base width of character */
  height: auto;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  transform-origin: bottom center;
}

.hero-char img {
  width: 90%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

/* Positions */
.hero-char.pos-center {
  left: 50%;
  transform: translateX(-50%) scale(1.2);
  z-index: 20;
  filter: brightness(1.1);
}

.hero-char.pos-left {
  left: 15%;
  transform: translateX(-50%) scale(0.85);
  z-index: 10;
  opacity: 0.6;
  filter: brightness(0.4) blur(1px);
}

.hero-char.pos-right {
  left: 85%;
  transform: translateX(-50%) scale(0.85);
  z-index: 10;
  opacity: 0.6;
  filter: brightness(0.4) blur(1px);
}

/* Content Overlay (Left Side) */
.winota-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10%; /* Responsive padding */
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-subtitle {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-main-title {
  font-family: "Oswald", sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: #ffd700; /* Gold */
  line-height: 1.1;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.hero-main-title .highlight {
  color: #fff;
  font-size: 80px;
}

.btn-winota-hero-cta {
  margin-top: 20px;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-weight: 700;
  padding: 12px 40px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  text-transform: uppercase;
}

.btn-winota-hero-cta:active {
  transform: translateY(4px);
}

.hero-terms-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  font-size: 12px;
  margin-top: 10px;
  cursor: pointer;
}

.hero-terms-link:hover {
  color: #fff;
}

/* Dots Navigation */
.hero-dots-nav {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.h-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.h-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.h-dot.active {
  background: #a90038; /* Red active dot like reference */
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
  box-shadow: 0 0 10px #a90038;
}

/* Responsive */
@media (max-width: 1024px) {
  .winota-hero-container {
    height: 450px;
  }
  .hero-main-title {
    font-size: 48px;
  }
  .hero-main-title .highlight {
    font-size: 60px;
  }
  .hero-char {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .winota-hero-container {
    height: 600px; /* Taller for stacked layout */
  }
  .winota-hero-overlay {
    width: 100%;
    height: 50%;
    top: 0;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.6) 0%,
      transparent 100%
    );
  }
  .hero-text-content {
    align-items: center;
  }
  .winota-carousel-stage {
    width: 100%;
    height: 50%;
    top: 50%;
    right: 0;
  }
  .hero-char.pos-center {
    transform: translateX(-50%) scale(1);
    bottom: -20px; /* Push down slightly */
  }
  .winota-hero-cat {
    left: -20px;
    bottom: 10px;
    transform: scale(0.8);
  }
}

/* =========================================
   WINOTA HEADER STYLES
   ========================================= */
.winota-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  height: 80px; /* Explicit height */
  background: rgba(
    26,
    5,
    37,
    0.95
  ); /* Ensure background is visible if curtain fails */
  position: relative;
  z-index: 100; /* Ensure header is above hero */
}

.header-left-group {
  justify-self: start;
  display: flex;
  align-items: center;
  height: 100%;
}

.header-center-group {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.header-right-group {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

/* Logo Sizing */
.header-logo {
  max-height: 80px; /* Adjust as needed */
  width: auto;
  display: block;
}

/* Responsive Header */
@media (max-width: 1024px) {
  .winota-header {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .winota-header {
    height: 60px;
    grid-template-columns: auto 1fr auto; /* Allow center to take available space or center? */
    display: flex; /* Switch to flex for mobile to ensure space-between */
    justify-content: space-between;
  }

  .header-center-group {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .header-nav-links {
    display: none; /* Hide desktop nav links */
  }
}

/* =========================================
   MOBILE SIDEBAR OVERRIDES (Left Slide-in)
   ========================================= */
@media (max-width: 900px) {
  /* 1. Sidebar Container: Fixed Left, Full Height */
  .sidebar.mega-menu {
    top: 0 !important;
    left: 0 !important;
    width: 280px !important; /* Fixed width sidebar */
    height: 100vh !important; /* Full height */
    max-height: 100vh !important;
    transform: translateX(-100%) !important; /* Slide from left */
    border-right: 2px solid #a90038; /* Separator */
    border-bottom: none !important;
    border-radius: 0 !important;
    padding-bottom: 20px !important;
    overflow-y: auto !important; /* Scrollable content */
    display: flex !important;
    flex-direction: column !important;
  }

  .sidebar.mega-menu.active {
    transform: translateX(0) !important; /* Slide in */
  }

  /* 2. Top Bar adjustments */
  .mega-menu-top-bar {
    padding: 15px !important;
    justify-content: flex-end !important; /* Close button on right */
    flex-shrink: 0;
  }

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

  /* 3. Content Layout */
  .mega-menu-content {
    flex-direction: column !important;
    padding: 10px 20px !important;
    gap: 20px !important;
    height: auto !important;
    overflow: visible !important; /* Let container scroll */
  }

  /* 4. Menu Grid (Single Column) */
  .mega-menu-content .menu-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .menu-column {
    width: 100% !important;
    gap: 10px !important;
  }

  /* 5. Menu Items */
  .menu-item {
    padding: 8px 0 !important;
    font-size: 16px !important;
  }

  .menu-item .icon-container {
    width: 40px !important;
    height: 40px !important;
  }

  .menu-item .icon {
    width: 24px !important;
    height: 24px !important;
  }

  /* 6. Hide Desktop Promo Elements */
  .menu-promo-section {
    display: none !important;
  }

  .heroes-container,
  .hero-promo-box {
    display: none !important;
  }

  /* 7. Bottom Bar */
  .mega-menu-bottom {
    flex-direction: column;
    gap: 15px;
    padding: 20px !important;
    text-align: center;
    margin-top: auto; /* Push to bottom */
  }

  .bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}
