:root {
  --brand: #4338ca;
  --brand-dark: #3730a3;
  --brand-light: #eef2ff;
  --accent: #f59e0b;
  --ink: #1e1b4b;
}

body { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; }

.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-brand-light { background: var(--brand-light) !important; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-brand-outline { border-color: var(--brand); color: var(--brand); }
.btn-brand-outline:hover { background: var(--brand); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #3f2d00; font-weight: 600; }
.btn-accent:hover { filter: brightness(.95); color: #3f2d00; }

/* ---------- Public site ---------- */
.public-navbar { background: #fff; box-shadow: 0 2px 14px rgba(30, 27, 75, .08); }
.public-navbar .nav-link { color: var(--ink); font-weight: 500; }
.public-navbar .nav-link:hover, .public-navbar .nav-link.active { color: var(--brand); }

.hero-slider-wrap {
  background: linear-gradient(135deg, #edf1ff 0%, #f6f2fb 40%, #f5f7fd 100%);
  padding: 3rem 0 1.2rem;
}

.hero-slider {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(99,102,241,.12);
  box-shadow: 0 18px 50px rgba(35, 43, 94, .08);
}

.hero-slide {
  display: none;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  min-height: 560px;
  padding: 3rem 3rem 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(214,222,255,.55));
}

.hero-slide.active { display: grid; }

.hero-copy {
  padding: 1rem 0.5rem 1rem 1rem;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: rgba(67,56,202,.08);
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 1.3rem;
  font-size: .78rem;
}

.hero-copy h1 {
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(2.6rem, 4vw, 6rem);
  line-height: .95;
  letter-spacing: -.05em;
  margin-bottom: 1.1rem;
  max-width: 560px;
}

.hero-copy p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #4a5177;
  max-width: 560px;
  margin-bottom: 1.75rem;
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.mini-trust-row {
  display: flex; flex-wrap: wrap; gap: .8rem 1.2rem;
  font-size: .88rem; color: #2a2f53; font-weight: 600;
}
.mini-trust-row i { color: #22c55e; }

.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  min-height: 420px;
}

.visual-card {
  position: relative;
  width: min(100%, 560px);
  height: 430px;
  border-radius: 2rem;
  background: linear-gradient(180deg, #f8fafd 0%, #eef3ff 100%);
  border: 1px solid rgba(99,102,241,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 24px 55px rgba(58, 70, 120, .12);
  overflow: hidden;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: auto -12% -18% -12%;
  height: 220px;
  background: radial-gradient(circle at center, rgba(139, 92, 246, .15), transparent 60%);
}

.floating-badge {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,.9);
  color: var(--brand);
  border-radius: 999px;
  padding: .55rem .9rem;
  box-shadow: 0 10px 25px rgba(67,56,202,.14);
  font-weight: 700;
  font-size: .78rem;
}
.badge-top { top: 22px; left: 22px; }
.badge-bottom { right: 26px; bottom: 26px; }

.student-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 1.2rem 1rem;
}

.student-group {
  position: relative;
  width: 86%;
  height: 78%;
}

.person {
  position: absolute;
  bottom: 0;
  width: 70px;
  height: 150px;
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(180deg, #f3c9ae, #dd9d65);
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.04);
}

.person::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: -38px; width: 42px; height: 42px; border-radius: 50%; background: #f6d0b0; box-shadow: inset 0 -6px 0 rgba(0,0,0,.04); }
.person::after { content: ""; position: absolute; left: 16px; right: 16px; top: 28px; height: 16px; border-radius: 12px; background: rgba(255,255,255,.2); }
.p1 { left: 6%; background: linear-gradient(180deg, #f6d6b8, #e9a86c); }
.p2 { left: 29%; background: linear-gradient(180deg, #f0c79f, #d68b5a); }
.p3 { left: 53%; background: linear-gradient(180deg, #f4b8a2, #d57d60); }
.p4 { left: 76%; background: linear-gradient(180deg, #f1d5b3, #dca25b); }

.whiteboard {
  position: absolute;
  right: 14%;
  top: 52px;
  width: 140px;
  height: 120px;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #edf2ff 100%);
  border: 1px solid rgba(99,102,241,.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 14px 28px rgba(67,56,202,.06);
}
.whiteboard span {
  display: block;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .7rem;
}

.chart-panel {
  position: absolute;
  left: 22px; right: 22px; bottom: 18px; height: 140px;
  border-radius: 1rem;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(67,56,202,.08);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px;
}
.chart-bar {
  width: 26%;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #7c8cff, #4338ca);
}
.b1 { height: 36%; }
.b2 { height: 58%; }
.b3 { height: 72%; }
.b4 { height: 86%; }

.globe-ring {
  position: absolute;
  right: 30px;
  bottom: 34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 10px solid rgba(67,56,202,.18);
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.5);
}

.slider-dots {
  display: flex; justify-content: center; gap: .5rem; padding: 0 0 1rem;
}
.dot {
  width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(67,56,202,.25); cursor: pointer;
  transition: all .2s ease;
}
.dot.active { width: 30px; border-radius: 999px; background: var(--brand); }

.stats-band { background: linear-gradient(180deg, rgba(237,241,255,.8), rgba(255,255,255,0)); }

.stat-tile {
  background: rgba(255,255,255,.9);
  border-radius: 1rem;
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(30, 27, 75, .06);
  border: 1px solid rgba(99,102,241,.08);
}
.stat-tile .num { font-size: 1.9rem; font-weight: 800; color: var(--brand); }

.course-card { border: 1px solid #eceefc; border-radius: 1rem; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; height: 100%; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30, 27, 75, .12); }
.course-art { height: 150px; display: flex; align-items: center; justify-content: center; color: #fff; }
.course-art i { font-size: 3rem; opacity: .9; }
.art-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.art-2 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.art-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.art-4 { background: linear-gradient(135deg, #10b981, #059669); }
.art-5 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.art-6 { background: linear-gradient(135deg, #64748b, #334155); }
.course-art-img { height: 170px; width: 100%; object-fit: cover; }

.section-title { font-weight: 800; color: var(--ink); }
.section-title .accent-bar { display: inline-block; width: 46px; height: 5px; background: var(--accent); border-radius: 4px; }

.feature-icon {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; background: var(--brand-light); color: var(--brand);
}

.notice-item { border-left: 4px solid var(--accent); background: #fff; border-radius: .6rem; }

.cta-band { background: linear-gradient(120deg, var(--brand), #6d28d9); border-radius: 1.2rem; color: #fff; }

.public-footer { background: #17153a; color: #c7c9e8; }
.public-footer a { color: #c7c9e8; text-decoration: none; }
.public-footer a:hover { color: #fff; }

/* ---------- Admin panel ---------- */
.admin-wrapper { display: flex; min-height: 100vh; background: #f4f5fb; }
.admin-sidebar {
  width: 250px; background: #17153a; color: #b6b3dd; flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand { color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar .nav-link {
  color: #b6b3dd; padding: .62rem 1.25rem; display: flex; align-items: center; gap: .65rem; font-size: .93rem;
  border-left: 3px solid transparent;
}
.admin-sidebar .nav-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.admin-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.admin-sidebar .nav-link.active { color: #fff; background: rgba(99,102,241,.25); border-left-color: var(--accent); }
.admin-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { background: #fff; border-bottom: 1px solid #e8e9f5; padding: .8rem 1.5rem; }
.stat-card { border: 1px solid #ecedf8; border-radius: .9rem; }
.stat-card .icon-badge { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.table > :not(caption) > * > * { vertical-align: middle; }
.avatar-sm { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.avatar-initials { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-light); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.card { border: 1px solid #ecedf8; border-radius: .9rem; }
.form-label { font-weight: 600; font-size: .88rem; color: #3f3d63; }

@media (max-width: 991.98px) {
  .admin-sidebar { position: fixed; z-index: 1040; left: -260px; transition: left .25s ease; }
  .admin-sidebar.show { left: 0; }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1035; }
}

/* Login */
.login-page { min-height: 100vh; background: linear-gradient(135deg, #17153a 0%, #4338ca 100%); }

/* Receipt */
.receipt-sheet { max-width: 760px; margin: auto; background: #fff; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; }
  .receipt-sheet { box-shadow: none !important; }
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 1050;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 6px 18px rgba(37, 211, 102, .45);
  transition: transform .18s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Gallery ---------- */
.gallery-item { border-radius: 1rem; overflow: hidden; position: relative; box-shadow: 0 6px 18px rgba(30,27,75,.10); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(23,21,58,.85)); color: #fff; padding: 1.6rem .9rem .6rem; font-size: .85rem; }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: 1rem; border: 1px solid #eceefc; padding: 1.6rem; height: 100%; }
.testimonial-card .stars { color: #f59e0b; }

/* ---------- Portal ---------- */
.exam-soon { border: 1px dashed #c7d2fe; border-radius: .9rem; }

/* ---------- Notification rows ---------- */
.notif-row.unread { background: #eef2ff; }
