:root{
  --violet:#5b3a9e; --violet-deep:#432b78; --lime:#c6e858;
  --text:#241a3a; --text-dim:#6b6080; --bg:#faf9fc; --border:#e5e0f0;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{overflow-x:hidden;max-width:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:'Cairo',Tahoma,sans-serif}
h1,h2,h3{font-family:'Alexandria',sans-serif}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}
input,select{font-family:inherit}

.back-pill{position:fixed;inset-block-start:16px;inset-inline-end:16px;z-index:120;background:#fff;color:var(--violet);padding:8px 16px;border-radius:999px;font-size:13px;font-weight:700;border:1px solid var(--border);box-shadow:0 4px 12px rgba(91,58,158,.15)}

/* ---- Shell: sidebar archetype ---- */
.shell{display:flex;align-items:flex-start;min-height:100vh}
.sidebar{width:270px;flex-shrink:0;position:sticky;inset-block-start:0;height:100vh;overflow-y:auto;
  background:var(--violet-deep);color:#fff;padding:26px 20px;display:flex;flex-direction:column;gap:22px}
.sidebar__brand{display:flex;align-items:center;gap:10px}
.sidebar__mark{width:36px;height:36px;border-radius:10px;background:var(--lime);color:var(--violet-deep);
  display:flex;align-items:center;justify-content:center;font-weight:800;font-family:'Alexandria',sans-serif}
.sidebar__name{font-family:'Alexandria',sans-serif;font-weight:700}
.sidebar__nav{display:flex;flex-direction:column;gap:6px}
.stage-btn{text-align:start;padding:12px 14px;border-radius:10px;color:#d9cff0;font-weight:600;font-size:14.5px}
.stage-btn:hover{background:rgba(255,255,255,.08)}
.stage-btn.is-active{background:var(--lime);color:var(--violet-deep)}
.sidebar__section{display:flex;flex-direction:column;gap:8px}
.sidebar__label{font-size:11.5px;color:#a996d1;text-transform:uppercase;letter-spacing:.5px;margin-block-end:2px}
.sidebar__link{padding:8px 10px;color:#d9cff0;font-size:14px;border-radius:8px}
.sidebar__link:hover{background:rgba(255,255,255,.08);color:#fff}
.btn-book-sidebar{margin-block-start:auto;background:var(--lime);color:var(--violet-deep);padding:13px;border-radius:10px;font-weight:800;font-size:14.5px}

.sidebar-toggle{display:none;position:sticky;inset-block-start:0;z-index:60;width:100%;background:var(--violet);color:#fff;
  padding:14px 20px;font-weight:700;text-align:start}
.sidebar-overlay{position:fixed;inset:0;background:rgba(20,10,40,.5);z-index:95;display:none}
.sidebar-overlay.is-open{display:block}

.content{flex:1;min-width:0}

/* ---- Hero ---- */
.content__hero{position:relative;height:52vh;min-height:340px}
.hero__img{width:100%;height:100%;object-fit:cover;filter:brightness(.5)}
.hero__overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;padding:0 40px;color:#fff}
.hero__eyebrow{color:var(--lime);font-weight:700;font-size:13px;margin-block-end:8px}
.hero__title{font-size:clamp(28px,4.5vw,46px);margin:0 0 12px}
.hero__lead{max-width:520px;color:#e8e2f5;font-size:15.5px;margin:0}

/* ---- Sections ---- */
.subjects-section,.section-block{padding:44px 40px}
.section-title{font-size:24px;margin:0 0 22px}
.subjects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.subject-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:10px}
.subject-card h3{margin:0;font-size:17px}
.subject-card p{margin:0;color:var(--text-dim);font-size:13.5px;flex:1}
.subject-card__foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-block-start:8px}
.subject-card__fee{font-weight:800;color:var(--violet)}
.btn-small{background:var(--violet);color:#fff;padding:9px 14px;border-radius:8px;font-size:13px;font-weight:700}

.teachers-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px}
.teacher-card{background:#fff;border:1px solid var(--border);border-radius:14px;overflow:hidden}
.teacher-card img{height:170px;object-fit:cover}
.teacher-card__body{padding:16px}
.teacher-card__body h3{margin:0 0 2px;font-size:16px}
.teacher-card__subject{color:var(--violet);font-size:12.5px;font-weight:700}
.teacher-card__rating{font-size:13px;color:#c9a227;margin:8px 0}
.teacher-card__body p{font-size:12.5px;color:var(--text-dim);margin:0 0 8px}
.teacher-card__years{font-size:11.5px;background:var(--bg);border:1px solid var(--border);padding:3px 10px;border-radius:999px}

.schedule-filter{margin-block-end:14px}
.schedule-filter select{padding:10px 14px;border-radius:10px;border:1px solid var(--border);font-size:13.5px}
.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:14px}
.schedule-table{width:100%;border-collapse:collapse;font-size:13.5px}
.schedule-table th,.schedule-table td{padding:12px 16px;text-align:start;white-space:nowrap}
.schedule-table th{background:var(--bg);color:var(--text-dim);font-weight:700}
.schedule-table tbody tr{border-block-start:1px solid var(--border)}
.btn-tiny{background:var(--lime);color:var(--violet-deep);padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700}

.site-footer{background:var(--violet-deep);color:#e8e2f5;padding:40px 40px 60px}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:26px;max-width:1100px}
.footer-grid h3{color:#fff;font-size:15px;margin:0 0 10px}
.footer-grid p{font-size:13px;line-height:1.8;margin:0 0 4px;color:#c9bfe0}

.wa-fab{position:fixed;inset-block-end:24px;inset-inline-start:24px;z-index:95;width:54px;height:54px;border-radius:50%;
  background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.25)}

/* ---- Wizard modal ---- */
.modal-backdrop{position:fixed;inset:0;background:rgba(20,10,40,.6);z-index:200;display:none;align-items:center;justify-content:center;padding:16px}
.modal-backdrop.is-open{display:flex}
.wizard-modal{background:#fff;border-radius:18px;max-width:560px;width:100%;max-height:88vh;overflow:auto}
.wizard-head{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-block-end:1px solid var(--border)}
.wizard-head h3{margin:0;font-size:17px}
.modal__close{width:32px;height:32px;border-radius:50%;background:var(--bg);font-size:15px}
.wizard-steps{display:flex;gap:6px;padding:16px 22px 0}
.step-dot{flex:1;height:4px;border-radius:99px;background:var(--border)}
.step-dot.is-active{background:var(--violet)}
.wizard-body{padding:20px 22px}
.wizard-hint{font-weight:700;margin:0 0 14px;font-size:14.5px}
.picker-list{display:flex;flex-direction:column;gap:8px;max-height:320px;overflow-y:auto}
.picker-item{display:flex;justify-content:space-between;gap:10px;padding:13px 14px;border:1px solid var(--border);border-radius:10px;font-size:14px;text-align:start}
.picker-item.is-selected{border-color:var(--violet);background:#f4f0fc}
.picker-item__meta{color:var(--text-dim);font-size:12.5px}
.wizard-form{display:flex;flex-direction:column;gap:12px}
.wizard-form input{padding:12px 14px;border:1px solid var(--border);border-radius:10px;font-size:14px}
.confirm-box{text-align:center;padding:10px 0}
.confirm-box__icon{width:56px;height:56px;border-radius:50%;background:var(--lime);color:var(--violet-deep);
  display:flex;align-items:center;justify-content:center;margin:0 auto 14px;font-size:26px;font-weight:800}
.confirm-box h4{margin:0 0 12px;font-size:19px}
.confirm-box p{margin:0 0 8px;font-size:14px}
.confirm-box__next{color:var(--violet);font-weight:700;margin-block-start:14px}
.wizard-foot{display:flex;justify-content:space-between;padding:16px 22px;border-block-start:1px solid var(--border)}
.btn-primary{background:var(--violet);color:#fff;padding:11px 22px;border-radius:10px;font-weight:700}
.btn-secondary{background:var(--bg);border:1px solid var(--border);padding:11px 18px;border-radius:10px;font-weight:600}

/* ---- Responsive ---- */
@media (max-width:900px){
  .sidebar{position:fixed;inset-block:0;inset-inline-start:0;height:100vh;width:280px;z-index:100;
    transform:translateX(100%);transition:transform .3s ease}
  .sidebar.is-open{transform:none}
  .sidebar-toggle{display:block}
  .content__hero{height:40vh;min-height:260px}
  .subjects-section,.section-block{padding:32px 20px}
  .site-footer{padding:32px 20px 44px}
}
@media (max-width:480px){
  .hero__overlay{padding:0 20px}
  .wa-fab{width:48px;height:48px;inset-block-end:18px;inset-inline-start:18px}
}
