/* ============================================================
   WORKSHOPS PAGE — [workshopCourses]
   Namespace wsp_ : berdiri sendiri, nggak nabrak CSS courses grid.

   v1.3 — FIT Asia red accent, hero-style title banner, FAQ accordion.
   Ngikutin bahasa desain /graduate-practice-residency/ :
   hitam, merah #ff001a, Oswald uppercase, sudut tajam (2px).
   ============================================================ */

.wsp_block {
  --wsp-red:     #ff001a;
  --wsp-red-dk:  #d60016;
  --wsp-red-soft:rgba(255, 0, 26, .08);
  --wsp-black:   #0a0a0b;
  --wsp-ink:     #16181d;
  --wsp-muted:   #6b7280;
  --wsp-line:    #e6e8ec;
  --wsp-soft:    #f4f5f7;
  --wsp-amber:   #f5a623;

  --wsp-title:   'Oswald', Impact, 'Arial Narrow', sans-serif;
  --wsp-body:    'Roboto', Helvetica, Arial, sans-serif;
  --wsp-ease:    cubic-bezier(.22, .61, .36, 1);

  --wsp-container: 1180px;
  --wsp-gutter: 20px;

  max-width: var(--wsp-container);
  margin: 0 auto;
  padding: 0 var(--wsp-gutter) 30px;
  box-sizing: border-box;
  font-family: var(--wsp-body);
}

.wsp_block *,
.wsp_block *::before,
.wsp_block *::after { box-sizing: border-box; }


/* ------------------------------------------------------------
   FULL-BLEED
   Nembus container tema biar banner-nya selebar layar, terus isi
   list-nya dibalikin ke container sendiri (.wsp_container).

   Nggak mau full-bleed? pakai  [workshopCourses full_width="no"]

   Kenapa nggak 100vw polos: 100vw itu ngitung lebar scrollbar juga, jadi
   bannernya kelebihan ~8-17px dan munculin scroll horizontal. --wsp-sb
   diisi lebar scrollbar sama inline script kecil di controller. Kalau
   JS-nya mati, nilainya 0 dan hasilnya balik sama persis kayak 100vw.
   ------------------------------------------------------------ */

.wsp_block.wsp_full {
  --wsp-bleed: calc(100vw - var(--wsp-sb, 0px));

  width: var(--wsp-bleed);
  max-width: var(--wsp-bleed);
  margin-left: calc(50% - var(--wsp-bleed) / 2);
  margin-right: calc(50% - var(--wsp-bleed) / 2);
  padding-left: 0;
  padding-right: 0;
}

/* container buat list + empty state */
.wsp_container {
  width: 100%;
  max-width: var(--wsp-container);
  margin: 0 auto;
  padding: 0 var(--wsp-gutter);
}

/* kalau full_width="no", yang jadi container si .wsp_block sendiri */
.wsp_block:not(.wsp_full) .wsp_container { padding: 0; }


/* ============================================================
   TITLE BANNER
   ============================================================ */

.wsp_banner {
  position: relative;
  margin: 0 0 40px;
  padding: clamp(52px, 7vw, 86px) 0 clamp(46px, 6vw, 72px);
  background: var(--wsp-black);
  overflow: hidden;
  border-radius: 2px;
}

/* full-bleed: sudutnya rata, nggak usah membulat */
.wsp_full .wsp_banner { border-radius: 0; }

/* optional photo behind the banner */
.wsp_banner_media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.wsp_banner_media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 32%;
  opacity: .40;
  filter: grayscale(.85) contrast(1.12) brightness(.9);
}

/* red duotone so the photo sits in the brand palette */
.wsp_banner_media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wsp-red);
  opacity: .28;
  mix-blend-mode: color;
}

.wsp_banner_scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(90% 75% at 14% 84%, rgba(255, 0, 26, .30), rgba(0, 0, 0, 0) 62%),
    linear-gradient(180deg,
      rgba(0, 0, 0, .78) 0%,
      rgba(0, 0, 0, .42) 34%,
      rgba(0, 0, 0, .70) 74%,
      rgba(10, 10, 11, .97) 100%);
}

/* faint vertical rules, same trick as the residency hero */
.wsp_banner_lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.wsp_banner_lines span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .07);
}

.wsp_banner_lines span:nth-child(1) { left: 20%; }
.wsp_banner_lines span:nth-child(2) { left: 40%; }
.wsp_banner_lines span:nth-child(3) { left: 60%; }
.wsp_banner_lines span:nth-child(4) { left: 80%; }

/* teks banner ikut container yang sama kayak grid, biar eyebrow sejajar
   sama sisi kiri card pertama */
.wsp_banner_inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wsp-container);
  margin: 0 auto;
  padding: 0 var(--wsp-gutter);
}

.wsp_block:not(.wsp_full) .wsp_banner_inner {
  padding: 0 clamp(22px, 4vw, 54px);
}

/* eyebrow with the red bar */
.wsp_banner_eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-family: var(--wsp-title);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
}

.wsp_banner_bar {
  flex: none;
  width: 26px;
  height: 2px;
  background: var(--wsp-red);
}

.wsp_banner_title {
  margin: 0;
  max-width: 22ch;
  font-family: var(--wsp-title);
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.012em;
  text-transform: uppercase;
  color: #fff;
}

.wsp_banner_title em {
  font-style: normal;
  color: var(--wsp-red);
}

.wsp_banner_rule {
  width: 72px;
  height: 3px;
  margin: 26px 0 0;
  background: var(--wsp-red);
  border: 0;
}

.wsp_banner_sub {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
}

.wsp_banner_count {
  display: inline-block;
  margin: 26px 0 0;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  font-family: var(--wsp-title);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

.wsp_banner_count b {
  color: var(--wsp-red);
  font-weight: 700;
}


/* ---- plain header (dipakai kalau banner="no") ---- */

.wsp_head {
  max-width: 680px;
  margin: 0 0 36px;
}

.wsp_head_title {
  margin: 0 0 10px;
  font-family: var(--wsp-title);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wsp-black);
  letter-spacing: -.01em;
}

.wsp_head_title em {
  font-style: normal;
  color: var(--wsp-red);
}

.wsp_head_sub {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--wsp-muted);
}


/* ============================================================
   GRID
   ============================================================ */

.wsp_grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wsp_cols_1 .wsp_grid { grid-template-columns: minmax(0, 1fr); }
.wsp_cols_2 .wsp_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wsp_cols_3 .wsp_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .wsp_cols_3 .wsp_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .wsp_grid,
  .wsp_cols_2 .wsp_grid,
  .wsp_cols_3 .wsp_grid { grid-template-columns: minmax(0, 1fr); }

  .wsp_head_title { font-size: 30px; }
  .wsp_block      { padding: 0 16px 5px; }
  .wsp_banner     { margin-bottom: 28px; }
}


/* ============================================================
   CARD
   ============================================================ */

.wsp_card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--wsp-line);
  border-radius: 2px;
  overflow: hidden;
  transition:
    box-shadow .3s var(--wsp-ease),
    transform .3s var(--wsp-ease),
    border-color .3s var(--wsp-ease);
}

/* red bar that draws across the top on hover */
.wsp_card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--wsp-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--wsp-ease);
  z-index: 2;
}

/* hover: hover -> di layar sentuh state-nya nggak nyangkut setelah di-tap */
@media (hover: hover) {
  .wsp_card:hover {
    border-color: #d9dde4;
    box-shadow: 0 14px 34px rgba(10, 10, 11, .13);
    transform: translateY(-4px);
  }

  .wsp_card:hover::before { transform: scaleX(1); }

  .wsp_card:hover .wsp_title { color: var(--wsp-red); }
}

/* keyboard: kartu yang link-nya lagi difokus ikut nyala */
.wsp_card:focus-within::before { transform: scaleX(1); }

.wsp_card_img {
  height: 190px;
  background-size: cover;
  background-position: center;
  background-color: var(--wsp-soft);
}

.wsp_card_body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  padding: 26px;
}


/* ---- early bird badge ---- */

.wsp_badge {
  align-self: flex-start;
  padding: 7px 13px;
  background: var(--wsp-amber);
  color: #1b1b1b;
  font-family: var(--wsp-title);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 2px;
}


/* ---- text ---- */

.wsp_title {
  margin: 0;
  font-family: var(--wsp-title);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--wsp-black);
  transition: color .3s var(--wsp-ease);
}

.wsp_desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--wsp-muted);
}


/* ---- format pill ---- */

.wsp_format {
  align-self: flex-start;
  padding: 8px 14px;
  background: var(--wsp-black);
  color: #fff;
  font-family: var(--wsp-title);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 2px;
}


/* ---- chips ---- */

.wsp_chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wsp_chip {
  padding: 7px 12px;
  font-family: var(--wsp-title);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 2px;
  white-space: nowrap;
}

.wsp_chip_filled {
  background: var(--wsp-soft);
  color: var(--wsp-ink);
  border: 1px solid transparent;
}

.wsp_chip_outline {
  background: var(--wsp-red-soft);
  border: 1px solid var(--wsp-red);
  color: var(--wsp-red);
}


/* ---- meta ---- */

.wsp_meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;    /* dorong ke bawah -> tinggi card rata */
  padding-top: 14px;
  border-top: 1px solid var(--wsp-line);
}

.wsp_date {
  display: block;
  font-family: var(--wsp-title);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wsp-black);
}

.wsp_duration {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  color: var(--wsp-muted);
}

.wsp_price {
  font-family: var(--wsp-title);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--wsp-black);
  white-space: nowrap;
}

.wsp_price_soft {
  font-size: 14px;
  font-weight: 400;
  font-family: var(--wsp-body);
  color: var(--wsp-muted);
  white-space: normal;
}


/* ---- button ---- */

.wsp_btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 15px 18px;
  background: var(--wsp-red);
  color: #fff !important;
  font-family: var(--wsp-title);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none !important;
  border-radius: 2px;
  transition: background .25s var(--wsp-ease);
}

.wsp_btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--wsp-black);
  transform: translateY(101%);
  transition: transform .4s var(--wsp-ease);
}

.wsp_btn > * { position: relative; z-index: 1; }

.wsp_btn:hover::after,
.wsp_btn:focus::after { transform: translateY(0); }

.wsp_btn:hover,
.wsp_btn:focus { color: #fff !important; }

.wsp_btn_arrow {
  display: inline-block;
  transition: transform .35s var(--wsp-ease);
}

.wsp_btn:hover .wsp_btn_arrow,
.wsp_btn:focus .wsp_btn_arrow { transform: translateX(5px); }

.wsp_btn:focus-visible {
  outline: 2px solid var(--wsp-black);
  outline-offset: 3px;
}


/* ---- empty state ---- */

.wsp_empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--wsp-muted);
  background: #fafbfc;
  border: 1px dashed var(--wsp-line);
  border-left: 3px solid var(--wsp-red);
  border-radius: 2px;
}


/* ---- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  .wsp_card,
  .wsp_card::before,
  .wsp_btn,
  .wsp_btn::after,
  .wsp_btn_arrow,
  .wsp_title {
    transition: none !important;
  }
  .wsp_card:hover { transform: none; }
}


/* ============================================================
   FAQ
   Gaya ngikut FAQ /industry-learning/ : band abu-abu, garis tipis
   per baris, judul Oswald uppercase, ikon "+" merah yang muter
   45 derajat kalau item-nya kebuka.

   Markup-nya <details>/<summary> polos — nggak butuh JS, bisa
   dibuka pakai keyboard, dan kalau CSS gagal load pun tetap kebaca.

   Matiin blok ini?  [workshopCourses faq="no"]
   ============================================================ */

.wsp_faq {
  --wsp-faq-bg:   #f5f5f4;
  --wsp-faq-line: #dcdcda;
  --wsp-faq-body: #4b4f56;

  margin: 56px 0 0;
  padding: clamp(64px, 7vw, 100px) var(--wsp-gutter) clamp(70px, 8vw, 110px);
  background: var(--wsp-faq-bg);
  border-top: 1px solid var(--wsp-line);
}

/* band-nya nutup bagian bawah section, jadi padding bawah .wsp_block
   nggak nyisain strip putih di bawah FAQ */
.wsp_block.wsp_has_faq { padding-bottom: 0; }

/* full_width="no": band-nya ikut container, sudutnya disamain sama card */
.wsp_block:not(.wsp_full) .wsp_faq {
  padding-left: clamp(22px, 4vw, 54px);
  padding-right: clamp(22px, 4vw, 54px);
  border: 1px solid var(--wsp-line);
  border-radius: 2px;
}

/* teks FAQ lebih sempit dari grid — enak dibaca, sama kayak referensinya */
.wsp_faq_inner {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}


/* ---- head ---- */

.wsp_faq_head { margin-bottom: 44px; }

.wsp_faq_eyebrow {
  margin: 0 0 16px;
  font-family: var(--wsp-title);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--wsp-red);
}

.wsp_faq_title {
  margin: 0;
  font-family: var(--wsp-title);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--wsp-black);
}


/* ---- accordion ---- */

.wsp_faq_list {
  display: flex;
  flex-direction: column;
}

.wsp_faq_item { border-top: 1px solid var(--wsp-faq-line); }
.wsp_faq_item:last-child { border-bottom: 1px solid var(--wsp-faq-line); }

.wsp_faq_item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--wsp-title);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--wsp-black);
  transition: color .25s var(--wsp-ease);
}

/* buang marker default (triangle) di semua browser */
.wsp_faq_item > summary::-webkit-details-marker { display: none; }
.wsp_faq_item > summary::marker { content: ""; }

@media (hover: hover) {
  .wsp_faq_item > summary:hover { color: var(--wsp-red); }
}

.wsp_faq_item > summary:focus-visible {
  outline: 2px solid var(--wsp-red);
  outline-offset: 3px;
}

.wsp_faq_q { flex: 1 1 auto; }

.wsp_faq_icon {
  flex: none;
  font-family: var(--wsp-body);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: var(--wsp-red);
  transition: transform .2s var(--wsp-ease);
}

.wsp_faq_item[open] .wsp_faq_icon { transform: rotate(45deg); }


/* ---- jawaban ---- */

.wsp_faq_a p {
  margin: 0 0 26px;
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--wsp-faq-body);
}

.wsp_faq_a p + p { margin-top: -6px; }


/* ---- catatan penutup di bawah accordion ----
   Kotak putih di atas band abu-abu, garis tebal hitam di kiri — netral,
   nggak nambah warna merah lagi. Paragraf pertama agak tebal (lead). */

.wsp_faq_note {
  margin-top: 44px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  background: #fff;
  border: 1px solid #e3e3e1;
  border-left: 5px solid var(--wsp-black);
  border-radius: 2px;
}

.wsp_faq_note p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--wsp-faq-body);
}

.wsp_faq_note p:last-child { margin-bottom: 0; }

.wsp_faq_note_lead {
  color: #26282d;
  font-weight: 600;
}

@media (max-width: 820px) {
  .wsp_faq {
    margin-top: 40px;
    padding-top: 64px;
    padding-bottom: 70px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .wsp_faq_head { margin-bottom: 32px; }

  .wsp_faq_item > summary { padding: 22px 0; font-size: 17px; }

  .wsp_faq_a p { font-size: 16px; }

  .wsp_faq_note { margin-top: 32px; }
  .wsp_faq_note p { font-size: 16px; }
}


@media (prefers-reduced-motion: reduce) {
  .wsp_faq_item > summary,
  .wsp_faq_icon { transition: none !important; }
}
