.content-box--image-only h6 {
   padding: 5px 5px 7px 10px;
   margin: 0;
   color: #fff;
   font-weight: 600;
   font-size: 14px;
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   z-index: 3;
   min-height: 30%;
}

.aar {
   position: absolute;
   top: 0;
}

.text-gold {
   background-color: var(--eiev-gold) !important;
}

.text-red {
   background-color: #D1131F !important;
   color: white;
}

.text-grey2 {
   background-color: darkgrey !important;
   color: white;
}

.bg-gold {
   background-color: var(--eiev-gold-light) !important;
}

.bg-red {
   background-color: rgba(139, 0, 0, 0.8) !important;
}

.bg-grey {
   background-color: rgba(169, 169, 169, 0.8) !important;
}

@media (min-width: 992px) {
   .col-lg-2-custom {
      width: 20%;
      flex: 0 0 20%;
      max-width: 20%;
   }
}

.overlay {
   height: 120vh;
   width: 100%;
   /* Tuned down from the old 0.6 flat black, which was there to darken a
      bright looping video for text contrast. The new CSS hero-scene (see
      home.blade.php) already bakes in its own gradient/scrim darkness at
      the bottom where the hero copy sits, so a lighter wash here is enough
      to guarantee contrast without crushing the dune/glow/star detail
      underneath into a flat haze. */
   background: linear-gradient(180deg, rgba(10,8,6,.1) 0%, rgba(10,8,6,.22) 55%, rgba(10,8,6,.5) 100%);
   position: absolute;
   top: 0;
   z-index: 10;
}

/* ══════════════════════════════════════════════════════════════
   HOME PAGE — SECTIONS 2-5 REDESIGN
   Plain white / gold / dark panels, racing-inspired accents.
   Brand palette kept as-is: gold var(--eiev-gold), dark var(--eiev-dark), red #D1131F.
   All rules are scoped under their section id so nothing bleeds
   into other pages that share the same underlying classes.
   ══════════════════════════════════════════════════════════════ */

/* ── Shared button hover — color sweep, echoes racing.zip's gt-theme-btn ──
   A ::before panel slides in from the left on hover instead of a flat
   background swap; the outline pill buttons sweep to gold, the solid
   gold CTAs sweep to dark. */
#home-events .he-viewall,
#home-news .hn-viewall,
#home-about .ha-btn,
#home-app .happ-submit {
  position: relative; overflow: hidden; z-index: 1;
}
#home-events .he-viewall::before,
#home-news .hn-viewall::before,
#home-about .ha-btn::before,
#home-app .happ-submit::before {
  /* negative z-index keeps this behind the button's own (unwrapped) text,
     while position:relative+z-index:1 on the button traps it in-bounds */
  content: ''; position: absolute; inset: 0; z-index: -1;
  transform: translateX(-102%);
  transition: transform .45s cubic-bezier(.65,0,.35,1);
}
#home-events .he-viewall::before,
#home-news .hn-viewall::before { background: var(--eiev-gold); }
#home-about .ha-btn::before,
#home-app .happ-submit::before { background: var(--eiev-dark); }
#home-events .he-viewall:hover::before,
#home-news .hn-viewall:hover::before,
#home-about .ha-btn:hover::before,
#home-app .happ-submit:hover::before { transform: translateX(0); }

/* ── SECTION 2 — Current season events ── */
#home-events {
  background: #fff;
  padding: clamp(3rem, 6vw, 5.5rem) 1.5rem;
  color: var(--eiev-dark);
}
#home-events .he-wrap { max-width: 1200px; margin: 0 auto; }
#home-events .he-head { text-align: center; margin-bottom: 2.75rem; }
#home-events .he-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--eiev-gold);
  margin-bottom: .6rem;
}
#home-events .he-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.25rem); color: var(--eiev-dark);
  margin: 0; text-transform: uppercase; letter-spacing: .02em;
  /* layout.blade.php's Arabic-only `* { text-align: start }` targets this
     h2 directly, which beats the inherited `center` from .he-head no
     matter how specific that ancestor rule is — inheritance only kicks in
     when nothing matches the element itself. Restate center explicitly. */
  text-align: center;
}
#home-events .he-title::after {
  content: ''; display: block; width: 64px; height: 3px;
  background: var(--eiev-gold); margin: .9rem auto 0; border-radius: 2px;
}
#home-events .he-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.35rem;
}
#home-events .he-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: 10px; overflow: hidden; background: #fff;
  border: 1px solid rgba(29,29,27,.09); box-shadow: 0 2px 10px rgba(29,29,27,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
#home-events .he-card:hover {
  transform: translateY(-5px); box-shadow: 0 14px 32px rgba(29,29,27,.14);
  border-color: rgba(var(--eiev-gold-rgb),.35);
}
#home-events .he-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--eiev-dark); }
#home-events .he-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
#home-events .he-card:hover .he-media img { transform: scale(1.08); }
#home-events .he-tag {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  display: inline-flex; align-items: center; font-size: .62rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #fff;
  padding: .3rem .6rem; border-radius: 3px; transform: skewX(-8deg);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
#home-events .he-tag.bg-gold { background: var(--eiev-gold) !important; }
#home-events .he-tag.bg-red { background: #D1131F !important; }
#home-events .he-tag.bg-grey { background: rgba(29,29,27,.65) !important; }
#home-events .he-body { padding: .9rem 1rem 1.1rem; }
#home-events .he-name { font-size: .86rem; font-weight: 700; line-height: 1.35; margin: 0 0 .5rem; min-height: 2.4em; }
#home-events .he-name.text-gold { color: var(--eiev-gold) !important; background: none !important; }
#home-events .he-name.text-red { color: #D1131F !important; background: none !important; }
#home-events .he-name.text-grey2 { color: rgba(29,29,27,.5) !important; background: none !important; }
#home-events .he-date { display: block; font-size: .72rem; color: rgba(29,29,27,.5); font-weight: 600; letter-spacing: .02em; }
#home-events .he-viewall {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: max-content; margin: 2.75rem auto 0; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--eiev-gold); background: #fff;
  border: 1.5px solid var(--eiev-gold); padding: .7rem 1.6rem; border-radius: 30px;
  text-decoration: none; transition: color .35s ease;
}
#home-events .he-viewall:hover { color: #fff; }
.he-arrow { transition: transform .25s ease; display: inline-block; }
#home-events .he-viewall:hover .he-arrow,
#home-news .hn-viewall:hover .he-arrow { transform: translateX(4px); }
#home-events .syc-empty { background: #FAF8F5; border-radius: 10px; }

/* ── SECTION 3 — About EIEV ──
   .promo-about (style.css) forces this to fill a full viewport via
   min-height:100vh (.full-height, dropped from this element's class list)
   plus a line-height:calc(100vh - 6rem) vertical-centering trick — both
   neutralized below so the section sizes to its own content instead, and
   the padding formula matches the other content sections (races/news) for
   a consistent rhythm between sections instead of one being viewport-tall. */
#home-about {
  background: url('../newasset/bg/5.jpg') center/cover no-repeat var(--eiev-dark);
  background-attachment: fixed;
  padding: clamp(3rem, 6vw, 5.5rem) 1.5rem;
  min-height: 0;
  line-height: normal;
  position: relative;
}
@media (max-width: 900px), (pointer: coarse) {
  /* Fixed backgrounds are unreliable/janky on touch devices (esp. iOS) — scroll normally there */
  #home-about { background-attachment: scroll; }
}
#home-about::before {
  content: ''; position: absolute; inset: 0; background: rgba(29,29,27,.82);
}
#home-about .ha-wrap {
  max-width: 960px; margin: 0 auto; display: flex; flex-direction: column;
  align-items: center; text-align: center; position: relative; z-index: 1;
}
#home-about .ha-logo { width: auto; height: auto; margin: 0 0 2rem; }
#home-about .ha-logo .logo { position: static; transform: none; margin-top: 0; }
#home-about .ha-logo .logo img { width: 150px; height: auto; margin: 0 auto; display: block; filter: brightness(0) invert(1); }
#home-about .ha-card {
  width: 100%; background: rgba(255,255,255,.03); border: 1px solid rgba(var(--eiev-gold-rgb),.3);
  border-top: 3px solid var(--eiev-gold); border-radius: 6px; padding: clamp(1.75rem, 4vw, 3rem);
}
#home-about .ha-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--eiev-gold); margin-bottom: .75rem;
}
#home-about .ha-title { color: #fff !important; font-size: clamp(1.5rem, 3vw, 2rem) !important; font-weight: 700; margin: 0 0 1.2rem; }
#home-about .ha-descr { color: rgba(255,255,255,.72) !important; font-size: 1.05rem !important; line-height: 1.75 !important; margin-top: 0 !important; }
#home-about .ha-btn {
  display: inline-flex !important; align-items: center; gap: .5rem; margin-top: 1.75rem !important;
  background: var(--eiev-gold) !important; border: none !important; color: #fff !important;
  padding: .85rem 2rem !important; border-radius: 30px !important; font-weight: 600;
  letter-spacing: .03em; transition: transform .3s ease;
}
#home-about .ha-btn:hover { transform: translateY(-2px); }
#home-about .ha-btn i { transition: transform .3s ease; }
#home-about .ha-btn:hover i { transform: translateX(4px); }

/* ── SECTION 4 — Latest news / blog ── */
#home-news { background: #FAF8F5; padding: clamp(3rem, 6vw, 5.5rem) 1.5rem; }
#home-news .hn-wrap { max-width: 1200px; margin: 0 auto; }
#home-news .hn-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 1.1rem; border-bottom: 2px solid rgba(29,29,27,.08);
}
#home-news .hn-eyebrow {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--eiev-gold); margin-bottom: .5rem;
}
#home-news .hn-title {
  font-family: var(--font-display) !important; font-weight: 700 !important;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem) !important; color: var(--eiev-dark) !important;
  line-height: 1.2 !important; margin: 0; text-transform: uppercase;
}
#home-news .hn-viewall {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--eiev-gold); background: #fff;
  border: 1.5px solid var(--eiev-gold); padding: .6rem 1.35rem; border-radius: 30px;
  text-decoration: none; white-space: nowrap; transition: color .35s ease;
}
#home-news .hn-viewall:hover { color: #fff; }
#home-news .hn-slider { width: 100%; margin: 0; }
#home-news .hn-card {
  display: block !important; text-decoration: none; color: inherit; background: #fff;
  border-radius: 10px; overflow: hidden; border: 1px solid rgba(29,29,27,.08);
  box-shadow: 0 2px 10px rgba(29,29,27,.05); margin: 0 .6rem;
  transition: transform .25s, box-shadow .25s; height: auto;
}
#home-news .hn-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(29,29,27,.14); }
#home-news .hn-media { aspect-ratio: 16/10; overflow: hidden; }
#home-news .hn-media .imagenews { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
#home-news .hn-card:hover .hn-media .imagenews { transform: scale(1.07); }
#home-news .hn-body { padding: 1rem 1.1rem 1.2rem; }
#home-news .hn-date { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--eiev-gold); margin: 0 0 .45rem; }
#home-news .newstitle {
  font-family: var(--font-display); font-weight: 600; font-size: .98rem !important;
  line-height: 1.35 !important; color: var(--eiev-dark) !important; margin: 0 0 .5rem;
  height: auto !important; width: auto !important; min-height: 0; text-align: left !important;
}
#home-news .newstext {
  font-family: inherit !important; font-weight: 400 !important; font-size: .82rem !important;
  line-height: 1.55 !important; color: rgba(29,29,27,.6) !important; text-transform: none !important;
  text-align: left !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
#home-news .slick-dots { bottom: -2rem; }
#home-news .slick-prev, #home-news .slick-next { z-index: 2; }
#home-news .slick-prev:before, #home-news .slick-next:before { color: var(--eiev-gold); }

/* ── SECTION 5 — App promo ── */
#home-app { background: var(--eiev-dark); position: relative; overflow: hidden; }
#home-app .car-image-with-pins {
  min-height: auto; padding: clamp(3rem, 6vw, 5.5rem) 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 4 L52 28 L28 52 L4 28 Z' fill='none' stroke='rgba(153%2C111%2C50%2C.14)' stroke-width='.9'/%3E%3C/svg%3E");
  background-size: 56px 56px;
}
#home-app .happ-wrap { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
#home-app .happ-header { text-align: center; margin-bottom: 2.75rem; }
#home-app .happ-eyebrow {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--eiev-gold); margin-bottom: .6rem;
}
#home-app .happ-title {
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: uppercase; margin: 0;
}
#home-app .happ-title::after {
  content: ''; display: block; width: 64px; height: 3px; background: var(--eiev-gold);
  margin: .9rem auto 0; border-radius: 2px;
}
/* Card sits on the right; the hand is pulled out of this row and anchored to
   the section (see .happ-phone) so it can be larger and flush with the
   section's bottom line, independent of the card's height. */
#home-app .happ-row { display: flex; align-items: flex-end; gap: 2.5rem; flex-wrap: wrap; justify-content: flex-end; }
/* Hand pulled out of .happ-row — absolutely anchored to the section's bottom
   edge (bottom:0) so it reads as grounded, and sized bigger than before. */
#home-app .happ-phone { position: absolute; left: clamp(3rem, 10vw, 11rem); bottom: 0; width: min(46%, 560px); z-index: 3; margin: 0; }
#home-app .happ-phone .handphone { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
#home-app .happ-card {
  flex: 0 1 560px; max-width: 560px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(var(--eiev-gold-rgb),.3); border-top: 3px solid var(--eiev-gold);
  border-radius: 8px; padding: clamp(1.75rem, 4vw, 2.5rem);
}
#home-app .happ-app-title { color: var(--eiev-gold); font-size: 1.5rem; font-weight: 700; margin: 0 0 .75rem; }
#home-app .happ-blurb { color: rgba(255,255,255,.78); font-size: .98rem; line-height: 1.7; margin: 0 0 .9rem; }
#home-app .happ-blurb--lg { font-size: 1.05rem; color: #fff; font-weight: 500; }
#home-app .happ-stores { display: flex; gap: 1rem; margin: 1.4rem 0; flex-wrap: wrap; }
#home-app .happ-stores img { height: 44px; width: auto; }
#home-app .happ-rule { display: block; height: 1px; background: rgba(255,255,255,.12); margin: 1.5rem 0; }
#home-app .happ-update-label { color: var(--eiev-gold); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin: 0 0 .9rem; }
#home-app .happ-form-row { display: flex; gap: .6rem; flex-wrap: wrap; }
#home-app .happ-input {
  flex: 1 1 200px; border-radius: 30px !important; border: 1px solid rgba(255,255,255,.2) !important;
  background: rgba(255,255,255,.06) !important; color: #fff !important; padding: .75rem 1.1rem !important;
  font-size: .9rem !important; height: auto !important;
}
#home-app .happ-input::placeholder { color: rgba(255,255,255,.45); }
#home-app .happ-input:focus { outline: none; border-color: var(--eiev-gold) !important; box-shadow: 0 0 0 3px rgba(var(--eiev-gold-rgb),.25); }
#home-app .happ-submit { flex: 0 0 auto; border-radius: 30px !important; padding: .75rem 1.6rem !important; font-weight: 700; transition: transform .3s ease; }
#home-app .happ-submit:hover { background: var(--eiev-gold) !important; color: #fff !important; border-color: var(--eiev-gold) !important; transform: translateY(-2px); }
#home-app .happ-fineprint { color: rgba(255,255,255,.4); font-size: .72rem; margin-top: 1rem; }
#home-app .happ-alert { padding: .6rem .9rem; border-radius: 8px; margin-bottom: .75rem; font-size: .82rem; }
#home-app .happ-alert--ok { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
#home-app .happ-alert--err { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
@media (max-width: 820px) {
  /* Stack the section as: title → hand → app card. .happ-wrap is dissolved
     (display:contents) so its header and row become flex items of the section
     and the hand can be ordered between them. */
  /* .handphonesection raises specificity above the later min-height:0/display:block
     responsive rule so the flex ordering below actually takes effect. */
  #home-app .car-image-with-pins.handphonesection { display: flex; flex-direction: column; }
  #home-app .happ-wrap { display: contents; }
  #home-app .happ-header { order: 0; }
  #home-app .happ-row { order: 2; flex-direction: column; align-items: center; }
  /* flex:0 1 560px sets flex-BASIS, which becomes HEIGHT once the row is a
     column — that's what left a tall empty gap inside the card. Reset it. */
  #home-app .happ-card { flex: 0 0 auto; width: 100%; max-width: 100%; }
  /* Hand pulled into normal flow, shown as the app's hero image above the card. */
  #home-app .happ-phone {
    order: 1; position: static; left: auto; bottom: auto;
    width: 230px; max-width: 62%; margin: 0 auto 1.6rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   PUBLICATIONS DESIGN SYSTEM — shared home components
   Ported from the "Our Publications" page (publications.blade.php)
   so the home page reads as the same family: brighter gold accent,
   dune-wave dividers between dark/light sections, scroll-reveal
   fade-ups, a gold ticker, and icon-box section separators.
   Gold palette: --g var(--eiev-gold)  --gl var(--eiev-gold-light)  --gd #a87724
   All classes are hp- prefixed to avoid clashing with the pb-
   classes defined inline on the publications page itself.
   ══════════════════════════════════════════════════════════════ */

/* ── Scroll reveal ── */
.hp-reveal{opacity:0;transform:translateY(28px);transition:opacity .7s cubic-bezier(.22,1,.36,1),transform .7s cubic-bezier(.22,1,.36,1)}
.hp-reveal.visible{opacity:1;transform:none}
.hp-reveal-left{opacity:0;transform:translateX(-32px);transition:opacity .7s cubic-bezier(.22,1,.36,1),transform .7s cubic-bezier(.22,1,.36,1)}
.hp-reveal-left.visible{opacity:1;transform:none}
.hp-reveal-right{opacity:0;transform:translateX(32px);transition:opacity .7s cubic-bezier(.22,1,.36,1),transform .7s cubic-bezier(.22,1,.36,1)}
.hp-reveal-right.visible{opacity:1;transform:none}
.hp-d1{transition-delay:.1s}.hp-d2{transition-delay:.2s}.hp-d3{transition-delay:.3s}.hp-d4{transition-delay:.4s}.hp-d5{transition-delay:.5s}

/* ── Icon-box section separator (adds a mark + fading gold line to
   the existing centred he-head / happ-header blocks) ── */
.hp-sep-icon{
  width:44px;height:44px;margin:0 auto .9rem;
  background:rgba(var(--eiev-gold-rgb),.1);border:1px solid rgba(var(--eiev-gold-rgb),.28);
  border-radius:6px;display:flex;align-items:center;justify-content:center;
}
.hp-sep-icon svg{width:20px;height:20px;stroke:var(--eiev-gold);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hp-sep-icon--light{background:rgba(255,255,255,.05);border-color:rgba(var(--eiev-gold-rgb),.4)}

/* ══════════════════════════════════════════════════════════════
   CONSISTENT SECTION RHYTHM
   The page felt cramped, so every major section now shares the same
   generous vertical padding AND the same min-height, with its inner
   content vertically centred. Sections whose content is shorter pad
   out to the shared floor; taller ones grow past it — giving a
   uniform, spacious, full-screen-ish cadence down the page.
   ══════════════════════════════════════════════════════════════ */
#home-races,
#home-about,
#home-news,
#home-app .car-image-with-pins {
  min-height: 92vh;
  padding-top: clamp(4.5rem, 7vw, 7.5rem) !important;
  padding-bottom: clamp(4.5rem, 7vw, 7.5rem) !important;
  display: flex;
  align-items: center;
}
/* let the inner wrapper own the full width so margin:auto still centres it */
#home-races > .he-wrap,
#home-news > .hn-wrap,
#home-app .happ-wrap { width: 100%; }
#home-about > .section.about { width: 100%; }
/* the section heads carried tight bottom margins that read as squeezed */
#home-races .he-head,
#home-news .hn-head,
#home-app .happ-header { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
/* a touch more air between the section eyebrow and its icon separator */
.hp-sep-icon { margin-bottom: 1.1rem; }

@media (max-width: 820px) {
  /* on phones a hard 92vh floor leaves big empty gaps — let content
     size itself, keeping only the generous padding for breathing room */
  #home-races,
  #home-about,
  #home-news,
  #home-app .car-image-with-pins { min-height: 0; display: block; }
}
