:root {
  --workshop-purple: #4f46e5;
  --workshop-purple-dark: #4338ca;
  --workshop-orange: #ea8b2d;
  --workshop-ink: #0f172a;
  --workshop-muted: #64748b;
  --workshop-line: #e2e8f0;
  --workshop-hero-bg: #f8fafc;
  --workshop-info-bg: #fff7ed;
  --workshop-upcoming-bg: #f8fafc;
  --workshop-card-bg: #ffffff;
}

body.workshops-page {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--workshop-ink);
  font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.workshops-page .site-header::after {
  background-image: url("data:image/svg+xml,%3Csvg width='1440' height='39' viewBox='0 0 1440 39' fill='none' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0 5.5C66 5.5 91 36 166 27.5C233 20 239 -2 322 4.5C397 10.4 429 -4 525 6.5C603 15 617 38 688 28.5C744 21 760 33 817 12C853 -1.2 884 36 948 13.5C1012 -9 1027 3.5 1077 28C1136 57 1182 11 1244 23.5C1304 35.5 1293 -3.5 1382 18.5C1408 24.9 1425 20.5 1440 14V39H0V5.5Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

.workshops-page main {
  background: #ffffff;
}

.workshops-main {
  width: min(1180px, calc(100% - 40px));
  margin: 30px auto 76px;
}

.workshops-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: center;
  overflow: hidden;
  min-height: 430px;
  padding: 54px;
  border-radius: 22px;
  border: 1px solid var(--workshop-line);
  background: var(--workshop-hero-bg);
  color: var(--workshop-ink);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.workshops-frame-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  min-height: clamp(420px, 43vw, 560px);
  padding: clamp(34px, 4.5vw, 66px);
  border: 0;
  background: #211832;
  isolation: isolate;
}

.workshops-frame-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(16, 12, 30, 0.62);
}

.workshops-frame-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.workshops-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
}

.workshops-frame-hero .workshops-hero-copy {
  max-width: 650px;
}

.workshops-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 15px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: #ffffff;
  color: var(--workshop-purple);
  font-size: 0.86rem;
  font-weight: 800;
}

.workshops-frame-hero .workshops-kicker {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.workshops-hero h1 {
  max-width: 660px;
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

.workshops-frame-hero h1 {
  display: grid;
  gap: 8px;
  color: #ffffff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.38);
}

.workshops-title-white,
.workshops-title-purple {
  display: block;
}

.workshops-title-white {
  color: #ffffff;
}

.workshops-title-purple {
  color: #c4b5fd;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.36);
}

.workshops-hero h1 span {
  color: #fb923c;
}

.workshops-hero-text {
  max-width: 610px;
  margin: 0;
  color: var(--workshop-muted);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.65;
}

.workshops-frame-hero .workshops-hero-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 1.45vw, 1.25rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.workshops-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.workshops-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.workshops-btn:hover,
.workshops-btn:focus-visible {
  transform: translateY(-1px);
}

.workshops-btn-primary {
  background: var(--workshop-purple);
  color: #ffffff;
}

.workshops-frame-hero .workshops-btn-primary {
  background: var(--workshop-purple);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.34);
}

.workshops-btn-secondary {
  border: 1px solid #d8b4fe;
  background: #ffffff;
  color: var(--workshop-purple);
}

.workshops-frame-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  width: min(100%, 530px);
  margin-left: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(32, 27, 45, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.workshops-frame-panel span {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 10px;
  background: rgba(245, 243, 247, 0.96);
  color: var(--workshop-purple-dark);
  font-size: 0.93rem;
  font-weight: 900;
  line-height: 1;
}

.workshops-info-frame {
  margin: 30px auto 0;
}

.workshops-info-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.workshops-feature-frame {
  margin: 30px auto 0;
}

.workshops-feature-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.workshops-detail-frame {
  margin: 30px auto 0;
}

.workshops-detail-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.workshops-final-frame {
  margin: 30px auto 0;
}

.workshops-final-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.workshops-extra-frame {
  margin: 30px auto 0;
}

.workshops-extra-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.workshops-upcoming {
  position: relative;
  width: min(100%, 920px);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.48fr);
  gap: 20px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid #e4d9fb;
  border-radius: 18px;
  background: #f8fafc;
}

.workshop-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  align-content: end;
  padding: 34px;
  border: 0;
  border-radius: 18px;
  background: url("/assets/home/tutor-carousel/learning-tutor.webp") center 22% / cover no-repeat;
  box-shadow: 0 20px 48px rgba(76, 29, 149, 0.22);
  color: #ffffff;
}

/* Brand-color diagonal wash — replaces a flat dark scrim so the photo still
   reads as bright/professional while staying on-palette with the purple
   used everywhere else on this page (badge, button, seat meter). */
.workshop-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(32, 24, 52, 0.58);
}

/* A second, bottom-anchored scrim just for the text block — keeps the
   headline/meta rows legible without darkening the whole photo as heavily
   as the diagonal wash above would need to on its own. */
.workshop-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 8, 36, 0.18);
}

.workshop-feature-card > * {
  position: relative;
  z-index: 1;
}

.workshop-feature-card .status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--workshop-purple-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(76, 29, 149, 0.18);
}

.workshop-feature-card .status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--workshop-orange);
}

.workshop-feature-card h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.16;
  text-shadow: 0 2px 18px rgba(15, 8, 36, 0.35);
}

.workshop-feature-card p {
  margin: 0 0 22px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  line-height: 1.65;
}

.workshop-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workshop-meta-list li {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.workshop-meta-list li span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workshop-meta-list strong {
  color: #ffffff;
  font-size: 0.94rem;
}

.workshop-seat-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 28px 26px;
  border-radius: 18px;
  border: 1px solid #ddc8fb;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(91, 33, 182, 0.08);
  color: var(--workshop-ink);
}

.workshop-seat-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--workshop-purple-dark);
}

.workshop-seat-card p {
  margin: 0;
  color: var(--workshop-muted);
  font-weight: 600;
  line-height: 1.6;
}

.workshop-seat-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9d5ff;
}

.workshop-seat-meter span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: var(--workshop-purple);
}

@media (max-width: 920px) {
  .workshops-hero,
  .workshops-upcoming {
    grid-template-columns: 1fr;
  }

  .workshops-frame-hero {
    min-height: 560px;
  }

  .workshops-upcoming {
    width: min(100%, 680px);
  }

}

@media (max-width: 620px) {
  .workshops-main {
    width: min(100% - 28px, 1180px);
    margin-top: 24px;
  }

  .workshops-hero,
  .workshops-upcoming {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .workshops-frame-hero {
    min-height: 620px;
    align-content: end;
  }

  .workshops-frame-panel {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .workshop-meta-list {
    grid-template-columns: 1fr;
  }

  .workshop-feature-card {
    min-height: 500px;
    padding: 24px 18px;
  }
}
