* { box-sizing: border-box; margin: 0; padding: 0; }
/* Catatan: sengaja pakai overflow-x:clip, BUKAN overflow-x:hidden.
   overflow-x:hidden pada html/body diketahui mematikan position:sticky
   di banyak browser (elemen sticky jadi ikut ter-scroll seperti biasa).
   overflow-x:clip memberi efek anti-scroll-horizontal yang sama tanpa
   merusak sticky, karena tidak membentuk scrolling container baru. */
html { overflow-x: clip; width: 100%; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color:#111827; overflow-x: clip; width: 100%; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ── HERO ── */
.s5-hero { background: linear-gradient(135deg, rgba(10,47,92,0.92) 0%, rgba(15,76,107,0.90) 55%, rgba(14,107,99,0.90) 100%), url('https://images.unsplash.com/photo-1556740738-b6a63e27c4df?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat; position: relative; overflow: hidden; padding: 4rem 1.5rem 3.5rem; text-align: center; }
.s5-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.04) 1px,transparent 1px); background-size: 48px 48px; }
.s5-hero-orb { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle,rgba(255,134,3,0.18) 0%,transparent 70%); top: -80px; right: -60px; pointer-events: none; }
.s5-hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.s5-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,134,3,0.15); border: 1px solid rgba(255,134,3,0.3); border-radius: 20px; padding: 5px 14px; font-size: 0.75rem; font-weight: 600; color: #FF8603; letter-spacing: 0.04em; margin-bottom: 1.25rem; }
.s5-hero-title { font-size: clamp(1.8rem,4.5vw,3rem); font-weight: bold; color: #fff; line-height: 1.15; margin-bottom: 0.75rem; }
.s5-hero-theme { font-size: 0.97rem; color: rgba(219,234,254,0.85); font-style: italic; line-height: 1.6; margin-bottom: 1rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.s5-hero-loc { font-size: 0.88rem; color: rgba(219,234,254,0.7); margin-bottom: 1rem; }
.s5-hero-date { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; padding: 6px 14px; font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 2rem; }
.s5-hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.s5-btn-orange { display: inline-flex; align-items: center; gap: 8px; background: #FF8603; color: #fff; padding: 0.65rem 1.4rem; border-radius: 6px; font-size: 0.85rem; font-weight: 500; transition: all 0.2s; }
.s5-btn-orange:hover { background: #e67600; transform: translateY(-2px); color: #fff; }
.s5-btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #fff; padding: 0.65rem 1.4rem; border-radius: 6px; font-size: 0.85rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.3); transition: all 0.2s; }
.s5-btn-ghost:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); color: #fff; }

/* ── MARQUEE ── */
.s5-marquee { background: #FF8603; padding: 10px 0; font-size: 0.88rem; font-weight: 600; color: #fff; overflow: hidden; white-space: nowrap; }
.s5-marquee-inner { display: inline-block; animation: marquee 26s linear infinite; }
@keyframes marquee { from{transform:translateX(100vw)} to{transform:translateX(-100%)} }

/* ── COUNTDOWN ── */
.s5-countdown { background: #f9fafb; padding: 3rem 1.5rem; }
.s5-countdown-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.s5-countdown-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: #FF8603; margin-bottom: 1rem; }
.s5-countdown-title { font-size: 1.1rem; font-weight: bold; color: #111827; margin-bottom: 1.5rem; }
.s5-countdown-grid { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.s5-cd-box { background: #0A2F5C; border-radius: 0.875rem; padding: 1.25rem 1.5rem; min-width: 80px; text-align: center; }
.s5-cd-num { font-size: 2rem; font-weight: bold; color: #fff; line-height: 1; }
.s5-cd-lbl { font-size: 0.65rem; color: rgba(219,234,254,0.6); letter-spacing: 0.06em; margin-top: 4px; }

/* ── SECTIONS ── */
.s5-section { padding: 4rem 1.5rem; scroll-margin-top: 90px; }
.s5-section-alt { background: #f9fafb; }
.s5-inner { max-width: 950px; margin: 0 auto; }
.s5-section-head { margin-bottom: 2.5rem; }
.s5-section-bar-wrap { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; background: #fff; border: 2px solid #F6A821; border-radius: 30px; padding: 0.4rem 1rem; }
.s5-section-bar { width: 8px; height: 8px; background: #FF8603; border-radius: 50%; flex-shrink: 0; }
.s5-section-label { font-size: 0.85rem; font-weight: 700; color: #0A2F5C; letter-spacing: 0.03em; }
.s5-section-title { font-size: clamp(1.4rem,3vw,2rem); font-weight: bold; color: #111827; }

/* ── ABOUT ── */
.s5-about-card { background: white; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 2rem; display: flex; gap: 1.5rem; align-items: flex-start; }
.s5-about-icon { width: 52px; height: 52px; background: linear-gradient(135deg,#0A2F5C,#0F4C6B); border-radius: 0.875rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; }
.s5-about-text { font-size: 0.95rem; color: #374151; line-height: 1.75; }

/* ── SUBTHEME ── */
.s5-theme-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 0.875rem; }
.s5-theme-pill { background: white; border: 1px solid #e5e7eb; border-left: 3px solid #FF8603; border-radius: 0.5rem; padding: 0.75rem 1rem; font-size: 0.85rem; font-weight: 500; color: #374151; }

/* ── TABLE ── */
.s5-table { width: 100%; border-collapse: collapse; background: white; border-radius: 0.875rem; overflow: hidden; border: 1px solid #e5e7eb; }
.s5-table thead tr { background: #0A2F5C; }
.s5-table thead th { padding: 0.85rem 1rem; font-size: 0.82rem; font-weight: 600; color: #fff; text-align: left; }
.s5-table tbody tr { border-bottom: 1px solid #f3f4f6; }
.s5-table tbody tr:hover { background: #f9fafb; }
.s5-table tbody td { padding: 0.85rem 1rem; font-size: 0.85rem; color: #374151; }
.s5-table tbody td:last-child { font-weight: 600; color: #0A2F5C; }
.s5-table-note { font-size: 0.78rem; color: #9ca3af; margin-top: 0.75rem; }

/* ── DATES ── */
.s5-dates-list { display: flex; flex-direction: column; background: white; border: 1px solid #e5e7eb; border-radius: 0.875rem; overflow: hidden; }
.s5-date-row { display: flex; align-items: center; padding: 0.9rem 1.25rem; border-bottom: 1px solid #f3f4f6; gap: 1rem; }
.s5-date-row:last-child { border-bottom: none; }
.s5-date-row:hover { background: #f9fafb; }
.s5-date-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF8603; flex-shrink: 0; }
.s5-date-label { flex: 1; font-size: 0.85rem; color: #374151; }
.s5-date-val { font-size: 0.82rem; font-weight: 600; color: #0A2F5C; white-space: nowrap; }

.s5-pub-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 0.875rem; }
.s5-pub-pill { background: white; border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 0.75rem 1rem; font-size: 0.85rem; color: #374151; }

/* ── HOST / SPONSOR LOGO ── */
.s5-sponsor-group { margin-bottom: 2rem; }
.s5-sponsor-group:last-child { margin-bottom: 0; }
.s5-sponsor-group-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #FF8603; margin-bottom: 0.875rem; }
.s5-sponsor-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.s5-sponsor-logo {
  width: 130px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; padding: 0;
}
.s5-sponsor-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.s5-sponsor-empty { width: 100%; padding: 1.25rem; text-align: center; font-size: 0.82rem; color: #9ca3af; border: 2px dashed #d1d5db; border-radius: 0.875rem; background: transparent; }

/* ── SEMINAR LOGO (di section Tentang) ── */
.s5-seminar-logo-wrap { display: flex; justify-content: center; margin-bottom: 2rem; background: transparent; }
.s5-seminar-logo { max-width: 320px; width: 100%; height: auto; object-fit: contain; background: transparent; }

/* ── MAP ── */
.s5-map-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: stretch; }
.s5-map-frame { border-radius: 1rem; overflow: hidden; border: 1px solid #e5e7eb; min-height: 320px; }
.s5-map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.s5-map-info { background: white; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.s5-map-info h3 { font-size: 1.05rem; color: #111827; }
.s5-map-info p { font-size: 0.88rem; color: #6b7280; line-height: 1.6; }
.s5-map-row { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.85rem; color: #374151; }
.s5-map-row svg { width: 18px; height: 18px; color: #FF8603; flex-shrink: 0; margin-top: 2px; }
.s5-map-btn { margin-top: auto; align-self: flex-start; color:#fff; }

/* ── GALLERY ── */
.s5-gallery-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.s5-gallery-tab-btn { background: white; border: 1px solid #e5e7eb; color: #374151; padding: 0.5rem 1.1rem; border-radius: 20px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.s5-gallery-tab-btn.active { background: #0A2F5C; color: #fff; border-color: #0A2F5C; }
.s5-gallery-panel { display: none; }
.s5-gallery-panel.active { display: block; }
.s5-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 1rem; }
.s5-gallery-slot { aspect-ratio: 4/3; border-radius: 0.875rem; border: 1px solid #e5e7eb; background: #fff; overflow:hidden; display: flex; align-items: center; justify-content: center; }
.s5-gallery-slot img { width:100%; height:100%; object-fit:cover; }
.s5-gallery-slot.is-clickable { cursor: zoom-in; position: relative; }
.s5-gallery-slot.is-clickable:hover img { transform: scale(1.04); }
.s5-gallery-slot.is-clickable img { transition: transform 0.3s ease; }
.s5-gallery-slot.is-clickable::after {
  content: '⤢'; position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(10,47,92,0.75); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; opacity: 0; transition: opacity 0.2s;
  pointer-events: none;
}
.s5-gallery-slot.is-clickable:hover::after { opacity: 1; }
.s5-gallery-empty { border: 2px dashed #d1d5db; color: #9ca3af; flex-direction: column; gap: 0.5rem; text-align:center; padding:1rem; font-size:0.78rem; }
.s5-gallery-flyer { aspect-ratio: 3/4; }
.s5-gallery-note { font-size: 0.78rem; color: #9ca3af; margin-top: 1rem; }
.s5-upload-form { display:flex; flex-wrap:wrap; gap:0.75rem; align-items:center; background:#fff; border:1px solid #e5e7eb; border-radius:0.875rem; padding:1rem 1.25rem; margin-bottom:1.25rem; }
.s5-upload-form input[type=file] { font-size:0.8rem; }
.s5-upload-form select, .s5-upload-form input[type=text] { border:1px solid #e5e7eb; border-radius:6px; padding:0.5rem 0.75rem; font-size:0.82rem; }
.s5-upload-btn { background:#0A2F5C; color:#fff; border:none; padding:0.5rem 1.1rem; border-radius:6px; font-size:0.82rem; font-weight:600; cursor:pointer; }
.s5-upload-btn:hover { background:#0F4C6B; }
.s5-alert { padding:0.75rem 1rem; border-radius:8px; font-size:0.82rem; margin-bottom:1rem; }
.s5-alert-success { background:#ecfdf5; color:#047857; border:1px solid #a7f3d0; }
.s5-alert-error { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }

/* ── CONTACT ── */
.s5-contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 1.25rem; }
.s5-contact-card { background: white; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.75rem 1.25rem; text-align: center; color: inherit; transition: all 0.25s; display: block; }
.s5-contact-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.09); color: inherit; }
.s5-contact-icon { width: 54px; height: 54px; border-radius: 0.875rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.s5-contact-icon svg { width: 26px; height: 26px; color: white; }
.s5-contact-label { font-size: 0.95rem; font-weight: 700; color: #111827; margin-bottom: 0.3rem; }
.s5-contact-value { font-size: 0.82rem; color: #0A2F5C; font-weight: 500; margin-bottom: 0.25rem; }
.s5-contact-hint { font-size: 0.72rem; color: #9ca3af; }

/* ── CONTACT FORM ── */
.s5-form { background:#fff; border:1px solid #e5e7eb; border-radius:1rem; padding:2rem; max-width:600px; margin:0 auto; }
.s5-form label { display:block; font-size:0.82rem; font-weight:600; color:#374151; margin-bottom:0.35rem; }
.s5-form input, .s5-form textarea { width:100%; border:1px solid #e5e7eb; border-radius:8px; padding:0.65rem 0.85rem; font-size:0.88rem; margin-bottom:1rem; font-family:inherit; }
.s5-form input:focus, .s5-form textarea:focus { outline:2px solid #FF8603; outline-offset:1px; }
.s5-form button { width:100%; background:#FF8603; color:#fff; border:none; padding:0.75rem; border-radius:8px; font-weight:600; font-size:0.9rem; cursor:pointer; }
.s5-form button:hover { background:#e67600; }
.s5-form-error { color:#b91c1c; font-size:0.75rem; margin-top:-0.7rem; margin-bottom:0.8rem; }

/* ── LIGHTBOX ── */
.s5-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,15,25,0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 2.5rem 1.25rem;
  animation: s5lb-fade 0.2s ease;
}
.s5-lightbox.is-open { display: flex; }
@keyframes s5lb-fade { from { opacity: 0; } to { opacity: 1; } }
.s5-lightbox-img {
  max-width: min(92vw, 1100px); max-height: 88vh;
  border-radius: 0.75rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}
.s5-lightbox-close {
  position: fixed; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.s5-lightbox-close:hover { background: rgba(255,134,3,0.8); border-color: #FF8603; }
.s5-lightbox-caption {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75); font-size: 0.8rem; text-align: center; max-width: 90vw;
}
@media(max-width:640px) {
  .s5-lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
}

@media(max-width:768px) {
  .s5-map-wrap { grid-template-columns: 1fr; }
}
@media(max-width:640px) {
  .s5-contact-grid { grid-template-columns: 1fr; }
  .s5-countdown-grid { gap: 0.5rem; }
  .s5-cd-box { min-width: 64px; padding: 1rem; }
}

/* ── RAPIKAN TAMPILAN HP KECIL (≤480px) ── */
@media(max-width:480px) {
  .s5-hero { padding: 2.5rem 1.1rem 2.5rem; }
  .s5-hero-badge { font-size: 0.68rem; padding: 4px 12px; margin-bottom: 1rem; }
  .s5-hero-title { line-height: 1.25; margin-bottom: 0.6rem; }
  .s5-hero-theme { font-size: 0.88rem; margin-bottom: 0.8rem; }
  .s5-hero-loc { font-size: 0.8rem; }
  .s5-hero-date { font-size: 0.78rem; padding: 5px 12px; margin-bottom: 1.5rem; }
  .s5-hero-btns { gap: 8px; }
  .s5-btn-orange, .s5-btn-ghost { width: 100%; justify-content: center; padding: 0.7rem 1rem; font-size: 0.82rem; }

  .s5-marquee { padding: 8px 0; font-size: 0.78rem; }

  .s5-countdown { padding: 2rem 1.1rem; }
  .s5-countdown-title { font-size: 0.95rem; }

  .s5-section { padding: 2.75rem 1.1rem; }
  .s5-section-title { line-height: 1.3; }
  .s5-section-head { margin-bottom: 1.75rem; }

  .s5-about-card { flex-direction: column; padding: 1.5rem; gap: 1rem; }

  .s5-table thead th, .s5-table tbody td { padding: 0.65rem 0.75rem; font-size: 0.78rem; }

  .s5-sponsor-row { gap: 1.25rem; justify-content: center; }
  .s5-sponsor-logo { width: 105px; height: 65px; }

  .s5-seminar-logo { max-width: 240px; }

  .ft-wa-label { display: none; }
  .ft-wa { right: 16px; bottom: 16px; }
  .ft-wa-btn { width: 46px; height: 46px; }
}