/* ==========================================
   EKSTRAKURIKULER.CSS
   ========================================== */

/* ── Hero (sama pola prestasi.css) ── */
.ek-hero {
  background: var(--bg-soft);
  padding: 64px 0 0;
  overflow: hidden;
}
.ek-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: flex-end;
  min-height: 400px;
}
.ek-hero-img {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
}
.ek-hero-img::before {
  content: '';
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 320px; height: 320px;
  border-radius: 50%; background: var(--primary); z-index: 0;
}
.ek-hero-img::after {
  content: '';
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  width: 350px; height: 350px;
  border-radius: 50%;
  border: 2px dashed rgba(138,31,45,0.35); z-index: 0;
}
.ek-hero-img img {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  object-fit: contain; display: block;
  border-radius: 50%;
}
.ek-hero-body {
  padding: 0 0 64px 48px;
  display: flex; flex-direction: column; justify-content: center;
}

/* Hero detail: gambar landscape bukan circle */
.ek-hero--detail .ek-hero-img::before,
.ek-hero--detail .ek-hero-img::after { display: none; }
.ek-hero--detail .ek-hero-img img {
  border-radius: 16px;
  max-width: 480px;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* ── Breadcrumb ── */
.ek-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px;
}
.ek-breadcrumb a { color: var(--ink-soft); }
.ek-breadcrumb a:hover { color: var(--primary); }
.ek-breadcrumb svg { width: 13px; height: 13px; }
.ek-breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ── Hero body text ── */
.ek-hero-body h1 {
  font-size: 3rem; font-weight: 800;
  line-height: 1.1; margin: 0 0 20px; color: var(--ink);
}
.ek-hero-body p {
  font-size: 1rem; color: var(--ink-soft);
  line-height: 1.75; margin: 0 0 32px; max-width: 480px;
}
.ek-hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: #fff;
  font-size: 0.95rem; font-weight: 700;
  padding: 13px 28px; border-radius: 8px;
  transition: background .15s, transform .15s;
  width: fit-content;
}
.ek-hero-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }
.ek-hero-cta svg { width: 16px; height: 16px; }

/* ── Detail badge ── */
.ek-detail-badge {
  display: inline-block;
  background: rgba(138,31,45,.1); color: var(--primary);
  font-size: 0.78rem; font-weight: 700; letter-spacing: .05em;
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 12px; text-transform: uppercase;
}

/* ── Detail stats row ── */
.ek-detail-stats {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin-top: 8px;
}
.ek-stat {
  display: flex; align-items: flex-start; gap: 10px;
}
.ek-stat svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.ek-stat-label { display: block; font-size: 0.75rem; color: var(--ink-soft); font-weight: 600; }
.ek-stat-val   { display: block; font-size: 0.9rem; color: var(--ink); font-weight: 700; }

/* ── Filter ── */
.ek-main { padding: 64px 0 80px; }
.ek-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 40px;
}
.ek-filter-btn {
  padding: 8px 20px; border-radius: 24px;
  border: 1.5px solid var(--border);
  background: #fff; font-size: 0.88rem; font-weight: 600;
  color: var(--ink-soft); cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.ek-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.ek-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Grid ── */
.ek-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ek-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ── Card ── */
.ek-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.ek-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.ek-card-thumb {
  position: relative;
  width: 100%; aspect-ratio: 16/10;
  background: var(--bg-soft-2); overflow: hidden;
}
.ek-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ek-card-icon-fallback {
  width: 100%; height: 100%;
  align-items: center; justify-content: center;
  font-size: 3rem; background: var(--bg-soft-2);
}
.ek-card-kat {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.ek-card-body {
  padding: 16px 18px 20px;
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.ek-card-top {
  display: flex; align-items: center; gap: 8px;
}
.ek-card-emoji { font-size: 1.4rem; line-height: 1; }
.ek-card-body h3 {
  font-size: 1rem; font-weight: 700; margin: 0;
  color: var(--ink); line-height: 1.3;
}
.ek-card-body p {
  font-size: 0.85rem; color: var(--ink-soft);
  line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ek-card-meta {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.ek-card-meta span {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--ink-soft);
}
.ek-card-meta svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Detail body ── */
.ek-detail-body { padding: 64px 0; }
.ek-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.ek-detail-desc h2 {
  font-size: 1.6rem; font-weight: 800; margin: 0 0 16px; color: var(--ink);
}
.ek-detail-desc p {
  font-size: 1rem; color: var(--ink-soft); line-height: 1.8; margin: 0;
}

/* ── Prestasi box ── */
.ek-prestasi-box {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.ek-prestasi-box h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 800; margin: 0 0 16px; color: var(--ink);
}
.ek-prestasi-box h3 svg { width: 18px; height: 18px; color: var(--primary); }
.ek-prestasi-box ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ek-prestasi-box li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5;
}
.ek-prestasi-box li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 6px;
}

/* ── Back button ── */
.ek-back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 10px 20px; font-size: 0.88rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none;
  transition: all .15s; width: 100%; justify-content: center;
}
.ek-back-btn:hover { border-color: var(--primary); color: var(--primary); }
.ek-back-btn svg { width: 16px; height: 16px; }

/* ── Lainnya section ── */
.ek-lainnya { padding: 0 0 80px; }
.ek-lainnya h2 {
  font-size: 1.5rem; font-weight: 800; margin: 0 0 32px; color: var(--ink);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ek-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .ek-hero .container { grid-template-columns: 1fr; min-height: auto; }
  .ek-hero-img { order: 2; padding: 40px 0 0; }
  .ek-hero-body { order: 1; padding: 0 0 32px; }
  .ek-hero-body h1 { font-size: 2.2rem; }
  .ek-hero--detail .ek-hero-img img { max-width: 100%; }
  .ek-grid { grid-template-columns: repeat(2, 1fr); }
  .ek-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ek-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ek-hero-body h1 { font-size: 1.8rem; }
  .ek-hero-img::before { width: 220px; height: 220px; }
  .ek-hero-img::after  { width: 245px; height: 245px; }
  .ek-grid { grid-template-columns: repeat(2, 1fr); }
  .ek-grid--3 { grid-template-columns: 1fr 1fr; }
  .ek-detail-stats { flex-direction: column; gap: 12px; }
}
