@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap");
@import "tailwindcss";
:root {
  --red: #ee1c25;
  --green: #0baa4b;
  --gold: #ffc947;
  --orange: #f58220;
  --ink: #102033;
  --muted: #667085;
  --bg: #fbfcfb;
  --card: #ffffff;
  --line: #e8eee9;
  --shadow: 0 24px 70px rgba(16, 32, 51, 0.1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 400;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 201, 71, 0.18),
      transparent 32%
    ),
    linear-gradient(180deg, #fff, #f7fbf8);
  color: var(--ink);
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 22px;
  color: var(--green);
}
.brand img {
  width: auto;
  height: auto;
  max-height: 85px;
  object-fit: contain;
}
.brand span::first-letter {
  color: var(--red);
}
nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
nav a,
nav button.ghost {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 999px;
  color: #344054;
  font-weight: 800;
  cursor: pointer;
}
.active,
nav a:hover,
nav button.ghost:hover {
  background: #f0faf4;
  color: var(--green);
}
.menu-btn {
  display: none;
  border: 0;
  background: #f3f7f4;
  padding: 10px;
  border-radius: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  box-shadow: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    filter 0.22s ease,
    background-position 0.35s ease;
}
.btn.alt {
  background: #fff;
  color: var(--green);
  border: 1px solid #d9eee1;
  box-shadow: none;
}
.btn.small {
  padding: 9px 14px;
  font-size: 14px;
}
main {
  overflow: hidden;
}
section {
  padding: 64px clamp(18px, 5vw, 72px);
}
.inner-section {
  padding: 36px 0 0;
}
.hero {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  position: relative;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.76),
      rgba(255, 255, 255, 0.92)
    ),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  border-radius: 0 0 44px 44px;
  z-index: -1;
}
.eyebrow {
  display: inline-flex;
  background: #fff7dd;
  color: #9b5e00;
  border: 1px solid #ffe5a2;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 18px;
}
.hero h1,
.page-title h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  margin: 0 0 18px;
  letter-spacing: -0.06em;
}
.hero p,
.page-title p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 760px;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 10px 10px 10px 18px;
  box-shadow: var(--shadow);
  max-width: 740px;
  margin: 28px 0;
}
.hero-search input {
  border: 0;
  outline: 0;
  flex: 1;
  font-weight: 700;
  color: var(--ink);
  min-width: 120px;
}
.hero-search svg {
  color: var(--green);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.stat b {
  font-size: 26px;
  display: block;
}
.stat span {
  color: var(--muted);
  font-weight: 700;
}
.hero-panel {
  position: relative;
  min-height: 520px;
  border-radius: 44px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.94),
    rgba(241, 251, 245, 0.94)
  );
  box-shadow: var(--shadow);
  padding: 28px;
  overflow: hidden;
}
.hero-panel:before {
  content: "";
  position: absolute;
  inset: 70px 40px auto auto;
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, var(--green), #47d582);
  border-radius: 50%;
  opacity: 0.16;
}
.search-box,
.floating-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}
.floating-card {
  margin-top: 28px;
  display: block;
  max-width: 330px;
  backdrop-filter: blur(20px);
  background-color: #ffffff70;
  border: 1px solid var(--line);
}
.floating-card:nth-child(3) {
  margin-left: auto;
  margin-top: 80px;
}
.floating-card svg {
  color: var(--green);
  margin-bottom: 15px;
}
.floating-card b {
  display: block;
  color: var(--ink);
  font-size: 22px;
}
.floating-card p {
  font-size: 15px;
  margin: 8px 0;
  color: var(--muted);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: 32px;
  /* font-size: clamp(28px, 4vw, 46px); */
  margin: 0;
  letter-spacing: -0.04em;
}
.section-head a {
  font-weight: 900;
  color: var(--green);
}
.grid {
  display: grid;
  gap: 20px;
}
.subjects {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.courses,
.info,
.admin-grid,
.dash {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.subject-card,
.course-card,
.info-card,
.admin-card,
.dash-card,
.empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 14px 50px rgba(16, 32, 51, 0.06);
  transition:
    0.25s transform,
    0.25s box-shadow;
}
.subject-card:hover,
.course-card:hover,
.info-card:hover,
.admin-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.subject-image {
  height: 150px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff3d0, #e9fff1);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--green);
  overflow: hidden;
}
.subject-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subject-card h3,
.course-card h3,
.info-card h3,
.admin-card h3 {
  font-size: 23px;
  margin: 0 0 10px;
}
.subject-card p,
.course-card p,
.info-card p,
.admin-card p {
  color: var(--muted);
  line-height: 1.6;
}
.subject-card span,
.info-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 900;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
.stack {
  display: grid;
  gap: 16px;
}
.info-card small {
  color: var(--orange);
  font-weight: 900;
}
.progress {
  height: 9px;
  background: #eef4ef;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 999px;
}
.progress.big {
  height: 14px;
}
.video-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff7dd;
  color: #9b5e00;
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 900;
  font-size: 13px;
}
.trust {
  text-align: center;
  background: #102033;
  color: #fff;
}
.trust svg {
  color: var(--gold);
  width: 44px;
  height: 44px;
}
.trust h2 {
  font-size: 38px;
  margin: 16px 0 10px;
}
.trust p {
  color: #d7e1dc;
  max-width: 760px;
  margin: auto;
  line-height: 1.7;
}
.page-title {
  max-width: 980px;
  margin-bottom: 32px;
}
.page-title h1 {
  font-size: clamp(38px, 6vw, 70px);
}
.composer,
.filters,
.actions-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.composer-large {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 14px;
}
.composer input,
.filters input,
.filters select,
.auth input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  background: #fff;
}
.admin-form textarea {
  min-height: 100px;
  resize: vertical;
  grid-column: 1/-1;
}
.course-detail {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.course-detail > div,
.course-detail aside,
.video-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.video-box {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
}
.video-box a {
  color: var(--green);
  font-weight: 900;
}
.lesson-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.lesson {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
}
.lesson span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f0faf4;
  color: var(--green);
  font-weight: 900;
}
.lesson h3 {
  margin: 0;
}
.lesson p {
  margin: 5px 0 0;
  color: var(--muted);
}
.auth {
  min-height: 70vh;
  display: grid;
  place-items: center;
}
.auth form {
  width: min(500px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 30px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.auth h1 {
  font-size: 40px;
  margin: 0;
}
.auth-links {
  text-align: center;
  color: var(--muted);
}
.password-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-container input {
  width: 100%;
  padding-right: 48px !important;
}
.password-toggle {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  outline: none;
  transition: color 0.2s;
}
.password-toggle:hover {
  color: var(--green);
}
.auth-links a {
  color: var(--green);
  font-weight: 900;
}
.error {
  background: #fff1f1;
  color: var(--red);
  border: 1px solid #ffd0d0;
  padding: 12px;
  border-radius: 14px;
}
.notice {
  background: #f0faf4;
  color: #047538;
  border: 1px solid #cfeedd;
  padding: 12px;
  border-radius: 14px;
  margin: 12px 0;
}
.loading {
  min-height: 40vh;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--green);
}
.dash-card {
  text-align: center;
}
.dash-card b {
  font-size: 48px;
  color: var(--green);
  display: block;
}
.dash-card span {
  font-weight: 900;
  color: var(--muted);
}
.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.admin-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}
.admin-tabs button.active {
  background: #f0faf4;
  color: var(--green);
  border-color: #cfeedd;
}
.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.admin-list {
  display: grid;
  gap: 12px;
}
.admin-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.admin-row button,
.table-wrap button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 800;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 13px;
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-size: 13px;
}
.detail-card {
  max-width: 860px;
}
.empty {
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty svg {
  margin: auto;
  color: var(--green);
}
/* ── Footer ───────────────────────────────────── */
.ft {
  background: #06111e;
  color: #c9d8d0;
  position: relative;
}
.ft-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--orange));
}
.ft-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px clamp(18px, 5vw, 72px) 44px;
}
/* Brand column */
.ft-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ft-logo {
  width: 116px;
  object-fit: contain;
  border-radius: 10px;
}
.ft-tagline {
  font-style: italic;
  font-size: 14px;
  color: #7a9e8e;
  margin: 0;
}
.ft-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #16be68;
  margin: 0;
}
/* Column headings */
.ft-heading {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 20px;
}
/* Link lists */
.ft-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ft-list li a,
.ft-list li span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #7a9e8e;
  position: relative;
  transition: color 0.2s;
}
.ft-list li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.22s ease;
}
.ft-list li a:hover {
  color: #ffffff;
}
.ft-list li a:hover::after {
  width: 100%;
}
/* Bottom bar */
.ft-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: #3d5a4a;
  font-weight: 700;
}
.ft-products {
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .ft-body {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (max-width: 580px) {
  .ft-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ft-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 980px) {
  .hero,
  .split,
  .course-detail {
    grid-template-columns: 1fr;
  }
  .subjects,
  .courses,
  .info,
  .admin-grid,
  .dash {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-panel {
    min-height: 360px;
  }
  .floating-card:nth-child(3) {
    margin-left: 0;
    margin-top: 20px;
  }
  .admin-form {
    grid-template-columns: 1fr 1fr;
  }
  .admin-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .menu-btn {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  nav.show {
    display: flex;
  }
  nav a,
  nav button.ghost {
    justify-content: flex-start;
  }
  .brand span {
    display: none;
  }
  section {
    padding: 46px 18px;
  }
  .hero h1,
  .page-title h1 {
    letter-spacing: -0.04em;
  }
  .subjects,
  .courses,
  .info,
  .admin-grid,
  .dash {
    grid-template-columns: 1fr;
  }
  .lesson {
    grid-template-columns: 44px 1fr;
  }
  .lesson button {
    grid-column: 1/-1;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .hero-panel {
    border-radius: 28px;
  }
  .stats {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-search {
    flex-wrap: wrap;
  }
  .hero-search input {
    flex-basis: 100%;
  }
  .admin-form {
    grid-template-columns: 1fr;
  }
  .auth form {
    padding: 24px;
  }
  .composer input,
  .filters input,
  .filters select {
    min-width: 100%;
  }
}
/* Modern Admin Dashboard */
.admin-shell {
  background: linear-gradient(180deg, #f7fbf8, #fff);
}
.admin-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
}
.admin-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -0.055em;
}
.admin-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 860px;
}
.admin-hero-card {
  background: linear-gradient(135deg, #102033, #183a2b);
  color: #fff;
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.admin-hero-card b {
  font-size: 56px;
  line-height: 1;
}
.admin-hero-card span {
  color: #d7e1dc;
  font-weight: 800;
}
.admin-layout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.admin-sidebar {
  position: sticky;
  top: 80px;
  flex-shrink: 0;
  width: 260px;
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px 12px;
  box-shadow: 0 18px 60px rgba(16, 32, 51, 0.08);
  display: grid;
  gap: 16px;
}
.admin-sidebar-group {
  display: grid;
  gap: 6px;
}
.admin-sidebar-group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  padding-left: 14px;
  margin-bottom: 2px;
}
.admin-sidebar-links {
  display: grid;
  gap: 4px;
}
.admin-sidebar button {
  border: 0;
  background: transparent;
  border-radius: 18px;
  padding: 11px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
  color: #344054;
  cursor: pointer;
  text-align: left;
  width: 100%;
  justify-content: flex-start;
  transition: all 0.2s ease;
}
.admin-sidebar button.active,
.admin-sidebar button:hover {
  background: #f0faf4;
  color: var(--green);
}
.sidebar-badge {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: auto;
  min-width: 18px;
  text-align: center;
}
.admin-breadcrumbs {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: capitalize;
}
.admin-breadcrumbs span {
  display: inline-block;
}
.admin-breadcrumbs .active-breadcrumb {
  color: var(--green);
  font-weight: 800;
}
.admin-workspace {
  min-width: 0;
  flex: 1;
}
.admin-workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px 32px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(16, 32, 51, 0.03);
}
.admin-workspace-title-area {
  flex: 1;
}
.workspace-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin: 4px 0 8px;
  letter-spacing: -0.03em;
}
.workspace-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 700px;
}
.admin-workspace-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.workspace-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0faf4;
  border: 1px solid #cfeedd;
  color: var(--green);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.metric-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(11, 170, 75, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(11, 170, 75, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(11, 170, 75, 0);
  }
}
@media (max-width: 720px) {
  .admin-workspace-header {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  .admin-workspace-actions {
    margin-top: 12px;
    justify-content: space-between;
  }
}
.admin-stack {
  display: grid;
  gap: 22px;
}
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.admin-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 14px 45px rgba(16, 32, 51, 0.06);
}
.admin-kpi span:first-child {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #f0faf4;
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.admin-kpi b {
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
}
.admin-kpi p {
  margin: 7px 0 3px;
  font-weight: 900;
}
.admin-kpi small {
  color: var(--muted);
  font-weight: 800;
}
.admin-card.pro {
  border-radius: 32px;
  padding: 24px;
  box-shadow: 0 18px 60px rgba(16, 32, 51, 0.08);
}
.admin-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.admin-section-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.admin-section-title > div {
  min-width: 0;
}
.admin-section-title h2 {
  display: inline;
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.03em;
}
.admin-section-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.admin-title-icon {
  width: 40px;
  height: 40px;
  border-radius: 15px;
  background: #f0faf4;
  color: var(--green);
  display: inline-grid;
  place-items: center;
  margin-right: 10px;
  vertical-align: middle;
}
.admin-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.admin-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 14px;
  min-width: min(420px, 100%);
}
.admin-search input {
  border: 0;
  outline: 0;
  padding: 14px 0;
  flex: 1;
  background: transparent;
}
.admin-alert {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  margin: 0 0 18px;
  padding: 14px 16px;
  font-weight: 800;
}
.admin-alert.notice {
  background: #f0faf4;
  color: #047538;
  border: 1px solid #cfeedd;
}
.admin-alert button {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 900;
  font-size: 12px;
  background: #f5f7f8;
  color: #344054;
  border: 1px solid var(--line);
  text-transform: capitalize;
}
.admin-badge.green {
  background: #edfdf4;
  color: #047538;
  border-color: #cfeedd;
}
.admin-badge.red {
  background: #fff1f1;
  color: #c01118;
  border-color: #ffd0d0;
}
.admin-badge.gold {
  background: #fff8df;
  color: #9b5e00;
  border-color: #ffe5a2;
}
.admin-form.modern {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #f9fbfa;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
}
.admin-form.modern textarea {
  grid-column: 1/-1;
}
.admin-form.modern button {
  width: max-content;
}
.admin-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  color: #344054;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
}
.table-wrap.modern {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: auto;
  background: #fff;
}
.table-wrap.modern table {
  min-width: 760px;
}
.table-wrap.modern td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.table-actions button,
.admin-card-actions button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
}
.table-actions button:hover,
.admin-card-actions button:hover {
  border-color: #cfeedd;
  color: var(--green);
  background: #f0faf4;
}
.table-actions button.danger,
.admin-card-actions button.danger {
  color: #c01118;
}
.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.admin-manage-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 16px;
  box-shadow: 0 14px 45px rgba(16, 32, 51, 0.06);
}
.admin-manage-card.text-card {
  grid-template-columns: 1fr;
}
.admin-manage-card img {
  height: 130px;
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
  background: #f0faf4;
}
.admin-manage-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}
.admin-manage-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 12px;
}
.admin-card-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-list.refined {
  display: grid;
  gap: 12px;
}
.admin-row.refined {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  background: #fff;
}
.admin-row.refined b {
  display: block;
}
.admin-row.refined small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.admin-row.moderation {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.activity-list {
  display: grid;
  gap: 12px;
}
.activity-row {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.activity-row span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #f0faf4;
  color: var(--green);
  display: grid;
  place-items: center;
}
.activity-row b {
  display: block;
}
.activity-row small {
  color: var(--muted);
  font-weight: 800;
}
.coverage-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chart-list {
  display: grid;
  gap: 14px;
}
.chart-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  gap: 12px;
  align-items: center;
}
.chart-row span {
  font-weight: 900;
}
.chart-row div {
  height: 12px;
  background: #edf2ee;
  border-radius: 999px;
  overflow: hidden;
}
.chart-row i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.chart-row b {
  text-align: right;
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.health-grid div {
  background: #f9fbfa;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
}
.health-grid b {
  font-size: 36px;
  color: var(--green);
  display: block;
}
.health-grid span {
  color: var(--muted);
  font-weight: 900;
}
.admin-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  color: var(--muted);
  padding: 34px;
  border: 1px dashed #d7e3da;
  border-radius: 24px;
  background: #fbfdfb;
}
.admin-empty b {
  color: var(--ink);
}
.error-state svg {
  color: var(--red);
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1100px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    position: relative;
    top: auto;
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 12px;
    border-radius: 20px;
  }
  .admin-sidebar-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .admin-sidebar-group-title {
    display: none;
  }
  .admin-sidebar-links {
    display: flex;
    gap: 6px;
  }
  .admin-sidebar button {
    min-width: max-content;
    padding: 10px 14px;
  }
  .admin-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-hero {
    grid-template-columns: 1fr;
  }
  .admin-form.modern {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-content-grid,
  .admin-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .admin-kpis,
  .admin-form.modern {
    grid-template-columns: 1fr;
  }
  .admin-manage-card {
    grid-template-columns: 1fr;
  }
  .admin-row.refined,
  .admin-row.moderation {
    grid-template-columns: 1fr;
  }
  .chart-row {
    grid-template-columns: 86px 1fr 34px;
  }
  .health-grid {
    grid-template-columns: 1fr;
  }
  .admin-hero-card b {
    font-size: 42px;
  }
  .admin-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Frontend cleanup: original logo only, Montserrat typography, flat buttons with classic motion */
h1,
h2,
h3,
h4,
.page-title h1,
.hero h1,
.section-head h2 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
}
p,
li,
span,
input,
textarea,
select,
button,
td,
th,
a {
  font-family: "Montserrat", system-ui, sans-serif;
}
body,
p,
.page-title p,
.hero p,
.subject-card p,
.course-card p,
.info-card p,
.admin-card p {
  font-weight: 400;
}
.brand {
  gap: 0;
}
.brand img {
  width: 92px;
  height: 54px;
}
.brand span {
  display: none !important;
}
.btn,
.btn.alt,
.btn.small,
button.ghost,
.admin-tabs button,
.admin-row button,
.table-wrap button {
  box-shadow: none !important;
}
.btn {
  background-size: 180% 100%;
  background-position: 0 0;
}
.btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  background-position: 100% 0;
}
.btn:active {
  transform: translateY(0);
}
.btn.alt:hover {
  background: #f8fff9;
  border-color: #bde8ce;
}
.hero-search {
  box-shadow: 0 1px 0 rgba(16, 32, 51, 0.04);
  position: relative;
  overflow: hidden;
}
.hero-search:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 170, 75, 0.06),
    rgba(245, 130, 32, 0.05)
  );
  pointer-events: none;
}
.hero-search input,
.hero-search button,
.hero-search svg {
  position: relative;
}
.hero-panel.clean {
  display: grid;
  align-content: center;
  gap: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(241, 251, 245, 0.94)
    ),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
}
.hero-panel.clean .floating-card {
  margin: 0;
  animation: classicFloat 5s ease-in-out infinite;
}
.hero-panel.clean .floating-card:nth-child(2) {
  margin-left: auto;
  animation-delay: 0.8s;
}
@keyframes classicFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.site-header nav a,
.site-header nav button {
  box-shadow: none;
}
/* Scholarship application and lesson WYSIWYG additions */
.scholarship-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
}
.apply-card h2 {
  margin-top: 0;
}
.scholarship-application {
  display: grid;
  gap: 16px;
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 900;
  margin-top: 4px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-grid input,
.scholarship-application input,
.scholarship-application select {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  background: #fff;
}
.file-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed #bddfc9;
  border-radius: 16px;
  padding: 14px 15px;
  background: #f8fff9;
  color: #344054;
  font-weight: 800;
  cursor: pointer;
}
.file-field input {
  display: none;
}
.file-field.wide {
  width: 100%;
}
.terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #344054;
  line-height: 1.5;
  font-weight: 700;
}
.application-success {
  text-align: center;
  border: 1px solid #cfeedd;
  background: #f0faf4;
  border-radius: 24px;
  padding: 28px;
  color: #047538;
}
.application-success svg {
  margin: 0 auto 10px;
}
.notice.error {
  background: #fff1f1;
  color: #c01118;
  border-color: #ffd0d0;
}
.admin-form.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rich-editor {
  grid-column: 1/-1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.rich-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfa;
}
.rich-toolbar button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
}
.rich-content {
  min-height: 220px;
  padding: 16px;
  outline: none;
  line-height: 1.7;
}
.rich-content img {
  max-width: 100%;
  border-radius: 14px;
  margin: 10px 0;
}
.admin-toolbar select {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 14px;
  background: #fff;
}
.chart-row i {
  background: linear-gradient(90deg, var(--green), var(--gold));
}
@media (max-width: 900px) {
  .scholarship-detail-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .admin-form.wide {
    grid-template-columns: 1fr;
  }
}

/* Targeted admin analytics/card loading refinements */
.admin-kpis.refined {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.admin-kpi {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfdfb);
  box-shadow: none !important;
  overflow: hidden;
  position: relative;
}
.admin-kpi:after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(11, 170, 75, 0.07);
}
.admin-kpi .admin-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: #f0faf4;
  color: var(--green);
  display: grid;
  place-items: center;
}
.admin-kpi > svg {
  display: none;
}
.admin-kpi b {
  font-size: 38px;
  margin-top: 8px;
}
.admin-kpi p {
  margin: 0;
  font-weight: 900;
  color: #344054;
}
.analytics-card {
  overflow: hidden;
}
.chart-list.refined {
  gap: 16px;
}
.chart-row div {
  position: relative;
}
.chart-row i {
  transition: width 0.55s ease;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.health-grid.refined div {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
  background: #fff;
}
.health-grid.refined div:hover {
  transform: translateY(-2px);
  border-color: #cfeedd;
}
.application-row {
  align-items: center;
}
.applications-list {
  gap: 14px;
}
.admin-toolbar input,
.admin-toolbar select {
  min-height: 48px;
}
.admin-card.pro {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none !important;
}
.admin-row.refined {
  border: 1px solid var(--line);
  box-shadow: none !important;
}
@media (max-width: 1100px) {
  .admin-kpis.refined {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .admin-kpis.refined {
    grid-template-columns: 1fr;
  }
  .admin-kpi {
    min-height: 140px;
  }
}

/* SEO/terms targeted additions */
.auth-terms {
  margin: 2px 0 8px;
}
.auth-terms a {
  color: var(--green);
  font-weight: 900;
}
.terms-page {
  max-width: 980px;
}
.terms-page h2 {
  font-size: 24px;
  margin: 22px 0 8px;
}
.terms-page p {
  color: var(--muted);
  line-height: 1.8;
}

/* Targeted premium loader: global request/form feedback without changing existing screens */
.premium-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: transparent;
  backdrop-filter: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.premium-loader.show {
  opacity: 1;
  pointer-events: auto;
}
.premium-loader-card {
  min-width: 260px;
  max-width: 340px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(16, 32, 51, 0.1);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.24s ease;
}
.premium-loader.show .premium-loader-card {
  transform: translateY(0) scale(1);
}
.premium-loader-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-block;
  border: 4px solid #eaf5ee;
  border-top-color: var(--green);
  border-right-color: var(--gold);
  animation: premiumSpin 0.85s linear infinite;
  margin-bottom: 12px;
}
.premium-loader-card b {
  display: block;
  font-size: 18px;
  color: var(--ink);
  font-weight: 900;
}
.premium-loader-card small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-top: 6px;
  line-height: 1.45;
}
@keyframes premiumSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Targeted step navigation for lessons */
.lesson-step-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lesson-step-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Subject Courses Optimizations */
.subject-courses-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* border: 2px solid red; */
}
.back-nav-container {
  margin-bottom: -8px;
  margin-top: -34px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
  padding: 8px 16px 8px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(16, 32, 51, 0.03);
}
.back-link:hover {
  color: var(--green);
  transform: translateX(-4px);
  border-color: #cfeedd;
  background: #f0faf4;
}
.subject-header {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f7fbf8);
  /* border: 1px solid red; */
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.subject-header:after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(11, 170, 75, 0.08) 0%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}
.subject-header-info {
  z-index: 2;
}
.subject-header-info h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.subject-header-info p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.subject-header-image {
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.05);
  z-index: 2;
}
.subject-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.subject-header:hover .subject-header-image img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .subject-header {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .subject-header-image {
    height: 160px;
    order: -1;
  }
}

/* Course Detail Page Optimizations */
.course-detail-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.course-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.course-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.course-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.course-intro-card,
.active-lesson-card,
.progress-card,
.syllabus-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.course-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 0;
}
.video-section {
  margin-top: 24px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
}
.video-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--green);
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(16, 32, 51, 0.05);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.active-lesson-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.lesson-badge {
  display: inline-flex;
  background: #eaf5ee;
  color: var(--green);
  font-weight: 900;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.active-lesson-header h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin: 0;
  letter-spacing: -0.03em;
}
.lesson-content-body {
  margin-bottom: 24px;
}

/* User Lesson HTML Style overrides matching requested specs */
.lesson-html-content p {
  border: 0px solid;
  margin: 0px 0px 16px !important;
  padding: 0px;
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: rgb(68, 79, 96) !important;
  font-family: "Montserrat", sans-serif !important;
}
.lesson-html-content h2 {
  border: 0px solid;
  margin: 24px 0px 16px !important;
  padding: 0px;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: rgb(68, 79, 96) !important;
  font-family: "Montserrat", sans-serif !important;
}
.lesson-html-content h3 {
  border: 0px solid;
  margin: 0px 0px 16px !important;
  padding: 0px;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  font-weight: 800 !important;
  letter-spacing: 1.4px !important;
  color: rgb(142, 154, 171) !important;
  text-transform: uppercase !important;
  font-family: "DM Sans", sans-serif !important;
}

.lesson-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.step-indicator {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}
.completed-btn {
  background: var(--green) !important;
  color: #fff !important;
}
.progress-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  margin: 0 0 16px;
}
.progress-card p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}
.syllabus-card h3 {
  font-size: 18px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.syllabus-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.syllabus-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
}
.syllabus-item:hover {
  background: #f7faf8;
  border-color: var(--line);
}
.syllabus-item.active {
  background: #f0faf4;
  border-color: #cfeedd;
}
.syllabus-item.active h4 {
  color: var(--green);
}
.syllabus-item.completed .status-icon svg {
  color: var(--green);
  fill: #eaf5ee;
}
.status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.syllabus-item-text {
  display: flex;
  flex-direction: column;
}
.syllabus-item-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}
.syllabus-item-text h4 {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s ease;
}
.text-green-500 {
  color: var(--green) !important;
}

@media (max-width: 992px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}

/* Header/logo sizing only: preserve existing layout and asset */
.site-header {
  min-height: 85px;
}

.site-header > div:first-child {
  display: flex;
  align-items: center;
  width: auto;
  max-width: 210px;
  flex: 0 0 auto;
}

.site-header > div:first-child img,
.brand img,
.navbar img {
  width: auto !important;
  height: auto !important;
  max-width: 200px;
  max-height: 85px;
  object-fit: contain;
}

/* Sharper text: remove text shadows without changing typography/layout */
body,
body * {
  text-shadow: none !important;
}

@media (max-width: 768px) {
  .site-header {
    min-height: 76px;
  }

  .site-header > div:first-child {
    max-width: 170px;
  }

  .site-header > div:first-child img,
  .brand img,
  .navbar img {
    max-width: 160px;
    max-height: 68px;
  }
}
.rich-content.html-source {
  width: 100%;
  border: 0;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.file-field.wide {
  grid-column: 1/-1;
}
