/* ============================================================
   MENU-FIXES.CSS  —  Automation Expo South 2028
   Load AFTER menu.css:
   <link rel="stylesheet" href="css/menu-fixes.css">

   Fixes header/menu layout on every device size.
   Does NOT change any hover effect or desktop design.
   ============================================================ */

/* ------------------------------------------------------------
   0. HEIGHT TOKENS
   Every offset below is derived from these three numbers, so a
   header height change only has to be edited in one place.
------------------------------------------------------------ */
:root {
  --strip-h: 48px;        /* blue event strip                       */
  --nav-h: 92px;          /* main navbar                            */
  --hairline: 2px;        /* bottom border under the navbar         */
  --actionbar-h: 96px;    /* docked button bar when the menu is open */
  --header-offset: calc(var(--strip-h) + var(--nav-h) + var(--hairline));
}

@media (max-width: 1250px) {
  :root {
    --nav-h: 88px;
  }
}

@media (max-width: 650px) {
  :root {
    --strip-h: 40px;
    --nav-h: 76px;
    /* buttons stack full-width on phones, so the bar is taller.
       Now 3 stacked buttons (Brochure, Free Visitor Registration,
       Book Your Stall) instead of 2, so the bar needs more height. */
    --actionbar-h: 190px;
  }
}

/* Short landscape screens: the bar is compressed (see section 5) */
@media (max-width: 950px) and (orientation: landscape) {
  :root {
    --actionbar-h: 70px;
  }
}

/* ------------------------------------------------------------
   1. BODY OFFSET — always equals strip + navbar height
------------------------------------------------------------ */
@media (max-width: 1250px) {
  body {
    padding-top: var(--header-offset);
  }

  /* Header sits directly under the strip at whatever height it is */
  .expo-header {
    top: var(--strip-h);
  }
}

/* ------------------------------------------------------------
   2. OPEN MOBILE MENU — scrollable, never taller than screen
   100dvh keeps this correct while mobile browser chrome
   collapses; 100vh stays as the fallback.
------------------------------------------------------------ */
@media (max-width: 1250px) {
  .expo-menu.menu-open {
    max-height: calc(100vh - var(--header-offset) - var(--actionbar-h));
    max-height: calc(100dvh - var(--header-offset) - var(--actionbar-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 99998;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* ------------------------------------------------------------
   3. ACTION BUTTONS — pinned bar at the bottom of the screen
   when the mobile menu is open (was overlapping the navbar
   because position:absolute had no top value)
------------------------------------------------------------ */
@media (max-width: 1250px) {
  /* Hamburger / close (X) must ALWAYS stay on top and clickable */
  .expo-navbar .mobile-menu-btn {
    position: relative;
    z-index: 100001;
  }

  .expo-actions.actions-open {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    /* above the menu panel, so a long menu can never cover it */
    z-index: 99999;
    background: #4d0f5c;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.3);
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  /* Buttons share one row on tablets */
  .expo-actions.actions-open a {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Yellow bounce animation off while docked (avoids jitter) */
  .expo-actions.actions-open .btn-yellow {
    animation: none;
  }
}

@media (max-width: 650px) {
  .expo-actions.actions-open {
    gap: 8px;
    padding: 12px 15px calc(14px + env(safe-area-inset-bottom));
  }

  /* Stack full-width on phones */
  .expo-actions.actions-open a {
    flex: 1 1 100%;
  }
}

/* ------------------------------------------------------------
   4. VERY SMALL PHONES (up to 380px)
   Single block — the old file set .expo-logo img twice here
   (155px, then 128px) and only the last one ever applied.
------------------------------------------------------------ */
@media (max-width: 380px) {
  /* keeps room for the centre CTA button */
  .expo-logo img {
    width: 128px;
  }

  .mobile-menu-btn {
    width: 42px;
    height: 40px;
    font-size: 19px;
  }

  .expo-actions.actions-open a {
    height: 44px;
    font-size: 14px;
  }
}

/* ------------------------------------------------------------
   5. PHONE LANDSCAPE — compressed button bar on short screens.
   The menu height now follows --actionbar-h automatically.
------------------------------------------------------------ */
@media (max-width: 950px) and (orientation: landscape) {
  .expo-actions.actions-open {
    padding: 8px 15px calc(10px + env(safe-area-inset-bottom));
  }

  .expo-actions.actions-open a {
    height: 40px;
    flex: 1 1 auto;
  }
}

/* ------------------------------------------------------------
   6. DESKTOP SAFETY — menu never wraps between 1251–1400px
   (tightest range before the hamburger appears)
------------------------------------------------------------ */
@media (max-width: 1400px) and (min-width: 1251px) {
  .expo-navbar {
    gap: 10px;
  }

  .expo-menu {
    gap: 12px;
  }

  .menu-item > a {
    font-size: 14px;
  }

  .expo-actions {
    gap: 6px;
  }

  .expo-actions a {
    height: 48px;
    font-size: 13px;
  }

  /* Now 3 action buttons (Brochure, Free Visitor Registration,
     Book Your Stall) instead of 2 in this already-tight range,
     so each one needs to give up some min-width/padding. */
  .btn-preview {
    min-width: 115px;
    padding: 0 10px;
  }

  .btn-yellow {
    min-width: 140px;
    padding: 0 10px;
  }

  .btn-register {
    min-width: 160px;
  }

  .expo-logo {
    width: 260px;
    min-width: 260px;
  }

  .expo-logo img {
    width: 180px;
  }
}

/* =========================================================
   7. PHONE TESTIMONIAL ARROWS — side by side under the slider
========================================================= */
@media (max-width: 767px) {
  .testimonialSwiper {
    padding-bottom: 78px;
  }

  .testimonial-arrow {
    position: absolute;
    top: auto;
    bottom: 8px;
    transform: none;
    width: 46px;
    height: 46px;
  }

  .testimonial-prev {
    left: 50%;
    right: auto;
    margin-left: -54px;
  }

  .testimonial-next {
    left: 50%;
    right: auto;
    margin-left: 8px;
  }

  .testimonial-arrow:hover,
  .testimonial-arrow:active {
    transform: none;
    color: #4d0f5c;
    background: #ffcc1a;
  }
}

/* ------------------------------------------------------------
   8. CURRENT PAGE HIGHLIGHT (set by js/menu-loader.js)
------------------------------------------------------------ */
.expo-menu a.active-link,
.expo-menu .menu-item.active-parent > a {
  color: #ffcc1a;
}

/* ============================================================
   9. MOBILE SUB-MENU (Special Zones)
============================================================ */
@media (max-width: 1250px) {
  /* Flex alignment so the arrow sits on the right */
  ul.dropdown-menu li.has-submenu > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
  }

  /* Active dark background ONLY when the sub-menu is open */
  ul.dropdown-menu li.has-submenu.sub-open > a {
    background: linear-gradient(to right, #ac1c72, #4d0f5c) !important;
    color: #ffffff !important;
  }

  /* Base state: hidden by crushing max-height to 0 */
  ul.dropdown-menu .sub-dropdown-menu {
    display: block !important;
    position: static !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    box-shadow: none;
    transform: none;
    transition: max-height 0.35s ease-in-out, opacity 0.3s ease-in-out,
      padding 0.3s ease, margin 0.3s ease;
    background: #3d0a49 !important;
  }

  /* Open state */
  ul.dropdown-menu li.has-submenu.sub-open > ul.sub-dropdown-menu {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    padding: 5px 0 5px 15px !important;
    margin-top: 5px !important;
  }

  /* Child links inside the dark dropdown */
  ul.dropdown-menu li.has-submenu > ul.sub-dropdown-menu > li > a {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 10px 15px 10px 0 !important;
  }

  ul.dropdown-menu li.has-submenu > ul.sub-dropdown-menu > li:last-child > a {
    border-bottom: none !important;
  }

  /* Smooth arrow rotation */
  ul.dropdown-menu li.has-submenu > a i {
    transition: transform 0.3s ease;
  }

  ul.dropdown-menu li.has-submenu.sub-open > a i {
    transform: rotate(90deg);
  }
}

/* The double-tap bug came from the desktop hover style firing on the
   first tap. Gate it behind a real pointer instead of overriding it. */
@media (max-width: 1250px) and (hover: hover) and (pointer: fine) {
  ul.dropdown-menu li.has-submenu > a:hover {
    padding-left: 16px !important;
    background: #ffffff !important;
    color: #222222 !important;
  }
}

/* ------------------------------------------------------------
   10. TOUCH RESPONSIVENESS
   Kills the 300ms tap delay and double-tap-to-zoom on the menu.
------------------------------------------------------------ */
@media (max-width: 1250px) {
  .expo-menu a,
  .mobile-menu-btn,
  .mobile-cta {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
  }
}

/* ============================================================
   11. TOP STRIP DROPDOWN & ACCENT BUTTON (OVERRIDE FIXES)
============================================================ */
.event-strip {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  overflow: visible !important; /* Prevents dropdown clipping */
  z-index: 100000 !important;
}

.event-track-wrapper {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.topbar-hover-dropdown {
  position: relative !important;
  z-index: 100001 !important;
  margin-left: 10px;
  padding-right: 15px;
  flex-shrink: 0;
}

.topbar-accent-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: #ffcc1a !important;
  color: #111111 !important;
  border: 1px solid #ffcc1a !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 5px 14px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.topbar-accent-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* 1. FORCE HIDE ON HOVER: Overrides any hover rules in menu.css */
.topbar-hover-dropdown:hover .dropdown-menu,
.topbar-hover-dropdown .dropdown-menu {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  position: absolute !important;
  top: 100% !important;
  right: 15px !important;
  left: auto !important;
  
  /* 2. FIX TEXT CUTOFF: Allow container to fit the text width dynamically */
  width: max-content !important;
  max-width: calc(100vw - 30px) !important;
  min-width: 240px !important;
  
  list-style: none !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 0 !important;
  margin-top: 5px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
  z-index: 100002 !important;
}

/* 3. STRICT CLICK DISPLAY: Only visible when JS adds '.show' */
.topbar-hover-dropdown .dropdown-menu.show,
.topbar-hover-dropdown:hover .dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.topbar-hover-dropdown .dropdown-item {
  display: block !important;
  padding: 10px 16px !important;
  color: #222222 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  
  /* Prevents line breaks cutting off long names like "Automation Expo South – Chennai" */
  white-space: nowrap !important;
  word-break: normal !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.topbar-menu-divider {
  height: 1px;
  margin: 4px 0;
  border: 0;
  background: rgba(0, 0, 0, 0.12);
}

/* Background hover styling on button/items without triggering the dropdown toggle */
@media (hover: hover) and (pointer: fine) {
  .topbar-accent-btn:hover {
    background: #ffffff !important;
    color: #4d0f5c !important;
    border-color: #ffffff !important;
  }

  .topbar-hover-dropdown .dropdown-item:hover {
    background: #4d0f5c !important;
    color: #ffffff !important;
  }
}

@media (max-width: 480px) {
  .topbar-hover-dropdown {
    margin-left: 6px;
    padding-right: 10px;
  }

  .topbar-accent-btn {
    font-size: 11px !important;
    padding: 4px 9px !important;
  }

  .topbar-hover-dropdown .dropdown-menu {
    right: 10px !important;
    min-width: 200px !important;
  }
}

/* ------------------------------------------------------------
   12. ACCESSIBILITY BASELINE
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .expo-menu.menu-open,
  ul.dropdown-menu .sub-dropdown-menu,
  ul.dropdown-menu li.has-submenu > a i,
  .expo-actions .btn-yellow {
    transition: none !important;
    animation: none !important;
  }
}







/* ============================================================
   13. TOP STRIP DROPDOWN — SHOW-STATE HARDENING
   menu.css gives every .dropdown-menu a translateY(12px) idle
   transform that the topbar rules never reset, so the open panel
   was drifting 12px low. Also keeps the panel above the navbar
   and guarantees it is hit-testable.
============================================================ */
.topbar-hover-dropdown .dropdown-menu.show,
.topbar-hover-dropdown:hover .dropdown-menu.show {
  transform: none !important;
  pointer-events: auto !important;
}

.topbar-hover-dropdown .dropdown-menu {
  pointer-events: none;
}

/* The accent button must sit above the marquee track in every case */
.topbar-accent-btn {
  position: relative !important;
  z-index: 2 !important;
}

/* The marquee must never steal a tap meant for the button */
.event-track-wrapper,
.event-track {
  pointer-events: none;
}


/* ============================================================
   CONCURRENT EVENTS — FINAL CLICK FIX
============================================================ */

#concurrentEvents {
  position: relative !important;
  z-index: 100005 !important;
}

#siteSwitchDropdown {
  position: relative !important;
  z-index: 100006 !important;
  pointer-events: auto !important;
}

#siteSwitchMenu {
  position: absolute !important;
  top: calc(100% + 5px) !important;
  right: 0 !important;
  left: auto !important;

  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;

  transform: none !important;
  pointer-events: none !important;

  z-index: 100007 !important;
}

#siteSwitchMenu.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

#siteSwitchMenu a {
  position: relative !important;
  z-index: 100008 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* ============================================================
   15. CONCURRENT EVENTS - DESIGN PASS
   Brings the top-strip button into the same vocabulary as
   .btn-yellow / .btn-preview: pill radius, 700 weight, the
   #ffcc1a -> #ffffff + #4d0f5c hover, and a lift on hover.

   Height is capped to fit inside .event-strip (48px desktop,
   40px <=650px), so it reads as a real button without
   crowding the strip.

   NOTE: hover must never open the panel. Only the .show class
   added by js/menu-loader.js does that. The hover rules below
   are colour only.
============================================================ */

.topbar-accent-btn {
  height: 36px !important;
  padding: 0 18px !important;
  gap: 8px !important;

  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  line-height: 1 !important;

  border-radius: 50px !important;
  border: 2px solid #ffcc1a !important;
  background: #ffcc1a !important;
  color: #111111 !important;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22) !important;
  transition: background 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.25s ease,
              box-shadow 0.25s ease !important;
}

/* Chevron: slightly larger, and it turns over when the panel opens */
.topbar-accent-btn .fa-chevron-down {
  font-size: 12px !important;
  margin-left: 0 !important;
  transition: transform 0.25s ease;
}

.topbar-accent-btn[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

/* Open state keeps the button visually tied to the panel below it */
.topbar-accent-btn[aria-expanded="true"] {
  background: #ffffff !important;
  color: #4d0f5c !important;
  border-color: #ffffff !important;
}

@media (hover: hover) and (pointer: fine) {
  .topbar-accent-btn:hover {
    background: #ffffff !important;
    color: #4d0f5c !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 9px 18px rgba(0, 0, 0, 0.25) !important;
  }
}

.topbar-accent-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22) !important;
}

/* ---- Panel, matched to the main nav dropdowns ---- */
#siteSwitchMenu {
  border-radius: 12px !important;
  padding: 8px 0 !important;
  margin-top: 8px !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25) !important;
}

#siteSwitchMenu .dropdown-item {
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 11px 18px !important;
}

@media (hover: hover) and (pointer: fine) {
  #siteSwitchMenu .dropdown-item:hover {
    padding-left: 23px !important;
    color: #ffffff !important;
    background: #4d0f5c !important;
  }
}

/* ---- Strip is 40px here, so scale down but keep the shape ---- */
@media (max-width: 650px) {
  .topbar-accent-btn {
    height: 30px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
    gap: 6px !important;
  }

  .topbar-accent-btn .fa-chevron-down {
    font-size: 10px !important;
  }
}

@media (max-width: 480px) {
  .topbar-accent-btn {
    height: 28px !important;
    padding: 0 11px !important;
    font-size: 11px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-accent-btn,
  .topbar-accent-btn .fa-chevron-down {
    transition: none !important;
  }
  .topbar-accent-btn:hover {
    transform: none !important;
  }
}

/* ============================================================
   16. CONCURRENT EVENTS - HOVER TO OPEN
   Opens on hover for mouse users. Clicking is no longer the
   trigger on desktop.

   Scoped to (hover: hover) and (pointer: fine) on purpose:
   phones and tablets have no hover state, so on those devices
   nothing here applies and the tap handler in menu-loader.js
   takes over instead. Without that split the panel would be
   unreachable on mobile.

   :focus-within is included so keyboard users can Tab to the
   button and reach the links.
============================================================ */

@media (hover: hover) and (pointer: fine) {

  #concurrentEvents:hover #siteSwitchMenu,
  #concurrentEvents:focus-within #siteSwitchMenu,
  #siteSwitchMenu:hover {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  /* Invisible bridge across the 8px gap between the button and the
     panel. Without it the panel closes while the cursor travels
     down to the links. */
  #siteSwitchMenu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
  }

  /* Widen the hit area slightly so small cursor drifts don't close it */
  #concurrentEvents {
    padding-bottom: 4px !important;
  }

  #concurrentEvents:hover .topbar-accent-btn .fa-chevron-down,
  #concurrentEvents:focus-within .topbar-accent-btn .fa-chevron-down {
    transform: rotate(180deg);
  }

  /* The button adopts its open look while the panel is showing */
  #concurrentEvents:hover .topbar-accent-btn,
  #concurrentEvents:focus-within .topbar-accent-btn {
    background: #ffffff !important;
    color: #4d0f5c !important;
    border-color: #ffffff !important;
  }

  /* The lift belongs to the button alone, not the whole widget -
     moving the button up mid-hover would shift the panel too. */
  .topbar-accent-btn:hover {
    transform: none !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22) !important;
  }
}

/* ============================================================
   17. HEADER THEME - SUNRISE GRADIENT (matches reference banner)
   Brand gradient (same as the page buttons):
   linear-gradient(to right, #ac1c72, #4d0f5c)
   White / soft pink on the left behind the full-colour logo,
   flowing into magenta and deep purple (no yellow in the background) on the right, with
   light streaks and glowing wave lines drawn as an inline SVG.
   Logo file: image/South 2028.png (the full-colour version).
============================================================ */
:root {
  --hdr-cream: #ffffff;
  --hdr-pink: #ac1c72;
  --hdr-magenta: #ac1c72;   /* button gradient start */
  --hdr-plum: #4d0f5c;      /* button gradient end */
  --hdr-cta-bg: #ffcc1a;
  --hdr-cta-text: #7a0c3a;
  --hdr-active: #ffcc1a;
}

.expo-header {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 112' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.75'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='g2' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23f3a6c8' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23ec8fbb' stop-opacity='.45'/%3E%3Cstop offset='1' stop-color='%23f3a6c8' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='g3' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ff5fc8' stop-opacity='.9'/%3E%3Cstop offset='1' stop-color='%23ff5fc8' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='w1' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23ffd1e6' stop-opacity='0'/%3E%3Cstop offset='.25' stop-color='%23ffe6f1' stop-opacity='.9'/%3E%3Cstop offset='.55' stop-color='%23ff7ab8' stop-opacity='.9'/%3E%3Cstop offset='1' stop-color='%23ff3fa6' stop-opacity='.7'/%3E%3C/linearGradient%3E%3Cfilter id='b2'%3E%3CfeGaussianBlur stdDeviation='2'/%3E%3C/filter%3E%3Cfilter id='b6'%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3C/filter%3E%3C/defs%3E%3Cpolygon points='365,0 430,0 520,112 440,112' fill='url(%23g2)'/%3E%3Cpolygon points='420,0 455,0 600,112 560,112' fill='url(%23g1)' opacity='.55'/%3E%3Cpolygon points='300,0 345,0 395,112 360,112' fill='url(%23g1)' opacity='.35'/%3E%3Cpolygon points='520,30 640,40 600,112 500,112' fill='%23e985b4' opacity='.18' filter='url(%23b2)'/%3E%3Cpolygon points='760,0 900,0 820,112 730,112' fill='%23ff8fb8' opacity='.14'/%3E%3Cpolygon points='1180,0 1230,0 1150,112 1110,112' fill='url(%23g3)' opacity='.55'/%3E%3Cpolygon points='1205,0 1218,0 1140,112 1128,112' fill='%23ffd0f0' opacity='.7' filter='url(%23b2)'/%3E%3Cpolygon points='1240,0 1300,0 1250,40 1190,40' fill='%23ff6ad0' opacity='.25'/%3E%3Cline x1='1500' y1='0' x2='1395' y2='90' stroke='%23ff7ad6' stroke-width='2' opacity='.8' filter='url(%23b2)'/%3E%3Cline x1='1500' y1='0' x2='1395' y2='90' stroke='%23ffe0f6' stroke-width='.8'/%3E%3Cpath d='M240,112 C420,60 560,40 700,70 S960,112 1120,104 S1380,70 1600,40' fill='none' stroke='url(%23w1)' stroke-width='6' opacity='.55' filter='url(%23b6)'/%3E%3Cpath d='M240,112 C420,60 560,40 700,70 S960,112 1120,104 S1380,70 1600,40' fill='none' stroke='url(%23w1)' stroke-width='1.6'/%3E%3Cpath d='M300,112 C470,74 600,58 720,82 S980,110 1160,108 S1420,84 1600,64' fill='none' stroke='url(%23w1)' stroke-width='1' opacity='.7'/%3E%3Cpath d='M380,104 C520,80 640,70 760,92 S1000,112 1200,110 S1450,98 1600,84' fill='none' stroke='%23ffd1e8' stroke-width='.8' opacity='.55'/%3E%3Cpath d='M200,90 C360,70 480,30 640,52' fill='none' stroke='%23ffe3f0' stroke-width='1.2' opacity='.7'/%3E%3Cg fill='%23ffd6ec' opacity='.35'%3E%3Ccircle cx='560' cy='96' r='.9'/%3E%3Ccircle cx='580' cy='92' r='.9'/%3E%3Ccircle cx='600' cy='90' r='.9'/%3E%3Ccircle cx='620' cy='92' r='.9'/%3E%3Ccircle cx='640' cy='96' r='.9'/%3E%3Ccircle cx='660' cy='100' r='.9'/%3E%3Ccircle cx='1420' cy='70' r='.9'/%3E%3Ccircle cx='1440' cy='66' r='.9'/%3E%3Ccircle cx='1460' cy='62' r='.9'/%3E%3Ccircle cx='1480' cy='60' r='.9'/%3E%3Ccircle cx='1500' cy='58' r='.9'/%3E%3Ccircle cx='1520' cy='56' r='.9'/%3E%3Ccircle cx='1540' cy='55' r='.9'/%3E%3Ccircle cx='1430' cy='82' r='.9'/%3E%3Ccircle cx='1450' cy='78' r='.9'/%3E%3Ccircle cx='1470' cy='75' r='.9'/%3E%3Ccircle cx='1490' cy='72' r='.9'/%3E%3Ccircle cx='1510' cy='70' r='.9'/%3E%3Ccircle cx='1530' cy='69' r='.9'/%3E%3Ccircle cx='1550' cy='68' r='.9'/%3E%3C/g%3E%3C/svg%3E ") center / 100% 100% no-repeat,
    radial-gradient(ellipse 22% 120% at 30% 10%, rgba(255, 235, 245, 0.6), transparent 70%),
    radial-gradient(ellipse 20% 140% at 70% 20%, rgba(220, 60, 160, 0.3), transparent 70%),
    linear-gradient(90deg,
      var(--hdr-cream) 0%,
      #fdf0f6 14%,
      #f6d0e2 24%,
      #e590ba 32%,
      #c8478f 40%,
      var(--hdr-magenta) 48%,
      var(--hdr-plum) 100%);
  border-top-color: transparent;
  border-bottom-color: transparent;
  box-shadow: 0 4px 16px rgba(77, 15, 92, 0.18);
}

/* Main links: white with a soft shadow so they stay crisp on pink */
.expo-menu > .menu-item > a {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(90, 0, 50, 0.35);
}

.expo-menu > .menu-item > a:hover {
  color: var(--hdr-active);
}

.expo-menu .menu-item.active-parent > a,
.expo-menu > .menu-item > a.active-link {
  color: var(--hdr-active);
}

/* ---- Dropdown items: hover + current page in the header theme ----
   (the current page used to turn white on white, so "Home"
   disappeared on the home page; hover was the old blue gradient) */
:root {
  --hdr-dropdown-grad: linear-gradient(to right, #ac1c72, #4d0f5c);
}

/* Hover: magenta gradient */
.expo-menu .dropdown-menu li a:hover,
.expo-menu .dropdown-menu li a:focus-visible {
  color: #ffffff !important;
  background: var(--hdr-dropdown-grad);
}

/* Current page: yellow text only, like the main menu (no background) */
.expo-menu .dropdown-menu li a.active-link,
.expo-menu .dropdown-menu li a.active {
  color: #f2b200 !important;
  background: #ffffff;
  font-weight: 700;
}

/* Hovering the current page still shows the magenta gradient */
.expo-menu .dropdown-menu li a.active-link:hover,
.expo-menu .dropdown-menu li a.active:hover {
  color: #ffffff !important;
  background: var(--hdr-dropdown-grad);
}

/* Thin magenta accent on top of every dropdown panel */
.expo-menu .dropdown-menu {
  border-top: 3px solid #ac1c72;
}

/* Mobile Special Zones sub-menu, open state */
@media (max-width: 1250px) {
  ul.dropdown-menu li.has-submenu.sub-open > a {
    background: var(--hdr-dropdown-grad) !important;
  }

  ul.dropdown-menu .sub-dropdown-menu {
    background: #4d0f5c !important;
  }
}

/* Top-strip Concurrent Events panel items */
@media (hover: hover) and (pointer: fine) {
  .topbar-hover-dropdown .dropdown-item:hover,
  #siteSwitchMenu .dropdown-item:hover {
    background: var(--hdr-dropdown-grad) !important;
  }
}

/* Yellow pill with maroon text */
.expo-actions .btn-yellow {
  background: var(--hdr-cta-bg);
  border-color: var(--hdr-cta-bg);
  color: var(--hdr-cta-text);
  box-shadow: 0 6px 16px rgba(60, 0, 40, 0.28);
}

.expo-actions .btn-yellow:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--hdr-cta-text);
}

/* Right-side "Book Your Stall Now !" tab: same colours as the header button */
.side-register-btn,
.side-register-btn:hover {
  color: var(--hdr-cta-text);
  background: var(--hdr-cta-bg);
}

.side-register-btn span {
  color: var(--hdr-cta-text);
}

/* ---- Tablet / phone ---- */
@media (max-width: 1250px) {
  /* Cream runs further right so the logo always sits on a light area */
  .expo-header {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 112' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.75'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='g2' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23f3a6c8' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23ec8fbb' stop-opacity='.45'/%3E%3Cstop offset='1' stop-color='%23f3a6c8' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='g3' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ff5fc8' stop-opacity='.9'/%3E%3Cstop offset='1' stop-color='%23ff5fc8' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='w1' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23ffd1e6' stop-opacity='0'/%3E%3Cstop offset='.25' stop-color='%23ffe6f1' stop-opacity='.9'/%3E%3Cstop offset='.55' stop-color='%23ff7ab8' stop-opacity='.9'/%3E%3Cstop offset='1' stop-color='%23ff3fa6' stop-opacity='.7'/%3E%3C/linearGradient%3E%3Cfilter id='b2'%3E%3CfeGaussianBlur stdDeviation='2'/%3E%3C/filter%3E%3Cfilter id='b6'%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3C/filter%3E%3C/defs%3E%3Cpolygon points='365,0 430,0 520,112 440,112' fill='url(%23g2)'/%3E%3Cpolygon points='420,0 455,0 600,112 560,112' fill='url(%23g1)' opacity='.55'/%3E%3Cpolygon points='300,0 345,0 395,112 360,112' fill='url(%23g1)' opacity='.35'/%3E%3Cpolygon points='520,30 640,40 600,112 500,112' fill='%23e985b4' opacity='.18' filter='url(%23b2)'/%3E%3Cpolygon points='760,0 900,0 820,112 730,112' fill='%23ff8fb8' opacity='.14'/%3E%3Cpolygon points='1180,0 1230,0 1150,112 1110,112' fill='url(%23g3)' opacity='.55'/%3E%3Cpolygon points='1205,0 1218,0 1140,112 1128,112' fill='%23ffd0f0' opacity='.7' filter='url(%23b2)'/%3E%3Cpolygon points='1240,0 1300,0 1250,40 1190,40' fill='%23ff6ad0' opacity='.25'/%3E%3Cline x1='1500' y1='0' x2='1395' y2='90' stroke='%23ff7ad6' stroke-width='2' opacity='.8' filter='url(%23b2)'/%3E%3Cline x1='1500' y1='0' x2='1395' y2='90' stroke='%23ffe0f6' stroke-width='.8'/%3E%3Cpath d='M240,112 C420,60 560,40 700,70 S960,112 1120,104 S1380,70 1600,40' fill='none' stroke='url(%23w1)' stroke-width='6' opacity='.55' filter='url(%23b6)'/%3E%3Cpath d='M240,112 C420,60 560,40 700,70 S960,112 1120,104 S1380,70 1600,40' fill='none' stroke='url(%23w1)' stroke-width='1.6'/%3E%3Cpath d='M300,112 C470,74 600,58 720,82 S980,110 1160,108 S1420,84 1600,64' fill='none' stroke='url(%23w1)' stroke-width='1' opacity='.7'/%3E%3Cpath d='M380,104 C520,80 640,70 760,92 S1000,112 1200,110 S1450,98 1600,84' fill='none' stroke='%23ffd1e8' stroke-width='.8' opacity='.55'/%3E%3Cpath d='M200,90 C360,70 480,30 640,52' fill='none' stroke='%23ffe3f0' stroke-width='1.2' opacity='.7'/%3E%3Cg fill='%23ffd6ec' opacity='.35'%3E%3Ccircle cx='560' cy='96' r='.9'/%3E%3Ccircle cx='580' cy='92' r='.9'/%3E%3Ccircle cx='600' cy='90' r='.9'/%3E%3Ccircle cx='620' cy='92' r='.9'/%3E%3Ccircle cx='640' cy='96' r='.9'/%3E%3Ccircle cx='660' cy='100' r='.9'/%3E%3Ccircle cx='1420' cy='70' r='.9'/%3E%3Ccircle cx='1440' cy='66' r='.9'/%3E%3Ccircle cx='1460' cy='62' r='.9'/%3E%3Ccircle cx='1480' cy='60' r='.9'/%3E%3Ccircle cx='1500' cy='58' r='.9'/%3E%3Ccircle cx='1520' cy='56' r='.9'/%3E%3Ccircle cx='1540' cy='55' r='.9'/%3E%3Ccircle cx='1430' cy='82' r='.9'/%3E%3Ccircle cx='1450' cy='78' r='.9'/%3E%3Ccircle cx='1470' cy='75' r='.9'/%3E%3Ccircle cx='1490' cy='72' r='.9'/%3E%3Ccircle cx='1510' cy='70' r='.9'/%3E%3Ccircle cx='1530' cy='69' r='.9'/%3E%3Ccircle cx='1550' cy='68' r='.9'/%3E%3C/g%3E%3C/svg%3E ") 70% center / 220% 100% no-repeat,
      linear-gradient(90deg,
        var(--hdr-cream) 0%,
        #fdf0f6 30%,
        #f0b6d2 44%,
        #c8478f 54%,
        var(--hdr-magenta) 64%,
        var(--hdr-plum) 100%);
  }

  .mobile-cta {
    background: var(--hdr-cta-bg);
    color: var(--hdr-cta-text);
  }

  .mobile-menu-btn {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
  }

  .expo-menu.menu-open {
    background: linear-gradient(to bottom, var(--hdr-magenta), var(--hdr-plum));
    border-top-color: rgba(255, 255, 255, 0.2);
  }

  .expo-actions.actions-open {
    background: var(--hdr-plum);
  }

  .expo-menu.menu-open .menu-item > a {
    text-shadow: none;
  }
}

/* Top event strip in the same button gradient */
.event-strip {
  background: linear-gradient(to right, #ac1c72, #4d0f5c);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* =========================================================
   MENU: Concurrent Events looks and behaves like Book Your Stall
   (same yellow pill, same bounce, same white hover)
========================================================= */
@media (min-width: 1251px) {
  .expo-menu > .menu-item.menu-item-cta { align-items: center; }

  .expo-menu > .menu-item.menu-item-cta > a,
  .expo-menu > .menu-item.menu-item-cta > a.active-link {
    height: 48px;
    min-width: 220px;
    padding: 0 28px;
    justify-content: center;
    border-radius: 50px;
    border: 2px solid var(--hdr-cta-bg);
    background: var(--hdr-cta-bg);
    color: var(--hdr-cta-text);
    text-shadow: none;
    box-shadow: 0 6px 16px rgba(60, 0, 40, 0.28);
    animation: expoCtaBounce 1.8s ease-in-out infinite;
    transition: all .3s ease;
  }

  .expo-menu > .menu-item.menu-item-cta:hover > a,
  .expo-menu > .menu-item.menu-item-cta > a:hover,
  .expo-menu > .menu-item.menu-item-cta > a:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--hdr-cta-text);
  }
}

/* =========================================================
   RIGHT SIDE TABS: Free Visitor Registration (replaces the old
   Book Your Stall tab) with WhatsApp underneath
========================================================= */
:root { --side-reg-height: 230px; }
@media (max-width: 1000px) { :root { --side-reg-height: 190px; } }
@media (max-width: 650px)  { :root { --side-reg-height: 165px; } }
@media (max-height: 560px) { :root { --side-reg-height: 150px; } }

/* keep the tab exactly as tall as the variable so WhatsApp never overlaps it */
.side-register-btn { min-height: var(--side-reg-height) !important; }