/*
 * Meibel Events Hero - original visual baseline.
 * The hero selectors and responsive behavior are preserved from the supplied code.
 */
body.meibel-events-hero-active {
  overflow-x: hidden;
}

body.meibel-events-hero-active.meibel-events-transparent-header .elementor-location-header {
  position: absolute !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99990;
}
body.admin-bar.meibel-events-hero-active.meibel-events-transparent-header .elementor-location-header { top: 32px !important; }
body.meibel-events-hero-active.meibel-events-transparent-header .elementor-location-header .site-header {
  position: relative !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
body.meibel-events-hero-active.meibel-events-transparent-header .elementor-location-header .site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3,7,18,.48) 0%, rgba(3,7,18,.22) 58%, rgba(3,7,18,0) 100%);
}
body.meibel-events-hero-active.meibel-events-transparent-header .elementor-location-header .site-header > .brand { position: relative; z-index: 103; }
body.meibel-events-hero-active.meibel-events-transparent-header .elementor-location-header .site-header > .btn-cta { position: relative; z-index: 1; }
body.meibel-events-hero-active.meibel-events-transparent-header .elementor-location-header .site-header > .menu-toggle { position: relative; z-index: 104; }

.home-v2,
.home-v2 * { box-sizing: border-box; }

.home-v2 {
  --hv2-blue: #2765f3;
  --hv2-navy: #050817;
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-top: -30px;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--hv2-navy);
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  font-family: 'Miranda Sans', 'Inter', Arial, sans-serif;
  isolation: isolate;
  transition: background-image .55s ease;
}

.home-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3,7,18,.78) 0%, rgba(3,7,18,.16) 24%, rgba(3,7,18,0) 48%, rgba(3,7,18,.18) 70%, rgba(3,7,18,.88) 100%);
}

.home-v2-data { display: none !important; }
.home-v2-carousel { position: absolute; inset: 0; z-index: 2; }

.home-v2-card {
  position: absolute;
  left: 50%;
  bottom: 17%;
  width: min(44vw, 760px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 14px #fff, 0 20px 45px rgba(4,10,24,.34);
  transform: translateX(-50%) scale(.42);
  filter: blur(4px);
  opacity: .45;
  transition: left .62s cubic-bezier(.4,0,.2,1), transform .62s cubic-bezier(.4,0,.2,1), filter .62s ease, opacity .62s ease;
  will-change: transform, left;
}

.home-v2-card img,
.home-v2-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.home-v2-card video { z-index: 1; opacity: 0; transition: opacity .24s ease; }
.home-v2-card.is-playing video { opacity: 1; }

.home-v2-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2,6,16,.58), transparent 42%);
  z-index: 2;
  pointer-events: none;
}

.home-v2-preview {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(5,8,23,.78);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .22s ease, transform .22s ease, background .22s ease;
  cursor: pointer;
  pointer-events: none;
}
.home-v2-card.is-center .home-v2-preview { opacity: 1; transform: translateY(0); pointer-events: auto; }
.home-v2-card.is-playing .home-v2-preview { background: rgba(39,101,243,.9); }
.home-v2-preview svg { width: 16px; height: 16px; fill: #fff; stroke: none; }

.home-v2-fullscreen {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 10px;
  background: rgba(5,8,23,.78);
  color: #fff;
  opacity: 0;
  transform: translateY(7px);
  cursor: pointer;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, background .22s ease;
}
.home-v2-card.is-center .home-v2-fullscreen { opacity: 1; transform: translateY(0); pointer-events: auto; }
.home-v2-fullscreen:hover { background: var(--hv2-blue); }
.home-v2-fullscreen svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.home-v2-card.is-center { left: 51%; z-index: 20; transform: translateX(-50%) scale(1); filter: none; opacity: 1; }
.home-v2-card.is-left { left: 27%; z-index: 10; transform: translateX(-50%) scale(.48); filter: blur(2px); opacity: .78; }
.home-v2-card.is-right { left: 75%; z-index: 10; transform: translateX(-50%) scale(.48); filter: blur(2px); opacity: .78; }
.home-v2-card.is-back { left: 51%; z-index: 5; transform: translateX(-50%) scale(.35); filter: blur(5px); opacity: .4; }

.home-v2-info {
  position: absolute;
  left: clamp(22px, 3vw, 54px);
  bottom: clamp(26px, 5vw, 68px);
  z-index: 30;
  width: min(390px, 34vw);
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(3,9,23,.58);
  box-shadow: 0 20px 45px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
}
.home-v2-lower { display: contents; }

.home-v2-title {
  margin: 0 0 12px;
  color: #fff;
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(25px, 2.6vw, 42px);
  font-weight: 750;
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.home-v2-description { margin: 0 0 12px; color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.58; }
.home-v2-attendance { margin: 0 0 19px; color: #fff; font-family: 'Inter Tight', sans-serif; font-size: clamp(16px,1.35vw,21px); font-weight: 750; line-height: 1.15; letter-spacing: .01em; text-transform: uppercase; }
.home-v2-attendance:empty { display: none; }
.home-v2-attendance-value { color: var(--hv2-blue); }
.home-v2-attendance-label { color: #fff; }
.home-v2-controls { display: flex; gap: 10px; }

.home-v2-arrow {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.home-v2-arrow:hover { border-color: var(--hv2-blue); background: var(--hv2-blue); transform: translateY(-2px); }
.home-v2-arrow svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.home-v2-discover {
  position: absolute;
  right: clamp(24px, 3.5vw, 68px);
  bottom: clamp(40px, 6vw, 82px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(28px, 3.7vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-v2-discover span { position: relative; }
.home-v2-discover span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 3px; background: var(--hv2-blue); transform: scaleX(.24); transform-origin: left; transition: transform .25s ease; }
.home-v2-discover:hover { color: #fff; }
.home-v2-discover:hover span::after { transform: scaleX(1); }
.home-v2-discover svg { width: clamp(28px, 3vw, 44px); height: clamp(28px, 3vw, 44px); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.home-v2-discover:hover svg { transform: translateX(6px); }

.home-v2-dots { position: absolute; top: 26px; right: clamp(22px,3vw,54px); z-index: 30; display: flex; gap: 8px; }
.home-v2-dot { width: 26px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; transition: width .25s ease, background .25s ease; }
.home-v2-dot.is-active { width: 48px; background: var(--hv2-blue); }

.meibel-events-hero-empty {
  padding: 20px;
  border: 1px dashed #c8ccd5;
  background: #f8f9fb;
  color: #2c3440;
}

@media (max-width: 900px) {
  .home-v2 { height: 100vh; min-height: 100vh; }
  .home-v2-card { bottom: 36%; width: min(76vw, 620px); }
  .home-v2-card.is-center { left: 50%; }
  .home-v2-card.is-left { left: 5%; transform: translateX(-50%) scale(.42); }
  .home-v2-card.is-right { left: 95%; transform: translateX(-50%) scale(.42); }
  .home-v2-card.is-back { left: 50%; }
  .home-v2-info { left: 18px; right: 18px; bottom: 18px; width: auto; padding: 17px 18px; }
  .home-v2-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .home-v2-discover { right: 20px; bottom: 220px; font-size: clamp(23px, 7vw, 38px); }
}

@media (max-width: 782px) {
  body.admin-bar.meibel-events-hero-active.meibel-events-transparent-header .elementor-location-header { top: 46px !important; }
  .home-v2::before {
    background: linear-gradient(180deg, rgba(3,7,18,.92) 0%, rgba(3,7,18,.34) 30%, rgba(3,7,18,.08) 48%, rgba(3,7,18,.42) 68%, rgba(3,7,18,.97) 100%);
  }
  .home-v2-card { top: 18%; bottom: auto; width: min(86vw, 620px); }
  .home-v2-lower { position: absolute; top: calc(18% + 54vw); left: 18px; right: 18px; z-index: 30; display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .home-v2-info { position: relative; inset: auto; width: 100%; }
  .home-v2-discover { position: relative; inset: auto; align-self: center; justify-content: center; font-size: clamp(24px, 8vw, 38px); }
  .home-v2-dots { display: none; }
  .home-v2-preview {
    left: 12px;
    bottom: 11px;
    min-width: 174px;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1px solid #3976ff;
    border-radius: 2px;
    background: linear-gradient(180deg, #2868f2 0%, #1753df 100%);
    box-shadow: 0 9px 24px rgba(6,43,150,.38);
    font-size: 13px;
    text-transform: uppercase;
  }
  .home-v2-card.is-playing .home-v2-preview { background: linear-gradient(180deg, #2868f2 0%, #1753df 100%); }
  .home-v2-preview svg { display: none; }
  .home-v2-preview::after { content: '\2192'; font-size: 19px; line-height: .7; }
  .home-v2-fullscreen { display: none; }
}

@media (max-width: 560px) {
  .home-v2-card { top: 18%; bottom: auto; width: min(84vw, 440px); border-radius: 8px; }
  .home-v2-card.is-left { left: -2%; }
  .home-v2-card.is-right { left: 102%; }
  .home-v2-lower { top: calc(18% + 54vw); left: 14px; right: 14px; gap: 18px; }
  .home-v2-info { position: relative; inset: auto; padding: 14px 15px; }
  .home-v2-title { font-size: 24px; }
  .home-v2-description { font-size: 12px; margin-bottom: 13px; }
  .home-v2-arrow { width: 42px; height: 42px; }
  .home-v2-discover { position: relative; inset: auto; justify-content: center; }
  .home-v2-dots { display: none; }
  .home-v2-preview { min-width: 160px; padding: 12px 15px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-v2, .home-v2-card, .home-v2-arrow, .home-v2-discover svg { transition: none !important; }
}
