/* Home page "Events" section (static/home_events.js). Colours follow the website theme. */
.hev { position: relative; overflow: hidden; isolation: isolate; padding: 4.5rem 0; color: #fff; background: #070f22; }
.hev::before { content: ""; position: absolute; inset: -30%; z-index: -2; filter: blur(14px); animation: hevDrift 24s ease-in-out infinite alternate; background:
  radial-gradient(38% 46% at 10% 18%, color-mix(in srgb, var(--site-primary, #0e2d6d) 75%, transparent), transparent 70%),
  radial-gradient(34% 40% at 92% 12%, color-mix(in srgb, var(--site-secondary, #008c6a) 55%, transparent), transparent 70%),
  radial-gradient(40% 46% at 70% 100%, rgba(239, 68, 68, .28), transparent 70%); }
.hev::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
@keyframes hevDrift { to { transform: translate3d(4%, -3%, 0) rotate(7deg); } }
.hev[hidden] { display: none !important; }

.hev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.8rem; }
.hev-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .85rem; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fde68a; margin-bottom: .7rem; }
.hev-title { font-family: var(--site-heading-font, inherit); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -.02em; margin: 0 0 .4rem; color: #fff; }
.hev-sub { color: rgba(255,255,255,.75); margin: 0; max-width: 620px; }
.hev-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.hev-tabs { display: flex; gap: .25rem; padding: .25rem; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.hev-tabs::-webkit-scrollbar { display: none; }
.hev-tab { border: 0; background: none; color: rgba(255,255,255,.75); font-weight: 700; font-size: .86rem; padding: .5rem .9rem; border-radius: 11px; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.hev-tab .n { font-size: .7rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(255,255,255,.14); }
.hev-tab.active { background: #fff; color: #0f172a; }
.hev-tab.active .n { background: #eef2f7; }
.hev-tab .dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: hevPulse 1.6s infinite; }
@keyframes hevPulse { 70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.hev-all { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 800; font-size: .86rem; text-decoration: none; background: #fff; color: #0f172a !important; transition: transform .2s, box-shadow .2s; }
.hev-all:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.35); }

.hev-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.2rem; align-items: stretch; min-height: 380px; }
.hev-spot { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 400px; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff !important; background: var(--site-gradient-navbar, #0e2d6d); box-shadow: 0 30px 70px rgba(0,0,0,.45); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.hev-spot:hover { transform: translateY(-4px); }
.hev-spot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.hev-spot:hover img { transform: scale(1.05); }
.hev-spot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,.05) 25%, rgba(2,6,23,.92) 100%); }
.hev-spot .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; color: rgba(255,255,255,.18); }
.hev-spot-in { position: relative; z-index: 1; padding: 1.6rem; }
.hev-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.hev-badge { font-size: .7rem; font-weight: 800; letter-spacing: .05em; padding: .28rem .65rem; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.hev-badge.live { background: #ef4444; }
.hev-badge.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: .35rem; animation: hevBlink 1.2s infinite; }
.hev-badge.feat { background: #fbbf24; color: #111; }
@keyframes hevBlink { 50% { opacity: .25; } }
.hev-spot h3 { font-family: var(--site-heading-font, inherit); font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.15; margin: 0 0 .4rem; text-wrap: balance; }
.hev-spot p { margin: 0 0 .8rem; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hev-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .84rem; color: rgba(255,255,255,.88); font-weight: 600; }
.hev-meta i { color: #fbbf24; margin-right: .3rem; }
.hev-count { display: flex; gap: .45rem; margin-top: 1rem; }
.hev-count div { min-width: 58px; text-align: center; padding: .45rem .4rem; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.hev-count b { display: block; font-family: var(--site-heading-font, inherit); font-size: 1.3rem; line-height: 1; }
.hev-count span { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.7); font-weight: 700; }
.hev-cta { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 800; font-size: .88rem; background: #fff; color: #0f172a; }
.hev-cta.live { background: #ef4444; color: #fff; }

.hev-list { display: flex; flex-direction: column; gap: .75rem; }
.hev-item { display: flex; gap: .9rem; align-items: center; padding: .8rem; border-radius: 16px; text-decoration: none; color: #fff !important; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background .2s, transform .2s, border-color .2s; }
.hev-item:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); transform: translateX(4px); }
.hev-date { flex: 0 0 60px; height: 64px; border-radius: 14px; background: #fff; color: #0f172a; text-align: center; display: flex; flex-direction: column; justify-content: center; line-height: 1.05; }
.hev-date b { font-size: 1.35rem; }
.hev-date small { font-size: .62rem; font-weight: 800; text-transform: uppercase; color: #ef4444; letter-spacing: .05em; }
.hev-date.live { background: #ef4444; color: #fff; }
.hev-date.live small { color: #fff; }
.hev-thumb { flex: 0 0 92px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--site-gradient-navbar, #0e2d6d); }
.hev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hev-item-t { font-weight: 800; font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hev-item-s { font-size: .76rem; color: rgba(255,255,255,.7); margin-top: .15rem; }
.hev-more { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .85rem; border-radius: 16px; font-weight: 800; text-decoration: none; color: #fff !important; border: 1.5px dashed rgba(255,255,255,.3); transition: background .2s, border-color .2s; }
.hev-more:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); }
.hev-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; border-radius: 22px; border: 1.5px dashed rgba(255,255,255,.25); color: rgba(255,255,255,.75); }
.hev-empty i { font-size: 2.4rem; display: block; margin-bottom: .5rem; color: #fde68a; }
.hev-sk { border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06)); background-size: 200% 100%; animation: hevShine 1.3s linear infinite; }
@keyframes hevShine { to { background-position: -200% 0; } }
.hev-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.hev-reveal.in { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .hev { padding: 3.2rem 0; }
  .hev-body { grid-template-columns: minmax(0, 1fr); }
  .hev-spot { min-height: 340px; }
  /* Phones/tablets: the list becomes a swipeable row of cards */
  .hev-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: .75rem; padding-bottom: .4rem; scrollbar-width: none; margin: 0 calc(-1 * var(--bs-gutter-x, .75rem)); padding-left: var(--bs-gutter-x, .75rem); padding-right: var(--bs-gutter-x, .75rem); }
  .hev-list::-webkit-scrollbar { display: none; }
  .hev-item { flex: 0 0 min(300px, 82vw); scroll-snap-align: start; }
  .hev-item:hover { transform: none; }
  .hev-more { flex: 0 0 160px; scroll-snap-align: start; margin-top: 0; flex-direction: column; text-align: center; }
}
@media (max-width: 575.98px) {
  .hev-head { flex-direction: column; align-items: stretch; }
  .hev-tools { justify-content: space-between; }
  .hev-spot { min-height: 300px; border-radius: 18px; }
  .hev-spot-in { padding: 1.15rem; }
  .hev-count div { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .hev::before, .hev-sk, .hev-tab .dot { animation: none !important; } .hev-reveal { opacity: 1; transform: none; transition: none; } }
