/* ==========================================================================
   HSN — hero navy bermotif data + pintasan kegiatan,
   section Webinar (terang, kartu tiket daftar hadir) di atas,
   section POR (sporty gelap, podium juara umum) di bawah.
   ========================================================================== */
.hsn { --navy: #003366; --navy2: #00264d; --biru: #0055a4; --oranye: #f57c00; --emas: #ffd27f; --gold: #ffd700;
  background: #f4f7fb; display: flex; flex-direction: column; overflow-x: hidden; }
.hsn-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ---------- Tombol (gaya situs: 8px, semibold) ---------- */
.hsn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px;
  border-radius: 8px; border: 1px solid transparent; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.hsn-btn svg { width: 18px; height: 18px; flex: none; }
.hsn-btn:focus-visible, .hsn-pbtn:focus-visible, .hsn-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hsn-btn-primary { background: var(--oranye); color: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.hsn-btn-primary:hover { opacity: .92; transform: translateY(-1px); }
.hsn-btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.hsn-btn-outline:hover { background: #f8fafc; }
.hsn-btn-penuh { width: 100%; }

/* =============================== HERO =============================== */
.hsn-hero {
  position: relative; overflow: hidden; color: #fff; padding: 108px 0 136px; z-index: 10;
  background:
    radial-gradient(700px 360px at 12% 0%, rgba(0, 85, 164, .55), transparent 65%),
    linear-gradient(150deg, #003366 0%, #00264d 70%, #001b38 100%);
}
@media (min-width: 768px) { .hsn-hero { padding: 152px 0 176px; } }
.hsn-motif { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .12; pointer-events: none; }
.hsn-hero-in {
  position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 0 20px;
  display: grid; gap: 32px; align-items: center;
}
@media (min-width: 960px) { .hsn-hero-in { grid-template-columns: 1.2fr .9fr; gap: 56px; } }

.hsn-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px 6px 10px; border-radius: 9999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
}
.hsn-kicker i { width: 8px; height: 8px; border-radius: 9999px; background: var(--emas); box-shadow: 0 0 0 4px rgba(255,210,127,.2); }
.hsn-title { margin-top: 18px; font-size: clamp(2rem, 5.6vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.hsn-title span { display: block; color: var(--emas); }
.hsn-lead { margin-top: 18px; max-width: 560px; font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.86); }

/* Pintasan kegiatan */
.hsn-pintas { display: grid; gap: 14px; }
.hsn-tile {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 16px; min-height: 84px;
  border-radius: 16px; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hsn-tile::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--emas); }
.hsn-tile.is-por::before { background: var(--oranye); }
.hsn-tile:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); box-shadow: 0 14px 30px -18px rgba(0,0,0,.6); }
.hsn-tile-ico { flex: none; width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.hsn-tile-ico svg { width: 26px; height: 26px; }
.is-webinar .hsn-tile-ico { background: #fff; color: var(--navy); }
.is-por .hsn-tile-ico { background: var(--oranye); color: #fff; transform: skewX(-8deg); }
.is-por .hsn-tile-ico svg { transform: skewX(8deg); }
.hsn-tile-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hsn-tile-label { font-size: 16px; font-weight: 700; line-height: 1.3; }
.hsn-tile-sub { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.4; }
.hsn-tile-badge {
  position: absolute; top: -9px; right: 14px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 9999px; background: #fff; color: var(--navy); box-shadow: 0 4px 10px -4px rgba(0,0,0,.4);
}
.hsn-tile-badge.is-live { background: #16a34a; color: #fff; }
.hsn-tile-badge.is-emas { background: var(--gold); color: #3b2f00; }
.hsn-tile-go { flex: none; width: 20px; height: 20px; color: rgba(255,255,255,.7); transition: transform .25s ease; }
.hsn-tile:hover .hsn-tile-go { transform: translateY(2px); color: #fff; }

/* =============================== WEBINAR =============================== */
.hsn-webinar { scroll-margin-top: 72px; border-top: 1px solid rgba(226,232,240,.5); }
.hsn-wb-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .hsn-wb-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; } }

/* Kartu tema: inti acara, ditonjolkan */
.hsn-tema {
  position: relative; overflow: hidden; margin: 0; padding: 22px 22px 24px; border-radius: 16px;
  background: linear-gradient(160deg, #eff6ff 0%, #ffffff 70%); border: 1px solid #dbeafe;
  box-shadow: 0 18px 40px -28px rgba(0, 51, 102, .45);
}
@media (min-width: 640px) { .hsn-tema { padding: 26px 30px 28px; } }
.hsn-tema-kutip { position: absolute; top: 14px; right: 16px; width: 72px; height: 72px; color: #0055a4; opacity: .08; pointer-events: none; }
.hsn-tema-label {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 9999px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--oranye); background: rgba(245, 124, 0, .1);
}
.hsn-tema-label svg { width: 15px; height: 15px; }
.hsn-tema-judul { position: relative; margin: 14px 0 0; font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--navy); }
.hsn-tema-sub { position: relative; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #dbeafe; font-size: clamp(1rem, 2vw, 1.12rem); font-weight: 600; line-height: 1.45; color: var(--biru); }
.hsn-wb-desc { margin-top: 18px; max-width: 600px; font-size: 16px; line-height: 1.7; color: #475569; }

.hsn-fakta { margin: 28px 0 28px; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .hsn-fakta { grid-template-columns: 1fr 1fr; } .hsn-fakta-item:last-child { grid-column: 1 / -1; } }
.hsn-fakta-item {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 6px 20px -16px rgba(15,23,42,.35);
}
.hsn-fakta-ico { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eff6ff; color: var(--biru); }
.hsn-fakta-ico svg { width: 22px; height: 22px; }
.hsn-fakta dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.hsn-fakta dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.35; }

/* Kartu tiket */
.hsn-tiket { position: relative; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 38, 77, .45), 0 0 0 1px rgba(15,23,42,.06); overflow: hidden; }
.hsn-tiket-atas {
  position: relative; padding: 24px 24px 26px; color: #fff; overflow: hidden;
  background: radial-gradient(420px 200px at 100% 0%, rgba(245,124,0,.35), transparent 70%), linear-gradient(150deg, #0a4a8a 0%, #003366 60%, #00264d 100%);
}
.hsn-tiket-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.hsn-tiket-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--emas); }
.hsn-tiket-title { margin-top: 10px; font-size: 22px; font-weight: 800; line-height: 1.25; }
.hsn-acara { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 9999px; background: rgba(255,255,255,.14); }
.hsn-acara.is-live { background: #16a34a; }
.hsn-acara.is-usai { background: rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
.hsn-dot { width: 8px; height: 8px; border-radius: 9999px; background: currentColor; flex: none; }
.is-live .hsn-dot, .hsn-form-status.is-buka .hsn-dot { animation: hsn-denyut 1.6s ease-out infinite; }
@keyframes hsn-denyut { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); } 100% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } }

.hsn-hitung { margin-top: 18px; }
.hsn-hitung-label { display: block; font-size: 13px; color: rgba(255,255,255,.75); }
.hsn-hitung-angka { margin-top: 8px; display: flex; gap: 8px; }
.hsn-hitung-angka span { flex: 1; max-width: 86px; padding: 8px 6px; border-radius: 10px; text-align: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.hsn-hitung-angka b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hsn-hitung-angka small { font-size: 11px; color: rgba(255,255,255,.7); }

/* Sobekan tiket */
.hsn-tiket-sobek { position: relative; height: 0; border-top: 2px dashed #e2e8f0; margin: 0 20px; }
.hsn-tiket-sobek::before, .hsn-tiket-sobek::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 9999px; background: #f4f7fb; box-shadow: inset 0 0 0 1px rgba(15,23,42,.06); }
.hsn-tiket-sobek::before { left: -32px; }
.hsn-tiket-sobek::after { right: -32px; }

.hsn-tiket-bawah { padding: 22px 24px 24px; }
.hsn-langkah { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hsn-langkah li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; font-size: 14px; color: #475569; line-height: 1.45; }
.hsn-langkah li > span { width: 32px; height: 32px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--navy); background: #eff6ff; border: 1.5px solid #bfdbfe; }
.hsn-langkah b { display: block; color: #0f172a; font-size: 15px; }
.hsn-form-status { margin: 20px 0 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 10px 12px; border-radius: 10px; }
.hsn-form-status.is-buka { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.hsn-form-status.is-tutup { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.hsn-form-status[hidden] + .hsn-btn { margin-top: 20px; }

/* =============================== POR =============================== */
.hsn-por {
  color: #fff; scroll-margin-top: 72px;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(245,124,0,.22), transparent 60%),
    linear-gradient(135deg, #001d3d 0%, #003366 52%, #0a5a3a 100%);
}
.hsn-por::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 2px, transparent 2px 26px); }
.hsn-por-slash { position: absolute; top: -20%; height: 150%; transform: skewX(-18deg); pointer-events: none; }
.hsn-por-slash.s1 { right: 8%; width: 70px; background: linear-gradient(180deg, var(--oranye), rgba(245,124,0,.08)); opacity: .55; }
.hsn-por-slash.s2 { right: 4%; width: 16px; background: linear-gradient(180deg, var(--gold), rgba(255,215,0,.06)); opacity: .55; }
.hsn-por-big { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); font-size: clamp(5rem, 20vw, 15rem); white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.07); pointer-events: none; }
/* Kepala section rata tengah -> isi juga satu kolom di tengah: podium dulu, lalu statistik & tombol */
.hsn-por-grid { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 32px; }
.hsn-por-juara { order: 1; width: 100%; max-width: 760px; }
.hsn-por-info { order: 2; width: 100%; display: flex; flex-direction: column; align-items: center; }

.hsn-por-title { text-align: center; margin-bottom: 16px; position: relative; line-height: 1.05; font-size: clamp(2.6rem, 8vw, 4.8rem); color: #fff; }
.hsn-por-title span { color: var(--oranye); }
.hsn-por-desc { position: relative; margin: 0 auto; max-width: 42rem; font-size: 1.125rem; line-height: 1.6; color: rgba(255,255,255,.82); }
.hsn-por-stat { margin: 0 auto 26px; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.hsn-por-stat div { padding: 12px 12px 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-left: 3px solid var(--oranye); }
.hsn-por-stat div:nth-child(2) { border-left-color: var(--gold); }
.hsn-por-stat div:nth-child(3) { border-left-color: #4caf50; }
.hsn-por-stat b { display: block; font-size: 34px; line-height: 1; }
.hsn-por-stat span { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hsn-pbtn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 26px; font-size: 1.25rem; text-decoration: none;
  color: #fff; background: var(--oranye); transform: skewX(-10deg); box-shadow: 0 12px 24px -12px rgba(245,124,0,.8); transition: transform .2s ease, background-color .2s ease;
}
.hsn-pbtn > * { transform: skewX(10deg); }
.hsn-pbtn svg { width: 20px; height: 20px; }
.hsn-pbtn:hover { background: #ff8c1a; transform: skewX(-10deg) translateY(-2px); }

/* Podium */
.hsn-por-juara { position: relative; padding: 24px 16px 0; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); overflow: hidden; }
@media (min-width: 640px) { .hsn-por-juara { padding: 30px 28px 0; } }
.hsn-juara-kicker { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--oranye); }
.hsn-juara-title { margin-top: 8px; text-align: center; font-size: clamp(2rem, 6vw, 2.9rem); color: #fff; }
.hsn-juara-sub { margin-top: 6px; text-align: center; font-size: 14px; color: rgba(255,255,255,.78); }
.hsn-podium { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
@media (min-width: 640px) { .hsn-podium { gap: 12px; } }
.hsn-pd { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.hsn-pd-ico { width: 40px; height: 40px; color: var(--gold); margin-bottom: 6px; filter: drop-shadow(0 4px 10px rgba(255,215,0,.45)); }
.hsn-pd-tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; background: var(--gold); color: #3b2f00; transform: skewX(-10deg); margin-bottom: 8px; }
.hsn-pd-nama { font-size: 15px; font-weight: 800; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
@media (min-width: 640px) { .hsn-pd-nama { font-size: 18px; } }
.hsn-pd-1 .hsn-pd-nama { font-size: 18px; }
@media (min-width: 640px) { .hsn-pd-1 .hsn-pd-nama { font-size: 22px; } }
.hsn-pd-kode { margin-top: 2px; font-size: 11px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.hsn-pd-med { margin: 10px 0 12px; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.hsn-pd-med .por-medal { width: 28px; height: 28px; font-size: 13px; }
.hsn-pd-med .por-medal.nol { opacity: .35; }
.hsn-pd-tiang { width: 100%; display: flex; align-items: flex-start; justify-content: center; padding-top: 10px; border-radius: 6px 6px 0 0; transform-origin: bottom; }
.hsn-pd-rank { font-size: clamp(2.6rem, 9vw, 4rem); line-height: 1; }
.hsn-pd-1 .hsn-pd-tiang { height: 150px; background: linear-gradient(180deg, #ffe45c, #e0a800); color: #3b2f00; }
.hsn-pd-2 .hsn-pd-tiang { height: 108px; background: linear-gradient(180deg, #f1f5f9, #aab4c3); color: #1e293b; }
.hsn-pd-3 .hsn-pd-tiang { height: 82px; background: linear-gradient(180deg, #f0b27a, #b4691f); color: #3a1d00; }
@media (min-width: 640px) {
  .hsn-pd-1 .hsn-pd-tiang { height: 180px; }
  .hsn-pd-2 .hsn-pd-tiang { height: 128px; }
  .hsn-pd-3 .hsn-pd-tiang { height: 96px; }
}
.hsn-pd.is-kosong { visibility: hidden; }
.hsn-podium.is-naik .hsn-pd-tiang { animation: hsn-naik .8s cubic-bezier(.2,.8,.2,1) both; }
.hsn-podium.is-naik .hsn-pd-1 .hsn-pd-tiang { animation-delay: .25s; }
.hsn-podium.is-naik .hsn-pd-3 .hsn-pd-tiang { animation-delay: .12s; }
@keyframes hsn-naik { from { transform: scaleY(.15); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

/* Kerangka muat */
.hsn-skel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; height: 240px; padding-bottom: 0; }
.hsn-skel i { display: block; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.16), rgba(255,255,255,.08)); background-size: 200% 100%; animation: hsn-kilau 1.4s linear infinite; }
.hsn-skel i:nth-child(1) { height: 60%; } .hsn-skel i:nth-child(2) { height: 90%; } .hsn-skel i:nth-child(3) { height: 45%; }
.hsn-skel[hidden] { display: none; }
@keyframes hsn-kilau { to { background-position: -200% 0; } }

/* ---------- Animasi masuk ---------- */
.hsn-rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.hsn-rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hsn-rise { opacity: 1; transform: none; transition: none; }
  .hsn-tile, .hsn-btn, .hsn-pbtn, .hsn-tile-go { transition: none; }
  .hsn-podium.is-naik .hsn-pd-tiang, .is-live .hsn-dot, .hsn-form-status.is-buka .hsn-dot, .hsn-skel i { animation: none; }
}


.hsn-nb { white-space: nowrap; }

/* ---------- Aksi utama webinar: tombol besar & menonjol ---------- */
.hsn-btn-besar { min-height: 60px; padding: 14px 24px; font-size: 17px; font-weight: 700; gap: 10px; }
.hsn-btn-besar svg { width: 22px; height: 22px; }
.hsn-btn-besar .hsn-btn-ext { width: 18px; height: 18px; opacity: .8; }
.hsn-btn-primary.hsn-btn-besar { box-shadow: 0 14px 28px -12px rgba(245, 124, 0, .75); }
.hsn-btn-navy { background: var(--navy); color: #fff; box-shadow: 0 14px 28px -14px rgba(0, 51, 102, .8); }
.hsn-btn-navy:hover { background: var(--biru); transform: translateY(-1px); }
.hsn-cta { margin-top: 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.hsn-cta .hsn-btn-besar { white-space: nowrap; }
@media (max-width: 959px) { .hsn-cta { grid-template-columns: 1fr; } }
.hsn-btn-zoom { background: #0b5cff; color: #fff; box-shadow: 0 14px 28px -14px rgba(11, 92, 255, .8); }
.hsn-btn-zoom:hover { background: #0a4fd6; transform: translateY(-1px); }
/* Layar sempit: tombol tiket dirampingkan agar muat satu baris */
@media (max-width: 420px) {
  .hsn-btn-tiket { padding: 14px 14px; font-size: 16px; gap: 8px; }
  .hsn-btn-tiket svg { width: 20px; height: 20px; }
}
/* Tombol tiket berdenyut halus saat daftar hadir dibuka */
.hsn-form-status.is-buka + .hsn-btn-tiket { animation: hsn-ajak 2.2s ease-in-out infinite; }
@keyframes hsn-ajak { 0%, 100% { box-shadow: 0 14px 28px -12px rgba(245,124,0,.75), 0 0 0 0 rgba(245,124,0,.45); } 50% { box-shadow: 0 14px 28px -12px rgba(245,124,0,.75), 0 0 0 8px rgba(245,124,0,0); } }
@media (prefers-reduced-motion: reduce) { .hsn-form-status.is-buka + .hsn-btn-tiket { animation: none; } }
