/* =============================================================
   LỚP HỌC KẾT NỐI — main.css
   ============================================================= */

/* Google Fonts loaded via wp_enqueue_style in enqueue.php */

:root {
  --blue:       #2563eb;
  --blue-2:     #0ea5e9;
  --blue-light: #eff6ff;
  --violet:     #7c3aed;
  --ink:        #0f172a;
  --muted:      #64748b;
  --soft:       #f8fafc;
  --bg-2:       #f1f5f9;
  --card:       #ffffff;
  --border:     #e2e8f0;
  --line:       #e2e8f0;
  --green:      #10b981;
  --orange:     #f97316;
  --pink:       #ec4899;
  --shadow:     0 24px 70px rgba(15,23,42,.10);
  --radius:     28px;
  --page-pad:   clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.13), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(124,58,237,.13), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #fff 42%, #f8fafc 100%);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  background: #0f172a;
  color: #dbeafe;
  font-size: 13px;
}
.topbar b { color: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(226,232,240,.9);
}


/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 72px 0 38px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 38px;
  align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: white; border: 1px solid var(--line);
  padding: 9px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 800; color: #334155;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}
.badge-dot {
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(16,185,129,.12);
  flex-shrink: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -2.5px;
  margin: 22px 0;
  color: #0f172a;
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 630px;
  margin-bottom: 28px;
}

.search-card {
  background: white; border: 1px solid var(--line);
  border-radius: 24px; padding: 12px;
  display: flex; gap: 10px;
  box-shadow: var(--shadow);
  max-width: 690px; margin-top: 24px;
}
.search-card input {
  border: 0; outline: 0; flex: 1; padding: 0 12px;
  font-size: 15px; font-family: inherit; color: #0f172a;
  background: transparent;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
  max-width: 690px;
}
.stat {
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}
.stat strong { display: block; font-size: 26px; letter-spacing: -1px; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 700; }

/* App card mock */
.app-card {
  position: relative;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 36px; padding: 18px;
  box-shadow: 0 35px 95px rgba(15,23,42,.15);
  backdrop-filter: blur(18px);
}
.app-top {
  height: 60px; border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; color: white; margin-bottom: 16px;
}
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; font-style: normal; }
.dots i:first-child { background: #f97316; }
.dots i:nth-child(2) { background: #facc15; }
.dots i:nth-child(3) { background: #22c55e; }

.dash { display: grid; grid-template-columns: .88fr 1.12fr; gap: 16px; }
.sidebar, .panel { background: white; border: 1px solid var(--line); border-radius: 26px; padding: 18px; }
.mini-nav { display: grid; gap: 10px; margin-top: 14px; }
.mini-nav div { padding: 12px 13px; border-radius: 16px; background: #f8fafc; color: #475569; font-weight: 800; font-size: 13px; }
.mini-nav div.active { background: #eff6ff; color: var(--blue); }

.lesson {
  display: flex; gap: 12px; align-items: center;
  padding: 13px; border-radius: 18px; background: #f8fafc; margin-top: 12px;
}
.icon {
  width: 42px; height: 42px; border-radius: 15px;
  display: grid; place-items: center; background: #dbeafe; font-size: 20px;
  flex-shrink: 0;
}
.lesson b { font-size: 14px; display: block; }
.lesson p { font-size: 12px; color: var(--muted); margin-top: 2px; }

.progress {
  height: 10px; background: #e2e8f0; border-radius: 999px;
  margin-top: 16px; overflow: hidden;
}
.progress i {
  display: block; width: 72%; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  font-style: normal;
}

.floating {
  position: absolute; right: -18px; bottom: 46px;
  background: white; border: 1px solid var(--line);
  border-radius: 24px; padding: 14px 16px;
  box-shadow: 0 20px 50px rgba(15,23,42,.14);
  max-width: 210px;
}
.floating b { font-size: 14px; display: block; }
.floating p { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* =========================================================
   SECTIONS — SHARED
   ========================================================= */
section { padding: 58px 0; }

.section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  gap: 22px; margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -1.7px;
  line-height: 1.12;
}
.section-head p { color: var(--muted); max-width: 520px; }

.link-all {
  color: var(--blue); font-weight: 800; font-size: 14px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.link-all:hover { text-decoration: underline; }

/* =========================================================
   SUBJECTS
   ========================================================= */
.subjects {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.subject {
  background: white; border: 1px solid var(--line);
  border-radius: 24px; padding: 19px;
  box-shadow: 0 12px 30px rgba(15,23,42,.05);
  transition: .25s; cursor: pointer;
}
.subject:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.subject .emoji { font-size: 30px; margin-bottom: 10px; }
.subject b { display: block; }
.subject span { font-size: 13px; color: var(--muted); }

/* =========================================================
   CLASS CARDS
   ========================================================= */
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.class-card {
  background: white; border: 1px solid var(--line);
  border-radius: 30px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(15,23,42,.07);
  transition: .25s;
}
.class-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.cover {
  height: 150px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  padding: 16px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
}
.cover-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0;
}

.tag {
  background: rgba(255,255,255,.9);
  padding: 7px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 900; color: #334155;
}

.class-body { padding: 20px; }
.class-body h3 { font-size: 19px; letter-spacing: -.5px; margin-bottom: 8px; line-height: 1.3; }
.meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px; font-weight: 700; margin: 14px 0;
}
.teacher-row {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 15px;
}
.avatar { display: flex; align-items: center; gap: 10px; }
.avatar i {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  display: block; font-style: normal; flex-shrink: 0;
}
.price { font-weight: 900; color: var(--blue); }

/* =========================================================
   RESOURCES & QUESTIONS (split)
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.resource, .question-item {
  background: white; border: 1px solid var(--line);
  border-radius: 28px; padding: 20px; margin-bottom: 14px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: .2s;
}
.resource:hover, .question-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.file-icon {
  min-width: 54px; height: 54px; border-radius: 18px;
  background: #eff6ff; color: var(--blue);
  display: grid; place-items: center; font-size: 24px; flex-shrink: 0;
}
.resource h3, .question-item h3 { font-size: 16px; line-height: 1.35; }
.resource p, .question-item p { font-size: 13px; color: var(--muted); margin-top: 6px; }

.vote {
  min-width: 54px; height: 54px; border-radius: 18px;
  background: #f0fdf4; color: #16a34a;
  display: grid; place-items: center; font-weight: 900;
  font-size: 16px; flex-shrink: 0;
}

.answer-pill {
  display: inline-flex; margin-top: 10px;
  background: #f8fafc; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 10px;
  font-size: 12px; font-weight: 800; color: #475569;
}
.answer-pill.best { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.answer-pill.discussing { background: #fffbeb; color: #d97706; border-color: #fde68a; }

/* =========================================================
   AI ZONE
   ========================================================= */
.ai-zone {
  background: linear-gradient(135deg, #0f172a, #1e1b4b 58%, #312e81);
  border-radius: 40px; padding: 40px;
  color: white;
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 28px; overflow: hidden; position: relative;
}
.ai-zone::before {
  content: '';
  position: absolute; inset: -80px auto auto -80px;
  width: 250px; height: 250px;
  background: rgba(14,165,233,.3);
  filter: blur(60px);
}
.ai-zone h2 { font-size: clamp(30px,4vw,42px); line-height: 1.12; letter-spacing: -1.6px; }
.ai-zone p { color: #cbd5e1; margin: 14px 0 24px; font-size: 16px; }

.ai-box {
  position: relative;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px; padding: 18px;
  backdrop-filter: blur(12px);
}
.chat {
  background: white; color: #0f172a;
  border-radius: 22px; padding: 16px; margin-bottom: 12px;
}
.chat small {
  display: block; color: var(--muted);
  font-weight: 800; margin-bottom: 5px; font-size: 12px;
}

.ai-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ai-tools div {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px; padding: 14px;
  font-weight: 800; color: #e0f2fe;
  cursor: pointer; transition: .2s;
}
.ai-tools div:hover { background: rgba(255,255,255,.18); }

/* =========================================================
   TEACHERS
   ========================================================= */
.teachers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.teacher-card {
  background: white; border: 1px solid var(--line);
  border-radius: 28px; padding: 20px; text-align: center;
  box-shadow: 0 14px 34px rgba(15,23,42,.06);
  transition: .25s;
}
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.teacher-photo {
  width: 86px; height: 86px; border-radius: 28px;
  background: linear-gradient(135deg, #dbeafe, #fce7f3);
  margin: 0 auto 14px;
  overflow: hidden;
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }

.teacher-card h3 { font-size: 17px; }
.teacher-card p { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.rate { font-size: 13px; font-weight: 900; color: var(--orange); }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: white; border: 1px solid var(--line);
  border-radius: 42px; padding: 38px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
  box-shadow: var(--shadow);
}
.cta h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -1.4px; line-height: 1.15; }
.cta p { color: var(--muted); margin-top: 10px; max-width: 680px; }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 54px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}
.footer-grid h3 { color: white; margin-bottom: 14px; font-size: 16px; }
.footer-grid a {
  display: block; margin: 9px 0;
  color: #cbd5e1; font-size: 14px;
  transition: color .2s;
}
.footer-grid a:hover { color: white; }
.footer-brand p { color: #94a3b8; font-size: 14px; margin-top: 10px; max-width: 280px; }
.footer-contact { margin-top: 18px; font-size: 13px; color: #94a3b8; }
.footer-contact b { color: #cbd5e1; }

.copyright {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 34px; padding-top: 20px;
  display: flex; justify-content: space-between;
  gap: 18px; color: #94a3b8; font-size: 13px;
}

/* =========================================================
   ARCHIVE PAGES
   ========================================================= */
.archive-hero {
  padding: 48px 0 36px;
  background: linear-gradient(135deg, rgba(37,99,235,.07), rgba(124,58,237,.07));
  border-bottom: 1px solid var(--line);
}
.archive-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; letter-spacing: -1.5px; }
.archive-hero p { color: var(--muted); font-size: 16px; }

.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.filter-bar select, .filter-bar input[type="text"] {
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  font-family: inherit; font-size: 14px; font-weight: 700;
  color: #334155; background: white; cursor: pointer;
  outline: none;
}
.filter-bar select:focus, .filter-bar input[type="text"]:focus { border-color: var(--blue); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* =========================================================
   SINGLE PAGES
   ========================================================= */
.single-hero {
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  color: white; padding: 48px 0;
}
.single-hero h1 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -1.5px; color: white; margin: 16px 0; }
.single-hero p { color: #cbd5e1; font-size: 16px; max-width: 760px; }

.single-meta-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin: 20px 0;
}
.meta-item { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 14px; font-weight: 700; }
.meta-item b { color: white; }

.single-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 40px 0; }
.single-main {}
.single-sidebar {}

.sidebar-card {
  background: white; border: 1px solid var(--line);
  border-radius: 28px; padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 20px;
  position: sticky; top: 88px;
}
.sidebar-card h3 { font-size: 18px; margin-bottom: 16px; }
.price-big {
  font-size: 36px; font-weight: 900;
  color: var(--blue); letter-spacing: -1px;
  margin-bottom: 16px;
}
.sidebar-card .btn { width: 100%; justify-content: center; margin-bottom: 12px; }

.content-card {
  background: white; border: 1px solid var(--line);
  border-radius: 28px; padding: 28px;
  margin-bottom: 20px;
}
.content-card h2 { font-size: 20px; margin-bottom: 16px; letter-spacing: -.5px; }
.content-card p { color: #475569; line-height: 1.8; }
.content-card ul li {
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: #475569;
  display: flex; align-items: flex-start; gap: 10px;
}
.content-card ul li::before { content: '✓'; color: var(--green); font-weight: 900; flex-shrink: 0; }
.content-card ul li:last-child { border-bottom: none; }

/* Curriculum accordion */
.curriculum-item {
  border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 10px; overflow: hidden;
}
.curriculum-header {
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; background: #f8fafc; font-weight: 700;
}
.curriculum-body { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.curriculum-body.open { max-height: 400px; }
.curriculum-body ul li::before { content: '📖'; }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--muted); margin-bottom: 16px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: #cbd5e1; }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 40px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
  border: 1px solid var(--line);
  background: white; color: #334155;
  transition: .2s;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); color: white; border-color: var(--blue); }

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty-state {
  text-align: center; padding: 80px 24px;
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 22px; color: var(--ink); margin-bottom: 10px; }

/* =========================================================
   TEACHER PROFILE
   ========================================================= */
.teacher-profile-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding: 48px 0;
  color: white;
}
.teacher-profile-inner {
  display: flex; gap: 28px; align-items: center;
}
.teacher-profile-photo {
  width: 120px; height: 120px; border-radius: 30px;
  background: linear-gradient(135deg, #dbeafe, #fce7f3);
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255,255,255,.2);
}
.teacher-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-profile-info h1 { color: white; font-size: clamp(24px, 4vw, 38px); margin: 0 0 8px; }
.teacher-profile-info p { color: #cbd5e1; }
.teacher-stats { display: flex; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.teacher-stat { text-align: center; }
.teacher-stat strong { display: block; font-size: 24px; font-weight: 900; color: white; }
.teacher-stat span { font-size: 12px; color: #94a3b8; }

/* =========================================================
   FORM PAGES (contact, search)
   ========================================================= */
.form-card {
  background: white; border: 1px solid var(--line);
  border-radius: 28px; padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 16px;
  font-family: inherit; font-size: 15px;
  outline: none; transition: border-color .2s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { border-color: var(--blue); }
.form-row textarea { resize: vertical; min-height: 140px; }

/* =========================================================
   TAGS / PILLS
   ========================================================= */
.pill {
  display: inline-flex; padding: 5px 12px;
  border-radius: 999px; font-size: 12px; font-weight: 800;
  background: #eff6ff; color: var(--blue);
}
.pill.green { background: #f0fdf4; color: #16a34a; }
.pill.orange { background: #fff7ed; color: var(--orange); }
.pill.purple { background: #f5f3ff; color: var(--violet); }

/* =========================================================
   NOTICE / ALERTS
   ========================================================= */
.notice {
  padding: 14px 18px; border-radius: 16px;
  font-size: 14px; font-weight: 700; margin-bottom: 16px;
}
.notice.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.notice.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* =========================================================
   404 PAGE
   ========================================================= */
.page-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.page-404 .num { font-size: 120px; font-weight: 900; letter-spacing: -6px; line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--violet)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-404 h2 { font-size: 28px; margin: 16px 0 12px; }
.page-404 p { color: var(--muted); max-width: 440px; margin: 0 auto 28px; }

/* =========================================================
   SEARCH RESULTS
   ========================================================= */
.search-result-item {
  background: white; border: 1px solid var(--line);
  border-radius: 22px; padding: 20px;
  margin-bottom: 14px; display: flex; gap: 18px;
  align-items: flex-start;
}
.search-result-thumb {
  width: 80px; height: 80px; border-radius: 16px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  flex-shrink: 0; overflow: hidden;
}
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-type { font-size: 12px; color: var(--blue); font-weight: 900; margin-bottom: 4px; }
.search-result-item h3 { font-size: 17px; margin-bottom: 6px; }
.search-result-item p { font-size: 14px; color: var(--muted); }

/* =========================================================
   BLOG / NEWS
   ========================================================= */
.post-card {
  background: white; border: 1px solid var(--line);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
  transition: .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb {
  height: 180px; background: linear-gradient(135deg, #dbeafe, #ede9fe);
  overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 20px; }
.post-body h3 { font-size: 17px; line-height: 1.4; margin-bottom: 10px; }
.post-body p { font-size: 13px; color: var(--muted); }
.post-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 14px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid, .split, .ai-zone { grid-template-columns: 1fr; }
  .subjects { grid-template-columns: repeat(3, 1fr); }
  .classes { grid-template-columns: 1fr 1fr; }
  .teachers { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .floating { right: 12px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .cta { flex-direction: column; align-items: flex-start; }
  .dash { grid-template-columns: 1fr 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .teacher-profile-inner { flex-direction: column; text-align: center; }
  .teacher-stats { justify-content: center; }
}

@media (max-width: 640px) {
  .topbar .inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero { padding-top: 40px; }
  .search-card { flex-direction: column; padding: 14px; }
  .search-card input { min-height: 44px; }
  .hero-stats { grid-template-columns: 1fr; }
  .subjects, .classes, .teachers, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .floating { position: static; margin-top: 14px; }
  .app-card { border-radius: 26px; padding: 12px; }
  .ai-zone { padding: 24px; border-radius: 30px; }
  .ai-tools { grid-template-columns: 1fr; }
  .copyright { flex-direction: column; }
  h1 { letter-spacing: -1.8px; }
  .classes .class-card:nth-child(n+4) { display: none; }
  .single-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .filter-bar { gap: 8px; }
  .filter-bar select { font-size: 13px; padding: 9px 12px; }
}

/* =========================================
   TOPBAR
   ========================================= */
.topbar {
  background: var(--ink);
  color: #94a3b8;
  font-size: .75rem;
  padding: .4rem 0;
}
.topbar-inner { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.topbar-right { display:flex; gap:1.25rem; }
.topbar-item { display:inline-flex; align-items:center; gap:.35rem; }
.topbar-item a { color:#94a3b8; text-decoration:none; }
.topbar-item a:hover { color:#fff; }
@media(max-width:640px){ .topbar { display:none; } }

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
body.admin-bar .site-header { top:32px; }
@media(max-width:782px){ body.admin-bar .site-header { top:46px; } }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.header-inner { display:flex; align-items:center; gap:1.5rem; padding:.75rem var(--page-pad); }
.site-logo { display:flex; align-items:center; gap:.5rem; text-decoration:none; flex:0 0 auto; }
.site-logo-img {
  width:auto;
  height:48px;
  max-width:238px;
  object-fit:contain;
}
.logo-mark {
  width:36px; height:36px; border-radius:10px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color:#fff; font-weight:800; font-size:.9rem;
  display:flex; align-items:center; justify-content:center;
}
.logo-mark--light { color:#fff; }
.logo-text { display:flex; flex-direction:column; line-height:1.1; }
.logo-main { font-weight:800; font-size:1rem; color:var(--ink); }
.logo-sub  { font-size:.72rem; color:var(--muted); }

.primary-nav { flex:1; }
.nav-list { display:flex; list-style:none; margin:0; padding:0; gap:.15rem; }
.nav-list li a {
  display:block; padding:.45rem .7rem;
  font-size:.85rem; font-weight:500; color:var(--muted);
  text-decoration:none; border-radius:8px; white-space:nowrap;
  transition: color .15s, background .15s;
}
.nav-list li a:hover,
.nav-list li.current-menu-item a { color:var(--blue); background:var(--blue-light); }

.header-actions { display:flex; gap:.5rem; flex-shrink:0; }

/* Hamburger */
.hamburger {
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:4px;
}
.hamburger span { display:block; width:22px; height:2px; background:var(--ink); border-radius:2px; transition:.25s; }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

.nav-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:99; }
.nav-overlay.visible { display:block; }

@media(max-width:980px){
  .header-inner { gap:.75rem; }
  .primary-nav {
    position:fixed; top:0; left:-100%; width:280px; height:100vh; overflow-y:auto;
    background:#fff; z-index:100; padding:4rem 1.5rem 2rem; transition:left .3s;
    box-shadow:4px 0 24px rgba(0,0,0,.12);
  }
  .primary-nav.open { left:0; }
  .nav-list { flex-direction:column; gap:.25rem; }
  .nav-list li a { font-size:1rem; padding:.7rem 1rem; }
  .hamburger {
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    margin-left:auto;
    border-radius:12px;
  }
  .header-actions .btn:first-child { display:none; }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  padding: 5rem 0 4rem;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(37,99,235,.07) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 80%, rgba(124,58,237,.06) 0%, transparent 70%);
}
.hero-inner { display:grid; grid-template-columns:1fr 480px; gap:3rem; align-items:center; }
.hero-badge {
  display:inline-flex; align-items:center; gap:.5rem;
  background:var(--blue-light); color:var(--blue);
  border:1px solid rgba(37,99,235,.2); border-radius:999px;
  font-size:.8rem; font-weight:600; padding:.35rem 1rem;
  margin-bottom:1.25rem;
}
.hero-title { font-size:2.8rem; font-weight:900; line-height:1.15; color:var(--ink); margin:0 0 1rem; }
.hero-highlight { color:var(--blue); position:relative; }
.hero-desc { font-size:1.05rem; color:var(--muted); line-height:1.7; margin:0 0 1.75rem; max-width:520px; }

.hero-search {
  display:flex; align-items:center; gap:0;
  background:#fff; border:1.5px solid var(--border); border-radius:14px;
  padding:.35rem .35rem .35rem 1rem; box-shadow:0 4px 20px rgba(0,0,0,.07);
  max-width:520px; margin-bottom:1rem;
}
.search-icon { font-size:1rem; flex-shrink:0; margin-right:.5rem; }
.hero-search-input { flex:1; border:none; outline:none; font-size:.95rem; background:transparent; }
.hero-search .btn { flex-shrink:0; border-radius:10px; }

.hero-quick { display:flex; gap:.5rem; align-items:center; flex-wrap:wrap; margin-bottom:2rem; font-size:.82rem; }
.hero-quick .quick-label { color:var(--muted); }
.hero-quick a { background:var(--bg-2); color:var(--ink); padding:.25rem .7rem; border-radius:99px; text-decoration:none; transition:background .15s; }
.hero-quick a:hover { background:var(--blue-light); color:var(--blue); }

.hero-stats { display:flex; gap:2rem; }
.stat-item { display:flex; flex-direction:column; }
.stat-num { font-size:1.6rem; font-weight:800; color:var(--blue); line-height:1; }
.stat-label { font-size:.78rem; color:var(--muted); margin-top:.2rem; }

/* App mockup */
.hero-app {}
.app-card {
  background:#fff; border-radius:24px; padding:1.25rem;
  box-shadow:0 20px 60px rgba(37,99,235,.12), 0 2px 8px rgba(0,0,0,.05);
  border:1px solid var(--border);
}
.app-header { display:flex; align-items:center; gap:.75rem; margin-bottom:1rem; }
.app-avatar { width:38px; height:38px; border-radius:50%; background:linear-gradient(135deg,var(--blue),var(--violet)); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.85rem; }
.app-name { font-weight:700; font-size:.9rem; color:var(--ink); line-height:1.2; }
.app-role { font-size:.74rem; color:var(--muted); }
.app-notif { margin-left:auto; position:relative; font-size:1.1rem; }
.notif-dot { position:absolute; top:-4px; right:-4px; background:var(--orange); color:#fff; border-radius:99px; font-size:.65rem; padding:.05rem .3rem; }

.app-section { margin:.75rem 0; }
.app-section-title { font-size:.8rem; font-weight:700; color:var(--ink); margin-bottom:.5rem; display:flex; align-items:center; gap:.4rem; }

.app-class-list { display:flex; flex-direction:column; gap:.4rem; }
.app-class-item { display:flex; align-items:center; gap:.6rem; padding:.5rem .6rem; border-radius:10px; background:var(--bg-2); }
.class-color { width:4px; height:32px; border-radius:4px; flex-shrink:0; }
.class-name { font-size:.8rem; font-weight:600; color:var(--ink); line-height:1.2; }
.class-time { font-size:.72rem; color:var(--muted); }
.class-badge { margin-left:auto; font-size:.65rem; font-weight:700; padding:.15rem .45rem; border-radius:99px; }
.class-badge--live { background:rgba(239,68,68,.1); color:#ef4444; }
.class-badge--soon { background:var(--blue-light); color:var(--blue); }

.app-task-list { display:flex; flex-direction:column; gap:.3rem; }
.task-item { display:flex; align-items:center; gap:.5rem; font-size:.8rem; color:var(--ink); cursor:pointer; }
.task-item input { accent-color:var(--blue); }
.badge-count { background:var(--blue); color:#fff; border-radius:99px; font-size:.65rem; padding:.1rem .4rem; }

.app-progress { margin:.75rem 0; }
.progress-label { display:flex; justify-content:space-between; font-size:.8rem; font-weight:600; color:var(--ink); margin-bottom:.4rem; }
.progress-pct { color:var(--blue); }
.progress-bar { height:8px; background:var(--bg-2); border-radius:99px; overflow:hidden; }
.progress-fill { height:100%; background:linear-gradient(90deg,var(--blue),var(--violet)); border-radius:99px; transition:width .6s; }
.progress-sub { font-size:.72rem; color:var(--muted); margin-top:.3rem; }

.app-quick-links { display:flex; gap:.5rem; }
.app-quick-btn { flex:1; display:flex; justify-content:space-between; align-items:center; background:var(--bg-2); border-radius:10px; padding:.5rem .7rem; font-size:.78rem; font-weight:600; color:var(--ink); text-decoration:none; }
.app-quick-btn:hover { background:var(--blue-light); color:var(--blue); }
.ql-count { background:var(--blue); color:#fff; border-radius:99px; font-size:.65rem; padding:.1rem .35rem; }

@media(max-width:980px){ .hero-inner { grid-template-columns:1fr; } .hero-app { display:none; } }
@media(max-width:640px){ .hero-title { font-size:2rem; } .hero-stats { gap:1.25rem; } }

/* =========================================
   SUBJECTS
   ========================================= */
.subjects-grid {
  display:grid; grid-template-columns:repeat(5,1fr); gap:1rem;
}
.subject-card {
  display:flex; flex-direction:column; align-items:center; gap:.5rem;
  padding:1.25rem .75rem; border-radius:16px;
  background:#fff; border:1.5px solid var(--border);
  text-decoration:none; transition:transform .2s, border-color .2s, box-shadow .2s;
}
.subject-card:hover {
  transform:translateY(-4px);
  border-color:var(--subject-color, var(--blue));
  box-shadow:0 8px 24px rgba(0,0,0,.1);
}
.subject-icon { font-size:2rem; }
.subject-name { font-size:.82rem; font-weight:700; color:var(--ink); text-align:center; }
.subject-count { font-size:.72rem; color:var(--muted); }
@media(max-width:980px){ .subjects-grid { grid-template-columns:repeat(4,1fr); } }
@media(max-width:640px){ .subjects-grid { grid-template-columns:repeat(3,1fr); gap:.6rem; } }

/* =========================================
   CARDS GRID
   ========================================= */
.cards-grid { display:grid; gap:1.25rem; }
.cards-grid--3 { grid-template-columns:repeat(3,1fr); }
.cards-grid--4 { grid-template-columns:repeat(4,1fr); }
@media(max-width:980px){
  .cards-grid--3 { grid-template-columns:repeat(2,1fr); }
  .cards-grid--4 { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:640px){
  .cards-grid--3, .cards-grid--4 { grid-template-columns:1fr; }
}

/* =========================================
   CLASS CARD
   ========================================= */
.card {
  background:#fff; border-radius:20px; border:1.5px solid var(--border);
  overflow:hidden; transition:transform .2s, box-shadow .2s;
}
.card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,0,0,.1); }
.card--featured { border-color:var(--blue); }
.card-thumb-link { display:block; position:relative; }
.card-thumb { width:100%; height:180px; object-fit:cover; display:block; }
.card-thumb--gradient {
  display:flex; align-items:center; justify-content:center;
  height:180px; font-size:2rem; font-weight:800; color:rgba(255,255,255,.6);
}
.card-badge-featured {
  position:absolute; top:.6rem; left:.6rem;
  background:var(--blue); color:#fff; border-radius:99px;
  font-size:.7rem; font-weight:700; padding:.2rem .6rem;
}
.card-body { padding:1.1rem; display:flex; flex-direction:column; gap:.5rem; }
.card-meta { display:flex; flex-wrap:wrap; gap:.35rem; }
.card-title { font-size:.95rem; font-weight:700; color:var(--ink); line-height:1.35; margin:0; }
.card-title a { color:inherit; text-decoration:none; }
.card-title a:hover { color:var(--blue); }
.card-subtitle { font-size:.82rem; color:var(--muted); margin:0; line-height:1.5; }
.card-info { display:flex; flex-direction:column; gap:.25rem; }
.card-info-item { font-size:.78rem; color:var(--muted); }
.card-footer { display:flex; justify-content:space-between; align-items:center; padding-top:.5rem; border-top:1px solid var(--bg-2); }
.card-rating { font-size:.82rem; }
.card-students { font-size:.78rem; color:var(--muted); }
.price-label { font-size:.72rem; color:var(--muted); display:block; }
.price-value { font-size:1.05rem; font-weight:800; color:var(--blue); }
.price-free { font-size:.9rem; font-weight:700; color:var(--green); }
.card-cta { margin-top:.25rem; }

/* =========================================
   RESOURCE CARD
   ========================================= */
.resource-card { display:flex; flex-direction:column; }
.resource-icon-wrap { padding:1.25rem 1.1rem 0; display:flex; justify-content:space-between; align-items:flex-start; }
.resource-icon { font-size:2.5rem; }
.resource-downloads { font-size:.78rem; color:var(--muted); }

/* =========================================
   QUESTION CARD
   ========================================= */
.question-card { padding:1.1rem; display:flex; gap:.75rem; }
.question-status { font-size:.72rem; font-weight:700; padding:.25rem .6rem; border-radius:99px; flex-shrink:0; height:fit-content; }
.status-solved { background:rgba(16,185,129,.1); color:var(--green); }
.status-discussing { background:rgba(249,115,22,.1); color:var(--orange); }
.status-has_video { background:var(--blue-light); color:var(--blue); }
.question-title { font-size:.9rem; font-weight:700; color:var(--ink); margin:0 0 .35rem; }
.question-title a { color:inherit; text-decoration:none; }
.question-title a:hover { color:var(--blue); }
.question-excerpt { font-size:.8rem; color:var(--muted); margin:0 0 .5rem; line-height:1.5; }
.question-meta { display:flex; gap:.75rem; flex-wrap:wrap; }
.q-meta-item { font-size:.75rem; color:var(--muted); }
.questions-list { display:flex; flex-direction:column; gap:.75rem; }
.questions-cta { text-align:center; margin-top:2rem; display:flex; gap:1rem; justify-content:center; align-items:center; }

/* =========================================
   TEACHER CARD
   ========================================= */
.teacher-card { padding:1.5rem 1rem; text-align:center; }
.teacher-avatar-wrap { display:flex; justify-content:center; margin-bottom:1rem; }
.teacher-avatar { width:80px; height:80px; border-radius:50%; object-fit:cover; border:3px solid var(--border); }
.teacher-avatar--placeholder {
  width:80px; height:80px; border-radius:50%;
  background:linear-gradient(135deg,var(--blue),var(--violet));
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-size:1.3rem;
}
.teacher-name { font-size:.95rem; font-weight:700; color:var(--ink); margin:0 0 .25rem; }
.teacher-name a { color:inherit; text-decoration:none; }
.teacher-name a:hover { color:var(--blue); }
.teacher-subject { font-size:.8rem; color:var(--muted); margin:0 0 .5rem; }
.teacher-bio { font-size:.78rem; color:var(--muted); line-height:1.5; margin:0 0 .75rem; }
.teacher-stats { display:flex; gap:.75rem; justify-content:center; margin-bottom:1rem; }
.t-stat { display:flex; flex-direction:column; align-items:center; }
.t-stat strong { font-size:.9rem; font-weight:800; color:var(--ink); }
.t-stat span { font-size:.68rem; color:var(--muted); }

/* =========================================
   SECTION HEADERS
   ========================================= */
.section { padding:4rem 0; }
.section--gray { background:var(--bg-2); }
.section-header { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:2rem; gap:1rem; }
.section-header-links { display:flex; gap:.5rem; }
.section-title { font-size:1.75rem; font-weight:800; color:var(--ink); margin:0 0 .35rem; }
.section-desc { font-size:.9rem; color:var(--muted); margin:0; }
.text-center { text-align:center; }
.section-header.text-center { flex-direction:column; align-items:center; }
@media(max-width:640px){ .section-header { flex-direction:column; align-items:flex-start; } .section-title { font-size:1.4rem; } }

/* PILLS */
.pill { display:inline-block; background:var(--bg-2); color:var(--muted); border-radius:99px; font-size:.72rem; font-weight:600; padding:.2rem .65rem; }
.pill--type { background:rgba(37,99,235,.1); color:var(--blue); }
.pill--muted { background:var(--bg-2); color:var(--muted); }
.pill--date { background:var(--bg-2); }

/* BUTTONS */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; border-radius:12px; font-weight:600; font-size:.9rem; padding:.65rem 1.25rem; cursor:pointer; text-decoration:none; transition:.18s; border:1.5px solid transparent; }
.btn-primary { background:var(--blue); color:#fff; }
.btn-primary:hover { background:#1d4ed8; }
.btn-outline { background:transparent; color:var(--blue); border-color:var(--blue); }
.btn-outline:hover { background:var(--blue-light); }
.btn-ghost { background:transparent; color:var(--muted); border-color:var(--border); }
.btn-ghost:hover { background:var(--bg-2); color:var(--ink); }
.btn-white { background:#fff; color:var(--blue); }
.btn-white:hover { background:#f0f9ff; }
.btn-outline-white { background:transparent; color:#fff; border-color:rgba(255,255,255,.5); }
.btn-outline-white:hover { background:rgba(255,255,255,.1); }
.btn-sm { font-size:.8rem; padding:.45rem .9rem; border-radius:9px; }
.btn-lg { font-size:1rem; padding:.8rem 1.6rem; border-radius:14px; }
.btn-block { width:100%; }

/* =========================================
   RESOURCES TABS
   ========================================= */
.resources-tabs {}
.tab-btns { display:flex; gap:.5rem; margin-bottom:1.5rem; border-bottom:2px solid var(--border); padding-bottom:.5rem; }
.tab-btn { background:none; border:none; font-size:.9rem; font-weight:600; color:var(--muted); padding:.5rem 1rem; cursor:pointer; border-radius:8px; transition:.15s; }
.tab-btn--active { color:var(--blue); background:var(--blue-light); }
.tab-panel { display:none; }
.tab-panel--active { display:block; }

/* =========================================
   AI SECTION
   ========================================= */
.ai-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c1445 100%);
  color:#fff; padding:5rem 0;
}
.ai-inner { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:start; }
.ai-badge { display:inline-block; background:rgba(124,58,237,.3); color:#a78bfa; border:1px solid rgba(124,58,237,.4); border-radius:99px; font-size:.78rem; font-weight:600; padding:.3rem .8rem; margin-bottom:1rem; }
.ai-title { font-size:2rem; font-weight:800; color:#fff; margin:0 0 1rem; line-height:1.3; }
.ai-desc { color:#94a3b8; line-height:1.7; margin:0 0 1.5rem; }
.ai-features-grid { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }
.ai-feature-card { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:16px; padding:1.1rem; transition:.2s; }
.ai-feature-card:hover { background:rgba(255,255,255,.1); }
.ai-feature-icon { font-size:1.5rem; display:block; margin-bottom:.5rem; }
.ai-feature-title { font-size:.85rem; font-weight:700; color:#fff; margin:0 0 .35rem; }
.ai-feature-desc { font-size:.78rem; color:#94a3b8; margin:0; line-height:1.5; }
@media(max-width:980px){ .ai-inner { grid-template-columns:1fr; } .ai-features-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:640px){ .ai-features-grid { grid-template-columns:1fr; } .ai-title { font-size:1.5rem; } }

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  padding:4rem 0;
}
.cta-inner { display:flex; justify-content:space-between; align-items:center; gap:2rem; }
.cta-title { font-size:1.8rem; font-weight:800; color:#fff; margin:0 0 .75rem; }
.cta-desc { color:rgba(255,255,255,.8); margin:0 0 1.5rem; }
.cta-actions { display:flex; gap:.75rem; flex-wrap:wrap; }
.cta-features { display:flex; flex-direction:column; gap:.5rem; }
.cta-feat { color:rgba(255,255,255,.9); font-size:.9rem; }
@media(max-width:980px){ .cta-inner { flex-direction:column; text-align:center; } .cta-features { flex-direction:row; flex-wrap:wrap; justify-content:center; } .cta-actions { justify-content:center; } }
@media(max-width:640px){ .cta-title { font-size:1.4rem; } }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  position:relative;
  overflow:hidden;
  padding:0;
  background:
    linear-gradient(180deg, #111c33 0%, #0b1220 100%);
  color:#a8b6cc;
}
.site-footer::before {
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:1px;
  background:linear-gradient(90deg, rgba(14,165,233,.15), rgba(16,185,129,.75), rgba(236,72,153,.18));
}
.footer-top { padding:38px 0 30px; }
.footer-grid {
  display:grid;
  grid-template-columns:minmax(320px,1fr) minmax(220px,.78fr) minmax(190px,.72fr) minmax(190px,.72fr);
  gap:clamp(24px,3vw,44px);
  align-items:start;
}
.footer-brand {
  max-width:390px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.footer-logo {
  display:flex;
  align-items:center;
  gap:.65rem;
  text-decoration:none;
  margin:0 0 1rem;
}
.footer-logo-img {
  width:auto;
  height:48px;
  max-width:270px;
  object-fit:contain;
}
.footer-logo .logo-mark { box-shadow:0 12px 28px rgba(37,99,235,.34); }
.footer-logo-text { font-weight:800; font-size:1rem; color:#fff; }
.footer-slogan { color:#e2e8f0; font-weight:700; font-size:.92rem; margin:0 0 .55rem; }
.footer-desc { color:#a8b6cc; font-size:.88rem; line-height:1.65; margin:0 0 1rem; max-width:390px; }
.footer-socials { display:flex; gap:.5rem; margin:0 0 1.2rem; }
.social-btn {
  width:36px;
  height:36px;
  margin:0;
  border:1px solid rgba(148,163,184,.16);
  border-radius:8px;
  background:rgba(255,255,255,.045);
  color:#cbd5e1;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition:background .15s, border-color .15s, color .15s, transform .15s;
}
.social-btn:hover { background:var(--blue); border-color:var(--blue); color:#fff; transform:translateY(-1px); }
.footer-contact {
  display:grid;
  grid-template-columns:1fr;
  gap:.55rem;
  margin-top:0;
  font-size:.86rem;
}
.footer-contact-item {
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  min-width:0;
  color:#b9c6d8;
}
.footer-contact-icon {
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:rgba(255,255,255,.06);
  color:#7dd3fc;
}
.footer-contact a { color:#dbeafe; text-decoration:none; overflow-wrap:anywhere; }
.footer-contact a:hover { color:#fff; }
.footer-heading {
  position:relative;
  color:#fff;
  font-weight:800;
  font-size:.92rem;
  margin:2px 0 1rem;
  padding-bottom:0;
}
.footer-heading::after { content:none; }
.footer-links { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.28rem; }
.footer-links a {
  display:inline-flex;
  align-items:center;
  width:fit-content;
  color:#a8b6cc;
  text-decoration:none;
  font-size:.88rem;
  line-height:1.45;
  margin:0;
  padding:.25rem 0;
  transition:color .15s, transform .15s;
}
.footer-links a:hover { color:#fff; transform:translateX(3px); }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.08);
  padding:18px 0;
  background:rgba(4,10,22,.22);
}
.footer-bottom-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  color:#dbeafe;
  font-size:.82rem;
  font-weight:600;
}
.footer-bottom p { margin:0; }
.footer-badges { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.55rem; }
.badge-item {
  display:inline-flex;
  align-items:center;
  gap:.42rem;
  min-height:32px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#e2e8f0;
}
.badge-icon {
  width:10px;
  height:10px;
  border-radius:3px;
  display:inline-block;
  background:#38bdf8;
  box-shadow:0 0 0 3px rgba(56,189,248,.14);
}
.badge-icon--check { background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.14); }
.badge-icon--vn { background:#ef4444; box-shadow:0 0 0 3px rgba(239,68,68,.14); }
@media(max-width:980px){
  .footer-grid { grid-template-columns:1.1fr 1fr; gap:30px 42px; }
  .footer-brand { max-width:none; }
}
@media(max-width:640px){
  .site-logo-img { height:42px; max-width:190px; }
  .footer-top { padding:30px 0 24px; }
  .footer-grid { grid-template-columns:1fr; gap:24px; }
  .footer-logo-img { height:44px; max-width:235px; }
  .footer-bottom-inner { flex-direction:column; align-items:flex-start; }
  .footer-badges { justify-content:flex-start; }
}

/* =========================================
   ARCHIVE HERO
   ========================================= */
.archive-hero { background:linear-gradient(135deg,var(--blue),var(--violet)); color:#fff; padding:3rem 0; margin-bottom:2rem; }
.archive-title { font-size:2rem; font-weight:800; color:#fff; margin:0 0 .5rem; }
.archive-desc { color:rgba(255,255,255,.85); margin:0; font-size:1rem; }
.archive-hero .archive-desc { color:rgba(255,255,255,.88); }

/* News page */
.news-hero {
  padding:4rem 0 4.5rem;
  margin-bottom:0;
  background:
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(135deg,#2563eb,#7c3aed);
}
.news-hero .archive-title {
  font-size:clamp(38px,5vw,64px);
  line-height:1.05;
  letter-spacing:0;
}
.news-hero .archive-desc {
  max-width:720px;
  color:rgba(255,255,255,.90);
  font-size:18px;
  line-height:1.65;
}
.news-hero-stats {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}
.news-hero-stats span {
  display:inline-flex;
  min-height:38px;
  align-items:center;
  padding:8px 13px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(255,255,255,.13);
  color:#fff;
  font-size:14px;
  font-weight:800;
}
.news-page {
  padding-top:34px;
  padding-bottom:42px;
}
.news-layout { display:grid; gap:22px; }
.news-featured-card {
  display:grid;
  grid-template-columns:minmax(280px, .85fr) 1fr;
  gap:0;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:28px;
  background:#fff;
  box-shadow:0 22px 70px rgba(15,23,42,.10);
}
.news-featured-media {
  min-height:330px;
  background:#eef2ff;
  text-decoration:none;
}
.news-featured-img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.news-featured-art {
  height:100%;
  min-height:330px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.80), transparent 24%),
    linear-gradient(135deg,#dbeafe,#f5d0fe);
}
.news-featured-art span { font-size:82px; filter:drop-shadow(0 14px 26px rgba(15,23,42,.12)); }
.news-featured-body {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  padding:34px;
}
.news-meta {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}
.news-meta span {
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:13px;
  font-weight:800;
}
.news-featured-body h2,
.news-card h2 {
  margin:0;
  color:#0f172a;
  letter-spacing:0;
}
.news-featured-body h2 {
  font-size:clamp(28px,4vw,44px);
  line-height:1.12;
}
.news-featured-body h2 a,
.news-card h2 a {
  color:inherit;
  text-decoration:none;
}
.news-featured-body h2 a:hover,
.news-card h2 a:hover { color:#2563eb; }
.news-featured-body p {
  margin:16px 0 22px;
  color:#475569;
  font-size:16px;
  line-height:1.75;
}
.news-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.news-card {
  display:flex;
  gap:16px;
  min-height:230px;
  padding:22px;
  border:1px solid #e2e8f0;
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 42px rgba(15,23,42,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-card:hover {
  transform:translateY(-3px);
  border-color:#bfdbfe;
  box-shadow:0 22px 58px rgba(15,23,42,.10);
}
.news-card-icon {
  width:48px;
  height:48px;
  flex:0 0 48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:#eff6ff;
  text-decoration:none;
  font-size:24px;
}
.news-card-body { min-width:0; display:flex; flex-direction:column; align-items:flex-start; }
.news-card h2 { font-size:18px; line-height:1.38; }
.news-card p {
  margin:10px 0 16px;
  color:#64748b;
  font-size:14px;
  line-height:1.65;
}
.news-read-link {
  margin-top:auto;
  color:#2563eb;
  font-weight:900;
  text-decoration:none;
}
.news-read-link:hover { color:#1d4ed8; }

/* Post detail */
body.single-post .post-detail-container,
.post-template-default .post-detail-container { padding-top:28px; }
.post-template-default .breadcrumb {
  display:inline-flex;
  width:auto;
  max-width:100%;
  padding:9px 13px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:rgba(255,255,255,.86);
  color:#475569;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.post-template-default .breadcrumb a { color:#2563eb; font-weight:800; }
.post-template-default .breadcrumb .sep { color:#94a3b8; }
.post-detail-container article.single-post {
  margin-top:20px;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:30px;
  background:#fff;
  box-shadow:0 22px 70px rgba(15,23,42,.10);
}
.post-detail-container article.single-post .post-header {
  padding:34px 38px 28px;
  background:
    radial-gradient(circle at 86% 18%, rgba(37,99,235,.10), transparent 26%),
    linear-gradient(180deg,#fff,#f8fafc);
  border-bottom:1px solid #e2e8f0;
}
.post-detail-container article.single-post .post-header .card-meta { gap:8px; margin-bottom:16px; }
.post-detail-container article.single-post .post-header .pill {
  padding:8px 12px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  color:#475569;
  font-weight:800;
}
.post-title {
  max-width:980px;
  margin:0;
  color:#0f172a;
  font-size:clamp(32px,4.2vw,52px);
  line-height:1.12;
  letter-spacing:0;
}
.post-detail-container article.single-post .post-meta {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
  color:#334155;
  font-size:14px;
  font-weight:800;
}
.post-detail-container article.single-post .post-meta span {
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:8px 12px;
  border:1px solid #e2e8f0;
  border-radius:999px;
  background:#fff;
}
.post-thumbnail {
  margin:0;
  background:#f1f5f9;
}
.post-thumbnail-img {
  display:block;
  width:100%;
  max-height:520px;
  object-fit:cover;
}
.post-content {
  max-width:840px;
  margin:0 auto;
  padding:38px;
}
.post-content.prose p {
  color:#1e293b;
  font-size:17px;
  line-height:1.9;
}
.post-content.prose h2,
.post-content.prose h3 {
  margin-top:30px;
  color:#0f172a;
  letter-spacing:0;
}
.post-tags {
  max-width:840px;
  margin:0 auto;
  padding:0 38px 34px;
}
.post-tag {
  display:inline-flex;
  margin:0 8px 8px 0;
  padding:7px 11px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  font-size:13px;
  font-weight:800;
}
.related-posts {
  margin-top:34px;
  padding-top:30px;
  border-top:1px solid #e2e8f0;
}
.related-posts .post-card {
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 42px rgba(15,23,42,.06);
}
.related-posts .post-card .card-body { gap:12px; }

@media(max-width:980px){
  .news-featured-card { grid-template-columns:1fr; }
  .news-featured-media, .news-featured-art { min-height:260px; }
  .news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px){
  .news-hero { padding:3rem 0; }
  .news-featured-body { padding:24px; }
  .news-grid { grid-template-columns:1fr; }
  .news-card { min-height:auto; }
  .post-detail-container article.single-post .post-header { padding:24px; }
  .post-content { padding:26px 22px; }
  .post-tags { padding:0 22px 26px; }
  .post-detail-container article.single-post .post-meta span { width:100%; border-radius:14px; }
}
.results-count { margin:1rem 0; color:var(--muted); font-size:.88rem; }

/* =========================================
   FILTER BAR
   ========================================= */
.archive-filter { display:flex; gap:.75rem; flex-wrap:wrap; align-items:center; margin-bottom:2rem; padding:1rem; background:#fff; border-radius:14px; border:1.5px solid var(--border); }
.filter-select { padding:.5rem .9rem; border:1.5px solid var(--border); border-radius:9px; font-size:.85rem; color:var(--ink); background:#fff; cursor:pointer; }
.filter-select:focus { outline:none; border-color:var(--blue); }

/* =========================================
   PAGINATION
   ========================================= */
.pagination { display:flex; gap:.4rem; justify-content:center; margin-top:2.5rem; flex-wrap:wrap; }
.pagination span a, .pagination span { display:inline-flex; align-items:center; justify-content:center; min-width:38px; height:38px; border-radius:9px; border:1.5px solid var(--border); font-size:.85rem; color:var(--muted); text-decoration:none; padding:0 .6rem; }
.pagination .current { background:var(--blue); color:#fff; border-color:var(--blue); }
.pagination span a:hover { border-color:var(--blue); color:var(--blue); }

/* =========================================
   EMPTY STATE
   ========================================= */
.empty-state { text-align:center; padding:4rem 2rem; color:var(--muted); }
.empty-icon { font-size:3rem; margin-bottom:1rem; }

/* =========================================
   SINGLE TEMPLATES
   ========================================= */
.single-hero {
  padding:3rem 0 0; color:#fff; margin-bottom:2.5rem;
}
.single-hero-inner { display:grid; grid-template-columns:1fr 340px; gap:2.5rem; align-items:start; padding-bottom:3rem; }
.single-title { font-size:2rem; font-weight:800; color:#fff; margin:0 0 .5rem; line-height:1.25; }
.single-subtitle { font-size:1.05rem; color:rgba(255,255,255,.8); margin:0 0 .75rem; }
.single-desc { color:rgba(255,255,255,.75); margin:0 0 1rem; line-height:1.7; }
.single-meta-bar { display:flex; flex-wrap:wrap; gap:.75rem; font-size:.85rem; color:rgba(255,255,255,.8); }
.sidebar-thumb { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:16px 16px 0 0; }
.single-sidebar-card { background:#fff; border-radius:20px; overflow:hidden; box-shadow:0 20px 40px rgba(0,0,0,.15); position:sticky; top:80px; }
.sidebar-card-body { padding:1.25rem; display:flex; flex-direction:column; gap:.75rem; }
.sidebar-price { display:flex; flex-direction:column; }
.price-big { font-size:1.5rem; font-weight:800; color:var(--blue); }
.price-free { color:var(--green) !important; }
.sidebar-meta-list { list-style:none; margin:0; padding:0; font-size:.82rem; color:var(--muted); display:flex; flex-direction:column; gap:.4rem; border-top:1px solid var(--bg-2); padding-top:.75rem; }
.sidebar-meta-list a { color:var(--blue); text-decoration:none; }

.single-body { padding:42px 0 28px; }
.single-main { max-width:920px; }
.content-section {
  margin-bottom:22px;
  padding:28px;
  border:1px solid #e2e8f0;
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 55px rgba(15,23,42,.06);
}
.content-section h2 {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:1.35rem;
  font-weight:900;
  color:#0f172a;
  margin:0 0 18px;
  letter-spacing:0;
}
.outcomes-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.outcome-item {
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-height:58px;
  font-size:15px;
  line-height:1.55;
  color:#1e293b;
  background:#f8fafc;
  padding:14px 16px;
  border:1px solid #e2e8f0;
  border-radius:16px;
}
.curriculum-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.curriculum-item {
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-height:74px;
  padding:15px 16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
  color:#1e293b;
  font-size:15px;
  line-height:1.55;
}
.curriculum-num {
  width:30px;
  height:30px;
  border-radius:10px;
  background:#2563eb;
  color:#fff;
  font-size:.82rem;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  box-shadow:0 10px 22px rgba(37,99,235,.24);
}
.class-overview {
  padding:4px 0;
}
.class-overview p {
  color:#1e293b;
  font-size:17px;
  line-height:1.85;
  margin:0 0 14px;
}
.lesson-plan h3,
.project-box h3 {
  margin:4px 0 18px;
  color:#0f172a;
  font-size:1.15rem;
  font-weight:900;
}
.lesson-plan {
  display:grid;
  gap:12px;
  margin-top:22px;
}
.lesson-week {
  position:relative;
  padding:18px 18px 18px 92px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#f8fafc);
}
.lesson-week span {
  position:absolute;
  left:18px;
  top:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:54px;
  min-height:34px;
  border-radius:12px;
  background:#eef2ff;
  color:#4f46e5;
  font-size:13px;
  font-weight:900;
}
.lesson-week strong {
  display:block;
  color:#0f172a;
  font-size:16px;
  font-weight:900;
  margin-bottom:6px;
}
.lesson-week p {
  margin:0;
  color:#475569;
  font-size:15px;
  line-height:1.7;
}
.project-box {
  margin-top:22px;
  padding:20px;
  border:1px solid #bfdbfe;
  border-radius:20px;
  background:#eff6ff;
}
.project-box p {
  margin:0;
  color:#1e3a8a;
  font-size:15px;
  line-height:1.75;
}
.related-section { padding:2.5rem 0; border-top:1px solid var(--border); }
.related-title { font-size:1.3rem; font-weight:800; color:var(--ink); margin:0 0 1.25rem; }

@media(max-width:980px){ .single-hero-inner { grid-template-columns:1fr; } .single-sidebar-card { position:static; } }

/* Class detail */
.single-hero--class {
  position:relative;
  padding:28px 0 38px;
  margin-bottom:0;
  color:#0f172a;
  overflow:hidden;
}
.single-hero--class::before {
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.72), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.34));
  pointer-events:none;
}
.single-hero--class .container { position:relative; z-index:1; }
.single-class-breadcrumb .breadcrumb { color:#64748b; margin-bottom:26px; }
.single-class-breadcrumb .breadcrumb a { color:#64748b; }
.single-class-breadcrumb .breadcrumb a:hover { color:var(--blue); }
.single-class-breadcrumb .breadcrumb .sep { color:#94a3b8; }
.single-hero--class .single-hero-inner {
  grid-template-columns:minmax(0, 1fr) minmax(360px, 440px);
  gap:46px;
  align-items:start;
  padding-bottom:0;
}
.single-hero--class .single-hero-content {
  max-width:820px;
  padding-top:22px;
}
.single-hero--class .card-meta { gap:8px; margin-bottom:18px; }
.single-hero--class .pill {
  padding:8px 13px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.74);
  color:#334155;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.single-hero--class .single-title {
  max-width:820px;
  margin:0;
  color:#0f172a;
  font-size:clamp(38px, 5.4vw, 66px);
  line-height:1.04;
  letter-spacing:0;
}
.single-hero--class .single-subtitle,
.single-hero--class .single-desc {
  max-width:680px;
  color:#475569;
  font-size:17px;
}
.single-hero--class .single-meta-bar {
  gap:10px;
  margin-top:24px;
  color:#334155;
}
.single-hero--class .single-meta-item {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:40px;
  padding:9px 13px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:#334155;
  font-weight:800;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.single-hero--class .single-meta-item--rating strong { color:#0f172a; }
.single-open-note {
  max-width:720px;
  margin-top:24px;
  padding:18px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:22px;
  background:rgba(255,255,255,.74);
  box-shadow:0 18px 48px rgba(15,23,42,.08);
}
.single-open-note strong {
  display:block;
  color:#0f172a;
  font-size:18px;
  font-weight:900;
}
.single-open-note p {
  max-width:none;
  margin:6px 0 14px;
  color:#475569;
  font-size:15px;
  line-height:1.6;
}
.single-open-links {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.single-open-links a {
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  color:#2563eb;
  font-size:14px;
  font-weight:900;
  text-decoration:none;
  box-shadow:inset 0 0 0 1px #dbeafe;
}
.single-open-links a:hover { background:#eff6ff; }
.single-sidebar-card--class {
  position:sticky;
  top:88px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.92);
  border-radius:28px;
  background:rgba(255,255,255,.86);
  box-shadow:0 26px 70px rgba(15,23,42,.18);
}
.single-sidebar-card--class .sidebar-thumb {
  display:block;
  aspect-ratio:16/10;
  border-radius:0;
}
.single-sidebar-card--class .sidebar-card-body { padding:22px; gap:14px; }
.single-sidebar-card--class .sidebar-price {
  display:grid;
  gap:4px;
  padding:16px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#f8fafc;
}
.single-sidebar-card--class .price-label {
  color:#64748b;
  font-size:13px;
  font-weight:800;
}
.single-sidebar-card--class .price-big {
  color:#2563eb;
  font-size:30px;
  line-height:1;
  letter-spacing:0;
}
.single-sidebar-card--class .btn {
  min-height:48px;
  border-radius:16px;
  font-weight:900;
}
.single-sidebar-card--class .sidebar-meta-list {
  gap:9px;
  padding-top:16px;
  color:#475569;
  font-size:14px;
}
.single-sidebar-card--class .sidebar-meta-list li {
  display:flex;
  align-items:center;
  gap:6px;
}

@media(max-width:980px){
  .single-hero--class { padding:28px 0 38px; }
  .single-hero--class .single-hero-inner { grid-template-columns:1fr; gap:28px; }
  .single-hero--class .single-hero-content { padding-top:0; }
  .single-sidebar-card--class { position:static; max-width:560px; }
}

@media(max-width:640px){
  .single-hero--class .single-title { font-size:34px; }
  .single-hero--class .single-meta-item { width:100%; justify-content:flex-start; border-radius:14px; }
  .single-open-note { border-radius:18px; }
  .single-open-links a { width:100%; justify-content:center; border-radius:12px; }
  .single-sidebar-card--class { border-radius:22px; }
  .single-body { padding:26px 0; }
  .content-section { padding:20px; border-radius:20px; }
  .outcomes-grid, .curriculum-list { grid-template-columns:1fr; }
  .lesson-week { padding:16px; }
  .lesson-week span { position:static; width:auto; min-height:30px; margin-bottom:12px; padding:0 12px; }
}

.single-resource-layout { display:grid; grid-template-columns:1fr 300px; gap:2.5rem; align-items:start; padding:2rem 0; }
.single-tai_lieu .main-content > .container,
.single-de_thi .main-content > .container { padding-top:28px; }
.single-tai_lieu .breadcrumb,
.single-de_thi .breadcrumb {
  display:inline-flex;
  width:auto;
  max-width:100%;
  padding:9px 13px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:rgba(255,255,255,.86);
  color:#475569;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.single-tai_lieu .breadcrumb a,
.single-de_thi .breadcrumb a { color:#2563eb; font-weight:800; }
.single-tai_lieu .breadcrumb .sep,
.single-de_thi .breadcrumb .sep { color:#94a3b8; }
.resource-header { display:flex; gap:1.25rem; align-items:flex-start; margin-bottom:1.5rem; }
.resource-icon-xl { font-size:3rem; flex-shrink:0; }
.single-resource-layout .single-resource-main {
  padding:28px;
  border:1px solid #e2e8f0;
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 55px rgba(15,23,42,.06);
}
.single-resource-layout .single-title {
  color:#0f172a;
  font-size:clamp(30px,4vw,48px);
  line-height:1.1;
  letter-spacing:0;
  margin:14px 0 12px;
}
.single-resource-layout .single-desc {
  max-width:none;
  color:#475569;
  font-size:16px;
  line-height:1.75;
  margin:0 0 20px;
}
.single-resource-layout .single-meta-bar {
  gap:10px;
  color:#334155;
}
.single-resource-layout .single-meta-bar span {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:36px;
  padding:8px 12px;
  border:1px solid #e2e8f0;
  border-radius:999px;
  background:#f8fafc;
  color:#334155;
  font-size:14px;
  font-weight:800;
}
.single-resource-layout .prose {
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid #e2e8f0;
}
.single-sidebar-card--resource { background:#fff; border-radius:20px; border:1.5px solid var(--border); padding:1.25rem; position:sticky; top:80px; display:flex; flex-direction:column; gap:.75rem; }
.no-file { color:var(--muted); font-size:.85rem; text-align:center; padding:1rem; }
.resource-info-list { border-top:1px solid var(--bg-2); padding-top:.75rem; display:flex; flex-direction:column; gap:.35rem; }
.ri-item { display:flex; justify-content:space-between; font-size:.82rem; }
.ri-item span { color:var(--muted); }
.ri-item strong { color:var(--ink); }
@media(max-width:980px){ .single-resource-layout { grid-template-columns:1fr; } .single-sidebar-card--resource { position:static; } }

/* Question single */
.single-cau_hoi .main-content > .container { padding-top:28px; }
.single-cau_hoi .breadcrumb {
  display:inline-flex;
  width:auto;
  max-width:100%;
  padding:9px 13px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:rgba(255,255,255,.86);
  color:#475569;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.single-cau_hoi .breadcrumb a { color:#2563eb; font-weight:800; }
.single-cau_hoi .breadcrumb .sep { color:#94a3b8; }
.question-single {
  margin-top:20px;
  padding:28px;
  border:1px solid #e2e8f0;
  border-radius:26px;
  background:#fff;
  box-shadow:0 18px 55px rgba(15,23,42,.06);
}
.question-single-header { padding-bottom:1.5rem; border-bottom:1px solid #e2e8f0; margin-bottom:1.5rem; }
.question-single .single-title {
  color:#0f172a;
  font-size:clamp(30px,4vw,46px);
  line-height:1.12;
  letter-spacing:0;
  margin:14px 0 16px;
}
.q-meta-bar { display:flex; flex-wrap:wrap; gap:.65rem; font-size:.9rem; color:#334155; margin-top:.5rem; }
.q-meta-bar span {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:36px;
  padding:8px 12px;
  border:1px solid #e2e8f0;
  border-radius:999px;
  background:#f8fafc;
  color:#334155;
  font-weight:800;
}
.question-body {
  margin-bottom:2rem;
  padding:20px;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}
.best-answer { background:rgba(16,185,129,.06); border:1.5px solid rgba(16,185,129,.2); border-radius:18px; padding:1.5rem; margin:2rem 0; }
.best-answer-badge { color:var(--green); font-weight:700; font-size:.88rem; margin-bottom:.75rem; }
.ask-new-cta {
  display:flex;
  gap:1rem;
  align-items:center;
  padding:1.5rem;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:20px;
  margin:2rem 0;
  flex-wrap:wrap;
  box-shadow:0 14px 40px rgba(15,23,42,.05);
}
.ask-new-cta p { margin:0; color:#0f172a; font-weight:800; }

/* Teacher profile */
.single-giao_vien .main-content > .container { padding-top:28px; }
.single-giao_vien .breadcrumb {
  display:inline-flex;
  width:auto;
  max-width:100%;
  padding:9px 13px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:rgba(255,255,255,.86);
  color:#475569;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.single-giao_vien .breadcrumb a { color:#2563eb; font-weight:800; }
.single-giao_vien .breadcrumb .sep { color:#94a3b8; }
.teacher-profile { padding:22px 0 2rem; }
.teacher-profile-header {
  display:flex;
  gap:34px;
  align-items:center;
  margin-bottom:28px;
  padding:30px;
  border:1px solid #e2e8f0;
  border-radius:30px;
  background:rgba(255,255,255,.88);
  box-shadow:0 22px 70px rgba(15,23,42,.10);
}
.teacher-avatar-xl {
  width:150px;
  height:150px;
  border-radius:28px;
  object-fit:cover;
  flex-shrink:0;
  box-shadow:0 22px 45px rgba(79,70,229,.18);
}
.teacher-avatar--placeholder {
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  color:#fff;
  font-size:34px;
  font-weight:900;
}
.teacher-profile-info { min-width:0; }
.single-giao_vien .teacher-title {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  color:#0f172a;
  font-size:clamp(34px,5vw,58px);
  line-height:1.08;
  letter-spacing:0;
  margin:12px 0 12px;
}
.single-giao_vien .teacher-title span:first-child {
  color:#0f172a;
  font-weight:900;
}
.verified-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  background:#1877f2;
  color:#fff;
  font-size:22px;
  font-weight:900;
  line-height:1;
  box-shadow:0 10px 24px rgba(24,119,242,.32);
}
.single-giao_vien .teacher-subject-big { font-size:1rem; color:#475569; margin:0 0 18px; font-weight:800; }
.teacher-stats-bar { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:18px; max-width:620px; }
.t-stat-big {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-height:76px;
  padding:14px 16px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#f8fafc;
}
.t-stat-big strong { font-size:1.15rem; font-weight:900; color:#0f172a; }
.t-stat-big span { font-size:.82rem; color:#64748b; font-weight:700; }
.teacher-contact-bar { display:flex; gap:.6rem; flex-wrap:wrap; }
.teacher-contact-bar .btn { border-radius:999px; font-weight:800; }
.teacher-profile .content-section { max-width:none; }
@media(max-width:760px){
  .teacher-profile-header { flex-direction:column; align-items:flex-start; padding:22px; border-radius:24px; }
  .teacher-stats-bar { grid-template-columns:1fr; width:100%; }
  .teacher-avatar-xl { width:128px; height:128px; border-radius:24px; }
}
@media(max-width:640px){ .teacher-title { font-size:34px; } }
@media(max-width:640px){
  .single-cau_hoi .main-content > .container { padding-top:20px; }
  .question-single { padding:20px; border-radius:22px; }
  .question-body { padding:16px; }
  .q-meta-bar span { width:100%; border-radius:14px; }
  .ask-new-cta .btn { width:100%; }
}

/* Prose */
.prose h2, .prose h3 { color:var(--ink); margin-top:1.5rem; }
.prose p { color:#374151; line-height:1.8; margin:0 0 1rem; }
.prose ul, .prose ol { padding-left:1.5rem; margin:0 0 1rem; }
.prose li { color:#374151; line-height:1.7; margin-bottom:.3rem; }
.prose a { color:var(--blue); }
.prose strong { color:var(--ink); }

/* =========================================
   PAGE TEMPLATES
   ========================================= */
.page-hero { background:linear-gradient(135deg,var(--blue),var(--violet)); padding:3.5rem 0; text-align:center; }
.page-hero-title { font-size:2.5rem; font-weight:800; color:#fff; margin:0 0 .75rem; }
.page-hero-desc { color:rgba(255,255,255,.85); font-size:1.05rem; margin:0; }
.about-section { margin-bottom:3rem; }
.about-section h2 { font-size:1.4rem; font-weight:800; color:var(--ink); margin:0 0 1rem; }
.about-section p { color:#374151; line-height:1.8; margin-bottom:1rem; }
.values-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1.25rem; }
.value-card { padding:1.25rem; background:var(--bg-2); border-radius:16px; }
.value-icon { font-size:1.75rem; margin-bottom:.5rem; }
.value-card h3 { font-size:.95rem; font-weight:700; color:var(--ink); margin:0 0 .4rem; }
.value-card p { font-size:.85rem; color:var(--muted); margin:0; line-height:1.6; }
.about-numbers { display:flex; gap:2rem; justify-content:center; padding:2.5rem; background:linear-gradient(135deg,var(--blue),var(--violet)); border-radius:20px; margin-bottom:3rem; flex-wrap:wrap; }
.number-item { text-align:center; color:#fff; }
.number-big { display:block; font-size:2rem; font-weight:800; }
.number-item span { font-size:.85rem; opacity:.85; }
.about-cta { display:flex; gap:1rem; justify-content:center; margin-top:2.5rem; flex-wrap:wrap; }
@media(max-width:640px){ .values-grid { grid-template-columns:1fr; } .about-numbers { gap:1.5rem; } }

/* Contact */
.contact-layout { display:grid; grid-template-columns:1fr 1.5fr; gap:3rem; padding:2.5rem 0; }
.notice-box { margin:2rem 0 0; padding:1rem 1.15rem; border-radius:14px; font-weight:700; }
.notice-box--success { color:#166534; background:#dcfce7; border:1px solid #86efac; }
.notice-box--error { color:#991b1b; background:#fee2e2; border:1px solid #fecaca; }
.contact-info h2, .contact-form-wrap h2 { font-size:1.3rem; font-weight:800; color:var(--ink); margin:0 0 1.25rem; }
.contact-items { display:flex; flex-direction:column; gap:1.25rem; }
.contact-item { display:flex; gap:1rem; align-items:flex-start; }
.contact-icon { font-size:1.5rem; flex-shrink:0; }
.contact-item strong { display:block; color:var(--ink); font-size:.88rem; margin-bottom:.2rem; }
.contact-item a { color:var(--blue); text-decoration:none; font-size:.85rem; }
.contact-item small { color:var(--muted); font-size:.75rem; }
.form-group { display:flex; flex-direction:column; gap:.4rem; margin-bottom:1rem; }
.form-group label { font-size:.85rem; font-weight:600; color:var(--ink); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.form-control { padding:.65rem .9rem; border:1.5px solid var(--border); border-radius:10px; font-size:.9rem; color:var(--ink); transition:.15s; }
.form-control:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(37,99,235,.1); }
.required { color:#ef4444; }
@media(max-width:980px){ .contact-layout { grid-template-columns:1fr; } }

/* Policy pages */
.policy-page { padding:2rem 0; }
.policy-updated { color:var(--muted); font-size:.82rem; margin-bottom:2rem; }
.page-title { font-size:2rem; font-weight:800; color:var(--ink); margin-bottom:.25rem; }
.container--narrow { max-width:780px; }

/* 404 */
.not-found { text-align:center; padding:6rem 2rem; }
.not-found-code { font-size:8rem; font-weight:900; color:var(--blue); opacity:.15; line-height:1; }
.not-found-title { font-size:1.75rem; font-weight:800; color:var(--ink); margin:-.5rem 0 .75rem; }
.not-found-desc { color:var(--muted); margin-bottom:2rem; line-height:1.7; }
.not-found-links { display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; margin-top:1.5rem; }
.search-bar { display:flex; gap:.5rem; max-width:480px; margin:0 auto; }
.search-input { flex:1; padding:.65rem 1rem; border:1.5px solid var(--border); border-radius:10px; font-size:.9rem; }

/* Breadcrumb */
.breadcrumb { display:flex; align-items:center; gap:.4rem; font-size:.78rem; color:rgba(255,255,255,.7); margin-bottom:1rem; flex-wrap:wrap; }
.breadcrumb a { color:rgba(255,255,255,.7); text-decoration:none; }
.breadcrumb a:hover { color:#fff; }
.breadcrumb--dark .breadcrumb { color:var(--muted); }
.breadcrumb--dark a { color:var(--muted); }
.breadcrumb--dark a:hover { color:var(--blue); }

/* Stars */
.stars { color:#f59e0b; letter-spacing:1px; }

/* Tax sub-nav */
.tax-sub-nav { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1.5rem; }

/* General utilities */
.main-content { min-height:60vh; padding-bottom:3rem; }
.container { max-width:1240px; margin:0 auto; padding:0 var(--page-pad); }

/* Demo preview alignment */
.home .main-content { padding-bottom:0; }
.home .container { width:min(1320px,92%); max-width:1320px; padding-left:0; padding-right:0; }
.home .topbar-inner, .home .header-inner { width:min(1320px,92%); max-width:1320px; margin:0 auto; padding-left:0; padding-right:0; }
.home .hero-section.hero { min-height:auto; display:block; padding:72px 0 38px; background:transparent; overflow:hidden; }
.home .hero-section.hero .container { width:min(1320px,92%); max-width:1320px; }
.home .hero-inner { display:grid; grid-template-columns:1.05fr .95fr; gap:38px; align-items:center; }
.home .hero-badge { display:inline-flex; align-items:center; gap:9px; padding:9px 13px; margin:0; border:1px solid var(--line); border-radius:999px; background:#fff; color:#334155; font-size:13px; font-weight:800; box-shadow:0 10px 28px rgba(15,23,42,.06); }
.home .hero-badge .badge-dot { width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:var(--green); box-shadow:0 0 0 6px rgba(16,185,129,.12); }
.home .hero-title { max-width:none; margin:22px 0; color:#0f172a; font-size:clamp(38px,6vw,72px); line-height:1.04; letter-spacing:-2.8px; }
.home .hero-highlight { background:linear-gradient(135deg,var(--blue),var(--violet)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.home .hero-desc { max-width:630px; margin:0 0 28px; color:var(--muted); font-size:18px; line-height:1.6; }
.home .hero-search { display:flex; max-width:690px; margin:24px 0 0; padding:12px; gap:10px; border:1px solid var(--line); border-radius:24px; background:#fff; box-shadow:var(--shadow); }
.home .hero-search-input { flex:1; min-width:0; padding:0 12px; border:0; outline:0; background:transparent; color:#0f172a; font-family:inherit; font-size:15px; }
.home .hero-search .btn { border-radius:999px; padding:13px 18px; white-space:nowrap; }
.home .hero-stats { display:grid; grid-template-columns:repeat(3,1fr); max-width:690px; margin-top:26px; gap:14px; }
.home .stat-item { display:block; padding:18px; border:1px solid var(--line); border-radius:22px; background:rgba(255,255,255,.75); }
.home .stat-num { display:block; color:var(--blue); font-size:26px; font-weight:900; line-height:1.2; letter-spacing:-1px; }
.home .stat-label { display:block; margin-top:2px; color:var(--muted); font-size:13px; font-weight:700; }
.home .hero-app { display:block; }
.home .hero-app .app-card { position:relative; width:100%; max-width:none; margin-left:auto; padding:18px; border:1px solid rgba(226,232,240,.9); border-radius:36px; background:rgba(255,255,255,.8); box-shadow:0 35px 95px rgba(15,23,42,.15); backdrop-filter:blur(18px); }
.home .app-top { display:flex; align-items:center; justify-content:space-between; height:60px; margin-bottom:16px; padding:0 18px; border-radius:24px; background:linear-gradient(135deg,#0f172a,#1e293b); color:#fff; font-weight:900; }
.home .dots { display:flex; gap:7px; }
.home .dots i { width:10px; height:10px; border-radius:50%; background:#94a3b8; }
.home .dots i:first-child { background:#f97316; }
.home .dots i:nth-child(2) { background:#facc15; }
.home .dots i:nth-child(3) { background:#22c55e; }
.home .dash { display:grid; grid-template-columns:.88fr 1.12fr; gap:16px; }
.home .sidebar, .home .panel { padding:18px; border:1px solid var(--line); border-radius:26px; background:#fff; }
.home .mini-nav { display:grid; gap:10px; margin-top:14px; }
.home .mini-nav span, .home .mini-nav div { min-height:38px; padding:10px 12px; border-radius:14px; background:#f1f5f9; color:#475569; font-size:13px; font-weight:800; }
.home .mini-nav span:nth-child(2), .home .mini-nav div.active { background:#dbeafe; color:#1d4ed8; }
.home .progress { height:10px; margin:12px 0; border-radius:999px; background:#e2e8f0; overflow:hidden; }
.home .progress i { display:block; width:72%; height:100%; border-radius:999px; background:linear-gradient(135deg,var(--blue),var(--green)); }
.home .lesson { display:flex; align-items:center; gap:12px; margin-top:12px; padding:12px; border-radius:18px; background:#f8fafc; }
.home .lesson .icon { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; border-radius:14px; background:#eef2ff; }
.home .lesson strong { display:block; color:var(--ink); font-size:14px; }
.home .lesson p { margin:2px 0 0; color:var(--muted); font-size:12px; }
.home .floating { position:absolute; right:-14px; bottom:28px; width:190px; padding:16px; border:1px solid var(--line); border-radius:24px; background:#fff; box-shadow:0 25px 60px rgba(37,99,235,.18); }
.home .floating strong { display:block; color:var(--ink); }
.home .floating span { color:var(--muted); font-size:12px; }

.home .section { padding:58px 0; }
.home .section-header { display:flex; align-items:end; justify-content:space-between; margin-bottom:28px; gap:22px; text-align:left; }
.home .section-header--compact { margin-bottom:18px; }
.home .section-header > .btn { display:none; }
.home .section-title { margin:0; color:var(--ink); font-size:clamp(28px,4vw,44px); line-height:1.12; letter-spacing:-1.4px; }
.home .section-desc { max-width:520px; margin:0; color:var(--muted); }
.home .subjects-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:18px; }
.home .subjects-grid .subject-card:nth-child(n+7) { display:none; }
.home .subject-card { min-height:185px; padding:30px 22px 26px; border:1px solid var(--line); border-radius:24px; background:#fff; text-align:left; box-shadow:0 12px 30px rgba(15,23,42,.05); }
.home .subject-icon { display:block; width:auto; height:auto; margin:0 0 24px; background:transparent; color:inherit; font-size:32px; line-height:1; }
.home .subject-name { color:var(--ink); font-size:19px; font-weight:900; }
.home .subject-count { margin-top:7px; color:var(--muted); font-size:15px; line-height:1.35; }
.home .cards-grid--3 { grid-template-columns:repeat(3,1fr); }
.home .classes-section .cards-grid--3 .class-card:nth-child(n+4) { display:none; }
.home .class-card { overflow:hidden; border:1px solid var(--line); border-radius:30px; background:#fff; box-shadow:0 18px 48px rgba(15,23,42,.07); }
.home .class-card .card-thumb-link { display:block; position:relative; }
.home .class-card .card-thumb { height:188px; border-radius:0; }
.home .class-card .card-thumb--gradient { display:block; position:relative; padding:0; }
.home .class-card .card-thumb--gradient > span:not(.home-cover-tag) { display:none; }
.home .home-cover-tag { position:absolute; bottom:20px; display:inline-flex; align-items:center; min-height:44px; padding:10px 15px; border-radius:999px; background:rgba(255,255,255,.92); color:#0f172a; font-size:14px; font-weight:900; box-shadow:0 10px 26px rgba(15,23,42,.08); }
.home .home-cover-tag--left { left:20px; }
.home .home-cover-tag--right { right:20px; }
.home .class-card .card-body { padding:26px; }
.home .class-card .card-meta { display:none; }
.home .class-card .card-cta { display:none; }
.home .class-card .card-title { margin:0 0 14px; font-size:25px; line-height:1.25; letter-spacing:-.65px; }
.home .class-card .card-subtitle { display:block; min-height:58px; margin:0; color:#0f172a; font-size:18px; line-height:1.55; }
.home .class-card .card-info, .home .class-card .card-footer { display:none; }
.home .home-class-stats { display:flex; gap:16px; flex-wrap:wrap; margin:22px 0 18px; color:var(--muted); font-size:16px; font-weight:900; }
.home .home-class-teacher { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-top:18px; border-top:1px solid var(--line); }
.home .home-class-teacher-name { display:flex; align-items:center; gap:12px; min-width:0; color:#0f172a; font-size:20px; }
.home .home-class-teacher-name strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home .home-class-avatar { width:48px; height:48px; flex:0 0 48px; border-radius:50%; background:linear-gradient(135deg,var(--blue),var(--pink)); }
.home .home-class-price { color:var(--ink); font-size:24px; white-space:nowrap; }

.home .home-split { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.home .home-list { display:grid; gap:18px; }
.home .home-split .resource-card, .home .home-split .question-card { display:flex; flex-direction:row; align-items:center; gap:20px; margin:0; padding:24px; border:1px solid var(--line); border-radius:28px; background:#fff; box-shadow:none; }
.home .home-split .resource-card { min-height:120px; }
.home .home-split .question-card { align-items:flex-start; min-height:160px; }
.home .home-split .resource-icon-wrap { display:grid; place-items:center; width:68px; height:68px; flex:0 0 68px; margin:0; padding:0; border-radius:22px; background:#eff6ff; color:var(--blue); }
.home .home-split .resource-icon { font-size:30px; }
.home .home-split .card-badge-featured { display:none; }
.home .home-split .card-body { flex:1; padding:0; }
.home .home-split .card-title, .home .home-split .question-title { margin:0; font-size:21px; line-height:1.32; letter-spacing:-.35px; }
.home .home-split .card-subtitle, .home .home-split .question-excerpt { margin:8px 0 0; color:var(--muted); font-size:15px; line-height:1.55; }
.home .home-split .card-meta, .home .home-split .card-info, .home .home-split .card-footer, .home .home-split .resource-card .btn, .home .home-split .question-card .btn, .home .home-split .question-meta { display:none; }
.question-vote { display:none; }
.home .home-split .question-vote { display:grid; place-items:center; width:68px; height:68px; flex:0 0 68px; border-radius:22px; background:#f0fdf4; color:#16a34a; }
.home .home-split .question-vote strong { display:block; font-size:22px; line-height:1; }
.home .home-split .question-vote span { display:none; }
.home .home-split .question-status { display:inline-flex; align-items:center; width:auto; height:auto; min-width:0; margin:14px 0 0; padding:7px 12px; border:1px solid var(--line); border-radius:999px; background:#f8fafc; color:#475569; font-size:13px; font-weight:800; }

.home .ai-section { padding:58px 0; background:transparent; color:var(--ink); }
.home .ai-zone { position:relative; display:grid; grid-template-columns:.9fr 1.1fr; gap:42px; overflow:hidden; padding:42px; border-radius:40px; background:linear-gradient(135deg,#0f172a,#1e1b4b 58%,#312e81); color:#fff; }
.home .ai-zone::before { content:none; }
.home .ai-zone h2 { max-width:560px; margin:0 0 18px; color:#fff; font-size:clamp(36px,4vw,52px); line-height:1.08; letter-spacing:-1.6px; }
.home .ai-zone p { max-width:620px; margin:0 0 26px; color:#e0f2fe; font-size:18px; line-height:1.55; }
.home .ai-zone .ai-badge { margin-bottom:12px; border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.12); color:#e0f2fe; box-shadow:none; }
.home .ai-zone .ai-badge .badge-dot { display:inline-block; width:9px; height:9px; margin-right:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 6px rgba(16,185,129,.12); }
.home .ai-box { padding:22px; border:1px solid rgba(255,255,255,.16); border-radius:32px; background:rgba(255,255,255,.1); }
.home .chat { max-width:none; margin:0 0 16px; padding:18px 22px; border-radius:24px; background:#fff; color:#0f172a; font-size:19px; line-height:1.5; }
.home .chat:nth-child(2) { margin-left:0; background:#fff; }
.home .chat small { display:block; margin-bottom:6px; color:#64748b; font-size:15px; font-weight:800; text-transform:none; }
.home .msg { max-width:78%; padding:13px 15px; border-radius:18px; background:#fff; color:#0f172a; font-size:14px; }
.home .msg.me { justify-self:end; background:#dbeafe; }
.home .ai-tools { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:16px; }
.home .ai-tools span, .home .ai-tools div { padding:16px 20px; border:1px solid rgba(255,255,255,.16); border-radius:20px; background:rgba(255,255,255,.1); color:#e0f2fe; text-align:left; font-size:19px; font-weight:900; }
.home .cta-section { padding:58px 0; background:transparent; }
.home .cta { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:38px; border:1px solid var(--line); border-radius:42px; background:#fff; color:var(--ink); box-shadow:var(--shadow); }
.home .cta h2 { margin:0 0 8px; color:var(--ink); font-size:32px; line-height:1.16; letter-spacing:-1px; }
.home .cta p { margin:0; color:var(--muted); }
.home .teachers-section { background:transparent; }
.home .cards-grid--4 { grid-template-columns:repeat(4,1fr); gap:18px; }
.home .teacher-card { position:relative; padding:20px; border:1px solid var(--line); border-radius:28px; background:#fff; text-align:center; box-shadow:0 14px 34px rgba(15,23,42,.06); }
.home .teacher-card > .card-badge-featured { display:none; }
.home .teacher-avatar-wrap { margin:0 auto 14px; }
.home .teacher-avatar { width:86px; height:86px; border:0; border-radius:28px; object-fit:cover; }
.home .teacher-avatar--placeholder { display:grid; place-items:center; background:linear-gradient(135deg,#dbeafe,#fce7f3); color:var(--blue); font-weight:900; }
.home .teacher-name { margin:0; color:var(--ink); font-size:18px; font-weight:800; }
.home .teacher-subject, .home .teacher-bio { margin:6px 0 14px; color:var(--muted); font-size:13px; line-height:1.55; }
.home .teacher-stats { display:block; margin:0; }
.home .teacher-stats .t-stat { display:none; }
.home .teacher-stats .t-stat:last-child { display:block; color:#f97316; font-size:13px; font-weight:900; }
.home .teacher-stats .t-stat:last-child strong, .home .teacher-stats .t-stat:last-child span { display:inline; color:#f97316; }
.home .teacher-card .btn { display:none; }
.home .site-footer { margin-top:40px; color:#cbd5e1; }
.home .footer-top { padding:38px 0 30px; }
.home .footer-grid { grid-template-columns:minmax(320px,1fr) minmax(220px,.78fr) minmax(190px,.72fr) minmax(190px,.72fr); gap:clamp(24px,3vw,44px); }
.home .footer-heading, .home .footer-logo-text { color:#fff; }
.home .footer-bottom { border-top:1px solid rgba(255,255,255,.1); }

@media (max-width:980px) {
    .home .container, .home .topbar-inner, .home .header-inner { width:min(100% - 48px,1320px); }
    .home .hero-inner, .home .home-split, .home .ai-zone { grid-template-columns:1fr; }
    .home .hero-section.hero { min-height:auto; display:block; padding:48px 0 38px; }
    .home .hero-app .app-card { max-width:none; margin-left:0; }
    .home .subjects-grid { grid-template-columns:repeat(3,1fr); }
    .home .cards-grid--3, .home .cards-grid--4 { grid-template-columns:repeat(2,1fr); }
    .home .footer-grid { grid-template-columns:1.1fr 1fr; }
    .home .floating { right:18px; }
}

@media (max-width:640px) {
    .home .container, .home .topbar-inner, .home .header-inner { width:min(100% - 32px,1320px); }
    .home .hero-section.hero { padding-top:42px; }
    .home .hero-title { letter-spacing:-1.5px; }
    .home .hero-search { flex-direction:column; }
    .home .hero-stats, .home .subjects-grid, .home .cards-grid--3, .home .cards-grid--4 { grid-template-columns:1fr; }
    .home .dash { grid-template-columns:1fr; }
    .home .floating { position:static; width:auto; margin-top:14px; }
    .home .section-header { display:block; }
    .home .home-split .resource-card, .home .home-split .question-card { border-radius:22px; padding:16px; }
    .home .ai-zone { padding:24px; border-radius:30px; }
    .home .ai-zone h2 { font-size:30px; }
    .home .ai-tools { grid-template-columns:1fr 1fr; }
    .home .cta { flex-direction:column; align-items:flex-start; padding:26px; border-radius:30px; }
    .home .footer-grid { grid-template-columns:1fr; gap:24px; }
    .home .footer-bottom-inner { flex-direction:column; align-items:flex-start; }
}
