:root {
    --haiti: #161032;
    --java: #14CFBC;
    --bright-sun: #FFE830;
    --butterfly: #5C51A2;
    --alabaster: #FAFAFA;
    --python-blue: #3776AB;
    --python-yellow: #FFD43B;

    --glass-1: rgba(0, 0, 0, .08);
    --shadow-1: 0 10px 28px rgba(22, 16, 50, .10);
    --shadow-2: 0 16px 50px rgba(92, 81, 162, .22);

    --radius-xl: 24px;
    --radius-lg: 16px;
    --fab-size: 56px;

    --fs-root: 17px;
    --lh: 1.7;
    --fs-h1: clamp(2.2rem, 4vw, 3rem);
    --fs-h2: clamp(1.5rem, 2.6vw, 2rem);
    --fs-h3: clamp(1.2rem, 2vw, 1.35rem);
    --fs-lead: clamp(1.05rem, 1.6vw, 1.2rem);
    --fs-body: clamp(1.0rem, 1.2vw, 1.1rem);
    --fs-small: .95rem;

    --content-max: 88ch;
    --page-max: 1200px;
    --page-pad: 20px;
    --measure: var(--content-max);
    --measure-wide: var(--page-max);
}

* { box-sizing: border-box }

html { font-size: var(--fs-root); scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--haiti);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(92, 81, 162, .16), transparent 60%),
        radial-gradient(900px 540px at 110% -10%, rgba(255, 232, 48, .16), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .96) 40%),
        radial-gradient(circle at 1px 1px, rgba(22, 16, 50, .06) 1px, transparent 0) 0 0/18px 18px;
}

.wrap{
  max-width:var(--page-max);
  margin:0 auto;
  padding:0 var(--page-pad);
}

/* ===== KEYFRAMES ===== */
@keyframes hero-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(-50%) rotate(-4deg) scale(1); }
  50%       { transform: translateY(calc(-50% - 16px)) rotate(0deg) scale(1.03); }
}

/* ===== HERO ===== */
header.hero{
  width:100vw;
  max-width:100vw;
  margin:0 calc(50% - 50vw) 0;
  padding:64px 0 52px;
  position:relative;
  isolation:isolate;
  overflow:hidden;
}

header.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(520px 280px at 10% 10%, rgba(20, 207, 188, .22), transparent 60%),
    radial-gradient(560px 320px at 90% -5%, rgba(255, 232, 48, .26), transparent 60%),
    radial-gradient(700px 400px at 50% 120%, rgba(92, 81, 162, .18), transparent 55%),
    linear-gradient(130deg, rgba(92, 81, 162, .18) 0%, rgba(92, 81, 162, .06) 40%, transparent 60%);
  border-bottom: 1px solid rgba(92, 81, 162, .14);
  animation: hero-pulse 9s ease-in-out infinite;
}

/* Apply layout constraints to all hero children EXCEPT the watermark */
header.hero > *:not(.hero-watermark){
  max-width:var(--page-max);
  margin-left:auto;
  margin-right:auto;
  padding-left:var(--page-pad);
  padding-right:var(--page-pad);
}

/* Slightly larger h1 in the hero */
header.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

/* ===== PYTHON LOGO WATERMARK ===== */
.hero-watermark {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%) rotate(-4deg);
  width: 340px;
  height: 340px;
  color: var(--haiti);
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  animation: logo-float 11s ease-in-out infinite;
}

.hero-watermark svg {
  width: 100%;
  height: 100%;
}

.eyebrow {
    color: var(--butterfly);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: var(--fs-micro);
    font-family: var(--font-heading)
}

h1 {
    margin: .35rem 0 .6rem;
    font-size: var(--fs-h1);
    line-height: var(--lh-heading);
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--haiti);
    max-width: none;
}

.lead {
    font-size: var(--fs-body-lg);
    line-height: var(--lh-body);
    color: #2a234f;
    opacity: .95;
    max-width: 100%;
    text-wrap: pretty;
}

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: .9rem;
}

.hero-mini{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: .9rem;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(92, 81, 162, .12), rgba(92, 81, 162, .07));
  border: 1px solid rgba(92, 81, 162, .20);
  box-shadow: 0 4px 14px rgba(92, 81, 162, .10);
  font-weight: 800;
  color: #2a234f;
  font-size: var(--fs-body);
  transition: transform .18s ease, box-shadow .18s ease;
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(92, 81, 162, .18);
}

/* ===== STATS STRIP ===== */
.stats-strip {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(135deg, var(--haiti) 0%, #1c1448 60%, #252060 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 10% 50%, rgba(20, 207, 188, .12), transparent 60%),
    radial-gradient(400px 200px at 90% 50%, rgba(255, 232, 48, .10), transparent 60%);
  pointer-events: none;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, .07);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  font-family: var(--font-heading);
  line-height: 1.1;
  color: var(--java);
  letter-spacing: -0.02em;
}

.stat-item:nth-child(2) .stat-num,
.stat-item:nth-child(3) .stat-num { color: var(--bright-sun); }

.stat-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  font-family: var(--font-heading);
}

/* ===== PROSE ===== */
.prose{
  max-width:var(--page-max);
  margin:40px auto 28px;
  padding:0 var(--page-pad);
  font-size:var(--fs-body);
}

.prose > *{
  max-width:100%;
  margin-left:0;
  margin-right:0;
}

.prose h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-heading-2);
    font-family: var(--font-heading);
    margin: 2rem 0 .7rem;
    border-left: 5px solid var(--butterfly);
    padding-left: 14px;
    text-wrap: balance;
    background: linear-gradient(90deg, var(--haiti) 0%, #3d3475 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prose h3 {
    font-size: var(--fs-h3);
    line-height: var(--lh-heading-2);
    font-weight: 500;
    font-family: var(--font-heading);
    margin: 1.4rem 0 .4rem;
    color: #2a234f
}

.prose p { margin: .7rem 0; text-wrap: pretty; }
.prose strong { font-weight: 900 }

.prose em {
    background: linear-gradient(transparent 60%, rgba(255, 232, 48, .45) 60%);
    font-style: normal
}

.prose hr {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, rgba(20, 207, 188, .35), transparent);
    margin: 1.6rem 0;
}

.prose ul { padding-left: 1.1rem; margin: .6rem 0 }
.prose li { margin: .35rem 0 }

/* ===== INFO GRID (Pentru parinti) ===== */
.info-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: .9rem;
}

.info-card{
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .92));
  border: 1px solid rgba(92, 81, 162, .14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 22px 18px 18px;
  transition: transform .20s ease, box-shadow .20s ease;
  overflow: hidden;
}

/* Colored top stripe */
.info-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--butterfly), var(--java));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.info-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(92, 81, 162, .18);
}

/* Shared card-header: icon + title side by side */
.card-header{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.info-icon{
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(92, 81, 162, .15), rgba(92, 81, 162, .07));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--butterfly);
  box-shadow: 0 4px 12px rgba(92, 81, 162, .12);
}

.info-icon svg{
  flex-shrink: 0;
}

.info-card h3{
  margin: 0;
  font-size: var(--fs-body-lg);
  color: var(--haiti);
  font-weight: 700;
  text-wrap: balance;
}

.info-card p{
  margin: 0;
  color: #2a234f;
  opacity: .92;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ===== STUDENT GRID (Pentru elevi) ===== */
.student-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: .9rem;
}

.student-card{
  position: relative;
  padding: 22px 18px 18px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(20, 207, 188, .28);
  background: linear-gradient(145deg, rgba(20, 207, 188, .09), rgba(20, 207, 188, .03));
  transition: transform .20s ease, box-shadow .20s ease;
  overflow: hidden;
}

/* Colored top stripe */
.student-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--java), var(--butterfly));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.student-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(20, 207, 188, .20);
  border-color: rgba(20, 207, 188, .45);
}

.student-icon{
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: rgba(20, 207, 188, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b5e54;
  box-shadow: 0 4px 12px rgba(20, 207, 188, .15);
}

.student-icon svg{ flex-shrink: 0; }

.student-card h3{
  margin: 0;
  font-size: var(--fs-body-lg);
  color: var(--haiti);
  font-weight: 700;
  text-wrap: balance;
}

.student-card p{
  margin: 0;
  color: #2a234f;
  opacity: .92;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Note */
.note {
    background: linear-gradient(145deg, rgba(92, 81, 162, .10), rgba(92, 81, 162, .05));
    border: 1px solid rgba(92, 81, 162, .16);
    border-left: 4px solid var(--java);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    padding: 16px 18px;
    margin: 1rem 0;
    text-wrap: pretty;
}

.muted{
  color:#4a447a;
  opacity:.9;
  font-size: var(--fs-small);
  margin: .55rem 0 .2rem;
}

/* ===== ACCORDION & MODULES ===== */
.accordion{ margin: .9rem 0 1.1rem; display: flex; flex-direction: column; gap: 8px; }

.accordion details {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(92, 81, 162, .16);
  overflow: hidden;
}

.accordion details > summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(92, 81, 162, .10), rgba(92, 81, 162, .06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  transition: background .18s ease;
  font-size: var(--fs-body-lg);
}

.accordion details > summary::-webkit-details-marker { display: none; }
.accordion details > summary::marker { display: none; }

.accordion details > summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--butterfly);
  transition: transform .25s ease;
  flex-shrink: 0;
  line-height: 1;
}

.accordion details[open] > summary {
  background: linear-gradient(180deg, rgba(92, 81, 162, .15), rgba(92, 81, 162, .10));
}

.accordion details[open] > summary::after {
  transform: rotate(45deg);
}

.accordion details > div {
  padding: 0 16px 16px;
}

.modules{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mcard{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(92, 81, 162, .14);
  background: linear-gradient(145deg, rgba(92, 81, 162, .09), rgba(92, 81, 162, .04));
  transition: transform .15s ease, box-shadow .15s ease;
}

.mcard:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(92, 81, 162, .10);
}

.mcard strong{ white-space: nowrap; font-weight: 900; color: var(--butterfly); }
.mcard span{ color:#2a234f; opacity:.95; text-wrap: pretty; }

.factbox{
  display:grid;
  gap: 10px;
  margin-top: 12px;
}

.fact{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(20, 207, 188, .18);
  background: linear-gradient(145deg, rgba(20, 207, 188, .10), rgba(20, 207, 188, .04));
}

.fact span{ color:#2a234f; opacity:.9; font-weight: 700; }
.fact strong{ font-weight: 900; }

/* ===== CHECKS ===== */
.checks{
  list-style: none;
  padding-left: 0;
  margin: .6rem 0;
}

.checks li{
  position: relative;
  padding-left: 32px;
  margin: .55rem 0;
}

.checks li::before{
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, rgba(20, 207, 188, .22), rgba(20, 207, 188, .10));
  color: #0b3a35;
  font-weight: 900;
  font-size: .85rem;
  box-shadow: 0 2px 8px rgba(20, 207, 188, .18);
}

/* ===== GALLERY ===== */
.gallery{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery img{
  border-radius: 12px;
  max-width: 260px;
  box-shadow: var(--shadow-1);
}

figcaption{
  margin-top: 8px;
  font-size: var(--fs-small);
  color: #4a447a;
  opacity: .85;
}

/* ===== Testimonials slider ===== */
.testimonials{ margin: 1rem 0 1.2rem; }

.ts-viewport{ overflow: hidden; border-radius: 16px; width: 100%; }

.ts-track{
  display: flex;
  width: 100%;
  gap: 0;
  transition: transform .45s ease;
  will-change: transform;
}

.ts-slide{ flex: 0 0 100%; width: 100%; min-width: 100%; }
.ts-quote{ height: 100%; margin: 0; }

.ts-controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.ts-btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  font-size: var(--fs-h4);
  line-height: 1;
  color: var(--haiti);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.ts-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(92, 81, 162, .18);
  background: #fff;
}

.ts-btn:focus-visible,
.ts-dot:focus-visible{
  outline: 3px solid rgba(92, 81, 162, .55);
  outline-offset: 2px;
}

.ts-dots{ display: inline-flex; gap: 8px; align-items: center; }

.ts-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(92,81,162,.25);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}

.ts-dot.is-active{
  background: var(--butterfly);
  transform: scale(1.2);
}

/* Big decorative quote mark */
blockquote {
    position: relative;
    margin: 1rem 0;
    padding: 20px 18px 16px 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .92));
    border-left: 4px solid var(--java);
    border-right: 1px solid rgba(20, 207, 188, .14);
    border-top: 1px solid rgba(20, 207, 188, .14);
    border-bottom: 1px solid rgba(20, 207, 188, .14);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(22, 16, 50, .09);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: 12px;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--java);
  opacity: 0.22;
  font-family: Georgia, 'Times New Roman', serif;
  pointer-events: none;
  font-weight: 900;
}

blockquote footer {
    color: #5C51A2;
    font-weight: 700;
    margin-top: .5rem;
    font-size: var(--fs-small);
}

/* ===== ENROLLMENT SECTION (matches certificari.html) ===== */
.enroll-section {
    max-width: var(--page-max);
    margin: 10px auto 40px;
    scroll-margin-top: 80px;
    padding: 36px var(--page-pad);
    background: linear-gradient(145deg, rgba(92, 81, 162, .07) 0%, rgba(20, 207, 188, .06) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(92, 81, 162, .12);
}

.enroll-heading{
  text-align: center;
  font-size: var(--fs-h2);
  font-family: var(--font-heading);
  margin: 0 0 6px;
  border: none;
  padding: 0;
  /* override gradient on h2 from prose – not inside .prose here */
  background: linear-gradient(120deg, var(--haiti) 0%, var(--butterfly) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.enroll-sub {
    text-align: center;
    color: rgba(42,35,79,.7);
    margin: 0 0 22px;
}

.enroll-grid {
    max-width: 100%;
    margin: 0 auto;
}

.enroll-card {
    scroll-margin-top: 90px;
    background: linear-gradient(168deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 100%);
    border: 1px solid rgba(92, 81, 162, .14);
    border-radius: var(--radius-xl);
    padding: 28px 26px;
    box-shadow: 0 12px 40px rgba(92, 81, 162, .12);
    position: relative;
    overflow: hidden;
}

.enroll-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--butterfly), var(--java), var(--bright-sun));
}

.enroll-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.enroll-badge {
    flex-shrink: 0;
    font-size: var(--fs-micro);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--butterfly);
    border: 1px solid rgba(92,81,162,.25);
    background: rgba(92,81,162,.07);
    padding: 6px 14px;
    border-radius: 999px;
}

.enroll-title {
    margin: 0;
    font-size: var(--fs-h4);
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--haiti);
}

.enroll-slots .loading-text {
    color: rgba(42,35,79,.45);
    font-style: italic;
}

.enroll-slots .no-slots {
    color: rgba(42,35,79,.5);
    padding: 14px 0;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(92,81,162,.06);
    border: 1px solid rgba(92,81,162,.18);
    color: var(--haiti);
    cursor: pointer;
    font-family: inherit;
    transition: background .18s, border-color .18s, transform .12s, box-shadow .18s;
}

.slot-btn:hover {
    background: rgba(92,81,162,.13);
    border-color: rgba(92,81,162,.38);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(92,81,162,.14);
}

.slot-day {
    font-weight: 700;
    font-size: var(--fs-body);
}

.slot-time {
    font-size: var(--fs-small);
    color: var(--butterfly);
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--butterfly) 0%, #7a6ec8 100%);
    color: var(--alabaster);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--fs-btn);
    font-family: var(--font-body);
    border: 2px solid transparent;
    box-shadow: 0 6px 20px rgba(92, 81, 162, .35);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(92, 81, 162, .38);
    background: linear-gradient(135deg, #6a60b8 0%, #8878d4 100%);
}

.btn.btn-ghost{
  background: transparent;
  color: var(--butterfly);
  border-color: rgba(92, 81, 162, .35);
  box-shadow: none;
}

.btn.btn-ghost:hover{
  background: rgba(92, 81, 162, .09);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(92, 81, 162, .18);
}

/* ===== PREP GRID (Cum îi pregătim) ===== */
.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: .9rem;
}

.prep-item {
  position: relative;
  padding: 24px 20px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
  border: 1px solid rgba(92, 81, 162, .14);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .20s ease, box-shadow .20s ease;
}

.prep-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--java), var(--butterfly));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.prep-item::after {
  content: "";
  position: absolute;
  bottom: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,207,188,.08), transparent 70%);
  pointer-events: none;
}

.prep-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(92, 81, 162, .16);
}

.prep-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 207, 188, .16), rgba(20, 207, 188, .06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b6b60;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(20, 207, 188, .15);
}

.prep-item h3 {
  margin: 0 0 8px;
  font-size: var(--fs-body-lg);
  font-weight: 700;
  color: var(--haiti);
  font-family: var(--font-heading);
}

.prep-item p {
  margin: 0;
  color: #2a234f;
  opacity: .9;
  line-height: 1.65;
  font-size: var(--fs-body);
  max-width: none;
}

/* ===== CERT SHOWCASE ===== */
.cert-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 1rem 0 1.4rem;
}

.cert-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-figure figcaption {
  text-align: center;
  font-size: var(--fs-small);
  color: #4a447a;
  opacity: .85;
  margin-top: 0;
}

.cert-mock {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(55, 118, 171, .20), 0 2px 8px rgba(22, 16, 50, .08);
  border: 1px solid rgba(55, 118, 171, .15);
  transition: transform .22s ease, box-shadow .22s ease;
}

.cert-mock:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 22px 56px rgba(55, 118, 171, .28);
}

.cert-mock svg {
  display: block;
  width: 100%;
  height: auto;
}

.cert-figure--project {
  /* stretch the project card to fill the same grid-row height as the cert */
}

.cert-project-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 52, 96, .28);
  border: 1px solid rgba(20, 207, 188, .18);
  transition: transform .22s ease, box-shadow .22s ease;
}

.cert-project-wrap:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: 0 22px 56px rgba(15, 52, 96, .38);
}

.cert-project-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

.cert-project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--java), #0faf9f);
  color: var(--haiti);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(20, 207, 188, .40);
}

/* ===== TESTIMONIAL SLIDER CARD ===== */
/* The slider viewport/track/controls are already defined above.
   Here we style the card that lives inside each .ts-slide */

.ts-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.99), rgba(250,250,255,.94));
  border: 1px solid rgba(92, 81, 162, .13);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-1);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  align-items: center;
  overflow: hidden;
  text-align: left;
}

.ts-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--butterfly), var(--java));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* large background quote mark */
.ts-card::after {
  content: "\201C";
  position: absolute;
  top: 10px; right: 20px;
  font-size: 6rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--butterfly);
  opacity: .06;
  pointer-events: none;
}

/* Person column: avatar + name + stars stacked & centred */
.ts-card-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* Avatar circle */
.ts-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.18);
  padding: 10px;         /* breathing room around the icon */
}

.ts-avatar svg {
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.92);  /* icon color = near-white on colored bg */
}

/* Background gradients per person type */
.ts-avatar--mom  { background: linear-gradient(145deg, #5C51A2, #7a6ec8); }
.ts-avatar--dad  { background: linear-gradient(145deg, #2a234f, #4a3d8f); }
.ts-avatar--boy  { background: linear-gradient(145deg, #0b5e54, #12b3a3); }
.ts-avatar--girl { background: linear-gradient(145deg, #155e4a, #14CFBC); }

/* Stars */
.ts-stars {
  color: #f5a800;
  font-size: 1.05rem;
  letter-spacing: 3px;
  line-height: 1;
}

/* Quote text (right column) */
.ts-text {
  margin: 0;
  color: #2a234f;
  line-height: 1.75;
  font-size: var(--fs-body-lg);
  font-style: italic;
  opacity: .9;
  max-width: none;
  text-align: left;
}

/* Footer (name + location, inside .ts-card-person) */
.ts-footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  align-items: center;
}

.ts-footer strong {
  font-weight: 800;
  color: var(--haiti);
  font-size: var(--fs-body);
}

.ts-footer span {
  font-size: var(--fs-small);
  color: var(--butterfly);
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
    header.hero { padding: 48px 0 32px }
    .info-grid{ grid-template-columns: 1fr 1fr; }
    .student-grid{ grid-template-columns: 1fr; }
    .modules{ grid-template-columns: 1fr; }
    .hero-cta{ flex-direction: column; align-items: stretch; }
    .hero-watermark { width: 220px; height: 220px; right: 2%; opacity: 0.04; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
    .stat-item:nth-child(2n) { border-right: none; }
    .stat-item:nth-last-child(-n+2) { border-bottom: none; }
    .cert-showcase { grid-template-columns: 1fr; }
    .prep-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .prep-grid { grid-template-columns: 1fr; }
    .cert-showcase { grid-template-columns: 1fr; }
    .ts-card {
      grid-template-columns: 1fr;
      padding: 24px 18px 20px;
      text-align: center;
      gap: 16px;
    }
    .ts-text { text-align: center; }
}

@media (max-width: 560px) {
    .info-grid{ grid-template-columns: 1fr; }
    .slots-grid{ grid-template-columns: 1fr 1fr; }
    .hero-watermark { display: none; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce){
  .ts-track{ transition: none; }
  header.hero::before { animation: none; }
  .hero-watermark { animation: none; }
  .pill { transition: none; }
  .ts-card, .prep-item, .info-card, .student-card, .cert-mock, .cert-project-wrap { transition: none; }
}
