:root {
    --haiti: #161032;
    --java: #14CFBC;
    --bright-sun: #FFE830;
    --butterfly: #5C51A2;
    --alabaster: #FAFAFA;

    --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);
}

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

header.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(420px 220px at 12% 12%, rgba(20, 207, 188, .18), transparent 60%),
    radial-gradient(460px 260px at 88% 0%, rgba(255, 232, 48, .20), transparent 60%),
    linear-gradient(130deg, rgba(92, 81, 162, .14) 0%, rgba(92, 81, 162, .06) 40%, transparent 60%);
  border-bottom: 1px solid var(--glass-1);
}

header.hero > *{
  max-width:var(--page-max);
  margin-left:auto;
  margin-right:auto;
  padding-left:var(--page-pad);
  padding-right:var(--page-pad);
}

.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: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(92, 81, 162, .10), rgba(92, 81, 162, .06));
  border: 1px solid var(--glass-1);
  box-shadow: var(--shadow-1);
  font-weight: 800;
  color: #2a234f;
  font-size: var(--fs-body);
}

/* ===== PROSE ===== */
.prose{
  max-width:var(--page-max);
  margin:22px 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: 1.8rem 0 .6rem;
    border-left: 6px solid var(--butterfly);
    padding-left: 12px;
    text-wrap: balance;
}

.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: 16px;
  margin-top: .9rem;
}

.info-card{
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .92));
  border: 1px solid var(--glass-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 18px 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.info-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(92, 81, 162, .16);
}

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

.info-icon{
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(92, 81, 162, .12), rgba(92, 81, 162, .06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--butterfly);
}

.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: 16px;
  margin-top: .9rem;
}

.student-card{
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(20, 207, 188, .25);
  background: linear-gradient(180deg, rgba(20, 207, 188, .08), rgba(20, 207, 188, .03));
  transition: transform .18s ease, box-shadow .18s ease;
}

.student-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(20, 207, 188, .16);
}

.student-icon{
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: rgba(20, 207, 188, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b5e54;
}

.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(180deg, rgba(92, 81, 162, .10), rgba(92, 81, 162, .06));
    border: 1px solid var(--glass-1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    padding: 14px 16px;
    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; }

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

.mcard{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-1);
  background: linear-gradient(180deg, rgba(92, 81, 162, .08), rgba(92, 81, 162, .05));
}

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

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

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

.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: 28px;
  margin: .45rem 0;
}

.checks li::before{
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(20, 207, 188, .14);
  color: #0b3a35;
  font-weight: 900;
}

/* ===== 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;
}

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

blockquote {
    margin: 1rem 0;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .92));
    border-left: 4px solid var(--java);
    border-right: 1px solid var(--glass-1);
    border-top: 1px solid var(--glass-1);
    border-bottom: 1px solid var(--glass-1);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
}

blockquote footer {
    color: #5C51A2;
    font-weight: 700;
    margin-top: .4rem
}

/* ===== ENROLLMENT SECTION (matches certificari.html) ===== */
.enroll-section {
    max-width: 900px;
    margin: 10px auto 30px;
    scroll-margin-top: 80px;
    padding: 0 var(--page-pad);
}

.enroll-heading{
  text-align: center;
  font-size: var(--fs-h2);
  font-family: var(--font-heading);
  margin: 0 0 6px;
  border: none;
  padding: 0;
}

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

.enroll-grid {
    max-width: 900px;
    margin: 0 auto;
}

.enroll-card {
    scroll-margin-top: 90px;
    background: linear-gradient(168deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.90) 100%);
    border: 1px solid var(--glass-1);
    border-radius: var(--radius-xl);
    padding: 26px 24px;
    box-shadow: var(--shadow-1);
    position: relative;
    overflow: hidden;
}

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

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

.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,.06);
    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,.12);
    border-color: rgba(92,81,162,.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(92,81,162,.12);
}

.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: 12px 18px;
    border-radius: 14px;
    background: var(--butterfly);
    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: var(--shadow-2);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(92, 81, 162, .30);
    background: #6a60b8
}

.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, .08);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(92, 81, 162, .16);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
    header.hero { padding: 36px 0 12px }
    .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; }
}

@media (max-width: 560px) {
    .info-grid{ grid-template-columns: 1fr; }
    .slots-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px){
  .ts-btn{ width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce){
  .ts-track{ transition: none; }
}
