/* SKUBIQ Events & Webinars — public pages. Scoped under .ev-page. Red #EB0B1F, black #0A0A0A, white. */
.ev-page {
  --ev-red: #EB0B1F; --ev-red-dark: #C70A1A; --ev-ink: #0A0A0A; --ev-text: #3d3d3d; --ev-muted: #707070;
  --ev-line: #e7e5e1; --ev-paper: #f7f6f3; --ev-radius: 14px;
  font-family: 'Poppins', 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif; color: var(--ev-ink);
}
.ev-page * { box-sizing: border-box; }
.ev-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Hero (light, to match the light header the shared layout paints first) */
.ev-hero { background: radial-gradient(900px 420px at 100% 0%, rgba(235,11,31,.08), transparent 70%), #fff; padding: 36px 0 56px; border-bottom: 1px solid var(--ev-line); }
.ev-hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.ev-hero__grid--solo { grid-template-columns: 1fr; }
@media (max-width: 860px) { .ev-hero__grid { grid-template-columns: 1fr; } }
.ev-hero__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 50px rgba(0,0,0,.14); border-bottom: 5px solid var(--ev-red); }
.ev-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 2px; font-weight: 600; color: var(--ev-red); }
.ev-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--ev-red); }
.ev-hero h1 { font-family: 'Oswald', 'Poppins', sans-serif; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; font-weight: 600; margin: 16px 0; max-width: 18ch; }
.ev-hero h1 em { font-style: normal; color: var(--ev-red); }
.ev-hero p { color: var(--ev-text); font-size: 1.05rem; line-height: 1.7; max-width: 62ch; margin: 0 0 26px; }

/* Buttons */
.ev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px; border: 2px solid var(--ev-red);
  background: var(--ev-red); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s; }
.ev-btn:hover { background: var(--ev-red-dark); border-color: var(--ev-red-dark); color: #fff; transform: translateY(-1px); }
.ev-btn--ghost { background: transparent; color: var(--ev-ink); border-color: var(--ev-ink); }
.ev-btn--ghost:hover { background: var(--ev-ink); border-color: var(--ev-ink); color: #fff; }
.ev-btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.ev-btn--light:hover { background: #fff; color: var(--ev-ink); border-color: #fff; }
.ev-btn[aria-disabled="true"], .ev-btn:disabled { background: #d9d9d9; border-color: #d9d9d9; color: #777; cursor: not-allowed; transform: none; pointer-events: none; }
.ev-btn--block { width: 100%; }

/* Filters */
.ev-filters { background: #fff; border-bottom: 1px solid var(--ev-line); position: sticky; top: 79px; z-index: 5; }
.ev-filters__row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 14px 0; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chip { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--ev-line); background: #fff; color: var(--ev-text); font-size: .85rem; font-weight: 500; text-decoration: none; transition: all .15s; }
.ev-chip:hover { border-color: var(--ev-red); color: var(--ev-red); }
.ev-chip.is-active { background: var(--ev-ink); border-color: var(--ev-ink); color: #fff; }
.ev-search { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.ev-search input, .ev-search select, .ev-input { border: 1px solid #ccc; border-radius: 8px; padding: 9px 12px; font: inherit; font-size: .9rem; background: #fff; }
.ev-search input:focus, .ev-search select:focus, .ev-input:focus { outline: none; border-color: var(--ev-red); box-shadow: 0 0 0 3px rgba(235,11,31,.12); }

/* Sections and cards */
.ev-section { padding: 52px 0 8px; }
.ev-section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.ev-section__head h2 { font-family: 'Oswald', 'Poppins', sans-serif; font-size: 1.7rem; font-weight: 600; margin: 0; }
.ev-section__head h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--ev-red); margin-top: 8px; }
.ev-count { color: var(--ev-muted); font-size: .9rem; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.ev-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ev-line); border-radius: var(--ev-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.ev-card:hover { box-shadow: 0 14px 36px rgba(0,0,0,.1); transform: translateY(-3px); }
.ev-card__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #111 0%, #2a2a2a 60%, #4a0a10 100%); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); font-size: 2.6rem; overflow: hidden; }
.ev-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-play { position: absolute; width: 58px; height: 58px; border-radius: 50%; background: rgba(235,11,31,.92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.ev-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.ev-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .3px; background: #fff; color: var(--ev-ink); }
.ev-badge--red { background: var(--ev-red); color: #fff; }
.ev-badge--dark { background: var(--ev-ink); color: #fff; }
.ev-badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ev-pulse 1.2s infinite; }
@keyframes ev-pulse { 50% { opacity: .25; } }
.ev-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ev-card__cat { font-size: .75rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ev-red); font-weight: 600; }
.ev-card h3 { font-size: 1.12rem; line-height: 1.35; margin: 0; font-weight: 600; }
.ev-card h3 a { color: inherit; text-decoration: none; }
.ev-card h3 a:hover { color: var(--ev-red); }
.ev-card p { margin: 0; color: var(--ev-text); font-size: .92rem; line-height: 1.6; }
.ev-meta { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; color: var(--ev-muted); }
.ev-meta i { color: var(--ev-red); margin-right: 6px; }
.ev-takeaways { margin: 0; padding-left: 18px; font-size: .86rem; color: var(--ev-text); }
.ev-card__foot { margin-top: auto; padding-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.ev-empty { padding: 64px 20px; text-align: center; color: var(--ev-muted); border: 1px dashed #cfcfcf; border-radius: var(--ev-radius); margin: 40px 0; }
.ev-bottom { height: 64px; }

/* Featured */
.ev-featured { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--ev-ink); color: #fff; border-radius: 18px; overflow: hidden; margin-top: 40px; }
.ev-featured__media { position: relative; min-height: 260px; background: linear-gradient(135deg, #111, #4a0a10); }
.ev-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-featured__body { padding: 34px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.ev-featured__body h2 { font-family: 'Oswald', sans-serif; font-size: 1.9rem; margin: 0; }
.ev-featured__body p { color: #cfcfcf; margin: 0; line-height: 1.6; }
@media (max-width: 800px) { .ev-featured { grid-template-columns: 1fr; } }

/* Detail */
.ev-detail-hero { background: radial-gradient(900px 420px at 100% 0%, rgba(235,11,31,.08), transparent 70%), #fff; padding: 28px 0 36px; border-bottom: 1px solid var(--ev-line); }
.ev-detail-hero__img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: 18px; margin-top: 22px; border-bottom: 5px solid var(--ev-red); }
.ev-detail-hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; margin: 14px 0; max-width: 26ch; line-height: 1.15; }
.ev-pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-detail-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--ev-text); font-size: .95rem; margin: 6px 0 22px; }
.ev-detail-meta i { color: var(--ev-red); margin-right: 7px; }
.ev-back { color: var(--ev-red); text-decoration: none; font-size: .9rem; }
.ev-back:hover { text-decoration: underline; }
.ev-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 36px; padding: 44px 0 20px; }
@media (max-width: 900px) { .ev-layout { grid-template-columns: 1fr; } }
.ev-block { margin-bottom: 38px; }
.ev-block h2 { font-family: 'Oswald', sans-serif; font-size: 1.45rem; font-weight: 600; margin: 0 0 16px; }
.ev-block h2::after { content: ""; display: block; width: 36px; height: 3px; background: var(--ev-red); margin-top: 7px; }
.ev-prose { color: var(--ev-text); line-height: 1.8; white-space: pre-line; }
.ev-agenda { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ev-line); }
.ev-agenda li { position: relative; padding: 0 0 18px 22px; }
.ev-agenda li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ev-red); }
.ev-agenda strong { display: block; font-size: .85rem; color: var(--ev-red); }
.ev-speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.ev-speaker { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--ev-line); border-radius: 12px; background: #fff; }
.ev-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ev-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.ev-speaker small { display: block; color: var(--ev-muted); }
.ev-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.ev-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ev-side { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.ev-panel { border: 1px solid var(--ev-line); border-radius: var(--ev-radius); padding: 22px; background: #fff; }
.ev-panel h3 { font-size: 1rem; margin: 0 0 14px; font-weight: 600; }
.ev-facts { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: .9rem; }
.ev-facts li { display: flex; gap: 10px; color: var(--ev-text); }
.ev-facts i { color: var(--ev-red); margin-top: 2px; }
.ev-note { font-size: .85rem; color: var(--ev-muted); margin: 10px 0 0; }
.ev-alert { padding: 12px 14px; border-radius: 10px; font-size: .9rem; margin-bottom: 14px; background: #fff4f5; border: 1px solid #f3c4c9; color: #8d0711; }
.ev-alert--ok { background: #effaf2; border-color: #b9e3c4; color: #14612b; }
.ev-resources { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-resources a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--ev-line); border-radius: 10px; color: var(--ev-ink); text-decoration: none; background: #fff; }
.ev-resources a:hover { border-color: var(--ev-red); color: var(--ev-red); }
.ev-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ev-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* Registration form */
.ev-form-card { background: #fff; border: 1px solid var(--ev-line); border-radius: var(--ev-radius); padding: 28px; }
.ev-field { margin-bottom: 18px; }
.ev-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.ev-field label span { color: var(--ev-red); }
.ev-field .ev-input { width: 100%; }
.ev-field textarea.ev-input { min-height: 110px; resize: vertical; }
.ev-field.has-error .ev-input { border-color: var(--ev-red); }
.ev-err { color: var(--ev-red-dark); font-size: .83rem; margin-top: 5px; }
.ev-honey { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.ev-form-card .sk-phone { display: flex; gap: 8px; }
.ev-form-card .sk-phone select { max-width: 150px; }
.ev-success { text-align: center; padding: 30px 10px; }
.ev-success i { font-size: 3rem; color: var(--ev-red); }
.ev-success h2 { font-family: 'Oswald', sans-serif; margin: 10px 0; }
[data-ev-busy="1"] { opacity: .65; pointer-events: none; }

@media (max-width: 1024px) {
  .ev-wrap { width: min(1180px, calc(100% - 32px)); }
  .ev-search input[type="search"] { min-width: 180px; }
}
@media (max-width: 900px) {
  .ev-side { position: static; }
  .ev-layout { gap: 24px; padding-top: 28px; }
}
@media (max-width: 640px) {
  .ev-hero { padding: 24px 0 40px; }
  .ev-hero__img, .ev-detail-hero__img { aspect-ratio: 16 / 9; border-radius: 14px; }
  .ev-hero p { font-size: 1rem; margin-bottom: 20px; }
  .ev-section { padding-top: 36px; }
  .ev-section__head h2 { font-size: 1.4rem; }
  .ev-grid { gap: 18px; }
  .ev-card__body { padding: 16px; }
  .ev-card__foot .ev-btn { flex: 1 1 140px; }
  .ev-featured { margin-top: 28px; border-radius: 14px; }
  .ev-featured__body { padding: 22px; }
  .ev-featured__body h2 { font-size: 1.5rem; }
  .ev-detail-hero { padding: 20px 0 28px; }
  .ev-detail-meta { gap: 6px 16px; font-size: .9rem; }
  .ev-panel { padding: 18px; }
  .ev-block { margin-bottom: 30px; }
  .ev-form-card { padding: 20px 16px; }
  /* 16px stops Android and iOS from zooming the page when a field gets focus. */
  .ev-input, .ev-search input, .ev-search select { font-size: 16px; }
  /* Touch targets of at least 44px. */
  .ev-btn { min-height: 44px; }
  .ev-chip { padding: 10px 16px; }
  .ev-search select, .ev-search input[type="search"] { min-height: 44px; }
  .ev-search > * { flex: 1 1 100%; }
  .ev-search .ev-btn { flex: 0 0 auto; }
  .ev-chips { gap: 6px; }
  .ev-form-card .sk-phone select { max-width: 130px; }
  .ev-form-card .sk-phone input { min-width: 0; }
}
@media (max-width: 380px) {
  .ev-wrap { width: calc(100% - 24px); }
  .ev-hero h1 { font-size: 1.8rem; }
  .ev-agenda li { padding-left: 18px; }
  .ev-badge { font-size: .68rem; padding: 3px 8px; }
}
/* Long titles, links and file names wrap instead of widening the page. */
.ev-hero h1, .ev-detail-hero h1, .ev-card h3, .ev-featured__body h2, .ev-facts li span, .ev-resources a, .ev-speaker strong { overflow-wrap: anywhere; }
.ev-facts li > span, .ev-speaker > span:last-child { min-width: 0; }

@media (max-width: 640px) {
  .ev-search { margin-left: 0; width: 100%; }
  .ev-search input { flex: 1; min-width: 0; }
  .ev-filters { position: static; }
}
@media (prefers-reduced-motion: reduce) { .ev-card, .ev-btn { transition: none; } .ev-badge--live::before { animation: none; } }
