:root {
  color-scheme: light;
  --bg: #f5f8ff;
  --surface: #ffffff;
  --surface-soft: #f7f9ff;
  --surface-strong: #fff7ec;
  --text: #1f2937;
  --muted: #566275;
  --primary: #165c8a;
  --primary-soft: #d9efff;
  --primary-strong: #0f4f76;
  --accent: #ff9b30;
  --accent-soft: #fff2dc;
  --border: rgba(30, 41, 59, 0.12);
  --shadow: 0 32px 80px rgba(30, 41, 59, 0.12);
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at top left, rgba(255, 155, 48, 0.12), transparent 16%), radial-gradient(circle at top right, rgba(22, 92, 136, 0.08), transparent 18%), var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1110px, calc(100% - 2rem));
  margin: 0 auto;
}

.header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  color: var(--primary-strong);
  text-decoration: none;
  font-size: 1.4rem;
}

.site-logo {
  width: 44px;
  height: auto;
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text);
}

.hero {
  position: relative;
  padding: 5rem 0 2.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 92, 136, 0.08), rgba(245, 248, 255, 0.95) 45%, rgba(255,255,255,0.95) 100%);
}

.hero__bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(1px);
}

.bubble--one {
  width: 140px;
  height: 140px;
  background: rgba(22, 92, 136, 0.16);
  top: 10%;
  right: 10%;
}

.bubble--two {
  width: 220px;
  height: 220px;
  background: rgba(255, 155, 48, 0.16);
  top: 50%;
  left: 5%;
}

.bubble--three {
  width: 100px;
  height: 100px;
  background: rgba(22, 92, 136, 0.14);
  bottom: 5%;
  right: 18%;
}

.hero__content {
  display: grid;
  gap: 2rem;
  align-items: center;
  position: relative;
}

.hero__text {
  max-width: 560px;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.03;
}

.hero p {
  max-width: 44rem;
  color: var(--muted);
  margin-top: 1em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(22, 92, 136, 0.14);
}

.button--primary {
  background: var(--primary);
  color: white;
}

.button--secondary {
  background: var(--surface);
  color: var(--primary-strong);
  border: 1px solid rgba(22, 92, 136, 0.15);
}

.hero__visual {
  display: grid;
  gap: 1.5rem;
}

.hero__card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(243,247,255,0.95) 100%);
  border: 1px solid rgba(22, 92, 136, 0.12);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: float 8s ease-in-out infinite alternate;
}

.hero__card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero__tag--accent {
  background: var(--accent-soft);
  color: #9a5707;
}

.hero__card h2 {
  margin: 0 0 1rem;
}

.hero__card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(22, 92, 136, 0.08);
  padding: 1rem 1.2rem;
  border-radius: 1.5rem;
}

.hero__stat strong {
  font-size: 1.35rem;
  color: var(--primary-strong);
}

.hero__student-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-card {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(22, 92, 136, 0.08);
  box-shadow: 0 24px 45px rgba(22, 92, 136, 0.08);
}

.student-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.student-card strong {
  display: block;
  font-size: 1rem;
}

.student-card span {
  color: var(--muted);
}

.section {
  padding: 3rem 0;
  border-top: 1px solid rgba(22, 92, 136, 0.08);
}

.section--light {
  background: var(--surface);
}

.section--soft {
  background: rgba(241, 247, 255, 0.95);
}

.section--muted {
  background: rgba(22, 92, 136, 0.06);
}

.section__grid {
  display: grid;
  gap: 1.75rem;
}

.section h2 {
  margin-top: 0;
  font-size: 2.1rem;
}

.section__intro {
  color: var(--muted);
  margin-bottom: 2rem;
}

.section__header {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
  padding: 0.75rem 0.2rem;
  position: relative;
}

.section__header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(22, 92, 136, 0.12);
}

.section__header h2 {
  margin: 0;
}

.section__header p {
  color: var(--muted);
  max-width: 740px;
}

.section__intro-row {
  display: grid;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.features-list,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.features-list li,
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface-soft);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  color: var(--text);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 1.1rem;
}

.card {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(22, 92, 136, 0.1);
  box-shadow: 0 22px 40px rgba(22, 92, 136, 0.06);
}

.card--highlight {
  background: linear-gradient(135deg, #f6f9ff, #ffffff);
  border-color: transparent;
}

.card--program {
  min-height: 240px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card--program:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 92, 136, 0.18);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: var(--primary-soft);
  font-size: 1.25rem;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card h3 {
  margin-top: 0;
}

.ads-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tab-button {
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 92, 136, 0.15);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.tab-button.active {
  background: var(--primary);
  color: white;
  border-color: transparent;
}

.tab-button:hover {
  transform: translateY(-1px);
}

.ads-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ad-card {
  background: var(--surface);
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(22, 92, 136, 0.1);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ad-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(22, 92, 136, 0.1);
}

.ad-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ad-card__content {
  padding: 1.1rem 1.2rem 1.4rem;
}

.ad-card__content h3 {
  margin: 0 0 0.75rem;
}

/* Administration roles and audit trail */
.admin-access-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr); gap: 20px; margin-top: 20px; }
.admin-access-create, .admin-access-roles, .admin-staff-directory, .admin-audit-log { border: 1px solid #dce7e2; border-radius: 18px; background: #fbfdfc; padding: 20px; }
.admin-access-create { display: grid; gap: 14px; }
.admin-access-create label { display: grid; gap: 7px; color: #294b43; font-weight: 700; }
.admin-access-create input, .admin-access-create select, .admin-staff-card select, .admin-staff-card input { width: 100%; border: 1px solid #cbdad4; border-radius: 11px; background: #fff; padding: 11px 12px; font: inherit; }
.admin-access-section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.admin-access-section-title strong { color: #173d34; font-size: 1.02rem; }
.admin-access-section-title span { color: #71817c; font-size: .82rem; }
.admin-access-section-title button { border: 0; border-radius: 9px; background: #e8f1ed; color: #285448; padding: 8px 12px; cursor: pointer; }
#adminRoleGuide { display: grid; gap: 10px; }
.admin-role-guide-card { border-inline-start: 4px solid #b89a55; border-radius: 12px; background: #fff; padding: 12px 14px; }
.admin-role-guide-card strong { display: block; color: #214b40; margin-bottom: 4px; }
.admin-role-guide-card span { color: #71817c; font-size: .84rem; line-height: 1.7; }
.admin-staff-directory, .admin-audit-log { margin-top: 20px; }
#adminStaffList { display: grid; gap: 12px; }
.admin-staff-card { display: grid; grid-template-columns: minmax(190px, 1.2fr) minmax(150px, .8fr) auto; align-items: center; gap: 14px; border: 1px solid #e0e9e5; border-radius: 14px; background: #fff; padding: 14px; }
.admin-staff-card.is-disabled { opacity: .68; background: #f4f5f5; }
.admin-staff-card__identity strong, .admin-staff-card__identity span { display: block; }
.admin-staff-card__identity strong { color: #183f36; }
.admin-staff-card__identity span { color: #788782; font-size: .82rem; direction: ltr; text-align: right; }
.admin-staff-card__controls { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.admin-staff-card__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.admin-staff-card__actions button { border: 0; border-radius: 9px; padding: 8px 11px; background: #e8f1ed; color: #214f43; cursor: pointer; }
.admin-staff-card__actions button.danger { background: #f9e8e6; color: #9b3c34; }
.admin-staff-card__actions button:disabled { opacity: .45; cursor: not-allowed; }
#adminAuditLog { display: grid; gap: 8px; }
.admin-audit-row { display: grid; grid-template-columns: 120px 110px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid #e4ebe8; padding: 10px 4px; }
.admin-audit-row:last-child { border-bottom: 0; }
.admin-audit-row strong { color: #21483e; }
.admin-audit-row code { direction: ltr; text-align: left; color: #526a63; font-size: .78rem; overflow-wrap: anywhere; }
.admin-audit-row time { color: #7b8985; font-size: .78rem; }
.admin-access-feedback { border-radius: 10px; padding: 10px 12px; margin: 0; font-size: .88rem; }
.admin-access-feedback.success { background: #e5f3ec; color: #246044; }
.admin-access-feedback.error { background: #fae9e7; color: #953d35; }
@media (max-width: 860px) { .admin-access-layout { grid-template-columns: 1fr; } .admin-staff-card { grid-template-columns: 1fr; } .admin-staff-card__actions { justify-content: flex-start; } .admin-audit-row { grid-template-columns: 1fr 1fr; } .admin-audit-row code { grid-column: 1 / -1; } }

/* Unified public-site design system */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) {
  --public-ink: #153b43;
  --public-teal: #2d6f73;
  --public-teal-dark: #174d55;
  --public-gold: #b1844d;
  --public-gold-soft: #f1e6d5;
  --public-cream: #f8f5ef;
  --public-sage: #eef4f1;
  --public-line: rgba(32, 78, 82, 0.12);
  --public-card-shadow: 0 16px 42px rgba(27, 61, 67, 0.075);
  --public-card-shadow-hover: 0 24px 56px rgba(27, 61, 67, 0.13);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section {
  position: relative;
  padding: clamp(4.75rem, 7.5vw, 6.75rem) 0;
  border-top: 1px solid var(--public-line);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about {
  background: var(--public-cream);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs {
  background: #fff;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team {
  background:
    radial-gradient(circle at 12% 18%, rgba(177, 132, 77, 0.11), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(45, 111, 115, 0.1), transparent 27%),
    var(--public-sage);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads {
  background: #fff;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #contact {
  background:
    radial-gradient(circle at 88% 18%, rgba(177, 132, 77, 0.09), transparent 24%),
    var(--public-cream);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section h2 {
  margin-top: 0.25rem;
  color: var(--public-ink);
  font-family: "Almarai", var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section-kicker {
  margin-bottom: 0.8rem;
  border: 1px solid rgba(177, 132, 77, 0.13);
  background: var(--public-gold-soft);
  color: #805e32;
  font-size: 0.76rem;
  letter-spacing: 0.035em;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section__intro,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section__header > p:not(.section-kicker),
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .teaching-team-header > p,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .ads-header > p {
  max-width: 700px;
  color: #64767b;
  font-size: 1rem;
  line-height: 1.85;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs > .container > h2,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs > .container > .section__intro {
  max-width: 760px;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .card,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .ad-card,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .teaching-team-card {
  border: 1px solid var(--public-line);
  box-shadow: var(--public-card-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .card:hover,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .ad-card:hover,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .teaching-team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 111, 115, 0.24);
  box-shadow: var(--public-card-shadow-hover);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .card h3,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .ad-card h3,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .teaching-team-card h3 {
  color: var(--public-ink);
  font-family: "Almarai", var(--font-heading);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .button {
  border-radius: 0.8rem;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .button:hover {
  transform: translateY(-2px);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .button--primary {
  background: var(--public-teal);
  box-shadow: 0 11px 26px rgba(45, 111, 115, 0.19);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list li,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .contact-list li {
  border-color: var(--public-line);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students {
  border-top: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(158, 217, 231, 0.09), transparent 25%),
    radial-gradient(circle at 92% 82%, rgba(190, 151, 89, 0.12), transparent 27%),
    #123844;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students h2 {
  color: #fff;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .section-kicker {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.09);
  color: #d7bc8b;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #contact .section__grid {
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #contact .contact-form {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--public-line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--public-card-shadow);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #contact .contact-form input,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #contact .contact-form textarea {
  border-color: var(--public-line);
  border-radius: 0.75rem;
  background: #fff;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #contact .contact-form input:focus,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #contact .contact-form textarea:focus {
  border-color: var(--public-teal);
  box-shadow: 0 0 0 3px rgba(45, 111, 115, 0.1);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: #102f38;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 700px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section {
    padding: 4rem 0;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section h2 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }
}

h1,
h2,
h3,
.logo {
  font-family: var(--font-heading);
}

#heroTitle {
  width: fit-content;
  max-width: 100%;
  font-family: "Almarai", var(--font-heading);
  font-size: clamp(3rem, 5vw, 4.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: initial;
}

#heroTitle span,
#heroTitle strong {
  display: block;
}

#heroTitle .hero-title__first {
  color: #0b2e42;
  font-size: 1em;
  line-height: 1.05;
}

#heroTitle .hero-title__second {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  width: fit-content;
  margin-top: 0.02em;
  margin-inline-start: 0.35em;
  color: #245d62;
  font-size: 1em;
  line-height: 1.15;
}

#heroTitle .hero-title__second small {
  color: #526f73;
  font: inherit;
  font-size: 0.42em;
  font-weight: 700;
}

#heroTitle .hero-title__second em {
  position: relative;
  color: #175b61;
  font: inherit;
  font-size: 1.08em;
  font-style: normal;
  letter-spacing: -0.055em;
}

#heroTitle .hero-title__second em::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0.02em 0.03em 0.02em;
  height: 0.16em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(180, 123, 54, 0.08), rgba(180, 123, 54, 0.34));
  transform: rotate(-1.5deg);
}

#heroTitle strong {
  width: fit-content;
  margin-top: 0.12em;
  margin-inline-start: 1.2em;
  color: #b47b36;
  font: inherit;
  font-size: 0.7em;
  letter-spacing: -0.025em;
}

.hero__supporting-title {
  max-width: 590px;
  margin: 1.15rem 0 0 !important;
  color: #285f63 !important;
  font-family: "Almarai", var(--font-heading);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem) !important;
  font-weight: 700;
  line-height: 1.65 !important;
}

.hero__supporting-title + .hero__lead {
  margin-top: 0.55rem !important;
}

@media (max-width: 600px) {
  #heroTitle {
    font-size: clamp(2.35rem, 11.5vw, 3rem);
    line-height: 1.18;
    letter-spacing: -0.04em;
  }
}

.offer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.offer-card {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(circle at 0 0, rgba(13, 91, 120, 0.1), transparent 38%),
    #fff;
}

.offer-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d5b78, #c58a52);
}

.offer-card__number {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  color: rgba(13, 91, 120, 0.16);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.offer-card__tag {
  width: fit-content;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: #e8f2f4;
  color: #0d5b78;
  font-size: 0.72rem;
  font-weight: 800;
}

.offer-card h3 {
  max-width: 85%;
  margin: 4.2rem 0 0.8rem;
  color: #173443;
  font-size: 1.65rem;
  line-height: 1.35;
}

.offer-card > p {
  margin: 0 0 auto;
  color: var(--muted);
  line-height: 1.8;
}

.offer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.4rem 0 1rem;
}

.offer-card__meta span {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(16, 35, 56, 0.1);
  border-radius: 0.55rem;
  color: #526574;
  font-size: 0.7rem;
  font-weight: 700;
}

.offer-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.offer-card__actions button,
.offer-card__actions a {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0.6rem;
  border-radius: 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.offer-card__actions button {
  border: 1px solid rgba(13, 91, 120, 0.18);
  background: transparent;
  color: #0d5b78;
}

.offer-card__actions a {
  border: 1px solid #0d5b78;
  background: #0d5b78;
  color: #fff;
}

.offer-card--featured {
  transform: none;
  border-color: transparent;
  background:
    radial-gradient(circle at 0 0, rgba(197, 138, 82, 0.22), transparent 40%),
    linear-gradient(145deg, #173f50, #102f40);
  color: #fff;
}

.offer-card--featured .offer-card__number {
  color: rgba(255, 255, 255, 0.1);
}

.offer-card--featured .offer-card__tag {
  background: rgba(255, 255, 255, 0.1);
  color: #eac7a2;
}

.offer-card--featured h3 {
  color: #fff;
}

.offer-card--featured > p,
.offer-card--featured .offer-card__meta span {
  color: rgba(255, 255, 255, 0.7);
}

.offer-card--featured .offer-card__meta span {
  border-color: rgba(255, 255, 255, 0.13);
}

.offer-card--featured .offer-card__actions button {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.offer-card--featured .offer-card__actions a {
  border-color: #fff;
  background: #fff;
  color: #173f50;
}

@media (max-width: 900px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .offer-card--featured {
    transform: none;
  }
}

.ad-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.ad-modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.modal-content {
  position: relative;
  max-width: 920px;
  width: min(95%, 860px);
  background: var(--surface);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 38px 100px rgba(15, 23, 42, 0.2);
  transform: translateY(-20px);
}

.modal-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

.modal-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.modal-info {
  padding: 1.75rem 2rem 2rem;
}

.modal-info h3 {
  margin-top: 0;
}

.modal-info p {
  color: var(--muted);
  line-height: 1.8;
}

/* Compact, content-rich offer details dialog. */
.ad-modal .modal-overlay {
  background: rgba(9, 28, 35, .76);
  backdrop-filter: blur(5px);
}
.ad-modal .offer-modal-content {
  width: min(92%, 820px);
  max-width: 820px;
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 1.5rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(7, 25, 31, .35);
  transform: none;
}
.offer-modal-visual {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(229, 190, 124, .32), transparent 42%),
    linear-gradient(150deg, #173f50, #315f55);
  color: #fff;
}
.offer-modal-visual::before,
.offer-modal-visual::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}
.offer-modal-visual::before { width: 13rem; height: 13rem; inset: -5rem auto auto -6rem; }
.offer-modal-visual::after { width: 8rem; height: 8rem; inset: auto -4rem -3rem auto; }
.offer-modal-visual__eyebrow {
  position: relative;
  z-index: 1;
  color: #f4d5a6;
  font-size: .76rem;
  font-weight: 800;
}
.offer-modal-visual__number {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .16);
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
}
.offer-modal-visual__mark {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 900;
}
.ad-modal .modal-info {
  display: flex;
  flex-direction: column;
  padding: 2rem 2.1rem 1.7rem;
}
.offer-modal-tag {
  width: fit-content;
  display: inline-flex;
  padding: .38rem .75rem;
  border-radius: 999px;
  background: #eef5f3;
  color: #315f55;
  font-size: .75rem;
  font-weight: 800;
}
.ad-modal .modal-info h3 {
  margin: .85rem 0 .5rem;
  color: #173f50;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.3;
}
.ad-modal .modal-info > p {
  margin: 0;
  color: #61747a;
  font-size: .95rem;
  line-height: 1.8;
}
.offer-modal-benefits {
  margin-top: 1.15rem;
  padding: 1rem;
  border: 1px solid rgba(49, 95, 85, .1);
  border-radius: .9rem;
  background: #f8faf9;
}
.offer-modal-benefits h4 {
  margin: 0 0 .65rem;
  color: #173f50;
  font-size: .82rem;
}
.offer-modal-benefits > div {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.offer-modal-benefits span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .65rem;
  border-radius: .55rem;
  background: #fff;
  color: #526574;
  font-size: .76rem;
  font-weight: 750;
  box-shadow: 0 3px 12px rgba(21, 60, 69, .06);
}
.offer-modal-benefits span::before { content: '✓'; color: #b27c45; font-weight: 900; }
.offer-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 35, 56, .08);
}
.offer-modal-footer p { margin: 0; }
.offer-modal-footer p strong,
.offer-modal-footer p span { display: block; }
.offer-modal-footer p strong { color: #173f50; font-size: .88rem; }
.offer-modal-footer p span { margin-top: .18rem; color: #748388; font-size: .72rem; }
.offer-modal-footer .button { flex: 0 0 auto; min-width: 8.5rem; text-align: center; }
.ad-modal .modal-close {
  top: .8rem;
  left: .8rem;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  padding: 0 0 .15rem;
  border: 1px solid rgba(16, 35, 56, .08);
  color: #173f50;
  box-shadow: 0 5px 16px rgba(16, 35, 56, .1);
}
@media (max-width: 680px) {
  .ad-modal .offer-modal-content { width: min(94%, 520px); max-height: 90vh; grid-template-columns: 1fr; overflow-y: auto; }
  .offer-modal-visual { min-height: 6.5rem; padding: 1.1rem 1.25rem; }
  .offer-modal-visual__number { position: absolute; inset: 1rem auto auto 1.25rem; font-size: 4rem; }
  .offer-modal-visual__mark { margin-top: 1rem; }
  .ad-modal .modal-info { padding: 1.35rem; }
  .offer-modal-footer { align-items: stretch; flex-direction: column; }
  .offer-modal-footer .button { width: 100%; }
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-card {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(22, 92, 136, 0.1);
  box-shadow: 0 22px 40px rgba(22, 92, 136, 0.05);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-strong);
}

.student-highlights {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.student-highlight {
  background: var(--surface);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 22px 45px rgba(22, 92, 136, 0.06);
  transition: transform 0.3s ease;
}

.student-highlight:hover {
  transform: translateY(-6px);
}

.student-highlight img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.student-highlight h3 {
  margin: 1rem 1rem 0.5rem;
}

.student-highlight p {
  margin: 0 1rem 1.5rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(22, 92, 136, 0.14);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  font: inherit;
}

.footer {
  padding: 1.5rem 0;
  background: var(--surface);
  border-top: 1px solid rgba(30, 41, 59, 0.08);
}

.footer__content {
  display: flex;
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-10px);
  }
}

@media (min-width: 768px) {
  .hero__content {
    grid-template-columns: 1fr 1fr;
  }

  .section__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (max-width: 760px) {
  .header__content {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero__student-grid {
    grid-template-columns: 1fr;
  }

  .hero__visual,
  .section__intro-row,
  .cards-grid,
  .stats-grid,
  .student-highlights,
  .section__grid {
    grid-template-columns: 1fr;
  }
}

.auth-page,
.dashboard-page {
  min-height: calc(100vh - 100px);
  display: grid;
  place-items: center;
  padding: 3rem 0;
}

.auth-card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid rgba(22, 92, 136, 0.12);
  border-radius: 1.8rem;
  box-shadow: 0 28px 70px rgba(22, 92, 136, 0.12);
  padding: 2rem;
}

.auth-card--wide {
  width: min(600px, 100%);
}

.auth-card__intro {
  margin-bottom: 1.75rem;
}

.auth-card h1 {
  margin: 0 0 0.65rem;
  font-size: 2rem;
}

.auth-card p,
.auth-note {
  color: var(--muted);
  line-height: 1.8;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(22, 92, 136, 0.14);
  border-radius: 1rem;
  font: inherit;
}

.auth-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  margin-top: 0.35rem;
}

.auth-message {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  display: none;
}

.auth-message--success {
  display: block;
  background: rgba(21, 128, 61, 0.12);
  color: #1f5a34;
}

.auth-message--error {
  display: block;
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.header--compact {
  padding: 0.85rem 0;
}

.logo--small {
  gap: 0.5rem;
  font-size: 1.1rem;
}

.nav--compact a {
  padding: 0.35rem 0.5rem;
}

.dashboard-page {
  padding: 3rem 0 4rem;
}

.dashboard-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(250px, 320px) 1fr;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(22, 92, 136, 0.12);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 24px 55px rgba(22, 92, 136, 0.08);
}

.dashboard-welcome {
  margin-bottom: 1.75rem;
}

.dashboard-welcome p {
  margin: 0;
  color: var(--muted);
}

.dashboard-welcome strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.1rem;
}

.dashboard-nav {
  display: grid;
  gap: 0.8rem;
}

.dashboard-nav a {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
  transition: background 0.25s ease;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: rgba(22, 92, 136, 0.12);
}
@media (min-width: 761px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home.hero {
    min-height: calc(100vh - 96px);
    min-height: calc(100svh - 96px);
    height: calc(100vh - 96px);
    height: calc(100svh - 96px);
  }
}

/* Viewport-friendly section rhythm: headings and first content row stay together */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section:not(#about) {
  padding-block: clamp(2.35rem, 3.8vw, 3.4rem);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs > .container > .section-kicker,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs > .container > h2 {
  margin-bottom: .65rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .section__intro {
  margin-bottom: 1.35rem;
  line-height: 1.7;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .ads-header,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-header {
  margin-bottom: 1.35rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .ads-header h2,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-header h2 {
  margin-bottom: .55rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .section__intro {
  margin-bottom: 0;
  line-height: 1.7;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .success-stories-header,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #contact .section__header {
  margin-bottom: 1.35rem;
  padding-block: .35rem .8rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team {
  min-height: calc(100vh - var(--site-header-height, 96px) + 2px);
  min-height: calc(100svh - var(--site-header-height, 96px) + 2px);
}
@media (max-width: 760px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section:not(#about) {
    padding-block: 2.75rem;
  }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team {
    min-height: auto;
  }
}

.dashboard-nav a.active {
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset -4px 0 0 var(--primary);
}

.dashboard-card[hidden] {
  display: none;
}

.student-dashboard-page {
  min-height: calc(100vh - 78px);
  padding: 4rem 0 6rem;
  background: #f4f7f9;
}

.student-dashboard__intro {
  margin-bottom: 3rem;
}

.student-dashboard__intro h1 {
  margin: 0.5rem 0;
  font-size: clamp(2.3rem, 5vw, 4rem);
  color: #102f40;
}

.student-dashboard__intro > p:last-child {
  color: var(--muted);
}

.student-dashboard__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.student-dashboard__heading h2 {
  margin: 0;
  font-size: 2rem;
}

.student-dashboard__heading a {
  color: var(--primary);
  font-weight: 750;
  text-decoration: none;
}

.student-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.student-course-card {
  padding: 1.6rem;
  border: 1px solid rgba(16, 35, 56, 0.09);
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 16px 42px rgba(16, 35, 56, 0.07);
}

.student-course-card__label {
  color: #2f6b50;
  font-size: 0.72rem;
  font-weight: 800;
}

.student-course-card h3 {
  margin: 0.6rem 0;
  font-size: 1.6rem;
  color: #173443;
}

.student-course-card > p {
  color: var(--muted);
  line-height: 1.75;
}

.student-course-card__facts {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 35, 56, 0.09);
  color: #3e5360;
  font-size: 0.84rem;
}

.student-course-card__statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.status-badge {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-badge--enrollment,
.status-badge--paid {
  background: #e5f3eb;
  color: #256044;
}

.status-badge--unpaid {
  background: #fff1dc;
  color: #8a571f;
}

.student-empty {
  padding: 3rem 1.5rem;
  border: 1px dashed rgba(13, 91, 120, 0.25);
  border-radius: 1.2rem;
  text-align: center;
  background: #fff;
}

.student-logout {
  border: 0;
  background: transparent;
  color: #9b3030;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

/* Student portal */
.student-dashboard-page {
  padding: 2.2rem 0 5rem;
  background:
    radial-gradient(circle at 12% 8%, rgba(77, 123, 112, 0.1), transparent 26rem),
    linear-gradient(180deg, #f5f8f7, #eef3f2);
}
.student-portal { display: grid; gap: 1.15rem; }
.student-welcome-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: 1.5rem;
  background: linear-gradient(125deg, #183e39, #295c53 68%, #806845);
  color: #fff;
  box-shadow: 0 22px 55px rgba(22, 58, 52, 0.18);
}
.student-welcome-panel::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline-end: -5rem;
  top: -7rem;
  width: 20rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255, 255, 255, 0.035), 0 0 0 6rem rgba(255, 255, 255, 0.025);
}
.student-welcome-copy .section-kicker { color: #d7c59d; }
.student-welcome-copy h1 { margin: 0.35rem 0 0.5rem; font-size: clamp(2rem, 5vw, 3.6rem); }
.student-welcome-copy > p:last-child { margin: 0; color: rgba(255, 255, 255, 0.76); }
.student-profile-card {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  min-width: min(100%, 260px);
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.student-avatar {
  display: grid;
  width: 3.25rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #d7c59d;
  color: #183e39;
  font-size: 1.35rem;
  font-weight: 850;
}
.student-profile-card > div { display: grid; gap: 0.2rem; }
.student-profile-card span:last-child { color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; }
.student-profile-card > button {
  margin-inline-start: auto;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.student-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.student-overview article {
  display: grid;
  gap: 0.2rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(39, 82, 74, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(23, 57, 52, 0.05);
}
.student-overview span,
.student-overview small { color: var(--muted); }
.student-overview strong { color: #234f47; font-size: 1.45rem; }
.student-account-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(39, 82, 74, 0.1);
  border-radius: 1rem;
  background: #dce6e3;
}
.student-account-strip > div { display: grid; gap: 0.22rem; min-width: 0; padding: 0.85rem 1rem; background: #fff; }
.student-account-strip span { color: var(--muted); font-size: 0.72rem; }
.student-account-strip strong { overflow: hidden; text-overflow: ellipsis; color: #294b45; font-size: 0.85rem; }
.student-notifications {
  overflow: hidden;
  border: 1px solid rgba(166, 121, 52, 0.2);
  border-radius: 1rem;
  background: #fffdf8;
}
.student-notifications[hidden] { display: none; }
.student-notifications__heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 1rem; background: #f7f0e3; }
.student-notifications__heading span { color: #846b45; font-size: 0.7rem; }
.student-notifications__heading h2 { margin: 0.1rem 0 0; color: #5d4b30; font-size: 1.05rem; }
.student-notifications__heading > strong { display: grid; width: 2rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: #8a7048; color: #fff; }
.student-notification-list { display: grid; }
.student-notification { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.85rem 1rem; border-top: 1px solid #eee5d6; }
.student-notification--unread { border-inline-start: 4px solid #9a7442; background: #fffaf1; }
.student-notification > div { display: grid; gap: 0.25rem; }
.student-notification p { margin: 0; color: #566a64; font-size: 0.8rem; line-height: 1.65; }
.student-notification small { color: #8b7960; font-size: 0.7rem; }
.student-notification > button { flex: 0 0 auto; padding: 0.45rem 0.65rem; border: 1px solid #d7c8af; border-radius: 0.55rem; background: #fff; color: #765e3b; font: inherit; font-size: 0.72rem; cursor: pointer; }
.student-courses-section { margin-top: 1.4rem; }
.student-dashboard__heading > div { display: grid; gap: 0.15rem; }
.student-dashboard__heading .section-kicker { margin: 0; }
.student-dashboard__heading .button { color: #315f55; }
.student-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.student-course-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  border: 1px solid rgba(35, 79, 71, 0.12);
  border-top: 4px solid #35675d;
  border-radius: 1.15rem;
  box-shadow: 0 14px 38px rgba(23, 57, 52, 0.07);
}
.student-course-card:nth-child(even) { border-top-color: #8c7048; }
.student-course-card__top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.student-course-card__title { min-width: 0; }
.student-course-card__label { display: block; margin-bottom: 0.35rem; }
.student-course-card__title h3 { margin: 0; }
.student-course-card__title p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.82rem; }
.student-course-card__statuses { justify-content: flex-end; margin-top: 0; }
.student-course-card__facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding-top: 0.85rem;
}
.student-course-fact { display: grid; gap: 0.18rem; min-width: 0; padding: 0.65rem; border-radius: 0.65rem; background: #f5f8f7; }
.student-course-fact span { color: var(--muted); font-size: 0.68rem; }
.student-course-fact strong { color: #294b45; font-size: 0.82rem; overflow-wrap: anywhere; }
.student-course-schedule { display: grid; gap: 0.5rem; margin-top: 0.75rem; padding: 0.8rem; border-radius: 0.75rem; background: #edf4f1; }
.student-course-schedule > strong { color: #315f55; font-size: 0.8rem; }
.student-course-schedule__lines { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.student-course-schedule__lines span { padding: 0.35rem 0.55rem; border-radius: 999px; background: #fff; color: #49665f; font-size: 0.72rem; }
.student-payment-progress { display: grid; gap: 0.45rem; margin-top: 0.8rem; }
.student-payment-progress__summary { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.78rem; }
.student-payment-progress__summary span,
.student-payment-progress small { color: var(--muted); }
.student-payment-progress__track { overflow: hidden; height: 0.55rem; border-radius: 999px; background: #e4ebe9; }
.student-payment-progress__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #315f55, #79a095); }
.student-course-more { display: grid; gap: 0.5rem; margin-top: 0.8rem; }
.student-course-more[hidden] { display: none; }
.student-course-toggle {
  margin-top: 0.85rem;
  padding: 0.7rem;
  border: 1px solid #cad9d5;
  border-radius: 0.65rem;
  background: transparent;
  color: #315f55;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}
.student-course-toggle:hover,
.student-course-toggle[aria-expanded="true"] { background: #edf4f1; }
.student-enrollment-action { margin-top: 0.65rem; text-align: center; }
.student-enrollment-action small { color: var(--muted); font-size: 0.7rem; }
.student-course-withdraw {
  padding: 0.55rem 0.75rem;
  border: 0;
  background: transparent;
  color: #9a4545;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.student-course-withdraw:hover { text-decoration: underline; }
.student-profile-dialog {
  width: min(92vw, 520px);
  padding: 0;
  border: 0;
  border-radius: 1.2rem;
  box-shadow: 0 28px 70px rgba(18, 47, 42, 0.28);
}
.student-profile-dialog::backdrop { background: rgba(12, 31, 29, 0.58); backdrop-filter: blur(3px); }
.student-profile-form { display: grid; gap: 0.8rem; padding: 1.25rem; }
.student-profile-form__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.25rem; }
.student-profile-form__header span { color: #6a7e78; font-size: 0.72rem; }
.student-profile-form__header h2 { margin: 0.15rem 0 0; color: #244e46; }
.student-profile-form__header > button { border: 0; background: transparent; color: #687b76; font-size: 1.6rem; cursor: pointer; }
.student-profile-form label { display: grid; gap: 0.35rem; color: #375b53; font-size: 0.78rem; font-weight: 700; }
.student-profile-form input { width: 100%; padding: 0.75rem; border: 1px solid #d3dfdc; border-radius: 0.65rem; background: #f9fbfa; font: inherit; }
.student-profile-form input:focus { outline: 2px solid rgba(49, 95, 85, 0.18); border-color: #668c83; }
.student-profile-form__actions { display: flex; gap: 0.6rem; margin-top: 0.35rem; }
.student-profile-message { margin: 0; padding: 0.65rem; border-radius: 0.6rem; font-size: 0.78rem; }
.student-profile-message.success { background: #e7f3ed; color: #285f48; }
.student-profile-message.error { background: #faeaea; color: #8b3d3d; }

@media (max-width: 800px) {
  .student-welcome-panel { align-items: flex-start; flex-direction: column; }
  .student-profile-card { width: 100%; }
  .student-overview { grid-template-columns: 1fr; }
  .student-account-strip { grid-template-columns: 1fr; }
  .student-course-grid { grid-template-columns: 1fr; }
  .student-course-card__top { flex-direction: column; }
  .student-course-card__statuses { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .student-dashboard-page { padding-top: 1rem; }
  .student-course-card__facts { grid-template-columns: 1fr; }
  .student-dashboard__heading { align-items: flex-start; flex-direction: column; }
}

.center-whatsapp {
  position: fixed;
  z-index: 1200;
  inset-inline-start: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: #1f8f61;
  color: #fff;
  box-shadow: 0 12px 30px rgba(23, 92, 65, 0.28);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.teaching-team-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(176, 132, 69, 0.16), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(49, 95, 85, 0.15), transparent 27%),
    linear-gradient(145deg, #f7f2e8 0%, #edf4f1 48%, #f9faf7 100%);
}
.teaching-team-section::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 440px;
  height: 440px;
  inset: -230px -120px auto auto;
  border: 1px solid rgba(138, 112, 72, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(138, 112, 72, 0.035), 0 0 0 92px rgba(138, 112, 72, 0.025);
}
.teaching-team-section::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  inset: auto auto -150px -70px;
  border-radius: 3rem;
  background: linear-gradient(135deg, rgba(49, 95, 85, 0.14), transparent 70%);
  transform: rotate(28deg);
}
.teaching-team-header { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2.4rem; }
.teaching-team-header > div { position: relative; padding-inline-start: 1rem; }
.teaching-team-header > div::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; border-radius: 99px; background: linear-gradient(#aa7d40, #315f55); }
.teaching-team-header h2 { margin: 0.25rem 0 0; color: #173f38; }
.teaching-team-header > p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.8; }
.teaching-team-header .teaching-team-description { max-width: 700px; margin: .65rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.teaching-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.teaching-team-card {
  position: relative;
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  min-height: 290px;
  overflow: hidden;
  border: 1px solid rgba(36, 79, 71, 0.12);
  border-radius: 1.5rem 0.55rem 1.5rem 0.55rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(24, 62, 55, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.teaching-team-card::after { content: ''; position: absolute; inset: auto 1rem 0; height: 3px; border-radius: 99px 99px 0 0; background: linear-gradient(90deg, #aa7d40, #315f55); opacity: 0.75; }
.teaching-team-card:nth-child(even) { border-radius: 0.55rem 1.5rem 0.55rem 1.5rem; }
.teaching-team-card:nth-child(even)::after { background: linear-gradient(90deg, #315f55, #8e6950); }
.teaching-team-card:hover { transform: translateY(-6px); border-color: rgba(49, 95, 85, 0.25); box-shadow: 0 24px 55px rgba(24, 62, 55, 0.14); }
.teaching-team-card__portrait { width: 100%; height: 100%; min-height: 290px; display: grid; place-items: center; object-fit: cover; background: linear-gradient(145deg, #315f55, #8a7048); color: #fff; font-size: 3.5rem; font-weight: 850; filter: saturate(0.88) contrast(1.02); }
.teaching-team-card__portrait--subject {
  position: relative;
  align-content: center;
  justify-items: start;
  gap: 0.7rem;
  padding: 1.35rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 27%),
    linear-gradient(155deg, #234f49 0%, #3f7167 58%, #9a7748 145%);
  font-size: initial;
  filter: none;
}
.teaching-team-card__portrait--subject::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  inset: -65px -75px auto auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.035), 0 0 0 46px rgba(255, 255, 255, 0.025);
}
.teaching-team-card__portrait--subject::after {
  content: '';
  width: 42px;
  height: 3px;
  border-radius: 99px;
  background: #d9b77c;
}
.teaching-team-card__portrait--subject span {
  color: #e7d9bd;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.teaching-team-card__portrait--subject strong {
  max-width: 100%;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.25;
}
.teaching-team-card__subject-icon {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.teaching-team-card__subject-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: #ead3a5;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.teaching-team-card__content { display: flex; flex-direction: column; padding: 1.15rem; }
.teaching-team-card__subject { width: fit-content; padding: 0.3rem 0.65rem; border-radius: 999px; background: #f3eadb; color: #7d5d31; font-size: 0.72rem; font-weight: 800; }
.teaching-team-card h3 { margin: 0.3rem 0 0.5rem; color: #214b43; font-size: 1.4rem; }
.teaching-team-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.teaching-team-card__meta span { padding: 0.3rem 0.5rem; border-radius: 999px; background: #eaf2ef; color: #3b665d; font-size: 0.68rem; }
.teaching-team-card p { margin: 0.75rem 0; color: #5e716c; font-size: 0.82rem; line-height: 1.75; }
.teaching-team-card__highlights { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.teaching-team-card__highlights span { padding-inline-start: 0.75rem; color: #315f55; font-size: 0.7rem; position: relative; }
.teaching-team-card__highlights span::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.48em; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: #a48251; }

@media (max-width: 900px) {
  .teaching-team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .teaching-team-header { align-items: flex-start; flex-direction: column; }
  .teaching-team-card { grid-template-columns: 1fr; }
  .teaching-team-card__portrait { min-height: 230px; max-height: 300px; }
}
.center-whatsapp:hover {
  transform: translateY(-3px);
  background: #18764f;
  box-shadow: 0 16px 34px rgba(23, 92, 65, 0.34);
}
.center-whatsapp svg { width: 1.45rem; height: 1.45rem; flex: 0 0 auto; }
.center-whatsapp:focus-visible { outline: 3px solid rgba(31, 143, 97, 0.3); outline-offset: 3px; }

@media (max-width: 480px) {
  .center-whatsapp { inset-inline-start: 0.8rem; bottom: 0.8rem; padding: 0.68rem 0.8rem; }
}

/* Premium public homepage */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) {
  --bg: #f6f8fb;
  --surface-soft: #f1f5f9;
  --text: #102338;
  --muted: #5e6d7e;
  --primary: #0d5b78;
  --primary-strong: #083e56;
  --primary-soft: #e0f1f5;
  --accent: #df8d2f;
  background: var(--bg);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .container {
  width: min(1180px, calc(100% - 2.5rem));
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(8, 62, 86, 0.09);
  box-shadow: 0 8px 30px rgba(16, 35, 56, 0.05);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .header__content {
  min-height: 78px;
  padding: 0.7rem 0;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .logo {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .site-logo {
  width: 52px;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav {
  gap: 0.35rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav a {
  padding: 0.65rem 0.72rem;
  border-radius: 0.7rem;
  font-size: 0.9rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav a:hover {
  background: var(--surface-soft);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav a.current {
  color: var(--primary);
  background: var(--primary-soft);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-login {
  margin-right: 0.3rem;
  border: 1px solid rgba(13, 91, 120, 0.22);
  color: var(--primary) !important;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-portals { position: relative; margin-right: .3rem; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-portals__trigger {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .9rem;
  border: 0;
  border-radius: .72rem;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-portals__chevron { font-size: 1rem; transition: transform 160ms ease; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-portals.open .nav-portals__chevron { transform: rotate(180deg); }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-portals__menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + .65rem);
  left: 0;
  width: 190px;
  display: grid;
  gap: .15rem;
  padding: .35rem;
  border: 1px solid #dce6e3;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 20px 55px rgba(20, 54, 59, .18);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-portals__menu[hidden] { display: none !important; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-portals__menu > a {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .48rem .55rem;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  color: #315f55 !important;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-portals__menu > a:hover { background: #f1f6f4 !important; }
.nav-portal-icon { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: .5rem; background: #e8f1ee; color: #315f55; font-size: .66rem; font-weight: 900; }
.nav-portals__menu a > span:last-child { display: grid; gap: .1rem; min-width: 0; }
.nav-portals__menu a strong { font-size: .72rem; }
.nav-portals__menu a small { color: #879690; font-size: .62rem; font-weight: 500; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-portals__menu .nav-teacher .nav-portal-icon { background: #f5eadc; color: #8a5c34; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-portals__menu .nav-admin .nav-portal-icon { background: #e9edf3; color: #4e6178; }

@media (max-width: 760px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-portals { width: 100%; margin: 0; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-portals__trigger { width: 100%; justify-content: space-between; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-portals__menu { position: static; width: 100%; margin-top: .4rem; box-shadow: none; }
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-teacher {
  border: 1px solid rgba(166, 108, 53, .3);
  background: #fbf5ec;
  color: #8a5c34 !important;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-teacher:hover {
  border-color: rgba(166, 108, 53, .48);
  background: #f5eadc !important;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-login--signed-in {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 190px;
  overflow: hidden;
  border-color: rgba(49, 95, 85, 0.28);
  background: #eaf3f0;
  color: #28574e !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-login--signed-in::before {
  content: '';
  width: 0.52rem;
  height: 0.52rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #3c8a68;
  box-shadow: 0 0 0 3px rgba(60, 138, 104, 0.13);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-admin {
  background: var(--primary);
  color: #fff !important;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-admin:hover {
  background: var(--primary-strong);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero {
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 5.5rem 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(223, 141, 47, 0.16), transparent 25%),
    linear-gradient(135deg, #f8fbfc 0%, #edf5f7 52%, #f9fafb 100%);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero__content {
  gap: clamp(2.5rem, 5vw, 5rem);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.8rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero h1 {
  max-width: 700px;
  font-size: clamp(2.65rem, 5vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  color: #0b2e42;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero__text > p:not(.eyebrow) {
  font-size: 1.12rem;
  line-height: 1.95;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .button {
  min-height: 50px;
  padding: 0.85rem 1.45rem;
  border-radius: 0.85rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero__card {
  border-radius: 1.5rem;
  border: 1px solid rgba(13, 91, 120, 0.14);
  border-top: 5px solid var(--primary);
  box-shadow: 0 30px 70px rgba(16, 35, 56, 0.14);
  animation: none;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .student-card {
  border-radius: 1rem;
  box-shadow: 0 12px 35px rgba(16, 35, 56, 0.09);
}

.trust-strip {
  position: relative;
  z-index: 2;
  background: #0b2e42;
  color: #fff;
  padding: 1.7rem 0;
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-strip__grid > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.3rem 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-strip__grid > div:last-child {
  border-left: 0;
}

.trust-strip strong {
  font-size: 1.15rem;
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  border-top: 0;
  scroll-margin-top: 78px;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section--soft {
  background: #f6f8fb;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section--light {
  background: #fff;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads {
  background: linear-gradient(180deg, #f3f7f8, #fff);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(158, 217, 231, 0.1), transparent 25%),
    radial-gradient(circle at 92% 82%, rgba(190, 151, 89, 0.12), transparent 27%),
    #0b2e42;
  color: #fff;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .success-stories-header {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(155px, 40%) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 48px rgba(0, 12, 22, 0.2);
  backdrop-filter: blur(8px);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlight::before {
  content: '“';
  position: absolute;
  z-index: 1;
  inset: 0.55rem auto auto 0.85rem;
  color: rgba(202, 171, 117, 0.24);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  pointer-events: none;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlight img {
  grid-column: 1;
  grid-row: 1 / -1;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlight h3 {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 0.35rem 1.35rem 0.55rem;
  color: #fff;
  font-size: 1.2rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlight h3::before {
  content: '';
  display: inline-block;
  width: 1.8rem;
  height: 3px;
  margin-inline-end: 0.55rem;
  border-radius: 99px;
  vertical-align: middle;
  background: #c6a66d;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlight p {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  padding: 0 1.35rem 1.35rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  line-height: 1.85;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlight__name {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding: 1.35rem 1.35rem 0;
  color: #d7b97f;
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlights {
    grid-template-columns: 1fr;
  }
}

/* Modern admin workspace: calm, compact and consistent with the public site. */
body:has(.dashboard-page) {
  --admin-navy: #153f4e;
  --admin-green: #315f55;
  --admin-gold: #b88a49;
  --admin-bg: #f3f6f5;
  background: var(--admin-bg);
}

body:has(.dashboard-page) .header--dashboard {
  z-index: 100;
  border-bottom: 1px solid rgba(20, 63, 78, .08);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 7px 24px rgba(18, 51, 61, .055);
}

body:has(.dashboard-page) .header--dashboard .header__content { min-height: 76px; }
body:has(.dashboard-page) .logo--small { color: var(--admin-navy); font-weight: 850; }
.admin-dashboard-brand { display: flex; align-items: center; gap: .7rem; }
.admin-dashboard-brand__logo { display: grid; flex: 0 0 auto; place-items: center; border-radius: .7rem; }
.admin-dashboard-brand__context { display: flex; align-items: center; gap: .55rem; color: var(--admin-navy); text-decoration: none; }
.admin-dashboard-brand__context > span { font-weight: 850; }
.admin-dashboard-brand__context > small {
  padding: .25rem .55rem;
  border: 1px solid rgba(49, 95, 85, .16);
  border-radius: 999px;
  background: #eaf2ef;
  color: var(--admin-green);
  font-size: .62rem;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}
.admin-dashboard-brand__logo:hover { background: #edf3f1; }
.admin-dashboard-brand__context:hover > span { color: var(--admin-green); }
body:has(.dashboard-page) .nav--compact a { border-radius: .65rem; color: #536b72; font-weight: 750; }
body:has(.dashboard-page) .nav--compact a:hover { background: #edf3f1; color: var(--admin-green); }

body:has(.dashboard-page) .dashboard-page { padding-block: 1.6rem 3rem; }
body:has(.dashboard-page) .dashboard-grid {
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  transition: grid-template-columns .25s ease;
}

body:has(.dashboard-page) .dashboard-sidebar {
  top: calc(76px + 1.25rem) !important;
  z-index: 5;
  max-height: calc(100vh - 76px - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: .85rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.25rem;
  background: linear-gradient(165deg, #173f4b 0%, #244f49 58%, #294b43 100%);
  color: #fff;
  box-shadow: 0 18px 48px rgba(17, 54, 61, .16);
  scrollbar-color: rgba(255,255,255,.25) transparent;
}

.admin-sidebar-toggle {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-bottom: .75rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: .75rem;
  background: rgba(255,255,255,.07);
  color: #fff;
  font: inherit;
  font-size: .72rem;
  cursor: pointer;
}
.admin-sidebar-toggle > span { color: #e5c487; font-size: 1.05rem; }

body:has(.dashboard-page) .dashboard-welcome {
  margin-bottom: .8rem;
  padding: .85rem;
  border: 0;
  border-radius: .85rem;
  background: rgba(255,255,255,.075);
}
body:has(.dashboard-page) .dashboard-welcome p { color: #e8c989; font-size: .68rem; }
body:has(.dashboard-page) .dashboard-welcome strong { color: #fff; font-size: .82rem; line-height: 1.6; }

body:has(.dashboard-page) .dashboard-nav__group {
  border-top-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.48);
}

body:has(.dashboard-page) .dashboard-nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: transparent;
  color: rgba(255,255,255,.78);
  box-shadow: none;
}
body:has(.dashboard-page) .dashboard-nav a[hidden],
body:has(.dashboard-page) .dashboard-nav__group[hidden] {
  display: none !important;
}
body:has(.dashboard-page) .dashboard-nav a::before {
  content: attr(data-icon);
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  background: rgba(255,255,255,.075);
  color: #e7c98d;
  font-family: Arial, sans-serif;
  font-size: .9rem;
}
body:has(.dashboard-page) .dashboard-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
body:has(.dashboard-page) .dashboard-nav a.active {
  background: #fff;
  color: var(--admin-green);
  box-shadow: 0 9px 24px rgba(10,35,39,.16);
}
body:has(.dashboard-page) .dashboard-nav a.active::before { background: #e8f0ed; color: var(--admin-green); }

body.admin-sidebar-collapsed .dashboard-grid { grid-template-columns: 78px minmax(0, 1fr); }
body.admin-sidebar-collapsed .dashboard-sidebar { padding-inline: .55rem; }
body.admin-sidebar-collapsed .dashboard-welcome,
body.admin-sidebar-collapsed .dashboard-nav__group,
body.admin-sidebar-collapsed .admin-sidebar-toggle strong { display: none; }
body.admin-sidebar-collapsed .dashboard-nav { gap: .22rem; }
body.admin-sidebar-collapsed .dashboard-nav a { min-height: 2.35rem; justify-content: center; padding: .18rem; font-size: 0; }
body.admin-sidebar-collapsed .dashboard-nav a::before { width: 2rem; height: 2rem; font-size: .92rem; }
body.admin-sidebar-collapsed .admin-sidebar-toggle { min-height: 2.35rem; margin-bottom: .45rem; }
@media (min-width: 901px) {
  body.admin-sidebar-collapsed .dashboard-sidebar { z-index: 5; overflow-y: auto; overflow-x: hidden; }
  body.admin-sidebar-collapsed .dashboard-nav a { position: relative; }
  body.admin-sidebar-collapsed .dashboard-nav a::after {
    display: none;
  }
}
@media (min-width: 901px) and (max-height: 650px) {
  body.admin-sidebar-collapsed .dashboard-sidebar { overflow-y: auto; overflow-x: hidden; }
  body.admin-sidebar-collapsed .dashboard-nav a::after { display: none; }
}

.admin-workspace-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: .35rem .2rem .9rem;
  border-bottom: 1px solid #dce5e2;
}
.admin-workspace-header > div { display: grid; gap: .18rem; }
.admin-workspace-header span { color: var(--admin-gold); font-size: .68rem; font-weight: 850; }
.admin-workspace-header h1 { margin: 0; color: var(--admin-navy); font-size: clamp(1.45rem, 2.5vw, 2rem); }
.admin-workspace-header p { margin: 0; color: #718187; font-size: .78rem; line-height: 1.65; }
.admin-workspace-header time { color: #7b8b90; font-size: .7rem; white-space: nowrap; }

body:has(.dashboard-page) .dashboard-card {
  padding: clamp(1.1rem, 2vw, 1.55rem);
  border: 1px solid #e0e8e5;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 13px 38px rgba(22, 61, 67, .065);
}
body:has(.dashboard-page) .dashboard-card__header {
  display: none;
}
body:has(.dashboard-page) .dashboard-card__header h2 { color: var(--admin-navy); font-size: 1.18rem; }
body:has(.dashboard-page) .dashboard-card__header span { color: #78888c; line-height: 1.6; }

body:has(.dashboard-page) input,
body:has(.dashboard-page) select,
body:has(.dashboard-page) textarea {
  border-color: #d7e2df;
  background-color: #fbfcfc;
}
body:has(.dashboard-page) input:focus,
body:has(.dashboard-page) select:focus,
body:has(.dashboard-page) textarea:focus {
  outline: 0;
  border-color: #4f7c72;
  box-shadow: 0 0 0 3px rgba(49,95,85,.1);
}

body:has(.dashboard-page) .button--primary { background: var(--admin-green); box-shadow: 0 7px 17px rgba(49,95,85,.17); }
body:has(.dashboard-page) .button--secondary { border: 1px solid #d8e2df; background: #f7faf9; color: #48645e; }

@media (max-width: 900px) {
  body:has(.dashboard-page) .dashboard-grid,
  body.admin-sidebar-collapsed .dashboard-grid { grid-template-columns: 1fr; }
  body:has(.dashboard-page) .dashboard-sidebar { position: static; max-height: none; }
  body.admin-sidebar-collapsed .dashboard-welcome { display: block; }
  body.admin-sidebar-collapsed .dashboard-nav__group { display: block; }
  body.admin-sidebar-collapsed .dashboard-nav a { justify-content: flex-start; padding-inline: .85rem; font-size: .76rem; }
  body.admin-sidebar-collapsed .admin-sidebar-toggle strong { display: inline; }
}

@media (max-width: 600px) {
  .admin-workspace-header { align-items: flex-start; flex-direction: column; }
}

/* Unified inner surfaces, forms, records and reports in the admin workspace. */
body:has(.dashboard-page) .course-management-toolbar,
body:has(.dashboard-page) .teacher-management-toolbar,
body:has(.dashboard-page) .testimonial-management-toolbar,
body:has(.dashboard-page) .admin-section-toolbar,
body:has(.dashboard-page) .course-enrollment-toolbar,
body:has(.dashboard-page) .individual-lessons-admin-toolbar,
body:has(.dashboard-page) .reminder-center-toolbar {
  margin-bottom: 1rem;
  padding: .85rem;
  border: 1px solid #e0e8e5;
  border-radius: .9rem;
  background: #f7faf9;
}

body:has(.dashboard-page) .course-management-toolbar,
body:has(.dashboard-page) .teacher-management-toolbar,
body:has(.dashboard-page) .testimonial-management-toolbar {
  display: flex;
  justify-content: flex-start;
}

body:has(.dashboard-page) .dashboard-form,
body:has(.dashboard-page) .course-form-grid,
body:has(.dashboard-page) .teacher-form-grid,
body:has(.dashboard-page) .testimonial-form-grid {
  gap: .9rem;
}

body:has(.dashboard-page) .dashboard-form label,
body:has(.dashboard-page) .course-field,
body:has(.dashboard-page) .teacher-field,
body:has(.dashboard-page) .testimonial-field {
  color: #48645e;
  font-size: .75rem;
  font-weight: 800;
}

body:has(.dashboard-page) .dashboard-form input,
body:has(.dashboard-page) .dashboard-form select,
body:has(.dashboard-page) .dashboard-form textarea,
body:has(.dashboard-page) .course-field input,
body:has(.dashboard-page) .course-field select,
body:has(.dashboard-page) .course-field textarea,
body:has(.dashboard-page) .teacher-field input,
body:has(.dashboard-page) .teacher-field select,
body:has(.dashboard-page) .teacher-field textarea,
body:has(.dashboard-page) .testimonial-field input,
body:has(.dashboard-page) .testimonial-field textarea {
  min-height: 46px;
  padding: .75rem .8rem;
  border-radius: .7rem;
  font-family: inherit;
}

body:has(.dashboard-page) .course-editor,
body:has(.dashboard-page) .teacher-editor,
body:has(.dashboard-page) .testimonial-editor {
  margin-bottom: 1rem;
  padding: 1.15rem;
  border: 1px solid #dbe6e2;
  border-radius: 1rem;
  background: linear-gradient(145deg, #fbfcfc, #f4f8f6);
  box-shadow: none;
}

body:has(.dashboard-page) .course-editor__title,
body:has(.dashboard-page) .teacher-editor__title,
body:has(.dashboard-page) .testimonial-editor__title {
  margin-bottom: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid #dfe8e5;
}

body:has(.dashboard-page) .course-editor__actions,
body:has(.dashboard-page) .teacher-editor__actions,
body:has(.dashboard-page) .testimonial-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid #dfe8e5;
}

body:has(.dashboard-page) .button {
  min-height: 42px;
  border-radius: .68rem;
  font-family: inherit;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
body:has(.dashboard-page) .button:hover { transform: translateY(-1px); }
body:has(.dashboard-page) .button--danger { background: #a6534b; color: #fff; box-shadow: none; }

body:has(.dashboard-page) .course-list,
body:has(.dashboard-page) .teacher-list,
body:has(.dashboard-page) .testimonial-list,
body:has(.dashboard-page) .student-directory,
body:has(.dashboard-page) .course-enrollment-groups,
body:has(.dashboard-page) .enrollment-admin-list,
body:has(.dashboard-page) .individual-lessons-admin-list,
body:has(.dashboard-page) .reminder-recipient-list {
  display: grid;
  gap: .7rem;
}

body:has(.dashboard-page) .course-item,
body:has(.dashboard-page) .teacher-item,
body:has(.dashboard-page) .testimonial-admin-item,
body:has(.dashboard-page) .directory-student-card,
body:has(.dashboard-page) .course-enrollment-group,
body:has(.dashboard-page) .student-admin-card,
body:has(.dashboard-page) .individual-lesson-admin-card,
body:has(.dashboard-page) .reminder-recipient {
  overflow: hidden;
  border: 1px solid #dfe8e5 !important;
  border-radius: .9rem !important;
  background: #fff !important;
  box-shadow: 0 7px 22px rgba(23, 61, 66, .045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body:has(.dashboard-page) .course-item:hover,
body:has(.dashboard-page) .teacher-item:hover,
body:has(.dashboard-page) .testimonial-admin-item:hover,
body:has(.dashboard-page) .directory-student-card:hover,
body:has(.dashboard-page) .course-enrollment-group:hover,
body:has(.dashboard-page) .student-admin-card:hover {
  border-color: #c7d9d4 !important;
  box-shadow: 0 11px 28px rgba(23, 61, 66, .075);
}

body:has(.dashboard-page) .course-title-toggle,
body:has(.dashboard-page) .directory-student-summary,
body:has(.dashboard-page) .course-enrollment-group__header,
body:has(.dashboard-page) .student-admin-summary,
body:has(.dashboard-page) .student-course-summary {
  min-height: 62px;
  padding: .8rem .9rem;
  background: #fbfcfc;
}

body:has(.dashboard-page) .course-admin-details,
body:has(.dashboard-page) .directory-student-details,
body:has(.dashboard-page) .student-admin-details,
body:has(.dashboard-page) .student-course-body,
body:has(.dashboard-page) .course-student-roster {
  padding: .9rem;
  border-top: 1px solid #e5ecea;
  background: #fff;
}

body:has(.dashboard-page) .analytics-stats {
  gap: .75rem;
  margin-bottom: 1rem;
}
body:has(.dashboard-page) .analytics-stats > * {
  border: 1px solid #dfe8e5;
  border-radius: .9rem;
  background: linear-gradient(145deg, #fff, #f5f8f7);
  box-shadow: 0 8px 24px rgba(23,61,66,.05);
}
body:has(.dashboard-page) .analytics-grid { gap: .85rem; }
body:has(.dashboard-page) .analytics-chart {
  border: 1px solid #dfe8e5;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23,61,66,.045);
}
body:has(.dashboard-page) .analytics-chart__title {
  padding-bottom: .7rem;
  border-bottom: 1px solid #e8eeec;
  color: var(--admin-navy);
}

body:has(.dashboard-page) .all-payments-section {
  margin-top: 1rem;
  border: 1px solid #dfe8e5;
  border-radius: 1rem;
  background: #fff;
}
body:has(.dashboard-page) .all-payments-section__header { padding: .9rem 1rem; background: #f7faf9; }
body:has(.dashboard-page) .all-payments-table-wrap,
body:has(.dashboard-page) .payment-history { border-radius: .8rem; border: 1px solid #e1e9e7; }
body:has(.dashboard-page) .all-payments-table th,
body:has(.dashboard-page) .payment-history-table th {
  background: #315f55;
  color: #fff;
}
body:has(.dashboard-page) .all-payments-table tbody tr:hover,
body:has(.dashboard-page) .payment-history-table tbody tr:hover { background: #eff5f3; }

body:has(.dashboard-page) .payment-ledger,
body:has(.dashboard-page) .individual-lesson-pricing,
body:has(.dashboard-page) .reminder-center-summary {
  border-color: #dce6e3;
  background: #f7faf9;
}

body:has(.dashboard-page) .dashboard-message {
  border: 0;
  border-radius: .7rem;
  font-size: .76rem;
  font-weight: 750;
}
body:has(.dashboard-page) .dashboard-message--success { background: #e7f2ee; color: #2d6659; }
body:has(.dashboard-page) .dashboard-message--error { background: #f7e9e7; color: #994e46; }

@media (max-width: 700px) {
  body:has(.dashboard-page) .course-editor__actions,
  body:has(.dashboard-page) .teacher-editor__actions,
  body:has(.dashboard-page) .testimonial-editor__actions { display: grid; grid-template-columns: 1fr; }
  body:has(.dashboard-page) .course-editor__actions .button,
  body:has(.dashboard-page) .teacher-editor__actions .button,
  body:has(.dashboard-page) .testimonial-editor__actions .button { width: 100%; margin: 0 !important; }
}

/* Compact course and teacher records; details are disclosed only on demand. */
body:has(.dashboard-page) .course-item,
body:has(.dashboard-page) .teacher-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: .75rem 1rem !important;
  margin-bottom: 0 !important;
  padding: .75rem .85rem !important;
  cursor: default !important;
}
.admin-compact-summary { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .25rem .7rem; }
.admin-compact-summary__title { grid-column: 1; margin: 0 !important; color: #244d55; font-size: .92rem; line-height: 1.45; }
.admin-compact-summary__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: .35rem; }
.admin-compact-summary__meta span { padding: .22rem .5rem; border-radius: 999px; background: #edf4f1; color: #537069; font-size: .65rem; font-weight: 750; }
.admin-details-toggle { grid-column: 2; grid-row: 1 / span 2; width: 2.15rem; height: 2.15rem; display: grid; place-items: center; padding: 0 0 .22rem; border: 1px solid #d7e3df; border-radius: 50%; background: #fff; color: #315f55; font: 900 1.15rem/1 Arial, sans-serif; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.admin-details-toggle:hover { background: #eaf2ef; }
.admin-details-toggle[aria-expanded="true"] { transform: rotate(180deg); background: #315f55; color: #fff; }
body:has(.dashboard-page) .course-admin-details,
body:has(.dashboard-page) .teacher-admin-details { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; width: 100%; margin-top: .15rem; padding: .8rem; border-top: 1px solid #e2ebe8; border-radius: 0 0 .8rem .8rem; background: #f7faf9; }
body:has(.dashboard-page) .teacher-admin-details[hidden] { display: none; }
body:has(.dashboard-page) .teacher-admin-details > div { display: grid; gap: .15rem; padding: .58rem .65rem; border: 1px solid #e3ebe9; border-radius: .65rem; background: #fff; }
body:has(.dashboard-page) .teacher-admin-details span { color: #7a898d; font-size: .64rem; }
body:has(.dashboard-page) .teacher-admin-details strong { color: #345b54; font-size: .74rem; line-height: 1.55; }
body:has(.dashboard-page) .course-item-actions,
body:has(.dashboard-page) .teacher-item-actions { display: flex !important; align-items: center; gap: .4rem !important; margin: 0 !important; }
body:has(.dashboard-page) .teacher-order-actions,
body:has(.dashboard-page) .course-order-actions { padding: .25rem; gap: .2rem; background: #f5f8f7; }
body:has(.dashboard-page) .teacher-order-button,
body:has(.dashboard-page) .course-order-button { width: 2rem; height: 2rem; padding: 0; }
body:has(.dashboard-page) .teacher-order-position { font-size: .62rem; }
body:has(.dashboard-page) .teacher-item--editing { border-color: #8fb2a9 !important; box-shadow: 0 0 0 3px rgba(49,95,85,.09); }
@media (max-width: 760px) {
  body:has(.dashboard-page) .course-item,
  body:has(.dashboard-page) .teacher-item { grid-template-columns: 1fr !important; }
  body:has(.dashboard-page) .course-item-actions,
  body:has(.dashboard-page) .teacher-item-actions { width: 100%; flex-wrap: wrap; }
  body:has(.dashboard-page) .course-admin-details,
  body:has(.dashboard-page) .teacher-admin-details { grid-template-columns: 1fr; }
}

/* Daily attendance results in the teacher portal. */
.teacher-daily-results {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid #dce6e3;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 18px 50px rgba(24,61,64,.07);
}
.teacher-daily-results__header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; padding-bottom: .8rem; border-bottom: 1px solid #e5ece9; }
.teacher-daily-results__header .section-kicker { margin: 0 0 .15rem; color: #aa7d40; font-size: .66rem; }
.teacher-daily-results__header h2 { margin: 0; color: #294e48; font-size: 1.15rem; }
.teacher-daily-results__header > span { color: #748681; font-size: .7rem; }
.teacher-results-grid { display: grid; grid-template-columns: minmax(210px,.65fr) minmax(0,2fr); gap: .9rem; }
.teacher-attendance-chart-card,
.teacher-attendance-table-card { border: 1px solid #e1e9e6; border-radius: 1rem; background: #f9fbfa; }
.teacher-attendance-chart-card { display: grid; align-content: center; justify-items: center; gap: 1rem; padding: 1rem; }
.teacher-attendance-donut { --attendance-rate: 0deg; width: 150px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#397363 0 var(--attendance-rate), #b9675b var(--attendance-rate) 360deg); box-shadow: 0 12px 32px rgba(34,82,73,.13); }
.teacher-attendance-donut.is-empty { background: #e4ebe8; }
.teacher-attendance-donut > div { width: 104px; aspect-ratio: 1; display: grid; align-content: center; justify-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #edf2f0; }
.teacher-attendance-donut strong { color: #315f55; font-size: 1.65rem; line-height: 1; }
.teacher-attendance-donut span { margin-top: .28rem; color: #81908c; font-size: .62rem; }
.teacher-attendance-legend { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.teacher-attendance-legend > span { display: flex; align-items: center; gap: .35rem; padding: .55rem; border-radius: .65rem; background: #fff; color: #687b75; font-size: .68rem; }
.teacher-attendance-legend i { width: .55rem; height: .55rem; border-radius: 50%; }
.teacher-attendance-legend i.present { background: #397363; }
.teacher-attendance-legend i.absent { background: #b9675b; }
.teacher-attendance-legend strong { margin-inline-start: auto; color: #294e48; }
.teacher-attendance-table-card { min-width: 0; overflow: hidden; background: #fff; }
.teacher-attendance-table-wrap { width: 100%; overflow-x: auto; }
.teacher-attendance-table { width: 100%; border-collapse: collapse; font-size: .7rem; }
.teacher-attendance-table th { padding: .72rem .65rem; background: #315f55; color: #fff; font-weight: 800; text-align: right; white-space: nowrap; }
.teacher-attendance-table td { padding: .7rem .65rem; border-bottom: 1px solid #e8eeec; color: #586d67; text-align: right; }
.teacher-attendance-table tbody tr:nth-child(even) { background: #f7faf9; }
.teacher-attendance-table tbody tr:hover { background: #edf4f1; }
.teacher-result-status { min-width: 58px; display: inline-flex; justify-content: center; padding: .28rem .5rem; border-radius: 999px; font-size: .65rem; font-weight: 850; }
.teacher-result-status.present { background: #e3f1ec; color: #31705f; }
.teacher-result-status.absent { background: #f7e7e4; color: #a05047; }

@media (max-width: 820px) {
  .teacher-results-grid { grid-template-columns: 1fr; }
  .teacher-attendance-chart-card { grid-template-columns: auto minmax(180px,1fr); }
}
@media (max-width: 560px) {
  .teacher-daily-results__header { align-items: flex-start; flex-direction: column; }
  .teacher-attendance-chart-card { grid-template-columns: 1fr; }
  .teacher-attendance-table { min-width: 620px; }
}

@media (max-width: 560px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlight {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlight img {
    grid-column: auto;
    grid-row: auto;
    height: 230px;
    min-height: 0;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlight__name,
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlight h3,
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlight p {
    grid-column: auto;
    grid-row: auto;
  }
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .section-kicker {
  background: rgba(255, 255, 255, 0.11);
  color: #9ed9e7;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .section__header p,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .stat-card p {
  color: rgba(255, 255, 255, 0.7);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section__header {
  padding: 0;
  margin-bottom: 2.75rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section__header::before {
  display: none;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .card,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .ad-card,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .student-highlight,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .stat-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(16, 35, 56, 0.09);
  box-shadow: 0 16px 42px rgba(16, 35, 56, 0.07);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .card--program {
  min-height: 255px;
  border-top: 4px solid transparent;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .card--program:hover {
  transform: translateY(-7px);
  border-top-color: var(--accent);
  box-shadow: 0 24px 55px rgba(16, 35, 56, 0.12);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .card-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.9rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .features-list li,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .contact-list li {
  background: #fff;
  border: 1px solid rgba(16, 35, 56, 0.08);
  border-radius: 0.9rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 1.4rem;
  box-shadow: 0 20px 55px rgba(16, 35, 56, 0.09);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .contact-form input,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .contact-form textarea {
  border-radius: 0.7rem;
  background: #fbfcfd;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .contact-form input:focus,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .contact-form textarea:focus {
  outline: 3px solid rgba(13, 91, 120, 0.12);
  border-color: var(--primary);
}

.form-status {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: #e7f6ee;
  color: #17663a;
  font-weight: 700;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .footer {
  background: #071f2f;
  color: rgba(255, 255, 255, 0.72);
  border: 0;
  padding: 2.2rem 0;
}

@media (max-width: 960px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .header__content {
    flex-wrap: wrap;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav-toggle {
    display: inline-flex;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav {
    display: none;
    width: 100%;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav.open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0;
  }
}

@media (max-width: 600px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .container {
    width: min(100% - 1.25rem, 1180px);
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero h1 {
    font-size: 2.45rem;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .nav.open,
  .trust-strip__grid {
    grid-template-columns: 1fr;
  }

  .trust-strip__grid > div {
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 1rem;
  }

  .trust-strip__grid > div:last-child {
    border-bottom: 0;
  }

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero__actions .button {
    width: 100%;
  }
}

/* Modern courses section */
#programs {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(21, 144, 167, 0.08), transparent 25%),
    #ffffff;
}

#programs .section__intro {
  max-width: 680px;
  margin-bottom: 2.75rem;
  font-size: 1.05rem;
  line-height: 1.9;
}

#programs .cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .card--program {
  --course-accent: #72a9bb;
  --course-surface: #123746;
  min-height: 325px;
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 0;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--course-accent) 22%, transparent), transparent 46%),
    linear-gradient(145deg, color-mix(in srgb, var(--course-surface) 90%, #000), var(--course-surface));
  box-shadow: 0 20px 48px rgba(16, 35, 56, 0.16);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .card--program:nth-child(5n + 2) {
  --course-accent: #c58a98;
  --course-surface: #4a3038;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .card--program:nth-child(5n + 3) {
  --course-accent: #89ad96;
  --course-surface: #29463c;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .card--program:nth-child(5n + 4) {
  --course-accent: #9c94bd;
  --course-surface: #3c3854;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .card--program:nth-child(5n) {
  --course-accent: #c19a72;
  --course-surface: #4b3c2e;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .card--program::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4.2rem;
  left: 1rem;
  width: 7.5rem;
  height: 5.2rem;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-right-width: 3px;
  border-radius: 0.45rem 1.2rem 1.2rem 0.45rem;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 0.72rem,
      rgba(255, 255, 255, 0.1) 0.76rem,
      transparent 0.8rem
    ),
    rgba(255, 255, 255, 0.025);
  opacity: 0.58;
  transform: rotate(-7deg);
  pointer-events: none;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .card--program::after {
  display: none;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .card-icon {
  display: none;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .card--program h3 {
  margin: 0.9rem 0 1.35rem;
  padding: 0;
  color: #f8fafb;
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .card--program p {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.75;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-subject-label {
  width: fit-content;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: color-mix(in srgb, var(--course-accent) 82%, white);
  font-size: 0.72rem;
  font-weight: 800;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-inline-end: 5.8rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-track-label {
  width: fit-content;
  padding: 0.38rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--course-accent) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--course-accent) 14%, transparent);
  color: color-mix(in srgb, var(--course-accent) 88%, white);
  font-size: 0.72rem;
  font-weight: 850;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__facts--single {
  grid-template-columns: minmax(0, 1fr);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__fact--start {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  padding-inline: 0.75rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__fact--start strong {
  color: #fff;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__price-badge {
  position: absolute;
  z-index: 2;
  top: 1.2rem;
  left: 1.2rem;
  min-width: 82px;
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  padding: 0.48rem 0.7rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.9rem 0.35rem 0.9rem 0.35rem;
  background: color-mix(in srgb, var(--course-accent) 84%, #fff);
  color: color-mix(in srgb, var(--course-surface) 88%, #000);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transform: rotate(-2deg);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__price-badge::after {
  content: "";
  position: absolute;
  top: 0.38rem;
  right: 0.38rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__price-badge span {
  font-size: 0.58rem;
  font-weight: 750;
  opacity: 0.72;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__price-badge strong {
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__start-date {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: -0.55rem 0 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__start-date strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.78rem;
  font-weight: 800;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__start-icon {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.09);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__start-icon svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: color-mix(in srgb, var(--course-accent) 78%, white);
  stroke-width: 1.8;
  stroke-linecap: round;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__fact {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.2rem;
  padding: 0.65rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.055);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__fact span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.62rem;
  font-weight: 700;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__fact strong {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.45;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__fact--price {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.45rem;
  background: color-mix(in srgb, var(--course-accent) 13%, rgba(255, 255, 255, 0.055));
  border-color: color-mix(in srgb, var(--course-accent) 32%, rgba(255, 255, 255, 0.1));
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__price-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: color-mix(in srgb, var(--course-accent) 76%, #fff);
  color: color-mix(in srgb, var(--course-surface) 88%, #000);
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--course-accent) 18%, transparent);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__fact--price > span:not(.course-card__price-icon),
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__fact--price > strong {
  grid-column: 2;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-teacher {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .teacher-portrait {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--course-accent), color-mix(in srgb, var(--course-surface) 72%, #000));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--course-accent) 20%, transparent);
  object-fit: cover;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .teacher-portrait--fallback {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .teacher-portrait--fallback svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-teacher__details {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-teacher__details span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 700;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-teacher__details strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 750;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-teacher__link {
  width: fit-content;
  padding: 0 0 .14rem;
  border: 0;
  border-bottom: 1px dashed rgba(232, 201, 137, .7);
  background: transparent;
  color: rgba(255, 255, 255, .95);
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  text-align: right;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-teacher__link:hover {
  color: #f1d69f;
  border-bottom-color: #f1d69f;
}

.course-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.course-card__details,
.course-card__register {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.8rem;
  border-radius: 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.course-card__details {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
}

.course-card__register {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: #173443;
}

.course-card__details:hover,
.course-card__register:hover {
  transform: translateY(-2px);
}

.course-card__details:hover {
  background: rgba(255, 255, 255, 0.08);
}

.course-dialog {
  width: min(560px, calc(100% - 2rem));
  padding: 2.25rem;
  border: 0;
  border-radius: 1.5rem;
  color: #102338;
  background: #fff;
  box-shadow: 0 35px 90px rgba(7, 31, 47, 0.28);
}

.course-dialog::backdrop {
  background: rgba(7, 31, 47, 0.7);
  backdrop-filter: blur(5px);
}

.course-dialog__close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: #eef3f5;
  color: #173443;
  font-size: 1.35rem;
  cursor: pointer;
}

.course-dialog__label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 850;
}

.course-dialog h3 {
  margin: 0 0 0.8rem;
  font-size: 2rem;
}

.course-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.course-dialog__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.35rem 0;
}

.course-dialog__facts > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: #f2f6f7;
}

.course-dialog__facts span,
.course-dialog__coverage > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.course-dialog__facts strong {
  color: #173443;
  font-size: 0.9rem;
}

.course-dialog__facts #courseDialogSeats {
  width: fit-content;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #e8f2ee;
  color: #2d6655;
}

.course-dialog__facts #courseDialogSeats.course-seats--low {
  background: #fff1dc;
  color: #8a5a21;
}

.course-dialog__facts #courseDialogSeats.course-seats--full {
  background: #f7e5e5;
  color: #963f3f;
}

.course-dialog__schedule-lines {
  display: grid;
  gap: 0.18rem;
}

.course-dialog__schedule-lines span {
  display: block;
  color: #285f63;
  font-size: 0.82rem;
  line-height: 1.6;
}

.course-dialog__coverage {
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(16, 35, 56, 0.1);
  border-bottom: 1px solid rgba(16, 35, 56, 0.1);
}

.course-dialog__coverage p {
  margin-top: 0.3rem;
}

.course-dialog__notes {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.course-dialog__notes li {
  position: relative;
  padding-inline-start: 1.45rem;
  color: #5d7078;
  font-size: 0.88rem;
  line-height: 1.7;
}

.course-dialog__notes li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0.05rem;
  width: 1.05rem;
  height: 1.05rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4f0ec;
  color: #2d6f5e;
  font-size: 0.7rem;
  font-weight: 900;
}

.course-dialog .course-dialog__semester {
  margin: 0 0 1.35rem;
  color: #2f6b50;
  font-size: 0.86rem;
  font-weight: 750;
}

@media (max-width: 520px) {
  .course-dialog__facts {
    grid-template-columns: 1fr;
  }
}

/* Teacher attendance portal */
.teacher-auth-page,
.teacher-dashboard-page { min-height: 100vh; background: #f1f6f4; color: #294e48; }
.teacher-login-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; background: radial-gradient(circle at 15% 15%, rgba(177,132,77,.13), transparent 28%), linear-gradient(145deg, #eaf2ef, #f8f5ee); }
.teacher-login-card { width: min(440px, 100%); padding: 2rem; border: 1px solid rgba(49,95,85,.13); border-radius: 1.4rem; background: rgba(255,255,255,.96); box-shadow: 0 25px 70px rgba(24,61,64,.13); }
.teacher-login-brand { display: inline-flex; align-items: center; gap: .65rem; color: #315f55; font-weight: 850; text-decoration: none; }
.teacher-login-brand img { width: 3rem; height: 3rem; object-fit: contain; }
.teacher-login-card .section-kicker { margin: 1.5rem 0 .25rem; }
.teacher-login-card h1 { margin: 0; color: #294e48; font-size: 1.7rem; }
.teacher-login-card > p:not(.section-kicker) { color: #71837e; font-size: .8rem; line-height: 1.8; }
.teacher-login-form { display: grid; gap: .9rem; margin-top: 1.3rem; }
.teacher-login-form label { display: grid; gap: .4rem; color: #496761; font-size: .75rem; font-weight: 750; }
.teacher-login-form input { width: 100%; padding: .82rem; border: 1px solid #d5e1dd; border-radius: .75rem; background: #fbfcfc; font: inherit; }
.teacher-back-link { display: block; margin-top: 1rem; color: #748681; font-size: .72rem; text-align: center; }
.teacher-form-message { margin: .75rem 0 0; padding: .7rem; border-radius: .65rem; background: #f8e6e3; color: #9a493e; font-size: .75rem; }
.teacher-form-message.success { background: #e6f2ed; color: #2f695a; }
.teacher-form-message[hidden] { display: none; }
.teacher-dashboard-header { border-bottom: 1px solid #dfe9e6; background: #fff; }
.teacher-dashboard-header .container { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.teacher-header-profile { display: flex; align-items: center; gap: 1rem; }
.teacher-header-profile > div { display: grid; text-align: left; }
.teacher-header-profile strong { color: #315f55; font-size: .8rem; }
.teacher-header-profile span { color: #899893; font-size: .67rem; }
.teacher-header-profile button { padding: .55rem .75rem; border: 1px solid #d6e1de; border-radius: .65rem; background: #fff; color: #657a75; font: inherit; font-size: .7rem; cursor: pointer; }
.teacher-dashboard-shell { padding-block: 2rem 3rem; }
.teacher-dashboard-intro { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.2rem; }
.teacher-attendance-summary[hidden] { display: none; }
.teacher-dashboard-intro h1 { margin: .15rem 0 .4rem; color: #294e48; font-size: clamp(1.6rem, 4vw, 2.25rem); }
.teacher-dashboard-intro p:last-child { margin: 0; color: #71837e; font-size: .8rem; }

.teacher-workspace-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .55rem;
  margin-bottom: .85rem;
  padding: .48rem;
  border: 1px solid #dce7e4;
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 28px rgba(18, 61, 69, .06);
}

.teacher-workspace-tabs button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .08rem .6rem;
  align-items: center;
  min-height: 65px;
  padding: .65rem .72rem;
  border: 0;
  border-radius: .78rem;
  background: transparent;
  color: #60757a;
  text-align: right;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.teacher-workspace-tabs button:hover { background: #f0f6f4; color: #234f56; }
.teacher-workspace-tabs button:focus-visible { outline: 3px solid rgba(185, 133, 62, .28); outline-offset: 2px; }

.teacher-workspace-tabs button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .62rem;
  background: #edf3f1;
  color: #7b8d90;
  font-size: .68rem;
  font-weight: 900;
}

.teacher-workspace-tabs button strong { font-size: .78rem; }
.teacher-workspace-tabs button small { font-size: .62rem; opacity: .78; }

.teacher-workspace-tabs button.active {
  background: linear-gradient(135deg, #174d59, #286b68);
  color: #fff;
  box-shadow: 0 8px 18px rgba(20, 76, 84, .2);
  transform: translateY(-1px);
}

.teacher-workspace-tabs button.active > span { background: rgba(255, 255, 255, .14); color: #eed29d; }
.teacher-tab-panel[hidden] { display: none !important; }
.teacher-tab-panel.active { animation: teacher-panel-in .24s ease both; }

@keyframes teacher-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.teacher-attendance-summary { display: flex; gap: .55rem; }
.teacher-attendance-summary span { min-width: 88px; display: grid; gap: .1rem; padding: .7rem; border-radius: .8rem; background: #fff; color: #73847f; font-size: .66rem; text-align: center; box-shadow: 0 8px 24px rgba(24,61,64,.06); }
.teacher-attendance-summary strong { color: #315f55; font-size: 1.25rem; }
.teacher-attendance-summary .present strong { color: #397363; }
.teacher-attendance-summary .absent strong { color: #a45b4d; }
.teacher-attendance-panel { padding: 1rem; border: 1px solid #dce6e3; border-radius: 1.2rem; background: #fff; box-shadow: 0 18px 50px rgba(24,61,64,.07); }
.teacher-attendance-toolbar { display: grid; grid-template-columns: minmax(180px,1fr) minmax(160px,.55fr) auto auto; align-items: end; gap: .65rem; }
.teacher-attendance-toolbar label { display: grid; gap: .35rem; color: #637873; font-size: .7rem; font-weight: 750; }
.teacher-attendance-toolbar select, .teacher-attendance-toolbar input { width: 100%; min-height: 2.7rem; padding: .65rem; border: 1px solid #d4e0dc; border-radius: .68rem; background: #fafcfc; font: inherit; }
.teacher-course-meta { margin: .8rem 0; padding: .65rem .75rem; border-radius: .65rem; background: #f1f6f4; color: #68807a; font-size: .72rem; }
.teacher-student-list { display: grid; gap: .45rem; }
.teacher-student-row { display: grid; grid-template-columns: 2rem minmax(170px,1fr) auto minmax(150px,.7fr); align-items: center; gap: .7rem; padding: .7rem; border: 1px solid #e3ebe8; border-radius: .8rem; background: #fff; transition: border 150ms ease, background 150ms ease; }
.teacher-student-row.is-absent { border-color: #ead3ce; background: #fff9f8; }
.teacher-student-number { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: #edf4f1; color: #315f55; font-size: .67rem; font-weight: 800; }
.teacher-student-identity { display: grid; gap: .1rem; }
.teacher-student-identity strong { color: #315f55; font-size: .78rem; }
.teacher-student-identity span { color: #899791; font-size: .65rem; }
.teacher-attendance-choices { display: flex; gap: .35rem; }
.teacher-attendance-choices button { min-width: 72px; padding: .52rem .65rem; border: 1px solid #d7e2df; border-radius: .6rem; background: #fff; color: #748681; font: inherit; font-size: .68rem; font-weight: 750; cursor: pointer; }
.teacher-student-row.is-present .teacher-attendance-choices button:first-child.active { border-color: #397363; background: #397363; color: #fff; }
.teacher-student-row.is-absent .teacher-attendance-choices button:last-child.active { border-color: #a45b4d; background: #a45b4d; color: #fff; }
.teacher-attendance-note { width: 100%; padding: .6rem; border: 1px solid #dbe5e2; border-radius: .6rem; background: #fbfcfc; font: inherit; font-size: .7rem; }
.teacher-empty-state { padding: 2.5rem; color: #7c8e89; text-align: center; }
.teacher-empty-state[hidden] { display: none; }

@media (max-width: 900px) {
  .teacher-attendance-toolbar { grid-template-columns: 1fr 1fr; }
  .teacher-student-row { grid-template-columns: 2rem minmax(0,1fr) auto; }
  .teacher-attendance-note { grid-column: 2 / -1; }
}

@media (max-width: 620px) {
  .teacher-dashboard-header .teacher-login-brand span { display: none; }
  .teacher-dashboard-intro { align-items: stretch; flex-direction: column; }
  .teacher-attendance-summary { display: grid; grid-template-columns: repeat(3,1fr); }
  .teacher-attendance-summary span { min-width: 0; }
  .teacher-attendance-toolbar { grid-template-columns: 1fr; }
  .teacher-student-row { grid-template-columns: 2rem minmax(0,1fr); }
  .teacher-attendance-choices, .teacher-attendance-note { grid-column: 2; }
  .teacher-attendance-choices button { flex: 1; }
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .card--program:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--course-accent) 34%, transparent);
  box-shadow: 0 28px 62px rgba(16, 35, 56, 0.22);
}

@media (max-width: 900px) {
  #programs .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #programs .cards-grid {
    grid-template-columns: 1fr;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .card--program {
    min-height: 245px;
  }
}

/* Editorial about section */
#about {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 85%, rgba(223, 141, 47, 0.1), transparent 23%),
    #f7f9fb;
}

#about::before {
  content: "رؤيا";
  position: absolute;
  left: -1rem;
  bottom: -4.5rem;
  color: rgba(13, 91, 120, 0.035);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.about-editorial {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.about-editorial__content .section__header {
  position: relative;
  margin-bottom: 1.2rem !important;
  padding-bottom: 1.25rem !important;
}

.about-editorial__content .section__header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.about-editorial__lead {
  max-width: 720px !important;
  margin: 0;
  font-size: 1.08rem;
  line-height: 2;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list {
  gap: 0;
  margin-top: 2.1rem;
  border-top: 1px solid rgba(16, 35, 56, 0.14);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list li {
  position: relative;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1.25rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(16, 35, 56, 0.14);
  border-radius: 0;
  line-height: 1.8;
  transition: padding 0.25s ease, color 0.25s ease;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list li::after {
  content: "←";
  position: absolute;
  left: 0.2rem;
  top: 1.3rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(0.4rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list li:hover {
  padding-right: 0.65rem;
  color: var(--primary-strong);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list li:hover::after {
  opacity: 1;
  transform: translateX(0);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .feature-icon {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin-top: 0.2rem;
  background: transparent;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list li > span:last-child {
  display: grid;
  gap: 0.35rem;
  padding-inline-end: 2rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list strong {
  color: #163f50;
  font-family: "Almarai", var(--font-heading);
  font-size: 1rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list small {
  color: #667780;
  font-size: 0.88rem;
  line-height: 1.8;
}

.about-vision {
  position: relative;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.13), transparent 30%),
    linear-gradient(145deg, #0d5b78, #082f43);
  clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
  box-shadow: 0 30px 70px rgba(8, 47, 67, 0.2);
}

.about-vision::after {
  content: "";
  position: absolute;
  left: -5rem;
  bottom: -5rem;
  width: 13rem;
  height: 13rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 1.8rem rgba(255, 255, 255, 0.025),
    0 0 0 3.6rem rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.about-vision__mark {
  position: absolute;
  top: -1.8rem;
  left: 1.5rem;
  color: rgba(255, 255, 255, 0.1);
  font-family: Georgia, serif;
  font-size: 12rem;
  line-height: 1;
}

.about-vision__label {
  position: relative;
  margin: 0 0 1.4rem;
  color: #8bd4e3;
  font-family: "Almarai", var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0;
}

.about-vision blockquote {
  position: relative;
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 750;
  line-height: 1.7;
  letter-spacing: -0.025em;
}

.about-vision__line {
  width: 3.5rem;
  height: 3px;
  margin: 2rem 0 1rem;
  background: var(--accent);
}

.about-vision__signature {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  min-width: 12rem;
  padding: 0.15rem 0 0.75rem;
  color: #fff;
  transform: rotate(-2deg);
}

.about-vision__signature::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.3rem;
  width: 100%;
  height: 0.65rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, rgba(232, 201, 137, 0), #e8c989 28%, rgba(139, 212, 227, 0.68) 78%, rgba(139, 212, 227, 0)) 1;
  border-radius: 50%;
  transform: skewX(-24deg);
}

.about-vision__signature strong {
  font-family: "Aref Ruqaa Ink", "Almarai", serif;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1;
  color: #e8c989;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
}

.about-vision__signature span {
  color: rgba(220, 239, 243, 0.78);
  font-family: "Almarai", var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .about-editorial {
    grid-template-columns: 1fr;
  }

  .about-vision {
    min-height: 360px;
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
  }
}

@media (max-width: 600px) {
  .about-vision {
    min-height: 330px;
    padding: 2.25rem 1.5rem;
  }

  .about-vision blockquote {
    font-size: 1.45rem;
  }
}

/* Focused homepage introduction */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero {
  min-height: 540px;
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
  background:
    linear-gradient(rgba(13, 91, 120, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 91, 120, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #fbfcfd 0%, #eef5f6 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero__content {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(3rem, 7vw, 6.5rem);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero__text {
  min-width: 0;
  max-width: 620px;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero h1 {
  font-size: clamp(2.8rem, 5.3vw, 5rem);
  line-height: 1.12;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero__lead {
  max-width: 590px;
  font-size: 1.15rem !important;
  line-height: 1.9 !important;
}

.hero__assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.15rem;
  margin-top: 1.7rem;
  color: var(--primary-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero__visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 0.65rem;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2.1rem;
  z-index: 1;
  background: linear-gradient(135deg, var(--primary) 0%, #1590a7 58%, rgba(21, 144, 167, 0.42) 100%);
  box-shadow: 0 18px 55px rgba(13, 91, 120, 0.14), 0 0 70px rgba(21, 144, 167, 0.12);
}

.hero__visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15%;
  bottom: 10%;
  left: -34%;
  width: 48%;
  background: linear-gradient(270deg, rgba(21, 144, 167, 0.24), rgba(21, 144, 167, 0));
  clip-path: polygon(100% 34%, 0 0, 0 100%, 100% 66%);
  filter: blur(14px);
  pointer-events: none;
}

.hero__image-frame {
  position: relative;
  z-index: 2;
  min-height: 500px;
  overflow: hidden;
  border-radius: 1.75rem;
  background: #dfecef;
  box-shadow: 0 28px 65px rgba(11, 46, 66, 0.16);
}

.hero__image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.hero__image-frame > img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.01);
  transform: scale(1.005);
}

@media (max-width: 960px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero__content {
    grid-template-columns: 1fr;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .hero__text {
    max-width: 760px;
  }

  .hero__image-frame,
  .hero__image-frame > img {
    min-height: 420px;
    height: 420px;
  }
}

@media (max-width: 600px) {
  .hero__assurance {
    display: grid;
  }

  .hero__image-frame,
  .hero__image-frame > img {
    min-height: 330px;
    height: 330px;
  }

  .hero__image-frame {
    border-radius: 1.25rem;
    box-shadow: 0 18px 42px rgba(11, 46, 66, 0.13);
  }

  .hero__image-frame::after {
    background: none;
  }

  .hero__visual {
    padding: 0.45rem;
  }

  .hero__visual::before {
    border-radius: 1.5rem;
  }

  .hero__visual::after {
    display: none;
  }
}

/* Full-bleed editorial homepage cover */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(680px, 78vh, 790px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background: #102f3b;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 31, 41, 0.96) 0%, rgba(8, 39, 50, 0.88) 30%, rgba(9, 47, 58, 0.54) 50%, rgba(9, 47, 58, 0.08) 72%),
    linear-gradient(0deg, rgba(4, 22, 29, 0.28), transparent 45%);
  pointer-events: none;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__content {
  position: static;
  display: block;
  min-height: inherit;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-width: 0;
  padding: 0;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__visual::before,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__visual::after,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__image-frame::after {
  display: none;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__image-frame,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__image-frame > img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border-radius: 0;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__image-frame {
  position: absolute;
  inset: 0;
  box-shadow: none;
  background: #102f3b;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__image-frame > img {
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.88) contrast(1.04);
  transform: none;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__text {
  position: relative;
  z-index: 2;
  width: min(51%, 610px);
  max-width: none;
  margin-right: auto;
  padding: clamp(5.5rem, 10vh, 8rem) 0 clamp(4rem, 8vh, 6rem);
  color: #fff;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .eyebrow {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #d8c097;
  backdrop-filter: blur(8px);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home #heroTitle .hero-title__first {
  color: #fff;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home #heroTitle strong {
  color: #e1b66d;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__supporting-title {
  color: #c9e3e2 !important;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__lead {
  color: rgba(255, 255, 255, 0.78) !important;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .button--primary {
  background: #b47b36;
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.2);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .button--secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(8px);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__assurance {
  color: rgba(255, 255, 255, 0.84);
}

@media (max-width: 960px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home.hero::before {
    background: linear-gradient(90deg, rgba(7, 31, 41, 0.94), rgba(8, 39, 50, 0.76) 62%, rgba(9, 47, 58, 0.28));
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__text {
    width: min(68%, 610px);
  }
}

@media (max-width: 650px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home.hero {
    min-height: 760px;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home.hero::before {
    background: linear-gradient(0deg, rgba(5, 27, 36, 0.97) 5%, rgba(7, 34, 44, 0.88) 58%, rgba(7, 34, 44, 0.3) 100%);
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__image-frame > img {
    object-position: 61% center;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__text {
    width: 100%;
    margin: 0;
    padding: 10.5rem 0 3.5rem;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .hero__lead {
    font-size: 1rem !important;
    line-height: 1.75 !important;
  }
}

.dashboard-content {
  display: grid;
  gap: 2rem;
}

.dashboard-card {
  background: var(--surface);
  border-radius: 1.8rem;
  border: 1px solid rgba(22, 92, 136, 0.12);
  padding: 2rem;
  box-shadow: 0 24px 55px rgba(22, 92, 136, 0.08);
}

.dashboard-card__header {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.dashboard-card__header h2 {
  margin: 0;
  font-size: 1.65rem;
}

.dashboard-card__header span {
  color: var(--muted);
}

.dashboard-form {
  display: grid;
  gap: 1rem;
}

.dashboard-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

.dashboard-form input,
.dashboard-form textarea {
  width: 100%;
  border: 1px solid rgba(22, 92, 136, 0.14);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  font: inherit;
}

.dashboard-actions {
  display: grid;
  gap: 1.5rem;
}

#course-management .dashboard-actions {
  gap: 2rem;
}

.course-editor {
  padding: 1.4rem;
  border: 1px solid rgba(22, 92, 136, 0.1);
  border-radius: 1.25rem;
  background: #f8fafc;
}

.course-editor__title {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(22, 92, 136, 0.1);
}

.course-editor__title strong {
  color: #173443;
  font-size: 1.05rem;
}

.course-editor__title span {
  color: var(--muted);
  font-size: 0.82rem;
}

.course-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.course-field {
  display: grid;
  gap: 0.45rem;
  color: #294352;
  font-size: 0.86rem;
  font-weight: 750;
}

.course-field--name,
.course-field--content {
  grid-column: 1 / -1;
}

.course-field input,
.course-field select,
.course-field textarea {
  width: 100%;
  border: 1px solid rgba(22, 92, 136, 0.14);
  border-radius: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: #fff;
  color: #173443;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.course-field textarea {
  min-height: 115px;
  resize: vertical;
  line-height: 1.7;
}

.course-field input:focus,
.course-field select:focus,
.course-field textarea:focus {
  outline: 0;
  border-color: #0d5b78;
  box-shadow: 0 0 0 3px rgba(13, 91, 120, 0.1);
}

.schedule-builder {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 0.55rem;
}

.schedule-builder button {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.7rem;
  background: #526f7b;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.schedule-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.schedule-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(22, 92, 136, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #294352;
  font-size: 0.78rem;
}

.schedule-entry button {
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2e5e5;
  color: #8b3434;
  cursor: pointer;
}

.course-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 92, 136, 0.1);
}

.course-editor__actions .button {
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 0.75rem;
}

.course-editor__actions #addCourseBtn {
  min-width: 190px;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  background: #0d5b78;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 12px 28px rgba(13, 91, 120, 0.18);
}

.course-editor__actions #updateCourseBtn {
  min-width: 155px;
  min-height: 46px;
  border: 1px solid #a56b2f;
  background: #fff5e8;
  color: #83501f;
  font-size: 0.86rem;
}

.course-editor__actions #deleteCourseBtn {
  min-width: 120px;
  min-height: 42px;
  align-self: center;
  padding: 0.65rem 1rem;
  background: #a33c3c;
  color: #fff;
  font-size: 0.8rem;
}

.button--danger {
  background: #a33c3c;
  color: #fff;
}

.teacher-management-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.teacher-editor {
  padding: 1.4rem;
  border: 1px solid rgba(22, 92, 136, 0.11);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #f8fbfc, #f4f7f6);
  box-shadow: 0 16px 40px rgba(34, 67, 80, 0.07);
}

.teacher-editor__title {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(22, 92, 136, 0.1);
}

.teacher-editor__title > div {
  display: grid;
  gap: .22rem;
}

.teacher-editor__title strong {
  display: block;
  color: #173443;
  font-size: 1.08rem;
  line-height: 1.5;
}

.teacher-editor__title > p {
  margin: 0;
  color: #6d7f87;
  font-size: .78rem;
  line-height: 1.7;
}

.teacher-editor__title span,
.teacher-field small {
  display: block;
  color: #6d7f87;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.55;
}

.teacher-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.teacher-field {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  color: #294352;
  font-size: 0.86rem;
  font-weight: 750;
}

.teacher-field--wide { grid-column: 1 / -1; }

.teacher-field input,
.teacher-field select,
.teacher-field textarea {
  width: 100%;
  border: 1px solid rgba(22, 92, 136, 0.16);
  border-radius: 0.78rem;
  padding: 0.85rem 0.95rem;
  background: #fff;
  color: #173443;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.teacher-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}

.teacher-field input:focus,
.teacher-field select:focus,
.teacher-field textarea:focus {
  outline: 0;
  border-color: #2d6f73;
  box-shadow: 0 0 0 3px rgba(45, 111, 115, 0.11);
}

.teacher-grade-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  padding: .75rem;
  border: 1px solid rgba(22, 92, 136, .14);
  border-radius: .85rem;
  background: #f8fbfa;
}

.teacher-grade-options label {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.7rem;
  padding: .55rem .65rem;
  border: 1px solid #dce7e4;
  border-radius: .68rem;
  background: #fff;
  color: #46645d;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
}

.teacher-field .teacher-grade-options input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #315f55;
}

.teacher-grade-options label:has(input:checked) {
  border-color: rgba(49, 95, 85, .45);
  background: #eaf3f0;
  color: #244f47;
}

@media (max-width: 700px) {
  .teacher-grade-options { grid-template-columns: 1fr 1fr; }
}

.teacher-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 92, 136, 0.1);
}

.teacher-editor__actions .button { min-height: 44px; border-radius: 0.75rem; }
.teacher-editor__actions #addTeacherBtn { min-width: 180px; min-height: 50px; background: #2d6f73; color: #fff; }
.teacher-editor__actions #updateTeacherBtn { min-width: 145px; background: #fff4df; border: 1px solid #b9823e; color: #80531f; }
.teacher-editor__actions #deleteTeacherBtn { background: #9e4141; color: #fff; }

.teacher-editor[hidden],
.teacher-management-toolbar [hidden] {
  display: none;
}

.testimonial-management-toolbar {
  display: flex;
  margin-bottom: 1rem;
}

.testimonial-editor {
  padding: 1.4rem;
  border: 1px solid rgba(22, 92, 136, 0.11);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #f8fbfc, #f6f4ef);
  box-shadow: 0 16px 40px rgba(34, 67, 80, 0.07);
}

.testimonial-editor__title {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(22, 92, 136, 0.1);
}

.testimonial-editor__title strong { color: #173443; font-size: 1.08rem; }
.testimonial-editor__title span,
.testimonial-field small { color: #6d7f87; font-size: 0.78rem; line-height: 1.55; }

.testimonial-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-field {
  display: grid;
  gap: 0.45rem;
  color: #294352;
  font-size: 0.86rem;
  font-weight: 750;
}

.testimonial-field--wide { grid-column: 1 / -1; }
.testimonial-field input,
.testimonial-field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(22, 92, 136, 0.16);
  border-radius: 0.78rem;
  background: #fff;
  color: #173443;
  font: inherit;
}
.testimonial-field textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.testimonial-field input:focus,
.testimonial-field textarea:focus { outline: 0; border-color: #2d6f73; box-shadow: 0 0 0 3px rgba(45, 111, 115, 0.11); }

.testimonial-editor__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(22, 92, 136, 0.1); }
.testimonial-editor__actions .button { min-height: 44px; border-radius: 0.75rem; }
.testimonial-editor__actions #addTestimonialBtn { min-width: 180px; min-height: 50px; background: #2d6f73; color: #fff; }

.testimonial-editor[hidden],
.testimonial-management-toolbar [hidden] { display: none; }

.testimonial-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(22, 92, 136, 0.11) !important;
  border-inline-start: 4px solid #b1844d !important;
  border-radius: 1rem !important;
  background: #fff !important;
  box-shadow: 0 9px 25px rgba(34, 67, 80, 0.06);
}
.testimonial-admin-item__student { color: #8a673b; font-size: 0.72rem; font-weight: 800; }
.testimonial-admin-item h3 { margin: 0.25rem 0 0.35rem; color: #244751; font-size: 1rem; }
.testimonial-admin-item p { margin: 0; color: #697b82; font-size: 0.8rem; line-height: 1.65; }

.enrollment-admin-list {
  display: grid;
  gap: 0.75rem;
}

.admin-section-toolbar,
.course-enrollment-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(49, 95, 85, 0.1);
  border-radius: 0.8rem;
  background: #f7faf9;
}
.admin-section-toolbar input { flex: 1 1 280px; }
.admin-section-toolbar input,
.admin-section-toolbar select,
.course-enrollment-toolbar select {
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d3dfdc;
  border-radius: 0.6rem;
  background: #fff;
  font: inherit;
}
.admin-section-toolbar > span { color: #315f55; font-size: 0.82rem; font-weight: 750; }
.course-enrollment-toolbar select { flex: 1 1 165px; }
.student-directory,
.course-enrollment-groups { display: grid; gap: 0.65rem; }
.directory-student-card,
.course-enrollment-group { overflow: hidden; border: 1px solid rgba(49, 95, 85, 0.12); border-radius: 0.85rem; background: #fff; }
.directory-student-summary,
.course-enrollment-group__header {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border: 0;
  background: #f8faf9;
  color: #274d46;
  text-align: right;
  cursor: pointer;
}
.directory-student-summary:hover,
.course-enrollment-group__header:hover { background: #f0f5f3; }
.directory-student-avatar { display: grid; width: 2.5rem; aspect-ratio: 1; place-items: center; border-radius: 50%; background: #dfeae6; color: #315f55; font-weight: 850; }
.directory-student-summary > div,
.course-enrollment-group__header > div { display: grid; gap: 0.18rem; min-width: 0; }
.directory-student-summary > div span,
.course-enrollment-group__header > div span { overflow: hidden; color: var(--muted); font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.directory-student-details { display: grid; gap: 0.75rem; padding: 0.85rem; border-top: 1px solid #e2eae7; }
.directory-student-details[hidden],
.course-student-roster[hidden] { display: none; }
.directory-course-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; color: var(--muted); font-size: 0.78rem; }
.directory-course-chips span { padding: 0.4rem 0.6rem; border-radius: 999px; background: #edf3f1; color: #315f55; }
.course-enrollment-group__header { grid-template-columns: minmax(0, 1fr) auto auto; }
.course-enrollment-group__header > span:nth-child(2) { padding: 0.35rem 0.6rem; border-radius: 999px; background: #e5eeeb; color: #315f55; font-size: 0.78rem; font-weight: 750; }
.course-student-roster { display: grid; padding: 0.7rem; border-top: 1px solid #e2eae7; color: var(--muted); }
.course-student-roster > div { display: grid; grid-template-columns: minmax(220px, 1fr) 170px auto; gap: 0.65rem; align-items: center; padding: 0.65rem; border-bottom: 1px solid #edf1f0; }
.course-student-roster > div:last-child { border-bottom: 0; }
.course-student-roster > div > div { display: grid; gap: 0.18rem; }
.course-student-roster > div > div span { color: var(--muted); font-size: 0.74rem; }
.course-student-roster select { width: 100%; padding: 0.6rem; border: 1px solid #d3dfdc; border-radius: 0.6rem; background: #fff; }

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.analytics-stats > div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid rgba(49, 95, 85, 0.12);
  border-radius: 0.85rem;
  background: #f8faf9;
}
.analytics-stats span,
.analytics-stats small { color: var(--muted); }
.analytics-stats strong { color: #315f55; font-size: 1.55rem; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.analytics-chart {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(49, 95, 85, 0.12);
  border-radius: 0.9rem;
  background: #fff;
}
.analytics-chart--wide { grid-column: 1 / -1; }
.analytics-chart__title { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.analytics-chart__title span { color: var(--muted); font-size: 0.78rem; }
.course-registration-chart { display: grid; gap: 0.7rem; }
.course-registration-chart > div { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) 28px; gap: 0.65rem; align-items: center; }
.course-registration-chart > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.82rem; }
.course-registration-chart > div > div { height: 0.7rem; overflow: hidden; border-radius: 999px; background: #e8efec; }
.course-registration-chart i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #315f55, #668c83); }
.donut-chart-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; align-items: center; }
.analytics-donut { width: 145px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; }
.analytics-donut::before { content: ''; grid-area: 1 / 1; width: 67%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.analytics-donut span { z-index: 1; grid-area: 1 / 1; color: #315f55; font-size: 1.3rem; font-weight: 800; }
.analytics-legend { display: grid; gap: 0.55rem; }
.analytics-legend > div { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8rem; }
.analytics-legend i { width: 0.7rem; height: 0.7rem; border-radius: 50%; flex: 0 0 auto; }
.status-distribution-chart,
.registration-trend-chart { height: 205px; display: flex; gap: 0.75rem; align-items: end; padding-top: 1.5rem; }
.status-distribution-chart > div,
.registration-trend-chart > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 0.35rem; min-width: 0; }
.status-distribution-chart i,
.registration-trend-chart i { display: block; width: min(42px, 65%); min-height: 8px; border-radius: 0.45rem 0.45rem 0.15rem 0.15rem; background: #315f55; }
.status-distribution-chart i[data-variant="1"] { background: #b08a55; }
.status-distribution-chart i[data-variant="2"] { background: #70899d; }
.status-distribution-chart i[data-variant="3"] { background: #9a5f5f; }
.registration-trend-chart i { background: linear-gradient(#769b92, #315f55); }
.status-distribution-chart span,
.registration-trend-chart span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 0.7rem; }
.status-distribution-chart strong,
.registration-trend-chart strong { font-size: 0.8rem; color: #315f55; }

.student-admin-card {
  overflow: hidden;
  border: 1px solid rgba(30, 70, 65, 0.13);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 48, 45, 0.05);
}

.student-admin-summary {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 0;
  background: #f8faf9;
  color: #173b36;
  text-align: right;
  cursor: pointer;
}

.student-admin-summary:hover { background: #f1f6f4; }
.student-admin-identity { display: grid; gap: 0.22rem; }
.student-admin-identity strong { font-size: 1rem; }
.student-admin-identity small { color: var(--muted); }
.student-course-count {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #e8f0ed;
  color: #365f56;
  font-size: 0.78rem;
  font-weight: 700;
}
.student-admin-arrow { font-size: 1.25rem; transition: transform 180ms ease; }
.student-admin-arrow.open { transform: rotate(180deg); }
.student-admin-details[hidden] { display: none; }
.student-admin-details { padding: 1rem; border-top: 1px solid rgba(30, 70, 65, 0.1); }
.student-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.student-profile-grid > div {
  display: grid;
  gap: 0.18rem;
  padding: 0.75rem;
  border-radius: 0.7rem;
  background: #f7f9f8;
}
.student-profile-grid span,
.student-enrollment-course span { color: var(--muted); font-size: 0.78rem; }
.student-enrolled-courses { display: grid; gap: 0.65rem; }
.student-enrollment-course {
  display: block;
  padding: 0;
  border: 1px solid rgba(30, 70, 65, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
}
.student-course-summary {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  border: 0;
  background: #f8faf9;
  color: #173b36;
  text-align: right;
  cursor: pointer;
}
.student-course-summary:hover { background: #f1f6f4; }
.student-course-summary > div { display: grid; gap: 0.2rem; min-width: 0; }
.student-course-summary > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-payment-snapshot { color: #315f55; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.student-course-body { display: grid; gap: 0.8rem; padding: 0.85rem; border-top: 1px solid #e1e9e6; }
.student-course-body[hidden],
.payment-ledger[hidden] { display: none; }
.course-status-controls {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
}
.course-status-controls label { display: grid; gap: 0.3rem; }
.course-status-controls label > span { color: var(--muted); font-size: 0.76rem; }
.payment-ledger-toggle {
  justify-self: start;
  padding: 0.58rem 0.85rem;
  border: 1px solid #cbdad5;
  border-radius: 0.6rem;
  background: #fff;
  color: #315f55;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.payment-ledger-toggle[aria-expanded="true"] { background: #edf3f1; }
.payment-reminder-box {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid #d7e2df;
  border-radius: 0.75rem;
  background: #f7faf9;
}
.payment-reminder-box > div:first-child { display: grid; gap: 0.2rem; }
.payment-reminder-box > div:first-child span { color: var(--muted); font-size: 0.74rem; }
.payment-reminder-box > div:last-child { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.payment-reminder-box input { min-height: 42px; padding: 0.6rem; border: 1px solid #cedbd7; border-radius: 0.6rem; background: #fff; font: inherit; }
.payment-reminder-manual { color: #287052; font-size: 0.78rem; font-weight: 750; }
.reminder-center-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; margin-bottom: 0.85rem; }
.reminder-center-summary > div { display: grid; gap: 0.2rem; padding: 0.8rem; border: 1px solid #dce6e3; border-radius: 0.75rem; background: #f8faf9; }
.reminder-center-summary span { color: var(--muted); font-size: 0.72rem; }
.reminder-center-summary strong { color: #315f55; font-size: 1.35rem; }
.reminder-center-toolbar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 0.85rem; padding: 0.7rem; border-radius: 0.8rem; background: #f1f5f4; }
.reminder-center-toolbar select,
.reminder-center-toolbar input { flex: 1 1 155px; min-height: 42px; padding: 0.62rem; border: 1px solid #cedbd7; border-radius: 0.6rem; background: #fff; font: inherit; }
.reminder-recipient-list { display: grid; gap: 0.5rem; color: var(--muted); }
.reminder-recipient {
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr) minmax(120px, 0.5fr) minmax(150px, 0.6fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #dfe7e5;
  border-inline-start: 4px solid #78958e;
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
}
.reminder-recipient--overdue { border-inline-start-color: #a34b4b; background: #fffafa; }
.reminder-recipient--today { border-inline-start-color: #a8793b; background: #fffdf8; }
.reminder-recipient--soon { border-inline-start-color: #567b90; }
.reminder-recipient--paid { border-inline-start-color: #3c8063; background: #f8fcfa; }
.reminder-recipient > div { display: grid; gap: 0.18rem; min-width: 0; }
.reminder-recipient > div > span,
.reminder-recipient small { color: var(--muted); font-size: 0.72rem; }
.reminder-recipient > div:first-of-type span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reminder-recipient__due strong,
.reminder-recipient__money strong { color: #315f55; }
.reminder-recipient input { width: 1.05rem; height: 1.05rem; accent-color: #315f55; }
.student-enrollment-course select { width: 100%; padding: 0.65rem; border: 1px solid #d7e1de; border-radius: 0.6rem; background: #fff; }
.student-no-courses { margin: 0; padding: 0.9rem; color: var(--muted); background: #f8faf9; border-radius: 0.7rem; }

.student-enrollment-course .payment-ledger {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(30, 70, 65, 0.18);
}
.student-enrollment-course .payment-ledger[hidden] { display: none; }
.payment-ledger__header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.payment-ledger__header span { color: #315f55; font-weight: 700; }
.payment-entry-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.55rem;
}
.payment-entry-form input,
.payment-entry-form select {
  width: 100%;
  min-height: 42px;
  padding: 0.6rem;
  border: 1px solid #d7e1de;
  border-radius: 0.6rem;
  background: #fff;
  font: inherit;
}
.payment-history { overflow-x: auto; }
.payment-history-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.78rem; }
.payment-history-table th,
.payment-history-table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid #e1e9e6; text-align: right; overflow-wrap: anywhere; }
.payment-history-table th { background: #edf3f1; color: #315f55; font-weight: 700; white-space: nowrap; }
.payment-history-table tbody tr:nth-child(even) { background: #f8faf9; }
.payment-history-table tbody tr:hover { background: #f1f6f4; }
.payment-history-table td:nth-child(2),
.payment-history-table td:nth-child(5) { font-weight: 700; color: #315f55; white-space: nowrap; }
.payment-history p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.payment-history button {
  border: 0;
  background: transparent;
  color: #9b3f3f;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.payment-history-table .payment-row-actions { display: flex; flex-wrap: nowrap; gap: .32rem; align-items: center; justify-content: center; overflow: visible; }
.payment-history-table .payment-row-actions > a,
.payment-history-table .payment-row-actions > button { position: relative; display: inline-grid; width: 1.85rem; height: 1.85rem; flex: 0 0 1.85rem; place-items: center; padding: 0; border-radius: .52rem; text-decoration: none; }
.payment-history-table .payment-row-actions svg { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.payment-history-table .payment-edit-action { background: #eef4f2; color: #315f55; font-weight: 750; }
.payment-history-table .payment-delete-action { background: #fbefef; color: #a94b4b; }
.payment-history-table .payment-receipt-action { background: #e9f2ef; color: #315f55; }
.payment-history-table .payment-row-actions [data-tooltip]::after { content: attr(data-tooltip); position: absolute; z-index: 20; right: 50%; bottom: calc(100% + .42rem); transform: translateX(50%) translateY(.2rem); padding: .3rem .48rem; border-radius: .38rem; background: #203f38; color: #fff; font-size: .58rem; font-weight: 750; line-height: 1; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: .15s ease; }
.payment-history-table .payment-row-actions [data-tooltip]:hover::after,
.payment-history-table .payment-row-actions [data-tooltip]:focus-visible::after { opacity: 1; visibility: visible; transform: translateX(50%) translateY(0); }

.all-payments-section {
  margin: 1.25rem 0 1.5rem;
  padding: 1.2rem;
  border: 1px solid rgba(22, 92, 136, 0.12);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #f8fbfa, #f5f2eb);
  box-shadow: 0 14px 35px rgba(34, 67, 80, 0.07);
}

.all-payments-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.all-payments-section__header span { color: #9a713f; font-size: 0.7rem; font-weight: 800; }
.all-payments-section__header h3 { margin: 0.2rem 0; color: #244751; font-size: 1.2rem; }
.all-payments-section__header p { margin: 0; color: #6b7d83; font-size: 0.78rem; }
.all-payments-section__header .button { flex: 0 0 auto; background: #2d6f73; color: #fff; box-shadow: 0 9px 22px rgba(45, 111, 115, 0.18); }

.all-payments-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.all-payments-section__actions #toggleAllPaymentsTable {
  border: 1px solid rgba(45, 111, 115, 0.22);
  background: #fff;
  color: #285f63;
  box-shadow: none;
}

.all-payments-table-wrap {
  max-height: 520px;
  overflow: auto;
  border: 1px solid #dfe8e5;
  border-radius: 0.85rem;
  background: #fff;
}

.all-payments-table-wrap[hidden] {
  display: none;
}

.all-payments-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

.all-payments-table th,
.all-payments-table td { padding: 0.75rem 0.7rem; border-bottom: 1px solid #e5ecea; text-align: right; }
.all-payments-table th { position: sticky; z-index: 1; top: 0; background: #285f63; color: #fff; font-weight: 750; white-space: nowrap; }
.all-payments-table tbody tr:nth-child(even) { background: #f7faf9; }
.all-payments-table tbody tr:hover { background: #eef5f3; }
.all-payments-table td:first-child { color: #9a713f; font-weight: 800; }
.all-payments-table td:nth-child(5) { color: #285f63; font-weight: 800; white-space: nowrap; }
.all-payments-empty { padding: 2rem !important; color: #6b7d83; text-align: center !important; }

.enrollment-admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(22, 92, 136, 0.1);
  border-radius: 0.9rem;
  background: #f8fafc;
}

.enrollment-admin-row > div {
  display: grid;
  gap: 0.15rem;
}

.enrollment-admin-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.enrollment-admin-row select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid rgba(22, 92, 136, 0.14);
  border-radius: 0.65rem;
  background: #fff;
  font: inherit;
}

.enrollment-admin-row .button {
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
}

@media (max-width: 850px) {
  .reminder-center-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reminder-recipient { grid-template-columns: auto minmax(0, 1fr); }
  .reminder-recipient__due,
  .reminder-recipient__money { grid-column: 2; }
  .course-student-roster > div { grid-template-columns: 1fr; }
  .directory-student-summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .directory-student-summary .student-course-count { grid-column: 2; grid-row: 2; justify-self: start; }
  .analytics-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-chart--wide { grid-column: auto; }
  .donut-chart-layout { grid-template-columns: 1fr; justify-items: center; }
  .analytics-legend { width: 100%; }
  .course-registration-chart > div { grid-template-columns: minmax(85px, 120px) minmax(0, 1fr) 24px; }
  .enrollment-admin-row {
    grid-template-columns: 1fr;
  }
  .student-profile-grid,
  .student-enrollment-course { grid-template-columns: 1fr; }
  .course-status-controls { grid-template-columns: 1fr; }
  .payment-entry-form { grid-template-columns: 1fr; }
  .student-admin-summary { grid-template-columns: minmax(0, 1fr) auto auto; }
  .student-course-summary { grid-template-columns: minmax(0, 1fr) auto; }
  .student-course-summary .course-payment-snapshot { grid-column: 1 / -1; grid-row: 2; }
  .payment-ledger__header { align-items: flex-start; flex-direction: column; }
  .payment-history-table,
  .payment-history-table tbody,
  .payment-history-table tr,
  .payment-history-table td { display: block; width: 100%; }
  .payment-history-table thead { display: none; }
  .payment-history-table tr { margin-bottom: 0.65rem; padding: 0.5rem; border: 1px solid #e1e9e6; border-radius: 0.65rem; background: #fff; }
  .payment-history-table td { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0.5rem; padding: 0.4rem; border: 0; }
  .payment-history-table td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
  .payment-history-table .payment-row-actions { display: flex; }
  .payment-history-table .payment-row-actions::before { margin-inline-end: auto; }
}

#courseList::before {
  content: "الدورات الحالية";
  display: block;
  margin-bottom: 0.2rem;
  color: #173443;
  font-size: 1rem;
  font-weight: 800;
}

.course-admin-details {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 92, 136, 0.1);
}

.course-admin-details[hidden] {
  display: none;
}

.course-admin-details > div {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.6rem;
  background: #fff;
}

.course-admin-details span {
  color: var(--muted);
  font-size: 0.68rem;
}

.course-admin-details strong {
  color: #294352;
  font-size: 0.8rem;
}

.course-admin-details .course-schedule-lines {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.course-management-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.course-editor[hidden],
.course-management-toolbar [hidden] {
  display: none;
}

.course-schedule-lines span {
  display: block;
  padding: 0.42rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(43, 74, 67, 0.07);
  border-inline-start: 3px solid #57796f;
}

@media (max-width: 650px) {
  .course-admin-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .course-form-grid {
    grid-template-columns: 1fr;
  }

  .course-field--name,
  .course-field--content {
    grid-column: auto;
  }

  .course-editor {
    padding: 1rem;
  }

  .schedule-builder {
    grid-template-columns: 1fr;
  }

  .teacher-form-grid {
    grid-template-columns: 1fr;
  }

  .teacher-field--wide {
    grid-column: auto;
  }

  .teacher-editor {
    padding: 1rem;
  }

  .teacher-editor__actions .button {
    width: 100%;
  }

  .testimonial-form-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-field--wide {
    grid-column: auto;
  }

  .testimonial-editor {
    padding: 1rem;
  }

  .testimonial-editor__actions .button {
    width: 100%;
  }

  .testimonial-admin-item {
    align-items: stretch !important;
    flex-direction: column;
  }

  .all-payments-section {
    padding: 0.85rem;
  }

  .all-payments-section__header {
    align-items: stretch;
    flex-direction: column;
  }

  .all-payments-section__header .button {
    width: 100%;
    text-align: center;
  }

  .all-payments-section__actions {
    display: grid;
  }
}

.course-list,
.teacher-list,
.preview-grid {
  display: grid;
  gap: 1rem;
}

.course-item,
.teacher-item,
.preview-card {
  padding: 1rem;
  border-radius: 1.2rem;
  background: var(--surface-soft);
  border: 1px solid rgba(22, 92, 136, 0.1);
}

.course-item h3,
.teacher-item h3 {
  margin: 0 0 0.55rem;
}

.teacher-order-actions,
.course-order-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid rgba(22, 92, 136, 0.14);
  border-radius: 0.8rem;
  background: #fff;
}

.teacher-order-position {
  padding: 0 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.teacher-order-button,
.course-order-button {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: rgba(22, 92, 136, 0.1);
  color: var(--primary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.teacher-order-button:hover:not(:disabled),
.course-order-button:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}

.teacher-order-button:disabled,
.course-order-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.course-order-button {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 1.05rem;
}

@media (max-width: 760px) {
  .teacher-item {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .teacher-item > div:last-child {
    width: 100%;
    margin: 0.8rem 0 0 !important;
    flex-wrap: wrap;
  }

  .course-item {
    grid-template-columns: 1fr !important;
  }

  .course-item-actions {
    width: 100%;
    margin: 0.8rem 0 0 !important;
    flex-wrap: wrap;
  }
}

.course-title-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  color: var(--primary);
  cursor: pointer;
  border-radius: 0.45rem;
}

.course-title-toggle::after {
  content: '⌄';
  transition: transform 0.2s ease;
}

.course-title-toggle[aria-expanded='true']::after {
  transform: rotate(180deg);
}

.course-title-toggle:focus-visible {
  outline: 3px solid rgba(22, 92, 136, 0.2);
  outline-offset: 4px;
}

.course-item--expanded {
  border-color: rgba(22, 92, 136, 0.28) !important;
  background: #f7fbfe !important;
}

.preview-card {
  display: grid;
  gap: 0.75rem;
  text-align: center;
}

.preview-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 1rem;
}

.button--small {
  padding: 0.9rem 1.2rem;
}

@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header__content {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* Final public-theme harmonization */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section {
  padding-block: clamp(4.75rem, 7.5vw, 6.75rem);
  border-top: 1px solid var(--public-line);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about { background: var(--public-cream); }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about { padding-block: clamp(3.25rem, 5vw, 4.5rem); }

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-editorial__lead {
  font-size: clamp(1.12rem, 1.5vw, 1.24rem);
  line-height: 1.95;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list strong {
  font-size: 1.08rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list small {
  font-size: 0.95rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list li {
  padding-block: 1rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision {
  min-height: 410px;
  padding-block: clamp(2rem, 4vw, 3.25rem);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads { background: #fff; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team {
  background: radial-gradient(circle at 12% 18%, rgba(177, 132, 77, 0.11), transparent 24%), radial-gradient(circle at 88% 82%, rgba(45, 111, 115, 0.1), transparent 27%), var(--public-sage);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #contact {
  background: radial-gradient(circle at 88% 18%, rgba(177, 132, 77, 0.09), transparent 24%), var(--public-cream);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section h2 {
  color: var(--public-ink);
  font-family: "Almarai", var(--font-heading);
  font-size: clamp(2rem, 3.6vw, 3rem);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section-kicker {
  border: 1px solid rgba(177, 132, 77, 0.13);
  background: var(--public-gold-soft);
  color: #805e32;
  padding: 0.48rem 0.88rem;
  font-size: 0.86rem;
  line-height: 1.35;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home .eyebrow {
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .card,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .ad-card,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .teaching-team-card {
  border-color: var(--public-line);
  box-shadow: var(--public-card-shadow);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .card:hover,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .ad-card:hover,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) .teaching-team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 111, 115, 0.24);
  box-shadow: var(--public-card-shadow-hover);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students {
  border-top: 0;
  background: radial-gradient(circle at 8% 18%, rgba(158, 217, 231, 0.09), transparent 25%), radial-gradient(circle at 92% 82%, rgba(190, 151, 89, 0.12), transparent 27%), #123844;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students h2 { color: #fff; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .section-kicker {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.09);
  color: #d7bc8b;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #contact .contact-form {
  border-color: var(--public-line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--public-card-shadow);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) .footer {
  border-top-color: rgba(255, 255, 255, 0.09);
  background: #102f38;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 700px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section { padding-block: 4rem; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about { padding-block: 3rem; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision { min-height: 310px; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) .section h2 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
}

/* Calmer teaching-team presentation */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team::before,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team::after {
  display: none;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-header > div {
  padding-inline-start: 0;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-header > div::before {
  display: none;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card:nth-child(even) {
  border-radius: 1.2rem;
  background: #fff;
  backdrop-filter: none;
  box-shadow: 0 14px 38px rgba(27, 61, 67, 0.075);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card::after,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card:nth-child(even)::after {
  display: none;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 19px 46px rgba(27, 61, 67, 0.11);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__portrait--subject {
  background: linear-gradient(155deg, #285a54, #4c766d);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__portrait--subject::before {
  display: none;
}

@media (max-width: 430px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__facts {
    grid-template-columns: 1fr;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__fact {
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__fact--price {
    grid-template-columns: auto 90px minmax(0, 1fr);
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__fact--price > span:not(.course-card__price-icon) {
    grid-column: 2;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .course-card__fact--price > strong {
    grid-column: 3;
  }
}

/* Compact student notification center */
.student-notification-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.75rem;
  border: 1px solid rgba(49, 95, 85, 0.18);
  border-radius: 0.7rem;
  background: #fff;
  color: #315f55;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.student-notification-trigger svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-notification-trigger strong {
  min-width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #a66c35;
  color: #fff;
  font-size: 0.64rem;
}

.student-notification-trigger strong[hidden],
.student-notification-backdrop[hidden] { display: none; }

.student-notification-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(7, 31, 39, 0.38);
  backdrop-filter: blur(2px);
}

.student-notifications {
  position: fixed;
  z-index: 81;
  top: 0;
  right: 0;
  width: min(420px, calc(100% - 1rem));
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 0;
  border-radius: 1.2rem 0 0 1.2rem;
  background: #fff;
  box-shadow: -22px 0 60px rgba(12, 43, 51, 0.2);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 240ms ease, visibility 240ms ease;
}

.student-notifications.open {
  transform: translateX(0);
  visibility: visible;
}

body.notification-panel-open { overflow: hidden; }

.student-notifications__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e2ebe8;
  background: linear-gradient(135deg, #edf4f1, #f8f4ec);
}

.student-notifications__heading span { color: #8b6c43; font-size: 0.68rem; }
.student-notifications__heading h2 { margin: 0.1rem 0 0; color: #294e48; font-size: 1.15rem; }
.student-notifications__heading > button {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d5e0dd;
  border-radius: 50%;
  background: #fff;
  color: #496761;
  font-size: 1.3rem;
  cursor: pointer;
}

.student-notifications__toolbar {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e5ecea;
}

.student-notification-filters,
.student-notification-bulk-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.student-notification-filters button,
.student-notification-bulk-actions button {
  padding: 0.42rem 0.65rem;
  border: 1px solid #d7e2df;
  border-radius: 999px;
  background: #fff;
  color: #56706a;
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}
.student-notification-filters button.active { border-color: #315f55; background: #315f55; color: #fff; }

.student-notification-list { min-height: 0; overflow-y: auto; display: block; }
.student-notification {
  display: block;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e8eeec;
  background: #fff;
}
.student-notification--unread { border-inline-start: 4px solid #b1844d; background: #fffcf6; }
.student-notification__summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: right;
  font: inherit;
  cursor: pointer;
}
.student-notification__summary-text { display: grid; gap: 0.25rem; min-width: 0; }
.student-notification__summary-text strong { color: #294e48; font-size: 0.82rem; }
.student-notification__summary-text small { color: #8a9894; font-size: 0.66rem; }
.student-notification__arrow { color: #6e8580; transition: transform 180ms ease; }
.student-notification__arrow.open { transform: rotate(180deg); }
.student-notification__body { padding: 0 1rem 0.9rem; }
.student-notification__body[hidden] { display: none; }
.student-notification__body p { margin: 0; color: #5b706b; font-size: 0.78rem; line-height: 1.75; }
.student-notification-empty { align-self: center; margin: 0; padding: 2rem; color: #7b8d88; text-align: center; font-size: 0.8rem; }

@media (max-width: 600px) {
  .student-notification-trigger > span { display: none; }
  .student-notifications {
    top: auto;
    right: 0.5rem;
    bottom: 0;
    left: 0.5rem;
    width: auto;
    height: min(78dvh, 680px);
    border-radius: 1.2rem 1.2rem 0 0;
    transform: translateY(105%);
  }
  .student-notifications.open { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .student-notifications { transition: none; }
}

/* Student learning snapshot */
[data-view-section][hidden] { display: none !important; }
#studentAddCourse[hidden] { display: none !important; }

.student-view-menu {
  position: sticky;
  z-index: 20;
  top: .65rem;
  display: flex;
  gap: .35rem;
  margin: 1rem 0;
  padding: .4rem;
  overflow-x: auto;
  border: 1px solid rgba(49, 95, 85, .12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(24, 61, 64, .07);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.student-view-menu::-webkit-scrollbar { display: none; }
.student-view-menu button {
  flex: 1 0 max-content;
  min-height: 3.35rem;
  padding: .85rem 1.15rem;
  border: 0;
  border-radius: .7rem;
  background: transparent;
  color: #657a75;
  font: inherit;
  font-size: .94rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.student-view-menu button:hover { background: #eef4f2; color: #315f55; }
.student-view-menu button.active { background: #315f55; color: #fff; box-shadow: 0 7px 16px rgba(49, 95, 85, .2); }

.student-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 1rem;
  margin: 1rem 0 2.4rem;
}
.student-focus-grid:has(> [hidden]) { grid-template-columns: 1fr; }
.student-focus-grid:not(:has(> :not([hidden]))) { display: none; }

.student-next-action,
.student-weekly-card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid rgba(49, 95, 85, 0.13);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 16px 42px rgba(24, 61, 64, 0.07);
}

.student-next-action {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #244f49, #356a61);
  color: #fff;
}

.student-next-action::after {
  content: '';
  position: absolute;
  inset: auto -3rem -4.5rem auto;
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
}

.student-next-action--urgent { background: linear-gradient(145deg, #6f4930, #9b6942); }
.student-next-action--complete { background: linear-gradient(145deg, #2c5a50, #48786d); }
.student-focus-heading { position: relative; z-index: 1; display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.student-focus-heading small { display: block; margin-bottom: .1rem; color: #8a9d98; font-size: .68rem; font-weight: 750; }
.student-focus-heading h2 { margin: 0; color: #294e48; font-size: 1.15rem; }
.student-next-action .student-focus-heading small { color: rgba(255,255,255,.65); }
.student-next-action .student-focus-heading h2 { color: #fff; }
.student-focus-icon { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; flex: 0 0 auto; border-radius: .75rem; background: #edf4f1; color: #315f55; font-size: 1.15rem; }
.student-next-action .student-focus-icon { background: rgba(255,255,255,.13); color: #fff; }
.student-next-action > div:last-child { position: relative; z-index: 1; }
.student-next-action h3 { margin: .2rem 0 .5rem; color: #fff; font-size: 1.18rem; }
.student-next-action p { max-width: 34rem; margin: 0 0 1rem; color: rgba(255,255,255,.78); font-size: .82rem; line-height: 1.75; }
.student-next-action a { display: inline-flex; padding: .58rem .85rem; border-radius: .65rem; background: #fff; color: #315f55; font-size: .76rem; font-weight: 800; text-decoration: none; }
.student-weekly-schedule { display: grid; gap: .45rem; }
.student-weekly-table-wrap { overflow-x: auto; border: 1px solid #dce7e3; border-radius: 1rem; }
.student-weekly-table { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; background: #fff; text-align: center; }
.student-weekly-table thead { background: linear-gradient(135deg, #315f55, #416f65); color: #fff; }
.student-weekly-table th { padding: .9rem 1rem; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.student-weekly-table td { padding: .85rem 1rem; border-bottom: 1px solid #e5ece9; color: #647772; font-size: .75rem; vertical-align: middle; }
.student-weekly-table th:not(:last-child), .student-weekly-table td:not(:last-child) { border-left: 1px solid rgba(220, 231, 227, .7); }
.student-timetable-time-heading { width: 155px; background: rgba(20, 57, 51, .22); }
.student-timetable-time { padding: .9rem .75rem !important; border-bottom: 1px solid #e5ece9; background: #f1f6f4; color: #315f55; font-size: .7rem !important; font-weight: 850; direction: rtl; white-space: nowrap; }
.student-timetable-lesson { min-width: 125px; display: grid; gap: .28rem; padding: .72rem .6rem; border-radius: .75rem; text-align: right; }
.student-timetable-lesson strong { color: inherit; font-size: .76rem; }
.student-timetable-lesson span { color: inherit; font-size: .64rem; opacity: .78; }
.student-timetable-lesson--0 { background: #e7f2ed; color: #295f52; }
.student-timetable-lesson--1 { background: #f5eadf; color: #855a35; }
.student-timetable-lesson--2 { background: #e9eef5; color: #475e78; }
.student-timetable-lesson--3 { background: #f1eaf3; color: #715476; }
.student-timetable-empty { color: #c5d0cd !important; font-size: .9rem !important; }
.student-weekly-table tbody tr:last-child td { border-bottom: 0; }
.student-weekly-table tbody tr:nth-child(even) { background: #f5f8f7; }
.student-weekly-table tbody tr { transition: background 150ms ease; }
.student-weekly-table tbody tr:hover { background: #eef5f2; }
.student-weekly-day { display: inline-flex; min-width: 4.7rem; justify-content: center; padding: .4rem .62rem; border-radius: 999px; background: #f4e9dc; color: #8b5e35; font-size: .7rem; font-weight: 850; }
.student-weekly-course { color: #294e48 !important; font-weight: 800; }
.student-weekly-time { color: #986538 !important; font-weight: 750; direction: rtl; white-space: nowrap; }
.student-weekly-teacher { white-space: nowrap; }
.student-weekly-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .62rem .7rem; border-radius: .75rem; background: #f5f8f7; }
.student-weekly-row > strong { color: #9a6b3f; font-size: .76rem; }
.student-weekly-row > div { display: grid; gap: .12rem; min-width: 0; }
.student-weekly-row b { overflow: hidden; color: #294e48; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.student-weekly-row span, .student-weekly-row small { color: #748681; font-size: .67rem; }
.student-weekly-empty { margin: 0; padding: 1rem; border-radius: .8rem; background: #f5f8f7; color: #758782; font-size: .78rem; text-align: center; }

.student-seat-status { display: flex; align-items: center; gap: .65rem; margin: .9rem 0; padding: .65rem .75rem; border-radius: .8rem; }
.student-seat-status > span { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-size: .75rem; font-weight: 900; }
.student-seat-status > div { display: grid; gap: .05rem; }
.student-seat-status strong { font-size: .76rem; }
.student-seat-status small { font-size: .65rem; opacity: .78; }
.student-seat-status--confirmed { background: #e9f4ef; color: #2e6658; }
.student-seat-status--confirmed > span { background: #397363; color: #fff; }
.student-seat-status--pending { background: #faf0e3; color: #8a5c34; }
.student-seat-status--pending > span { background: #a56f3f; color: #fff; }

.student-payment-plan,
.student-attendance { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid #e5ecea; }
.student-payment-plan h4,
.student-attendance h4 { margin: 0; color: #315f55; font-size: .8rem; }
.student-payment-plan__steps { display: grid; gap: .42rem; margin-top: .65rem; }
.student-payment-plan__step { display: grid; grid-template-columns: 1.55rem minmax(80px, auto) minmax(0, 1fr); align-items: center; gap: .5rem; color: #82908c; font-size: .67rem; }
.student-payment-plan__step i { width: 1.45rem; height: 1.45rem; display: grid; place-items: center; border: 1px solid #d6e0dd; border-radius: 50%; background: #fff; font-style: normal; font-size: .62rem; font-weight: 800; }
.student-payment-plan__step strong { color: #647873; font-size: .7rem; }
.student-payment-plan__step span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-payment-plan__step.is-paid i { border-color: #397363; background: #397363; color: #fff; }
.student-payment-plan__step.is-paid strong { color: #397363; }
.student-payment-plan__step.is-current { color: #9a6638; }
.student-payment-plan__step.is-current i { border-color: #b57a43; background: #faf0e3; color: #955f30; }
.student-payment-plan__step.is-current strong { color: #955f30; }
.student-plan-empty { margin: 0; color: #748681; font-size: .7rem; }
.student-receipts { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid #e5ecea; }
.student-receipts__heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.student-receipts__heading h4 { margin: 0; color: #315f55; font-size: .8rem; }
.student-receipts__heading span { color: #8a9994; font-size: .65rem; }
.student-receipts__list { display: grid; gap: .42rem; margin-top: .65rem; }
.student-receipt-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .62rem .7rem; border-radius: .72rem; background: #f5f8f7; }
.student-receipt-row > div { display: grid; gap: .1rem; }
.student-receipt-row strong { direction: ltr; color: #315f55; font-size: .68rem; text-align: right; }
.student-receipt-row span { color: #788985; font-size: .64rem; }
.student-receipt-link { padding: .42rem .62rem; border-radius: .52rem; background: #315f55; color: #fff; font-size: .62rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.student-receipts__empty { margin: 0; padding: .7rem; border-radius: .7rem; background: #f5f8f7; color: #7b8b87; font-size: .68rem; text-align: center; }
.student-attendance__heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.student-attendance__heading > strong { color: #397363; font-size: .72rem; }
.student-attendance__stats { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .65rem 0 .45rem; color: #6f817c; font-size: .67rem; }
.student-attendance__track { height: .35rem; overflow: hidden; border-radius: 99px; background: #e7eeec; }
.student-attendance__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #397363, #77a294); }

@media (max-width: 800px) {
  .student-focus-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .student-view-menu { top: .35rem; margin-inline: -.15rem; border-radius: .8rem; }
  .student-view-menu button { min-height: 3rem; flex-grow: 0; padding: .72rem .95rem; font-size: .84rem; }
  .student-weekly-table-wrap { margin-inline: -.15rem; border-radius: .8rem; }
  .student-weekly-table { min-width: 620px; }
  .student-weekly-table th, .student-weekly-table td { padding: .65rem; }
  .student-timetable-time-heading { width: 132px; }
  .student-next-action, .student-weekly-card { padding: 1rem; }
  .student-weekly-row { grid-template-columns: 62px minmax(0, 1fr); }
  .student-weekly-row > small { grid-column: 2; }
  .student-payment-plan__step { grid-template-columns: 1.55rem minmax(0, 1fr); }
  .student-payment-plan__step span { grid-column: 2; padding-bottom: .2rem; white-space: normal; }
}
/* Individual lesson booking */
.individual-lessons-portal { display: grid; gap: 1rem; }
.individual-lesson-intro { display: flex; align-items: center; gap: 1.2rem; padding: 1.15rem 1.3rem; border: 1px solid #dce7e3; border-radius: 1rem; background: linear-gradient(135deg, #f2f8f6, #fffaf1); }
.individual-lesson-intro > div { flex: 0 0 auto; display: grid; padding-inline-end: 1.2rem; border-inline-end: 1px solid #d5e1dd; }
.individual-lesson-intro strong { color: #28584e; font-size: 1.55rem; }
.individual-lesson-intro span, .individual-lesson-intro p { color: #63736f; }
.individual-lesson-intro p { margin: 0; line-height: 1.8; }
.individual-lesson-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; padding: 1.2rem; border-radius: 1rem; background: #fff; box-shadow: 0 12px 35px rgba(36, 78, 70, .09); }
.individual-lesson-form[hidden] { display: none; }
.individual-lesson-form label { display: grid; gap: .4rem; color: #355e56; font-size: .8rem; font-weight: 700; }
.individual-lesson-form input, .individual-lesson-form select, .individual-lesson-form textarea, .individual-lessons-admin-toolbar input, .individual-lessons-admin-toolbar select, .individual-lesson-admin-card input, .individual-lesson-admin-card select { width: 100%; padding: .72rem; border: 1px solid #d3dfdc; border-radius: .65rem; background: #fafcfb; font: inherit; }
.individual-lesson-form__notes { grid-column: span 3; }
.individual-lesson-total { display: grid; align-content: center; justify-items: center; padding: .7rem; border-radius: .8rem; background: #edf5f2; color: #315f55; }
.individual-lesson-total span { font-size: .72rem; }.individual-lesson-total strong { font-size: 1.25rem; }
.individual-lesson-form__actions { grid-column: 1 / -1; display: flex; gap: .6rem; }
.individual-lessons-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.individual-lesson-card { display: grid; gap: .85rem; padding: 1.1rem; border: 1px solid #dce5e2; border-top: 4px solid #567f75; border-radius: 1rem; background: #fff; }
.individual-lesson-card__header, .individual-lesson-card__statuses { display: flex; justify-content: space-between; gap: .7rem; align-items: flex-start; }
.individual-lesson-card__header span { color: #8a7048; font-size: .72rem; }.individual-lesson-card__header h3 { margin: .2rem 0 0; color: #284e47; }
.individual-lesson-price { padding: .5rem .7rem; border-radius: .7rem; background: #f4ead9; color: #745b36; white-space: nowrap; }
.individual-lesson-card__facts { display: grid; grid-template-columns: .8fr 1.5fr .7fr 1fr; gap: .5rem; }
.individual-lesson-card__notes { margin: 0; padding-top: .65rem; border-top: 1px solid #e7edeb; color: #64736f; font-size: .8rem; }
.individual-lessons-admin-toolbar { display: grid; grid-template-columns: 1fr 2fr auto; gap: .7rem; margin-bottom: 1rem; }
.individual-lesson-pricing { display: grid; grid-template-columns: 1fr 2fr auto; align-items: end; gap: 1rem; margin-bottom: 1rem; padding: 1rem; border: 1px solid #dbe6e2; border-radius: .9rem; background: #f5f9f7; }
.individual-lesson-pricing > div:first-child { display: grid; gap: .25rem; }.individual-lesson-pricing > div:first-child strong { color: #28564c; }.individual-lesson-pricing > div:first-child span { color: #6c7c77; font-size: .75rem; line-height: 1.6; }
.individual-lesson-pricing__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.individual-lesson-pricing__fields label { display: grid; gap: .3rem; color: #496760; font-size: .72rem; font-weight: 700; }.individual-lesson-pricing__fields label > div { display: flex; align-items: center; gap: .3rem; }.individual-lesson-pricing__fields input { min-width: 0; width: 100%; padding: .65rem; border: 1px solid #cedbd7; border-radius: .55rem; font: inherit; }.individual-lesson-pricing__fields em { color: #7a8884; font-size: .62rem; font-style: normal; white-space: nowrap; }
.individual-lessons-admin-list { display: grid; gap: .8rem; }
.individual-lesson-admin-card { display: grid; gap: .9rem; padding: 1rem; border: 1px solid #dce5e2; border-radius: .9rem; background: #fff; }
.individual-lesson-admin-card__summary, .individual-lesson-admin-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.individual-lesson-admin-card__summary span { color: #8a7048; font-size: .72rem; }.individual-lesson-admin-card__summary h3 { margin: .15rem 0; color: #28564c; }.individual-lesson-admin-card__summary p { margin: 0; color: #75827e; font-size: .78rem; }
.individual-lesson-admin-card__summary > strong { color: #80633b; }
.individual-lesson-admin-card__fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.individual-lesson-admin-card__fields label { display: grid; gap: .3rem; color: #526c66; font-size: .72rem; }
.individual-lesson-admin-card__footer { padding-top: .7rem; border-top: 1px solid #e6ecea; }.individual-lesson-admin-card__footer > span { color: #6b7975; font-size: .78rem; }
@media (max-width: 850px) { .individual-lesson-form { grid-template-columns: 1fr 1fr; }.individual-lesson-form__notes { grid-column: 1 / -1; }.individual-lessons-list { grid-template-columns: 1fr; }.individual-lesson-admin-card__fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .individual-lesson-intro { align-items: flex-start; flex-direction: column; }.individual-lesson-intro > div { padding: 0 0 .7rem; border: 0; border-bottom: 1px solid #d5e1dd; }.individual-lesson-form { grid-template-columns: 1fr; }.individual-lesson-form__notes { grid-column: auto; }.individual-lesson-card__facts, .individual-lesson-admin-card__fields, .individual-lessons-admin-toolbar { grid-template-columns: 1fr; }.individual-lesson-admin-card__summary, .individual-lesson-admin-card__footer { align-items: flex-start; flex-direction: column; } }

.individual-lessons-home { padding: 1rem 0 3.4rem; background: #f7f9f8; }
.individual-lessons-home__card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; padding: 1.6rem 1.8rem; border-radius: 1.4rem; background: linear-gradient(125deg, #244f47, #376b60); color: #fff; box-shadow: 0 18px 45px rgba(25, 67, 59, .18); }
.individual-lessons-home__card::after { content: ''; position: absolute; width: 15rem; height: 15rem; inset-inline-end: -6rem; top: -8rem; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.individual-lessons-home__price { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 8.5rem; padding-inline-end: 1.4rem; border-inline-end: 1px solid rgba(255,255,255,.2); text-align: center; }
.individual-lessons-home__price strong { color: #f3dcae; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.15; white-space: nowrap; }.individual-lessons-home__price span { color: rgba(255,255,255,.9); font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 700; line-height: 1.4; white-space: nowrap; }
.individual-lessons-home__copy .section-kicker { margin: 0 0 .25rem; color: #e8c989; }.individual-lessons-home__copy h2 { margin: 0; color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }.individual-lessons-home__copy > p:last-child { max-width: 42rem; margin: .45rem 0 0; color: rgba(255,255,255,.76); line-height: 1.8; }
.individual-lessons-home__card .button { position: relative; z-index: 1; border: 2px solid #ffe8b9; background: #f6d892 !important; color: #173f37 !important; font-weight: 900; text-shadow: none; white-space: nowrap; box-shadow: 0 8px 20px rgba(10, 35, 30, .2); }
.individual-lessons-home__card .button:hover { background: #ffe8b9 !important; color: #102f29 !important; transform: translateY(-2px); }
#toggleIndividualLessonForm { background: #315f55; color: #fff; font-weight: 800; }
@media (max-width: 560px) { .individual-lessons-home__card { grid-template-columns: 1fr; }.individual-lessons-home__price { padding: 0 0 .8rem; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); } }
@media (max-width: 900px) { .individual-lesson-pricing { grid-template-columns: 1fr; }.individual-lesson-pricing__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .individual-lesson-pricing__fields, .individual-lesson-card__facts { grid-template-columns: 1fr; } }

/* Compact About section: keeps the complete story visible with less scrolling */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about {
  min-height: calc(100vh - var(--site-header-height, 96px) + 2px);
  min-height: calc(100svh - var(--site-header-height, 96px) + 2px);
  display: flex;
  align-items: center;
  scroll-margin-top: 96px;
  padding-block: clamp(2.2rem, 3.5vw, 3.15rem);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about > .container {
  width: 100%;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-editorial {
  gap: clamp(2rem, 4vw, 4rem);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-editorial__content .section__header {
  margin-bottom: .85rem !important;
  padding-bottom: .85rem !important;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-editorial__lead {
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.78;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list {
  margin-top: 1.2rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list li {
  gap: .85rem;
  padding-block: .72rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list li > span:last-child {
  gap: .18rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list strong {
  font-size: .98rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .features-list small {
  font-size: .84rem;
  line-height: 1.58;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision {
  min-height: 335px;
  padding: clamp(1.8rem, 3.2vw, 2.65rem);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision__label {
  margin-bottom: .75rem;
  font-size: clamp(1.12rem, 1.7vw, 1.38rem);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision blockquote {
  font-size: clamp(1.3rem, 2vw, 1.78rem);
  line-height: 1.58;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision__line {
  margin: 1.15rem 0 .55rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision__signature strong {
  font-size: clamp(1.7rem, 2.7vw, 2.25rem);
  color: #dceff2 !important;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision__signature span {
  color: #e8c989 !important;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision__signature::after {
  border-image: linear-gradient(90deg, rgba(139, 212, 227, 0), #8bd4e3 35%, rgba(232, 201, 137, .72) 78%, rgba(232, 201, 137, 0)) 1;
}
@media (max-width: 900px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision { min-height: 305px; }
}
@media (max-width: 760px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about {
    min-height: auto;
    scroll-margin-top: 72px;
  }
}
@media (min-width: 761px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #home.hero {
    min-height: calc(100vh - var(--site-header-height, 96px) + 2px);
    min-height: calc(100svh - var(--site-header-height, 96px) + 2px);
    height: calc(100vh - var(--site-header-height, 96px) + 2px);
    height: calc(100svh - var(--site-header-height, 96px) + 2px);
  }
}

/* Keep About content close to the navigation without changing the vision card. */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about {
  align-items: flex-start !important;
  padding-top: 1.75rem !important;
  padding-bottom: clamp(2.2rem, 3.5vw, 3.15rem) !important;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about > .container {
  align-self: flex-start;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision {
  min-height: 380px;
  justify-content: center;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision blockquote {
  max-width: 32rem;
  font-weight: 650;
  line-height: 1.72;
  letter-spacing: -0.015em;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision {
  width: 100%;
  height: min(650px, calc(100svh - var(--site-header-height, 96px) - 3.5rem));
  min-height: 520px;
  justify-content: flex-start;
  clip-path: none;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(5, 35, 47, .42) 0%, rgba(6, 42, 55, .7) 45%, rgba(5, 31, 42, .94) 100%),
    url("assets/roya-vision-classroom.webp") center center / cover no-repeat;
  box-shadow: 0 28px 65px rgba(8, 47, 67, .22);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision__label {
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision blockquote {
  max-width: 29rem;
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .48);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision__signature {
  margin-top: auto;
  align-self: flex-end;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
@media (max-width: 760px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .about-vision {
    height: 470px;
    min-height: 470px;
    background-position: 48% center;
  }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #about .vision-break {
    display: none;
  }
}

/* Two-card success stories carousel */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .success-stories-carousel {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: .9rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .success-carousel-arrow {
  width: 3rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0 0 .18rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #e8c989;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .success-carousel-arrow:hover {
  transform: scale(1.08);
  border-color: rgba(232, 201, 137, .65);
  background: rgba(232, 201, 137, .14);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .success-carousel-arrow[hidden] { display: none; }
@media (max-width: 700px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .success-stories-carousel {
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    gap: .45rem;
  }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .student-highlights { grid-template-columns: 1fr; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .success-carousel-arrow { width: 2.5rem; font-size: 1.65rem; }
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--featured h3 {
  color: #ffffff !important;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .28);
}

/* Two-card offers carousel for comfortable reading. */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-carousel {
  position: relative;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card {
  min-height: 0;
  padding: 1.4rem 1.5rem 1.35rem;
  border: 1px solid rgba(13, 91, 120, .1);
  border-radius: 1.15rem;
  box-shadow: 0 14px 34px rgba(17, 57, 70, .08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 91, 120, .2);
  box-shadow: 0 20px 42px rgba(17, 57, 70, .13);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card__number {
  top: 1.1rem;
  left: 1.4rem;
  font-size: 2rem;
  opacity: .75;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card__tag {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  padding: .35rem .75rem;
  font-size: .75rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card h3 {
  max-width: calc(100% - 2.5rem);
  margin: 1.35rem 0 .7rem;
  color: #123e4f;
  font-size: clamp(1.45rem, 2.25vw, 1.8rem);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -.02em;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card h3::after {
  content: '';
  width: 3.2rem;
  height: 3px;
  display: block;
  margin-top: .55rem;
  border-radius: 99px;
  background: linear-gradient(90deg, #c58a52, #0d5b78);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card > p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.75;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card__meta {
  margin: auto 0 .85rem;
  padding-top: 1rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card__meta span {
  padding: .32rem .6rem;
  border-radius: 999px;
  font-size: .69rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card__actions {
  gap: .55rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(16, 35, 56, .08);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card__actions button,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card__actions a {
  min-height: 40px;
  border-radius: .65rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--featured {
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 16px 38px rgba(16, 47, 64, .2);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--featured h3 {
  color: #fff !important;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .28);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--featured h3::after {
  background: linear-gradient(90deg, #f4d5a6, rgba(255, 255, 255, .7));
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--featured .offer-card__actions {
  border-top-color: rgba(255, 255, 255, .12);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-carousel__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0 0 .18rem;
  border: 1px solid rgba(13, 91, 120, .2);
  border-radius: 50%;
  background: #fff;
  color: #0d5b78;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 55, 69, .1);
  transition: transform .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-carousel__arrow:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.08);
  background: #0d5b78;
  color: #fff;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-carousel__arrow:disabled {
  opacity: .32;
  cursor: default;
  box-shadow: none;
  filter: grayscale(.45);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-carousel__arrow[hidden] { display: none; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-carousel__arrow--prev { right: -1.5rem; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-carousel__arrow--next { left: -1.5rem; }
@media (max-width: 760px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-carousel { padding-inline: 1.1rem; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-grid { grid-template-columns: 1fr; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-carousel__arrow { width: 2.5rem; font-size: 1.65rem; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-carousel__arrow--prev { right: -.4rem; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-carousel__arrow--next { left: -.4rem; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card { padding: 1.25rem; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card h3 { max-width: calc(100% - 2rem); margin-top: 1.1rem; }
}

/* Offers use a selectable showcase, visually distinct from the teachers carousel. */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__nav {
  display: grid;
  gap: .7rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__selector {
  min-height: 4.5rem;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
  border: 1px solid rgba(13, 91, 120, .11);
  border-radius: .9rem;
  background: rgba(255, 255, 255, .72);
  color: #526574;
  font-family: inherit;
  text-align: right;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__selector > span {
  color: #b27c45;
  font-size: .76rem;
  font-weight: 900;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__selector > strong {
  font-size: .88rem;
  line-height: 1.45;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__selector:hover {
  transform: translateX(-3px);
  border-color: rgba(13, 91, 120, .24);
  color: #173f50;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__selector.active {
  border-color: #315f55;
  background: #fff;
  color: #173f50;
  box-shadow: 0 10px 26px rgba(24, 62, 55, .1);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__selector.active::after {
  content: '';
  position: absolute;
  inset-block: .75rem;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(#c58a52, #315f55);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__selector {
  position: relative;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase .offer-grid {
  grid-template-columns: 1fr;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active {
  min-height: 20rem;
  justify-content: center;
  padding: 2rem 2.2rem;
  border-color: transparent;
  background:
    radial-gradient(circle at 0 0, rgba(197, 138, 82, .28), transparent 40%),
    linear-gradient(140deg, #173f50, #204f52 62%, #315f55);
  color: #fff;
  box-shadow: 0 22px 48px rgba(17, 57, 70, .2);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active .offer-card__number {
  color: rgba(255, 255, 255, .13);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active .offer-card__tag {
  background: rgba(255, 255, 255, .1);
  color: #f4d5a6;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active h3 {
  color: #fff !important;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .22);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active h3::after {
  background: linear-gradient(90deg, #f4d5a6, rgba(255, 255, 255, .7));
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active > p,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active .offer-card__meta span {
  color: rgba(255, 255, 255, .82);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active .offer-card__meta span,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active .offer-card__actions {
  border-color: rgba(255, 255, 255, .14);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active .offer-card__actions button {
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active .offer-card__actions a {
  border-color: #fff;
  background: #fff;
  color: #173f50;
}
@media (max-width: 850px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase { grid-template-columns: 1fr; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active { min-height: 0; }
}
@media (max-width: 520px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__nav { grid-template-columns: 1fr; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__selector { min-height: 3.8rem; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active { padding: 1.4rem; }
}

/* Three-card courses carousel; course cards themselves remain unchanged. */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .courses-carousel {
  position: relative;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .courses-carousel-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0 0 .18rem;
  border: 1px solid rgba(13, 91, 120, .2);
  border-radius: 50%;
  background: #fff;
  color: #0d5b78;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(16, 55, 69, .1);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .courses-carousel-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: #0d5b78;
  color: #fff;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .courses-carousel-arrow:disabled,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .success-carousel-arrow:disabled {
  opacity: .32;
  cursor: default;
  box-shadow: none;
  filter: grayscale(.45);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .courses-carousel-arrow:disabled:hover {
  transform: translateY(-50%);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #students .success-carousel-arrow:disabled:hover {
  transform: none;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .courses-carousel-arrow[hidden] { display: none; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .courses-carousel-arrow--prev { right: -1.5rem; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .courses-carousel-arrow--next { left: -1.5rem; }
@media (max-width: 760px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .courses-carousel {
    padding-inline: 1.1rem;
  }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .cards-grid { grid-template-columns: 1fr; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .courses-carousel-arrow { width: 2.5rem; font-size: 1.65rem; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .courses-carousel-arrow--prev { right: -.4rem; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #programs .courses-carousel-arrow--next { left: -.4rem; }
}

/* Bounded teacher carousel; the original teacher-card design is preserved. */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-carousel {
  position: relative;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-carousel__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0 0 .18rem;
  border: 1px solid rgba(49, 95, 85, .22);
  border-radius: 50%;
  background: #fff;
  color: #315f55;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(24, 62, 55, .11);
  transition: transform .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-carousel__arrow:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.08);
  background: #315f55;
  color: #fff;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-carousel__arrow:disabled {
  opacity: .32;
  cursor: default;
  box-shadow: none;
  filter: grayscale(.45);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-carousel__arrow[hidden] { display: none; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-carousel__arrow--prev { right: -1.5rem; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-carousel__arrow--next { left: -1.5rem; }

@media (max-width: 900px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-carousel { padding-inline: 1.1rem; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-carousel__arrow { width: 2.5rem; font-size: 1.65rem; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-carousel__arrow--prev { right: -.4rem; }
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-carousel__arrow--next { left: -.4rem; }
}

/* Give links and mouse-based alignment the same offset below the sticky header. */
@media (min-width: 761px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) main > section[id] {
    scroll-margin-top: var(--site-header-height, 96px) !important;
  }
}

/* Focused teacher credentials: current role plus one meaningful teaching strength. */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__current-work {
  display: grid;
  gap: .18rem;
  margin-top: .9rem;
  padding: .65rem .75rem;
  border-inline-start: 3px solid #a48251;
  border-radius: .25rem .7rem .7rem .25rem;
  background: #f7f4ed;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__current-work span {
  color: #8a7048;
  font-size: .65rem;
  font-weight: 800;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__current-work strong {
  color: #315f55;
  font-size: .78rem;
  line-height: 1.55;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__feature {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-top: auto;
  padding-top: .8rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__feature > span {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f0ed;
  color: #315f55;
  font-size: .72rem;
  font-weight: 900;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__feature p {
  margin: 0;
  color: #526b65;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.65;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__grades {
  width: fit-content;
  margin: .65rem 0 0;
  padding: .38rem .65rem;
  border-radius: .65rem;
  background: #eef4f2;
  color: #466960;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.5;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__profile-button {
  width: 100%;
  margin-top: .75rem;
  padding: .65rem .9rem;
  border: 1px solid rgba(49, 95, 85, .22);
  border-radius: .75rem;
  background: #315f55;
  color: #fff;
  font: inherit;
  font-size: .75rem;
  font-weight: 850;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__profile-button:hover {
  background: #244d46;
  transform: translateY(-1px);
}

.teacher-profile-dialog {
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: hidden auto;
  border: 0;
  border-radius: 1.35rem;
  background: #fff;
  color: #294e48;
  box-shadow: 0 30px 90px rgba(10, 37, 42, .3);
}

.teacher-profile-dialog[open] { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.35fr); }
.teacher-profile-dialog::backdrop { background: rgba(8, 31, 38, .65); backdrop-filter: blur(4px); }
.teacher-profile-dialog__close { position: absolute; z-index: 2; top: .8rem; left: .8rem; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #315f55; font-size: 1.35rem; cursor: pointer; }
.teacher-profile-dialog__portrait { min-height: 420px; display: grid; place-items: center; padding: 2rem; background: linear-gradient(155deg, #285a54, #4c766d); color: #f2dfb8; font-size: 1.55rem; font-weight: 850; text-align: center; }
.teacher-profile-dialog__portrait img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.teacher-profile-dialog__content { padding: 2rem; }
.teacher-profile-dialog__subject { color: #9b733f; font-size: .76rem; font-weight: 850; }
.teacher-profile-dialog h3 { margin: .25rem 0 1.1rem; color: #214b43; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.teacher-profile-dialog__facts { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.teacher-profile-dialog__facts > div { display: grid; gap: .2rem; padding: .75rem; border-radius: .8rem; background: #f4f7f6; }
.teacher-profile-dialog__facts span, .teacher-profile-dialog__strength > span { color: #8a7048; font-size: .65rem; font-weight: 850; }
.teacher-profile-dialog__facts strong { color: #315f55; font-size: .78rem; line-height: 1.55; }
.teacher-profile-dialog__strength { margin-top: .8rem; padding: .9rem; border-inline-start: 3px solid #a48251; border-radius: .8rem; background: #f8f4ec; }
.teacher-profile-dialog__strength p { margin: .3rem 0 0; color: #4f675f; font-size: .82rem; font-weight: 700; line-height: 1.75; }

@media (max-width: 620px) {
  .teacher-profile-dialog[open] { grid-template-columns: 1fr; }
  .teacher-profile-dialog__portrait, .teacher-profile-dialog__portrait img { min-height: 220px; max-height: 260px; }
  .teacher-profile-dialog__facts { grid-template-columns: 1fr; }
}

/* Teacher identity lives in the visual panel; credentials remain in the white panel. */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__portrait {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  filter: none;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__portrait-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88) contrast(1.03);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__identity {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: grid;
  gap: .28rem;
  padding: 2.8rem 1rem 1rem;
  background: linear-gradient(0deg, rgba(16, 51, 47, .95), rgba(16, 51, 47, .72) 58%, transparent);
  text-align: right;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__identity h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__identity span {
  color: #ecd6a7;
  font-size: .72rem;
  font-weight: 800;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__portrait--subject {
  align-content: center;
  justify-items: center;
  padding: 1.25rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__portrait--subject .teaching-team-card__subject-icon {
  margin-bottom: 3.6rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__content {
  gap: .55rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__content .teaching-team-card__meta {
  margin-top: 0;
}

/* Wider visual identity panel keeps Arabic teacher names on one balanced line. */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card {
  grid-template-columns: 210px minmax(0, 1fr);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__identity {
  inset: auto .7rem .7rem;
  gap: .42rem;
  padding: .78rem .65rem;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: .85rem;
  background: rgba(20, 62, 57, .9);
  box-shadow: 0 10px 28px rgba(10, 36, 33, .24);
  backdrop-filter: blur(8px);
  text-align: center;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__identity h3 {
  max-width: 100%;
  font-size: clamp(.82rem, 1.08vw, 1.04rem);
  line-height: 1.45;
  white-space: nowrap;
  letter-spacing: -.025em;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__identity span {
  width: fit-content;
  margin-inline: auto;
  padding: .25rem .58rem;
  border-radius: 999px;
  background: rgba(232, 201, 137, .13);
  color: #efd7a4;
  line-height: 1.3;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__portrait--subject .teaching-team-card__subject-icon {
  margin-bottom: 4.4rem;
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__teacher-illustration {
  position: relative;
  z-index: 1;
  width: 7rem;
  height: 8rem;
  display: grid;
  place-items: center;
  margin-bottom: 4.5rem;
  border-radius: 50% 50% 1.8rem 1.8rem;
  background: rgba(255, 255, 255, .065);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 14px 35px rgba(12,44,40,.2);
}

body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__teacher-illustration svg {
  width: 5.5rem;
  height: 6.5rem;
  overflow: visible;
  fill: rgba(232, 201, 137, .07);
  stroke: #ead3a5;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.teacher-profile-dialog__portrait > svg {
  width: min(12rem, 80%);
  height: auto;
  fill: rgba(255, 255, 255, .06);
  stroke: #efd7a4;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Roomier hourly-price editor in the admin panel. */
.individual-lesson-pricing {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem 1.25rem;
  padding: 1.25rem;
}

.individual-lesson-pricing > div:first-child {
  grid-column: 1 / -1;
}

.individual-lesson-pricing__fields {
  grid-template-columns: repeat(4, minmax(135px, 1fr));
  gap: .8rem;
}

.individual-lesson-pricing__fields label {
  gap: .45rem;
  padding: .7rem;
  border: 1px solid #dce6e3;
  border-radius: .8rem;
  background: #fff;
  font-size: .78rem;
}

.individual-lesson-pricing__fields label > div {
  gap: .45rem;
}

.individual-lesson-pricing__fields input {
  min-width: 90px;
  min-height: 48px;
  padding: .75rem .8rem;
  border-radius: .65rem;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.individual-lesson-pricing__fields em {
  font-size: .7rem;
}

.individual-lesson-pricing #saveIndividualLessonPrices {
  min-width: 125px;
  min-height: 48px;
}

@media (max-width: 1050px) {
  .individual-lesson-pricing { grid-template-columns: 1fr; }
  .individual-lesson-pricing__fields { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .individual-lesson-pricing #saveIndividualLessonPrices { width: 100%; }
}

@media (max-width: 560px) {
  .individual-lesson-pricing__fields { grid-template-columns: 1fr; }
}

/* Structured admin navigation follows the site's real management workflow. */
.dashboard-sidebar {
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

.dashboard-nav {
  gap: .32rem;
}

.dashboard-nav__group {
  display: block;
  margin-top: .7rem;
  padding: .55rem .75rem .25rem;
  border-top: 1px solid rgba(22, 92, 136, .09);
  color: #829198;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .025em;
}

.dashboard-nav__group:first-child {
  margin-top: 0;
  border-top: 0;
}

.dashboard-nav a {
  padding: .72rem .85rem;
  border-radius: .75rem;
  font-size: .76rem;
}

/* Keep the pricing action on its own row so it never overlaps price inputs. */
.individual-lesson-pricing {
  grid-template-columns: minmax(0, 1fr);
}

.individual-lesson-pricing__fields {
  width: 100%;
}

.individual-lesson-pricing #saveIndividualLessonPrices {
  grid-column: 1 / -1;
  width: auto;
  min-width: 165px;
  justify-self: end;
  margin-top: .15rem;
}

@media (max-width: 700px) {
  .individual-lesson-pricing #saveIndividualLessonPrices {
    width: 100%;
    justify-self: stretch;
  }
}

.enrollment-status-badge {
  width: fit-content;
  min-width: 105px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .52rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 850;
}

.enrollment-status-badge--review { background: #fff2d9; color: #8a632d; }
.enrollment-status-badge--confirmed { background: #e7f1ee; color: #2d6659; }
.enrollment-status-badge--completed { background: #e4eef7; color: #315f7d; }
.enrollment-status-badge--cancelled { background: #f6e7e5; color: #994e46; }

.course-student-roster > div > .button {
  min-width: 125px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card {
    grid-template-columns: 1fr;
  }

  body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__identity h3 {
    font-size: 1.08rem;
  }
}

/* Cumulative course attendance overview. */
.teacher-course-overview {
  margin-top: 1.15rem;
  padding: 1rem;
  border: 1px solid #dbe7e4;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 58, 66, .07);
}

.teacher-registration-overview {
  margin-top: 1.15rem;
  padding: 1rem;
  border: 1px solid #dbe7e4;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 58, 66, .07);
}

.teacher-registration-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin: .8rem 0 .9rem;
}

.teacher-registration-stats > span {
  display: grid;
  gap: .12rem;
  padding: .72rem;
  border: 1px solid #e1ebe8;
  border-radius: .85rem;
  background: #f7faf9;
  color: #60757a;
  font-size: .72rem;
  font-weight: 750;
  text-align: center;
}

.teacher-registration-stats strong { color: #123f4b; font-size: 1.4rem; }
.teacher-registration-stats .confirmed strong,
.teacher-registration-stats .paid strong { color: #287761; }
.teacher-registration-stats .review strong { color: #a8742e; }

.teacher-registration-student { display: grid; gap: .12rem; min-width: 145px; }
.teacher-registration-student strong { color: #173f49; }
.teacher-registration-student small { color: #77888c; font-size: .67rem; }

.teacher-registration-badge {
  display: inline-flex;
  min-width: 82px;
  justify-content: center;
  padding: .32rem .56rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 850;
  white-space: nowrap;
}

.teacher-registration-badge.positive { background: #e4f2ec; color: #26745d; }
.teacher-registration-badge.pending { background: #fff1d6; color: #8c6425; }
.teacher-registration-badge.cancelled { background: #f8e6e4; color: #a04f48; }
.teacher-registration-badge.neutral { background: #edf1f2; color: #607277; }
.teacher-money { direction: rtl; white-space: nowrap; font-weight: 850; }
.teacher-money.paid,
.teacher-money.settled { color: #287761; }
.teacher-money.remaining { color: #9a5a39; }
.teacher-financial-summary { margin-top: .9rem; padding: 1rem; border: 1px solid #dce8e5; border-radius: 1rem; background: linear-gradient(145deg, #fbfdfc, #f3f8f6); }
.teacher-financial-summary__heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.teacher-financial-summary__heading span { color: #a6763f; font-size: .62rem; font-weight: 900; }
.teacher-financial-summary__heading h3 { margin: .1rem 0 0; color: #173f49; font-size: .92rem; }
.teacher-financial-summary__heading small { color: #85938f; font-size: .58rem; }
.teacher-financial-summary__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .62rem; }
.teacher-financial-summary__grid article { display: grid; gap: .2rem; padding: .78rem; border: 1px solid #e2ebe8; border-radius: .78rem; background: rgba(255,255,255,.88); }
.teacher-financial-summary__grid span { color: #687b76; font-size: .62rem; font-weight: 800; }
.teacher-financial-summary__grid strong { color: #244f48; font-size: 1.08rem; direction: rtl; }
.teacher-financial-summary__grid small { color: #929e9a; font-size: .53rem; }
.teacher-financial-summary__grid .collected strong, .teacher-financial-summary__grid .rate strong { color: #287761; }
.teacher-financial-summary__grid .remaining strong { color: #a15b3d; }
.teacher-financial-progress { height: .38rem; margin-top: .75rem; overflow: hidden; border-radius: 999px; background: #dfe9e6; }
.teacher-financial-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b07e43, #37836e); transition: width .45s ease; }
.teacher-revenue-share { display: grid; grid-template-columns: .72fr 1.15fr .9fr 1.25fr; gap: .62rem; margin-top: .72rem; padding-top: .72rem; border-top: 1px solid #dce7e4; }
.teacher-revenue-share > div { display: grid; align-content: center; gap: .16rem; min-height: 4.3rem; padding: .7rem; border-radius: .72rem; background: #edf5f2; }
.teacher-revenue-share span { color: #647872; font-size: .59rem; font-weight: 800; }
.teacher-revenue-share strong { color: #295f53; font-size: .93rem; direction: rtl; }
.teacher-revenue-share small { color: #82928d; font-size: .5rem; }
.teacher-revenue-share .teacher-share { border: 1px solid rgba(176,126,67,.3); background: #fff8ed; }
.teacher-revenue-share .teacher-share strong { color: #9a682e; font-size: 1.12rem; }
.teacher-monthly-due { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .65rem; }
.teacher-monthly-due article { display: grid; gap: .22rem; padding: .85rem; border: 1px solid #e1ebe8; border-radius: .8rem; background: #fff; }
.teacher-monthly-due span { color: #657973; font-size: .63rem; font-weight: 800; }
.teacher-monthly-due strong { color: #285f53; font-size: 1.15rem; direction: rtl; }
.teacher-monthly-due .due { border-color: rgba(176,126,67,.3); background: #fff8ed; }
.teacher-monthly-due .due strong { color: #96652e; font-size: 1.3rem; }
.teacher-monthly-due .remaining strong { color: #a15b3d; }
.teacher-financial-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .35rem; margin-bottom: .75rem; padding: .3rem; border-radius: .72rem; background: #eaf1ef; }
.teacher-financial-tabs button { padding: .58rem; border: 0; border-radius: .55rem; background: transparent; color: #6d7f7a; font: inherit; font-size: .64rem; font-weight: 850; cursor: pointer; }
.teacher-financial-tabs button.active { background: #fff; color: #315f55; box-shadow: 0 3px 10px rgba(38,76,68,.08); }
.teacher-financial-tabs b { min-width: 1.1rem; height: 1.1rem; display: inline-grid; place-items: center; margin-inline-start: .25rem; border-radius: 50%; background: #ae613e; color: #fff; font-size: .48rem; }
.teacher-financial-tabs b[hidden] { display: none; }
.teacher-financial-pane[hidden] { display: none; }
.teacher-monthly-due--collections { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: .7rem; }
.teacher-dues-rate { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; padding: .65rem .75rem; border-radius: .68rem; background: #edf5f2; }
.teacher-dues-rate span { color: #60756f; font-size: .62rem; font-weight: 800; }
.teacher-dues-rate strong { color: #286252; font-size: 1rem; }
.teacher-dues-note { display: flex; align-items: center; gap: .5rem; margin: 0 0 .55rem; padding: .55rem .65rem; border: 1px solid #dce8e4; border-radius: .65rem; background: #f5f9f7; color: #647973; font-size: .56rem; line-height: 1.65; }
.teacher-dues-note i { width: 1.35rem; height: 1.35rem; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e1eee9; color: #397563; font-size: .72rem; font-style: normal; font-weight: 900; }
.teacher-installment-history--dues .teacher-installment-history__amount > span { display: none; }
.teacher-installment-history--dues .teacher-installment-history__amount { justify-content: flex-end; }
.teacher-installment-history .collection-only .teacher-installment-history__amount b { color: #a15b3d; }
.teacher-dues-ledger { position: relative; display: grid; gap: .5rem; }
.teacher-dues-ledger::before { content: ''; position: absolute; top: .8rem; bottom: .8rem; right: .66rem; width: 1px; background: #d9e5e1; }
.teacher-dues-ledger article { position: relative; display: grid; grid-template-columns: 1.35rem minmax(8rem,1fr) minmax(7rem,.65fr) auto auto; align-items: center; gap: .65rem; min-height: 4.2rem; padding: .68rem .45rem .68rem .75rem; border-bottom: 1px solid #e4ece9; background: transparent; }
.teacher-dues-ledger article > i { z-index: 1; width: .72rem; height: .72rem; justify-self: center; border: 3px solid #f8fbfa; border-radius: 50%; background: #aebbb7; box-shadow: 0 0 0 1px #cddad6; }
.teacher-due-row__identity, .teacher-due-row__amount { display: grid; gap: .14rem; }
.teacher-due-row__identity strong { color: #315f55; font-size: .7rem; }
.teacher-due-row__identity small, .teacher-due-row__amount span, .teacher-due-row__amount small { color: #879590; font-size: .53rem; }
.teacher-due-row__amount small { color: #9a7b55; }
.teacher-due-row__amount b { color: #99652e; font-size: .82rem; direction: rtl; }
.teacher-dues-ledger article > em { padding: .3rem .55rem; border-radius: 999px; background: #edf1f0; color: #75847f; font-size: .53rem; font-style: normal; font-weight: 850; white-space: nowrap; }
.teacher-dues-ledger article.is-due > i { background: #b87a36; box-shadow: 0 0 0 1px #d4a56d; }
.teacher-dues-ledger article.is-due > em { background: #fff0d9; color: #976029; }
.teacher-dues-ledger article.is-paid > i { background: #3f8a72; box-shadow: 0 0 0 1px #6ba895; }
.teacher-dues-ledger article.is-paid > em { background: #dff1e9; color: #26715b; }
.teacher-settlement-files { display: flex; flex-wrap: wrap; gap: .28rem; justify-content: flex-end; }
.teacher-settlement-files a { padding: .34rem .52rem; border: 1px solid #c9ddd6; border-radius: .48rem; background: #fff; color: #315f55; font-size: .53rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.teacher-dues-ledger > p { margin: 0; padding: .8rem; color: #82918c; font-size: .62rem; text-align: center; }
@media (max-width: 580px) { .teacher-dues-ledger article { grid-template-columns: 1.25rem minmax(0,1fr) auto; } .teacher-due-row__amount { grid-column: 2; } .teacher-dues-ledger article > em { grid-column: 3; grid-row: 1 / span 2; } .teacher-settlement-files { grid-column: 2 / -1; justify-content: flex-start; } }
.teacher-monthly-history { margin-top: .7rem; border-top: 1px solid #dce7e4; }
.teacher-monthly-history summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .72rem .15rem .15rem; color: #395f57; cursor: pointer; list-style: none; }
.teacher-monthly-history summary::-webkit-details-marker { display: none; }
.teacher-monthly-history summary span { font-size: .65rem; font-weight: 900; }
.teacher-monthly-history summary small { color: #84938e; font-size: .55rem; }
.teacher-monthly-history__rows { display: grid; gap: .4rem; padding-top: .6rem; }
.teacher-monthly-history__rows > div { display: grid; grid-template-columns: minmax(7rem,.7fr) minmax(0,1fr) auto; align-items: center; gap: .7rem; padding: .62rem .7rem; border-radius: .65rem; background: #f5f9f7; }
.teacher-monthly-history__rows span { color: #355e55; font-size: .65rem; font-weight: 850; }
.teacher-monthly-history__rows small { color: #7c8d88; font-size: .56rem; }
.teacher-monthly-history__rows strong { color: #9a682e; font-size: .72rem; direction: rtl; }
.teacher-monthly-history__rows p { margin: 0; padding: .7rem; color: #84938e; font-size: .62rem; text-align: center; }
.teacher-installment-history { display: grid; gap: .45rem; padding-top: .6rem; }
.teacher-installment-history article { display: grid; grid-template-columns: minmax(7.5rem,.65fr) minmax(10rem,1fr); gap: .25rem .8rem; align-items: center; padding: .68rem .72rem; border: 1px solid #e4ecea; border-radius: .7rem; background: #fff; }
.teacher-installment-history article > div:first-child { display: grid; gap: .12rem; }
.teacher-installment-history strong { color: #355f56; font-size: .66rem; }
.teacher-installment-history small { color: #899792; font-size: .52rem; }
.teacher-installment-history__amount { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; }
.teacher-installment-history__amount span { color: #637873; font-size: .58rem; }
.teacher-installment-history__amount b { color: #98662e; font-size: .64rem; }
.teacher-installment-history__amount em { padding: .22rem .45rem; border-radius: 999px; color: #7b6850; background: #f3eee6; font-size: .5rem; font-style: normal; font-weight: 850; white-space: nowrap; }
.teacher-installment-history article.is-paid { border-color: #c9e1d9; background: #f5fbf8; }
.teacher-installment-history article.is-paid .teacher-installment-history__amount em { color: #26715b; background: #dff1e9; }
.teacher-installment-history article.is-due .teacher-installment-history__amount em { color: #976029; background: #fff0d9; }
.teacher-installment-history__bar { grid-column: 1 / -1; height: .3rem; overflow: hidden; border-radius: 999px; background: #e4ece9; }
.teacher-installment-history__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #af7c42, #4b8a78); transition: width .4s ease; }
.teacher-installment-history > p { margin: 0; padding: .7rem; color: #84938e; font-size: .62rem; text-align: center; }
@media (max-width: 760px) { .teacher-financial-summary__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) { .teacher-revenue-share { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .teacher-monthly-due { grid-template-columns: 1fr; } .teacher-monthly-history__rows > div { grid-template-columns: 1fr auto; } .teacher-monthly-history__rows small { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 560px) { .teacher-installment-history article { grid-template-columns: 1fr; } .teacher-installment-history__amount { justify-content: space-between; } }
.admin-teacher-payouts { margin-top: 1rem; padding: 1rem; border: 1px solid #dfe9e6; border-radius: .9rem; background: #f8fbfa; }
.admin-teacher-payouts__heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.admin-teacher-payouts__heading > div span { color: #a6763f; font-size: .6rem; font-weight: 900; }
.admin-teacher-payouts__heading h3 { margin: .12rem 0 0; color: #294e48; font-size: .92rem; }
.admin-teacher-payouts__heading label { width: min(100%,22rem); display: grid; gap: .25rem; color: #687c76; font-size: .58rem; font-weight: 800; }
.admin-teacher-payouts__heading select { padding: .6rem; border: 1px solid #d5e2de; border-radius: .62rem; background: #fff; font: inherit; }
.admin-teacher-payouts__controls { width: min(100%, 34rem); display: flex; align-items: end; justify-content: flex-end; gap: .55rem; }
.admin-teacher-payouts__controls > button { min-height: 2.25rem; padding: .55rem .72rem; border: 1px solid #c9ddd6; border-radius: .6rem; background: #fff; color: #315f55; font: inherit; font-size: .58rem; font-weight: 850; cursor: pointer; white-space: nowrap; }
.teacher-payout-preview > div:first-child i { width: max-content; padding: .18rem .38rem; border-radius: 999px; background: #fff0d9; color: #976029; font-size: .48rem; font-style: normal; font-weight: 900; }
#adminTeacherPayoutRows { display: grid; gap: .48rem; }
#adminTeacherPayoutRows > p { margin: 0; padding: .8rem; color: #81908c; font-size: .65rem; text-align: center; }
#adminTeacherPayoutRows article { display: grid; grid-template-columns: minmax(8rem,.8fr) minmax(10rem,1fr) auto auto; align-items: center; gap: .6rem; padding: .7rem; border: 1px solid #e1eae7; border-radius: .7rem; background: #fff; }
#adminTeacherPayoutRows article > div { display: grid; gap: .12rem; }
#adminTeacherPayoutRows strong { color: #315f55; font-size: .68rem; }
#adminTeacherPayoutRows span, #adminTeacherPayoutRows small { color: #81908c; font-size: .54rem; }
#adminTeacherPayoutRows b { color: #95632d; font-size: .65rem; }
#adminTeacherPayoutRows button { padding: .45rem .65rem; border: 0; border-radius: .55rem; background: #315f55; color: #fff; font: inherit; font-size: .58rem; font-weight: 850; cursor: pointer; }
#adminTeacherPayoutRows button:disabled { background: #e4ebe9; color: #87938f; cursor: default; }
.teacher-settlement-link { padding: .42rem .58rem; border: 1px solid #c9dcd6; border-radius: .55rem; color: #315f55; font-size: .56rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
#adminTeacherPayoutRows article.is-paid { border-color: #cce2db; background: #f4fbf8; }
.enrollment-financial-plan { display: grid; grid-template-columns: auto minmax(8rem,.7fr) minmax(10rem,1fr) auto; align-items: center; gap: .5rem; margin: .65rem 0; padding: .65rem; border: 1px solid #e2ebe8; border-radius: .7rem; background: #f7faf9; }
.enrollment-financial-plan > span { color: #355f55; font-size: .62rem; font-weight: 900; }
.enrollment-financial-plan input, .enrollment-financial-plan select { min-width: 0; padding: .52rem; border: 1px solid #d5e1de; border-radius: .55rem; background: #fff; font: inherit; font-size: .62rem; }
.enrollment-financial-plan button { padding: .52rem .7rem; border: 0; border-radius: .55rem; background: #315f55; color: #fff; font: inherit; font-size: .58rem; font-weight: 850; cursor: pointer; }
.payment-ledger-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .3rem; padding: .28rem; border-radius: .68rem; background: #edf3f1; }
.payment-ledger-tabs button { padding: .52rem; border: 0; border-radius: .5rem; background: transparent; color: #71827d; font: inherit; font-size: .6rem; font-weight: 850; cursor: pointer; }
.payment-ledger-tabs button.active { background: #fff; color: #315f55; box-shadow: 0 3px 10px rgba(38,76,68,.08); }
.payment-ledger-pane { padding-top: .2rem; }
.payment-ledger-pane[hidden] { display: none; }
.payment-ledger-pane .enrollment-financial-plan { margin: 0; }
.payment-ledger-pane .payment-history { margin-top: 0; }
.student-course-manage-label { color: #9a6e3a; font-size: .6rem; font-weight: 900; white-space: nowrap; }
.admin-payment-workspace { width: min(900px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; overflow: hidden; border: 0; border-radius: 1rem; background: #fff; box-shadow: 0 28px 80px rgba(17,48,42,.28); }
.admin-payment-workspace[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.admin-payment-workspace::backdrop { background: rgba(12,35,31,.58); backdrop-filter: blur(3px); }
.admin-payment-workspace > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid #e1ebe8; background: linear-gradient(135deg,#254f48,#315f55); }
.admin-payment-workspace > header span { color: #d8c69e; font-size: .57rem; font-weight: 900; }
.admin-payment-workspace > header h2 { margin: .1rem 0 0; color: #fff; font-size: 1rem; }
.admin-payment-workspace > header button { width: 2rem; height: 2rem; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.2rem; cursor: pointer; }
.admin-payment-workspace__body { padding: 1rem; overflow: auto; background: #f8fbfa; }
.admin-payment-workspace__body .payment-ledger { display: grid; gap: .72rem; padding: 0; border: 0; background: transparent; }
.admin-payment-workspace__body .payment-ledger__header { padding: .75rem; border: 1px solid #e0eae7; border-radius: .72rem; background: #fff; }
.admin-payment-workspace .payment-entry-form input,
.admin-payment-workspace .payment-entry-form select,
.admin-payment-workspace .payment-entry-form button {
  min-height: 40px;
  padding: .5rem .62rem;
  font-family: inherit;
  font-size: .68rem;
  line-height: 1.35;
}
.admin-payment-workspace .payment-entry-form input::placeholder { font-size: .66rem; }
@media (max-width: 650px) { .enrollment-financial-plan { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .admin-teacher-payouts__heading { align-items: stretch; flex-direction: column; } .admin-teacher-payouts__heading label { width: 100%; } .admin-teacher-payouts__controls { width: 100%; align-items: stretch; flex-direction: column; } #adminTeacherPayoutRows article { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .teacher-financial-summary__heading { align-items: start; flex-direction: column; } .teacher-financial-summary__grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .teacher-revenue-share { grid-template-columns: 1fr; } }

.teacher-course-overview__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin: .8rem 0 .9rem;
}

.teacher-course-overview__stats > span {
  display: grid;
  gap: .12rem;
  padding: .72rem;
  border: 1px solid #e1ebe8;
  border-radius: .85rem;
  background: #f7faf9;
  color: #60757a;
  font-size: .72rem;
  font-weight: 750;
  text-align: center;
}

.teacher-course-overview__stats strong {
  color: #123f4b;
  font-size: 1.4rem;
}

.teacher-course-overview__stats .rate strong { color: #287761; }
.teacher-course-overview__stats .absence strong { color: #a6534c; }

.teacher-course-overview__grid {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.7fr);
  gap: .9rem;
  align-items: start;
}

.teacher-course-trend-card {
  padding: .9rem;
  border: 1px solid #e1ebe8;
  border-radius: .9rem;
  background: linear-gradient(145deg, #fbfdfc, #f2f7f5);
}

.teacher-course-trend-card h3 {
  margin: 0 0 .85rem;
  color: #153f4a;
  font-size: .88rem;
}

.teacher-course-trend {
  display: grid;
  gap: .65rem;
  max-height: 240px;
  overflow-y: auto;
  padding-inline-end: .15rem;
}

.teacher-course-trend__row {
  display: grid;
  grid-template-columns: 68px minmax(70px, 1fr) 42px;
  align-items: center;
  gap: .5rem;
}

.teacher-course-trend__row time,
.teacher-course-trend__row strong {
  color: #5d7075;
  font-size: .68rem;
  font-weight: 800;
}

.teacher-course-trend__track {
  height: .58rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebe9;
}

.teacher-course-trend__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b7863, #56a589);
}

.teacher-course-rate {
  display: inline-flex;
  min-width: 64px;
  justify-content: center;
  padding: .3rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 850;
}

.teacher-course-rate.high { background: #e4f2ec; color: #26745d; }
.teacher-course-rate.medium { background: #fff1d6; color: #8c6425; }
.teacher-course-rate.low { background: #f8e6e4; color: #a04f48; }

.teacher-course-overview__empty {
  margin: .5rem 0 0;
  color: #718287;
  font-size: .75rem;
}

.teacher-tab-panel.teacher-daily-results,
.teacher-tab-panel.teacher-course-overview,
.teacher-tab-panel.teacher-registration-overview {
  margin-top: 0;
}

@media (max-width: 820px) {
  .teacher-workspace-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacher-course-overview__grid { grid-template-columns: 1fr; }
  .teacher-course-overview__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacher-registration-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .teacher-workspace-tabs { gap: .35rem; padding: .35rem; }
  .teacher-workspace-tabs button { min-height: 56px; padding: .5rem; }
  .teacher-workspace-tabs button > span { width: 1.75rem; height: 1.75rem; }
  .teacher-workspace-tabs button strong { font-size: .7rem; }
  .teacher-workspace-tabs button small { display: none; }
  .teacher-course-overview { padding: .75rem; }
  .teacher-course-summary-table { min-width: 540px; }
  .teacher-registration-overview { padding: .75rem; }
  .teacher-registration-table { min-width: 720px; }
}

/* Professional admin workspace overview and separated pricing settings. */
.admin-overview__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.admin-overview__stats > a {
  position: relative;
  min-height: 8.4rem;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(49, 95, 85, .1);
  border-radius: 1rem;
  background: linear-gradient(145deg, #fff, #f8fbfa);
  color: #53696e;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(23, 63, 80, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.admin-overview__stats > a::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #315f55;
}
.admin-overview__stats > a[data-variant="lessons"]::before { background: #b27c45; }
.admin-overview__stats > a[data-variant="payments"]::before { background: #a55d58; }
.admin-overview__stats > a:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 95, 85, .22);
  box-shadow: 0 16px 32px rgba(23, 63, 80, .09);
}
.admin-overview__stats span { font-size: .76rem; font-weight: 800; }
.admin-overview__stats strong { margin: .35rem 0 .1rem; color: #173f50; font-size: 2rem; line-height: 1; }
.admin-overview__stats small { margin-top: auto; color: #819095; font-size: .68rem; }
.admin-overview__stats i { position: absolute; inset: auto auto .8rem .85rem; color: #b27c45; font-style: normal; }
.admin-overview__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(15rem, .75fr);
  gap: 1rem;
  align-items: start;
}
.admin-overview__priorities,
.admin-overview__quick-actions {
  padding: 1.1rem;
  border: 1px solid rgba(49, 95, 85, .1);
  border-radius: 1rem;
  background: #fff;
}
.admin-overview__section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}
.admin-overview__section-title span,
.admin-overview__quick-actions > span { color: #b27c45; font-size: .68rem; font-weight: 900; }
.admin-overview__section-title h3,
.admin-overview__quick-actions h3 { margin: .15rem 0 0; color: #173f50; font-size: 1rem; }
.admin-overview__section-title button {
  padding: .45rem .75rem;
  border: 1px solid rgba(49, 95, 85, .14);
  border-radius: .55rem;
  background: #f7faf9;
  color: #315f55;
  font-family: inherit;
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
}
#adminOverviewPriorities { display: grid; gap: .55rem; }
.admin-overview-priority {
  display: grid;
  grid-template-columns: .5rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .7rem;
  padding: .75rem;
  border-radius: .75rem;
  background: #f8faf9;
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.admin-overview-priority:hover { transform: translateX(-3px); background: #f1f6f4; }
.admin-overview-priority > i { width: .5rem; height: .5rem; border-radius: 50%; background: #b27c45; }
.admin-overview-priority--danger > i { background: #a55d58; }
.admin-overview-priority--soon > i { background: #70899d; }
.admin-overview-priority div strong,
.admin-overview-priority div span { display: block; }
.admin-overview-priority div strong { color: #294c53; font-size: .78rem; }
.admin-overview-priority div span { margin-top: .15rem; color: #7a8a8f; font-size: .68rem; }
.admin-overview-priority > b { min-width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #315f55; font-size: .74rem; }
.admin-overview-priority > em { color: #315f55; font-size: .66rem; font-style: normal; font-weight: 900; }
.admin-overview__quick-actions { display: flex; flex-direction: column; gap: .55rem; background: linear-gradient(155deg, #173f50, #315f55); }
.admin-overview__quick-actions h3 { margin-bottom: .25rem; color: #fff; }
.admin-overview__quick-actions > a {
  display: block;
  padding: .7rem .75rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .7rem;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.admin-overview__quick-actions > a:hover { transform: translateX(-3px); background: rgba(255, 255, 255, .11); }
.admin-overview__quick-actions strong,
.admin-overview__quick-actions small { display: block; }
.admin-overview__quick-actions strong { font-size: .76rem; }
.admin-overview__quick-actions small { margin-top: .15rem; color: rgba(255, 255, 255, .62); font-size: .64rem; }
.lesson-pricing-settings__notice {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(176, 138, 85, .2);
  border-radius: .85rem;
  background: #fffaf2;
}
.lesson-pricing-settings__notice > span { width: 1.65rem; height: 1.65rem; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #b08a55; color: #fff; font-family: Georgia, serif; font-weight: 900; }
.lesson-pricing-settings__notice strong { display: block; color: #624e31; font-size: .78rem; }
.lesson-pricing-settings__notice p { margin: .2rem 0 0; color: #806f57; font-size: .7rem; line-height: 1.65; }
.individual-lesson-pricing--settings { margin: 0; border-radius: 1rem; }
@media (max-width: 1050px) {
  .admin-overview__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .admin-overview__layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .admin-overview__stats { grid-template-columns: 1fr; }
  .admin-overview__stats > a { min-height: 7rem; }
  .admin-overview-priority { grid-template-columns: .5rem minmax(0, 1fr) auto; }
  .admin-overview-priority > em { display: none; }
}

/* Complete student profile inside the admin directory. */
.directory-student-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .25rem;
}
.directory-student-section-title span { color: #b27c45; font-size: .66rem; font-weight: 900; }
.directory-student-section-title h3 { margin: .12rem 0 0; color: #173f50; font-size: 1rem; }
.directory-student-section-title > strong { padding: .35rem .65rem; border-radius: 999px; background: #e8f1ee; color: #315f55; font-size: .72rem; }
.directory-student-courses { display: grid; gap: .8rem; }
.directory-student-course {
  overflow: hidden;
  border: 1px solid rgba(49, 95, 85, .12);
  border-radius: .9rem;
  background: #fff;
}
.directory-student-course__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  background: linear-gradient(135deg, #f7faf9, #fff);
  border-bottom: 1px solid rgba(49, 95, 85, .09);
}
.directory-student-course__header > div:first-child > span { color: #b27c45; font-size: .64rem; font-weight: 900; }
.directory-student-course__header h4 { margin: .15rem 0; color: #173f50; font-size: .92rem; }
.directory-student-course__header p { margin: 0; color: #728388; font-size: .7rem; }
.directory-course-status { display: grid; justify-items: end; gap: .25rem; }
.directory-course-status strong,
.directory-course-status small { padding: .3rem .55rem; border-radius: 999px; font-size: .65rem; }
.directory-course-status strong { background: #e4efeb; color: #315f55; }
.directory-course-status small { background: #f6efe5; color: #8a673e; }
.directory-student-course__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  padding: .8rem 1rem;
}
.directory-student-course__facts > div {
  min-width: 0;
  padding: .6rem;
  border-radius: .65rem;
  background: #f8faf9;
}
.directory-student-course__facts span,
.directory-student-course__facts strong { display: block; }
.directory-student-course__facts span { margin-bottom: .2rem; color: #849196; font-size: .61rem; }
.directory-student-course__facts strong { overflow-wrap: anywhere; color: #36575d; font-size: .7rem; line-height: 1.5; }
.directory-student-payments {
  margin: 0 1rem 1rem;
  padding: .75rem;
  border: 1px dashed rgba(49, 95, 85, .18);
  border-radius: .7rem;
  background: #fcfdfd;
}
.directory-student-payments > strong { display: block; margin-bottom: .45rem; color: #315f55; font-size: .72rem; }
.directory-student-payments > p { margin: 0; color: #829095; font-size: .68rem; }
.directory-student-payments > div {
  display: grid;
  grid-template-columns: 7rem 7rem minmax(0, 1fr);
  gap: .6rem;
  align-items: center;
  padding: .45rem 0;
  border-top: 1px solid #edf2f0;
}
.directory-student-payments span,
.directory-student-payments small { color: #7a898e; font-size: .65rem; }
.directory-student-payments strong { color: #294f48; font-size: .7rem; }
@media (max-width: 900px) {
  .directory-student-course__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .directory-student-course__header { align-items: flex-start; flex-direction: column; }
  .directory-course-status { justify-items: start; }
  .directory-student-course__facts { grid-template-columns: 1fr; }
  .directory-student-payments > div { grid-template-columns: 1fr auto; }
  .directory-student-payments > div small { grid-column: 1 / -1; }
}

/* Teacher portal account management inside each teacher profile. */
.teacher-account-panel {
  grid-column: 1 / -1;
  margin-top: .35rem;
  padding: .9rem;
  border: 1px solid rgba(49, 95, 85, .14);
  border-radius: .85rem;
  background: linear-gradient(145deg, #f7faf9, #fff);
}
.teacher-account-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.teacher-account-panel__header span,
.teacher-account-panel__header strong { display: block; }
.teacher-account-panel__header span { color: #b27c45; font-size: .64rem; font-weight: 900; }
.teacher-account-panel__header strong { margin-top: .12rem; color: #173f50; font-size: .86rem; }
.teacher-account-panel__header b {
  padding: .32rem .6rem;
  border-radius: 999px;
  background: #f4e8e6;
  color: #985d57;
  font-size: .65rem;
}
.teacher-account-panel__header b.active { background: #e1eee9; color: #315f55; }
.teacher-account-panel__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: end;
}
.teacher-account-panel__form label { display: grid; gap: .3rem; }
.teacher-account-panel__form label > span { color: #63777c; font-size: .68rem; font-weight: 800; }
.teacher-account-panel__form input {
  min-height: 42px;
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid rgba(49, 95, 85, .16);
  border-radius: .65rem;
  background: #fff;
  color: #294c53;
  font: inherit;
  font-size: .76rem;
}
.teacher-account-panel__form button { min-height: 42px; white-space: nowrap; }
.teacher-account-panel__hint { display: block; margin-top: .55rem; color: #849196; font-size: .63rem; line-height: 1.6; }
.teacher-account-panel__message { margin-top: .6rem; padding: .55rem .7rem; border-radius: .55rem; font-size: .68rem; }
.teacher-account-panel__message.success { background: #e4f1ec; color: #285f4e; }
.teacher-account-panel__message.error { background: #f6e7e5; color: #924f49; }
.teacher-account-panel__message[hidden] { display: none; }
@media (max-width: 760px) {
  .teacher-account-panel__form { grid-template-columns: 1fr; }
  .teacher-account-panel__form button { width: 100%; }
}

/* Persistent admin media library. */
.media-library-upload {
  padding: 1.1rem;
  border: 1px solid rgba(49, 95, 85, .12);
  border-radius: 1rem;
  background: linear-gradient(145deg, #f7faf9, #fff);
}
.media-library-upload__intro span,
.media-library-upload__intro strong,
.media-library-upload__intro small { display: block; }
.media-library-upload__intro span { color: #b27c45; font-size: .67rem; font-weight: 900; }
.media-library-upload__intro strong { margin-top: .12rem; color: #173f50; font-size: 1rem; }
.media-library-upload__intro small { margin-top: .2rem; color: #829095; font-size: .66rem; }
.media-library-upload__form {
  display: grid;
  grid-template-columns: minmax(13rem, 1.25fr) minmax(9rem, .65fr) minmax(13rem, 1fr) auto;
  gap: .65rem;
  align-items: end;
  margin-top: .9rem;
}
.media-library-upload__form label { display: grid; gap: .3rem; }
.media-library-upload__form label > span { color: #61757a; font-size: .68rem; font-weight: 800; }
.media-library-upload__form input,
.media-library-upload__form select {
  min-height: 42px;
  width: 100%;
  padding: .62rem .7rem;
  border: 1px solid rgba(49, 95, 85, .16);
  border-radius: .65rem;
  background: #fff;
  color: #385b60;
  font: inherit;
  font-size: .73rem;
}
.media-library-upload__form button { min-height: 42px; white-space: nowrap; }
.media-upload-queue { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
.media-upload-queue:empty { display: none; }
.media-upload-queue__item { width: 15rem; display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: center; gap: .5rem; padding: .4rem; border: 1px solid #e2ebe8; border-radius: .65rem; background: #fff; }
.media-upload-queue__item img { width: 3rem; height: 3rem; border-radius: .45rem; object-fit: cover; }
.media-upload-queue__item label { display: grid; gap: .18rem; }
.media-upload-queue__item label span { color: #718489; font-size: .56rem; font-weight: 800; }
.media-upload-queue__item input { min-width: 0; width: 100%; padding: .34rem .4rem; border: 1px solid #dce7e4; border-radius: .4rem; color: #36575d; font: inherit; font-size: .62rem; }
.media-upload-queue__item small { display: block; margin-top: .15rem; color: #89969a; font-size: .55rem; }
.media-library-message { margin-top: .7rem; padding: .6rem .75rem; border-radius: .6rem; font-size: .7rem; }
.media-library-message.success { background: #e3f0eb; color: #2c6252; }
.media-library-message.error { background: #f6e6e4; color: #96534d; }
.media-library-message[hidden] { display: none; }
.media-library-toolbar { display: flex; align-items: center; gap: .7rem; margin: 1.1rem 0 .75rem; }
.media-library-toolbar > div { margin-inline-end: auto; }
.media-library-toolbar span,
.media-library-toolbar strong { display: block; }
.media-library-toolbar span { color: #839196; font-size: .65rem; }
.media-library-toolbar strong { margin-top: .1rem; color: #173f50; font-size: .9rem; }
.media-library-toolbar select { min-height: 39px; padding: .55rem .7rem; border: 1px solid rgba(49, 95, 85, .14); border-radius: .6rem; background: #fff; color: #456469; font: inherit; font-size: .7rem; }
.media-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.media-library-card { overflow: hidden; border: 1px solid rgba(49, 95, 85, .12); border-radius: .9rem; background: #fff; box-shadow: 0 9px 24px rgba(23, 63, 80, .055); }
.media-library-card > img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; background: #eef3f1; }
.media-library-card__body { padding: .7rem .75rem .55rem; }
.media-library-card__body span,
.media-library-card__body strong,
.media-library-card__body small { display: block; }
.media-library-card__category { width: auto; max-width: 100%; padding: .28rem 1.65rem .28rem .55rem; border: 1px solid rgba(49, 95, 85, .12); border-radius: 999px; background-color: #e8f1ee; color: #315f55; font: inherit; font-size: .58rem; font-weight: 850; cursor: pointer; }
.media-library-card__category:disabled { cursor: wait; opacity: .65; }
.media-library-card__body strong { margin-top: .45rem; overflow: hidden; color: #294e55; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.media-library-card__body small { margin-top: .2rem; overflow: hidden; color: #879499; font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.media-library-card__actions { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #edf2f0; }
.media-library-card__actions button { min-height: 37px; border: 0; background: #fff; color: #315f55; font-family: inherit; font-size: .66rem; font-weight: 800; cursor: pointer; }
.media-library-card__actions button + button { border-inline-start: 1px solid #edf2f0; }
.media-library-card__actions button:hover { background: #f4f8f6; }
.media-library-card__actions button.danger { color: #9a5751; }
.media-library-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: .25rem; padding: 2.5rem 1rem; border: 1px dashed rgba(49, 95, 85, .18); border-radius: 1rem; background: #fafcfb; }
.media-library-empty strong { color: #315f55; }
.media-library-empty span { color: #859398; font-size: .7rem; }
.media-library-card > img { cursor: zoom-in; }
.media-library-card > img:focus-visible { outline: 3px solid rgba(49, 95, 85, .45); outline-offset: -3px; }
.media-preview-dialog {
  width: min(92vw, 920px);
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 1.25rem;
  background: #fff;
  color: #173f50;
  box-shadow: 0 35px 90px rgba(7, 25, 31, .38);
}
.media-preview-dialog::backdrop { background: rgba(8, 27, 34, .78); backdrop-filter: blur(5px); }
.media-preview-dialog__close {
  position: absolute;
  z-index: 2;
  top: .8rem;
  left: .8rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  padding: 0 0 .15rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(15, 42, 49, .72);
  color: #fff;
  font-size: 1.45rem;
  cursor: pointer;
}
.media-preview-dialog__image { display: grid; place-items: center; min-height: 20rem; max-height: 68vh; background: #112d34; }
.media-preview-dialog__image img { width: 100%; max-height: 68vh; display: block; object-fit: contain; }
.media-preview-dialog__info { padding: 1rem 1.2rem 1.15rem; }
.media-preview-dialog__info span { display: inline-flex; padding: .28rem .55rem; border-radius: 999px; background: #e7f0ed; color: #315f55; font-size: .62rem; font-weight: 850; }
.media-preview-dialog__info h3 { margin: .5rem 0 .2rem; color: #173f50; font-size: 1rem; }
.media-preview-dialog__info p { margin: 0; color: #75878c; font-size: .72rem; line-height: 1.65; }
@media (max-width: 1050px) {
  .media-library-upload__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .media-library-upload__form { grid-template-columns: 1fr; }
  .media-library-toolbar { align-items: stretch; flex-direction: column; }
  .media-library-toolbar > div { margin-inline-end: 0; }
  .media-library-grid { grid-template-columns: 1fr; }
  .media-preview-dialog__image { min-height: 12rem; }
}

/* Lightweight center gallery before the contact section. */
.center-gallery-section { position: relative; overflow: hidden; background: #f7f9f8; }
.center-gallery-section[hidden] { display: none; }
.center-gallery-section::before {
  content: '';
  position: absolute;
  width: 22rem;
  height: 22rem;
  inset: -10rem auto auto -9rem;
  border: 1px solid rgba(49, 95, 85, .08);
  border-radius: 50%;
}
.center-gallery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
}
.center-gallery-header h2 { margin: .2rem 0 .35rem; color: #173f50; }
.center-gallery-header > div > p:last-child { max-width: 42rem; margin: 0; color: #718287; line-height: 1.75; }
.center-gallery-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(13rem, .75fr);
  grid-template-rows: repeat(2, 12rem);
  gap: .75rem;
}
.center-gallery-preview figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: #dfe8e5;
  box-shadow: 0 14px 34px rgba(22, 61, 69, .09);
}
.center-gallery-preview__main { grid-row: 1 / 3; }
.center-gallery-preview:has(figure:only-child) { grid-template-columns: 1fr; grid-template-rows: 24.75rem; }
.center-gallery-preview:has(figure:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 24.75rem; }
.center-gallery-preview:has(figure:nth-child(2):last-child) .center-gallery-preview__main { grid-row: auto; }
.center-gallery-preview img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.center-gallery-preview figure:hover img { transform: scale(1.035); }
.center-gallery-preview figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem .75rem;
  background: linear-gradient(transparent, rgba(10, 35, 40, .72));
  color: #fff;
  font-size: .72rem;
}
.center-gallery-dialog {
  width: min(92vw, 1050px);
  max-height: 88vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 1.25rem;
  background: #f7f9f8;
  color: #173f50;
  box-shadow: 0 35px 95px rgba(7, 25, 31, .4);
}
.center-gallery-dialog::backdrop { background: rgba(8, 27, 34, .8); backdrop-filter: blur(5px); }
.center-gallery-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border-bottom: 1px solid rgba(49, 95, 85, .1); }
.center-gallery-dialog__header span { color: #b27c45; font-size: .65rem; font-weight: 900; }
.center-gallery-dialog__header h3 { margin: .15rem 0 0; color: #173f50; }
.center-gallery-dialog__header button { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; padding: 0 0 .15rem; border: 1px solid rgba(49, 95, 85, .12); border-radius: 50%; background: #f5f8f7; color: #315f55; font-size: 1.4rem; cursor: pointer; }
.center-gallery-dialog__grid { max-height: calc(88vh - 5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding: 1rem; overflow-y: auto; }
.center-gallery-dialog__grid figure { margin: 0; overflow: hidden; border-radius: .85rem; background: #fff; box-shadow: 0 8px 22px rgba(23, 63, 80, .07); }
.center-gallery-preview figure,
.center-gallery-dialog__grid figure { cursor: zoom-in; }
.center-gallery-preview figure:focus-visible,
.center-gallery-dialog__grid figure:focus-visible { outline: 3px solid rgba(215,197,157,.9); outline-offset: 3px; }
.center-gallery-dialog__grid img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; }
.center-gallery-dialog__grid figcaption { padding: .6rem .7rem; color: #6f8186; font-size: .66rem; }
.center-image-preview {
  width: min(94vw, 1180px);
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background: #102d34;
  color: #fff;
  box-shadow: 0 38px 110px rgba(0,0,0,.55);
}
.center-image-preview::backdrop { background: rgba(4,16,21,.9); backdrop-filter: blur(7px); }
.center-image-preview img { width: 100%; max-height: calc(92vh - 4.2rem); display: block; object-fit: contain; }
.center-image-preview p { margin: 0; padding: .75rem 3.5rem .85rem 1rem; color: rgba(255,255,255,.78); font-size: .72rem; text-align: center; }
.center-image-preview__close { position: absolute; z-index: 2; top: .7rem; inset-inline-end: .7rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; padding: 0 0 .15rem; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(8,28,34,.72); color: #fff; font-size: 1.45rem; cursor: pointer; backdrop-filter: blur(5px); }
@media (max-width: 760px) {
  .center-gallery-header { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .center-gallery-preview { grid-template-columns: 1fr 1fr; grid-template-rows: 15rem 9rem; }
  .center-gallery-preview__main { grid-column: 1 / -1; grid-row: auto; }
  .center-gallery-preview:has(figure:only-child),
  .center-gallery-preview:has(figure:nth-child(2):last-child) { grid-template-rows: 15rem; }
  .center-gallery-dialog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .center-gallery-preview { grid-template-columns: 1fr; grid-template-rows: 14rem 9rem 9rem; }
  .center-gallery-preview__main { grid-column: auto; }
  .center-gallery-preview:has(figure:nth-child(2):last-child) { grid-template-columns: 1fr; grid-template-rows: repeat(2, 12rem); }
  .center-gallery-dialog__grid { grid-template-columns: 1fr; }
}

/* Refined visual command center for the admin daily overview. */
body:has(.dashboard-page) .admin-overview {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(49, 95, 85, .1);
  background: #f6f9f8;
}
body:has(.dashboard-page) .admin-workspace-header[hidden] { display: none; }
body:has(.dashboard-page) .admin-overview-hero {
  position: relative;
  min-height: 10rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0;
  padding: 1.7rem 1.8rem;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(225, 191, 126, .26), transparent 36%),
    linear-gradient(132deg, #173f50, #245354 58%, #315f55);
  color: #fff;
}
body:has(.dashboard-page) .admin-overview-hero::before,
body:has(.dashboard-page) .admin-overview-hero::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}
body:has(.dashboard-page) .admin-overview-hero::before { width: 15rem; height: 15rem; inset: -8rem auto auto -5rem; }
body:has(.dashboard-page) .admin-overview-hero::after { width: 9rem; height: 9rem; inset: auto 44% -6rem auto; }
.admin-overview-hero__copy { position: relative; z-index: 1; }
.admin-overview-hero__copy p { margin: 0 0 .35rem; color: #e7c58e; font-size: .7rem; font-weight: 900; }
body:has(.dashboard-page) .admin-overview-hero__copy h2 { margin: 0; color: #fff; font-size: clamp(1.45rem, 3vw, 2rem); }
body:has(.dashboard-page) .admin-overview-hero__copy > span { display: block; margin-top: .45rem; color: rgba(255, 255, 255, .7); font-size: .78rem; }
.admin-overview-hero__status {
  position: relative;
  z-index: 1;
  min-width: 14rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: .85rem;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}
.admin-overview-hero__status > i { width: .65rem; height: .65rem; border-radius: 50%; background: #79d6a8; box-shadow: 0 0 0 .3rem rgba(121, 214, 168, .12); }
.admin-overview-hero__status strong,
.admin-overview-hero__status span { display: block; }
.admin-overview-hero__status strong { color: #fff; font-size: .7rem; }
.admin-overview-hero__status span { margin-top: .15rem; color: rgba(255, 255, 255, .58); font-size: .6rem; }
body:has(.dashboard-page) .admin-overview__stats { gap: .75rem; margin: 0; padding: 1rem 1rem .5rem; }
body:has(.dashboard-page) .admin-overview__stats > a {
  min-height: 7.5rem;
  padding: 1rem;
  border: 0;
  border-radius: .95rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 63, 80, .06);
}
body:has(.dashboard-page) .admin-overview__stats > a::before { display: none; }
body:has(.dashboard-page) .admin-overview__stats > a > b {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  margin-bottom: .65rem;
  border-radius: .7rem;
  background: #e5efec;
  color: #315f55;
  font-size: .8rem;
  font-weight: 900;
}
body:has(.dashboard-page) .admin-overview__stats > a[data-variant="enrollments"] > b { background: #e7eef4; color: #55738d; }
body:has(.dashboard-page) .admin-overview__stats > a[data-variant="lessons"] > b { background: #f7ecdb; color: #a7773e; }
body:has(.dashboard-page) .admin-overview__stats > a[data-variant="payments"] > b { background: #f6e7e5; color: #a55d58; }
body:has(.dashboard-page) .admin-overview__stats span { color: #75868b; font-size: .68rem; }
body:has(.dashboard-page) .admin-overview__stats strong { margin: .55rem 0 .25rem; font-size: 1.85rem; }
body:has(.dashboard-page) .admin-overview__stats small { margin-top: 0; }
body:has(.dashboard-page) .admin-overview__stats i { inset: auto auto 1rem 1rem; }
body:has(.dashboard-page) .admin-overview__layout { gap: .75rem; padding: .25rem 1rem 1rem; }
body:has(.dashboard-page) .admin-overview__priorities,
body:has(.dashboard-page) .admin-overview__quick-actions { border: 0; box-shadow: 0 8px 24px rgba(23, 63, 80, .055); }
body:has(.dashboard-page) .admin-overview-priority { min-height: 3.75rem; background: #fafcfb; border: 1px solid #edf2f0; }
body:has(.dashboard-page) .admin-overview-priority > b { background: #eef4f2; }
body:has(.dashboard-page) .admin-overview__quick-actions { background: #fff; }
body:has(.dashboard-page) .admin-overview__quick-actions h3 { color: #173f50; }
body:has(.dashboard-page) .admin-overview__quick-actions > a {
  position: relative;
  padding: .75rem .8rem;
  padding-inline-end: 2rem;
  border-color: #e6eeeb;
  background: #f8faf9;
  color: #315f55;
}
body:has(.dashboard-page) .admin-overview__quick-actions > a::after { content: '←'; position: absolute; inset-inline-end: .75rem; top: 50%; transform: translateY(-50%); color: #b27c45; }
body:has(.dashboard-page) .admin-overview__quick-actions > a:hover { background: #eef5f2; }
body:has(.dashboard-page) .admin-overview__quick-actions small { color: #839196; }
@media (max-width: 760px) {
  body:has(.dashboard-page) .admin-overview-hero { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .admin-overview-hero__status { width: 100%; min-width: 0; }
}
@media (max-width: 520px) {
  body:has(.dashboard-page) .admin-overview-hero { padding: 1.35rem; }
  body:has(.dashboard-page) .admin-overview__stats > a { min-height: 7.5rem; }
}

/* Registration analytics header shares the daily overview visual language. */
body:has(.dashboard-page) #analytics .analytics-overview-hero {
  position: relative;
  min-height: 9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: 1.45rem 1.6rem;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 8% 0%, rgba(225, 191, 126, .25), transparent 36%),
    linear-gradient(132deg, #173f50, #245354 58%, #315f55);
  color: #fff;
}
body:has(.dashboard-page) #analytics .analytics-overview-hero::before {
  content: '';
  position: absolute;
  width: 13rem;
  height: 13rem;
  inset: -7rem auto auto -4rem;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
}
body:has(.dashboard-page) #analytics .analytics-overview-hero > div { position: relative; z-index: 1; }
body:has(.dashboard-page) #analytics .analytics-overview-hero p { margin: 0 0 .3rem; color: #e7c58e; font-size: .68rem; font-weight: 900; }
body:has(.dashboard-page) #analytics .analytics-overview-hero h2 { margin: 0; color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
body:has(.dashboard-page) #analytics .analytics-overview-hero > div > span { display: block; margin-top: .4rem; color: rgba(255, 255, 255, .7); font-size: .74rem; }
.analytics-overview-hero__badge {
  min-width: 12rem;
  padding: .7rem .85rem;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: .8rem;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}
.analytics-overview-hero__badge strong,
.analytics-overview-hero__badge span { display: block; }
.analytics-overview-hero__badge strong { color: #fff; font-size: .7rem; }
.analytics-overview-hero__badge strong::before { content: ''; width: .5rem; height: .5rem; display: inline-block; margin-inline-end: .45rem; border-radius: 50%; background: #79d6a8; box-shadow: 0 0 0 .25rem rgba(121, 214, 168, .1); }
.analytics-overview-hero__badge span { margin-top: .2rem; color: rgba(255, 255, 255, .58); font-size: .59rem; }
@media (max-width: 680px) {
  body:has(.dashboard-page) #analytics .analytics-overview-hero { align-items: flex-start; flex-direction: column; gap: .9rem; padding: 1.25rem; }
  .analytics-overview-hero__badge { width: 100%; min-width: 0; }
}

/* Unified section headers across the admin workspace; content remains unchanged. */
body:has(.dashboard-page) .dashboard-card > .dashboard-card__header:not(.admin-overview-hero):not(.analytics-overview-hero) {
  position: relative;
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 1.3rem 1.5rem;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 8% 0%, rgba(225, 191, 126, .22), transparent 35%),
    linear-gradient(132deg, #173f50, #245354 58%, #315f55);
  color: #fff;
}
body:has(.dashboard-page) .dashboard-card > .dashboard-card__header:not(.admin-overview-hero):not(.analytics-overview-hero)::after {
  content: '';
  position: absolute;
  width: 11rem;
  height: 11rem;
  inset: -6.5rem auto auto -3rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}
body:has(.dashboard-page) .dashboard-card > .dashboard-card__header:not(.admin-overview-hero):not(.analytics-overview-hero) h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}
body:has(.dashboard-page) .dashboard-card > .dashboard-card__header:not(.admin-overview-hero):not(.analytics-overview-hero) > span {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  display: block;
  margin-top: .4rem;
  color: rgba(255, 255, 255, .7);
  font-size: .72rem;
  line-height: 1.7;
}
@media (max-width: 560px) {
  body:has(.dashboard-page) .dashboard-card > .dashboard-card__header:not(.admin-overview-hero):not(.analytics-overview-hero) {
    min-height: 6.5rem;
    padding: 1.15rem;
  }
}

/* Teacher program: assigned classes, schedule, and enrolled rosters. */
.teacher-program-panel { display: grid; gap: .85rem; }
.teacher-program-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: .15rem 0 .2rem; }
.teacher-program-summary > div { display: grid; gap: .12rem; padding: .72rem; border: 1px solid #e1ebe8; border-radius: .85rem; background: #f7faf9; color: #60757a; text-align: center; }
.teacher-program-summary span { color: #60757a; font-size: .72rem; font-weight: 750; }
.teacher-program-summary strong { color: #123f4b; font-size: 1.4rem; }
.teacher-program-summary > div:nth-child(2) strong { color: #287761; }
.teacher-program-summary > div:nth-child(3) strong { color: #a8742e; }
.teacher-program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.teacher-program-card { overflow: hidden; border: 1px solid rgba(35, 88, 86, .11); border-radius: 1rem; background: #fff; box-shadow: 0 12px 30px rgba(18, 61, 69, .065); }
.teacher-program-card__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.05rem; background: linear-gradient(135deg, #173f50, #2d625e); color: #fff; }
.teacher-program-card__header > div > span { color: #e6c68e; font-size: .62rem; font-weight: 900; }
.teacher-program-card__header h2 { margin: .15rem 0; color: #fff; font-size: 1.05rem; }
.teacher-program-card__header p { margin: 0; color: rgba(255,255,255,.62); font-size: .64rem; }
.teacher-program-card__header > strong { min-width: 4.3rem; display: grid; justify-items: center; padding: .55rem; border: 1px solid rgba(255,255,255,.12); border-radius: .7rem; background: rgba(255,255,255,.08); }
.teacher-program-card__header > strong b,
.teacher-program-card__header > strong small { display: block; }
.teacher-program-card__header > strong b { color: #fff; font-size: 1.25rem; }
.teacher-program-card__header > strong small { color: rgba(255,255,255,.6); font-size: .55rem; }
.teacher-program-card__schedule { display: grid; grid-template-columns: 1.4fr .7fr; gap: .55rem; padding: .75rem .9rem; border-bottom: 1px solid #edf2f0; }
.teacher-program-card__schedule > div { padding: .6rem .65rem; border-radius: .65rem; background: #f7faf9; }
.teacher-program-card__schedule span,
.teacher-program-card__schedule strong { display: block; }
.teacher-program-card__schedule span { margin-bottom: .2rem; color: #87948f; font-size: .58rem; }
.teacher-program-card__schedule strong { color: #355b57; font-size: .68rem; line-height: 1.55; white-space: pre-line; }
.teacher-program-card__students { padding: .85rem .9rem .95rem; }
.teacher-program-card__students-toggle { width: 100%; position: relative; padding: 0 0 0 2rem; border: 0; background: transparent; text-align: right; cursor: pointer; }
.teacher-program-card__students-toggle > div { display: block; margin: 0; }
.teacher-program-card__students-toggle > div span,
.teacher-program-card__students-toggle > div strong { display: block; }
.teacher-program-card__students-toggle > div span { color: #b07e43; font-size: .57rem; font-weight: 900; }
.teacher-program-card__students-toggle > div strong { margin-top: .1rem; color: #294e48; font-size: .76rem; }
.teacher-program-card__students-toggle > b { position: absolute; left: 1.55rem; top: 50%; min-width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; background: #e7f0ed; color: #315f55; font-size: .68rem; transform: translateY(-50%); }
.teacher-program-card__students-toggle .teacher-program-card__students-arrow { position: absolute; left: .25rem; top: 50%; color: #315f55; font-size: 1.2rem; font-style: normal; line-height: 1; transform: translateY(-50%); transition: transform .2s ease; }
.teacher-program-card__students-toggle[aria-expanded="true"] .teacher-program-card__students-arrow { transform: translateY(-50%) rotate(180deg); }
.teacher-program-card__students-content { margin-top: .65rem; }
.teacher-program-card__students-content[hidden] { display: none; }
.teacher-program-card__students ol { max-height: 14rem; display: grid; gap: .35rem; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.teacher-program-card__students li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .65rem; border-radius: .6rem; background: #f8faf9; }
.teacher-program-card__students li div strong,
.teacher-program-card__students li div span { display: block; }
.teacher-program-card__students li div strong { color: #355854; font-size: .68rem; }
.teacher-program-card__students li div span { margin-top: .12rem; color: #899692; font-size: .56rem; }
.teacher-program-card__students li > small { flex: 0 0 auto; padding: .25rem .45rem; border-radius: 999px; background: #e4efeb; color: #315f55; font-size: .55rem; font-weight: 800; }
.teacher-program-card__empty { margin: 0; padding: .85rem; border-radius: .65rem; background: #f8faf9; color: #83918d; font-size: .65rem; text-align: center; }
@media (max-width: 1150px) {
  .teacher-program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .teacher-program-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .teacher-program-summary { grid-template-columns: 1fr; }
  .teacher-program-card__header { align-items: flex-start; }
  .teacher-program-card__schedule { grid-template-columns: 1fr; }
}

/* Course messaging */
.teacher-attendance-panel > .teacher-daily-results { margin-top: .4rem; }
.teacher-attendance-panel > .teacher-daily-results .teacher-results-grid { grid-template-columns: minmax(0, 1fr); }
.messages-workspace { display: grid; grid-template-columns: minmax(15rem, .75fr) minmax(0, 1.65fr); gap: 1rem; align-items: start; }
.messages-workspace[hidden] { display: none; }
.messages-compose, .messages-feed { padding: 1rem; border: 1px solid rgba(35,88,86,.11); border-radius: 1rem; background: #fff; box-shadow: 0 10px 28px rgba(18,61,69,.06); }
.messages-compose > div:first-child span, .messages-feed__heading span { color: #b07e43; font-size: .62rem; font-weight: 900; }
.messages-compose h2, .messages-feed__heading h2 { margin: .18rem 0 .85rem; color: #294e48; font-size: 1rem; }
.messages-compose label { display: grid; gap: .3rem; margin-bottom: .7rem; color: #58706b; font-size: .65rem; font-weight: 800; }
.messages-compose label[hidden] { display: none; }
.messages-compose select, .messages-compose input, .messages-compose textarea, .admin-announcement-form select, .admin-announcement-form input, .admin-announcement-form textarea { width: 100%; padding: .7rem .75rem; border: 1px solid #dce7e3; border-radius: .7rem; background: #fbfdfc; color: #294e48; font: inherit; resize: vertical; }
.messages-feed > div:last-of-type { max-height: 31rem; display: grid; gap: .55rem; overflow-y: auto; }
.message-thread { overflow: hidden; border: 1px solid #e3ece9; border-radius: .8rem; background: #fff; }
.message-thread__summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem .85rem; cursor: pointer; list-style: none; transition: background .18s ease; }
.message-thread__summary::-webkit-details-marker { display: none; }
.message-thread__summary:hover, .message-thread[open] > .message-thread__summary { background: #f5f9f7; }
.message-thread__summary > div:first-child strong, .message-thread__summary > div:first-child span { display: block; }
.message-thread__summary > div:first-child strong { color: #294e48; font-size: .75rem; }
.message-thread__summary > div:first-child span { margin-top: .15rem; color: #87948f; font-size: .58rem; }
.message-thread__stats { display: flex; align-items: center; gap: .55rem; flex: 0 0 auto; }
.message-thread__stats b { min-width: 1.55rem; height: 1.55rem; display: grid; place-items: center; border-radius: 50%; background: #e7f0ed; color: #315f55; font-size: .62rem; }
.message-thread__stats time { color: #8a9894; font-size: .54rem; }
.message-thread__stats i { color: #315f55; font-size: 1rem; font-style: normal; transition: transform .2s ease; }
.message-thread[open] .message-thread__stats i { transform: rotate(180deg); }
.message-thread__content { display: grid; gap: .45rem; padding: .7rem; border-top: 1px solid #e8efed; background: #f8fbfa; }
.message-mailbox { min-height: 25rem; display: grid; grid-template-columns: minmax(12rem, .72fr) minmax(0, 1.35fr); overflow: hidden; border: 1px solid #e3ece9; border-radius: .85rem; background: #f8fbfa; }
.message-mailbox__list { max-height: 30rem; overflow-y: auto; border-left: 1px solid #e3ece9; background: #fff; }
.message-mailbox__row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .8rem .75rem; border: 0; border-bottom: 1px solid #edf2f0; background: #fff; text-align: right; cursor: pointer; transition: background .18s ease, box-shadow .18s ease; }
.message-mailbox__row.direct { box-shadow: inset -3px 0 #4f8278; }
.message-mailbox__row.announcement { box-shadow: inset -3px 0 #c49351; }
.message-mailbox__row:hover, .message-mailbox__row.active { background: #f2f7f5; }
.message-mailbox__row.announcement:hover, .message-mailbox__row.announcement.active { background: #fff8ed; }
.message-mailbox__row > div:first-child strong, .message-mailbox__row > div:first-child span { display: block; }
.message-mailbox__row > div:first-child strong { color: #294e48; font-size: .7rem; }
.message-mailbox__row > div:first-child span { margin-top: .15rem; color: #82918d; font-size: .55rem; }
.message-mailbox__row > div:last-child { display: grid; justify-items: end; gap: .3rem; flex: 0 0 auto; }
.message-mailbox__row time { color: #8d9996; font-size: .5rem; }
.message-mailbox__row b { min-width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; background: #e7f0ed; color: #315f55; font-size: .55rem; }
.message-mailbox__row.announcement b { background: #f7e9d2; color: #9a6b31; }
.message-reader { min-width: 0; background: #f8fbfa; }
.message-reader__header { padding: .85rem 1rem; border-bottom: 1px solid #e3ece9; background: #fff; }
.message-reader__header.direct { border-top: 3px solid #4f8278; }
.message-reader__header.announcement { border-top: 3px solid #c49351; background: #fffbf4; }
.message-reader__header div { color: #294e48; font-size: .82rem; font-weight: 900; }
.message-reader__header span { display: block; margin-top: .16rem; color: #82918d; font-size: .58rem; }
.message-reader__content { max-height: 25rem; display: grid; align-content: start; gap: .55rem; padding: .8rem; overflow-y: auto; }
.message-item { padding: .75rem .8rem; border: 1px solid #e5eeeb; border-radius: .75rem; background: #f8fbfa; }
.message-item > div { display: flex; justify-content: space-between; gap: .75rem; }
.message-item strong { color: #315f55; font-size: .7rem; }
.message-item span { color: #8a9894; font-size: .56rem; }
.message-item p { margin: .45rem 0 0; color: #425d58; font-size: .7rem; line-height: 1.75; white-space: pre-wrap; }
.message-item--student { border-right: 3px solid #4f8278; }
.message-item--announcement { border-color: rgba(176,126,67,.28); background: #fffbf4; }
.message-item--deleted { opacity: .68; }
.message-item--deleted p { color: #8a9894; font-style: italic; }
.message-delete-button { margin-top: .55rem; padding: .25rem .55rem; border: 1px solid #e5c9c6; border-radius: .5rem; background: #fff7f6; color: #a64b43; font: inherit; font-size: .58rem; font-weight: 800; cursor: pointer; }
.message-delete-button:hover { background: #a64b43; color: #fff; }
.message-unread-badge { min-width: 1.25rem; height: 1.25rem; display: inline-grid; place-items: center; margin-inline-start: .3rem; padding: 0 .3rem; border-radius: 999px; background: #b95b52; color: #fff; font-size: .58rem; line-height: 1; }
.message-unread-badge[hidden] { display: none; }
.student-notification__action { margin-top: .6rem; padding: .4rem .65rem; border: 0; border-radius: .55rem; background: #315f55; color: #fff; font: inherit; font-size: .62rem; font-weight: 800; cursor: pointer; }
.admin-announcement-form { display: grid; grid-template-columns: minmax(10rem,.55fr) minmax(12rem,.75fr) minmax(16rem,1.25fr) auto; gap: .8rem; align-items: end; }
.admin-announcement-form label { display: grid; gap: .35rem; color: #58706b; font-size: .7rem; font-weight: 800; }
.admin-announcement-form p { grid-column: 1 / -1; margin: 0; }
.admin-announcements-history { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e5eeeb; }
.admin-announcements-history h3 { margin: 0 0 .7rem; color: #294e48; font-size: .9rem; }
.admin-announcements-history > div { display: grid; gap: .55rem; }
.admin-center-inbox { margin-top: 1.2rem; padding: 1rem; border: 1px solid #dfe9e6; border-radius: .9rem; background: #f8fbfa; }
.admin-center-inbox > div:first-child span { color: #b07e43; font-size: .65rem; font-weight: 700; }
.admin-center-inbox h3 { margin: .1rem 0 .8rem; color: #294e48; font-size: .95rem; }
.admin-center-inbox > div:last-child { display: grid; gap: .65rem; }
.admin-center-message { padding: .8rem; border: 1px solid #e1e9e7; border-radius: .75rem; background: #fff; }
.admin-center-message > div:first-child { display: flex; justify-content: space-between; gap: .8rem; }
.admin-center-message strong, .admin-center-message span { display: block; }
.admin-center-message strong { color: #294e48; font-size: .75rem; }
.admin-center-message span, .admin-center-message time { color: #84928e; font-size: .6rem; }
.admin-center-message > p { margin: .55rem 0; color: #516963; font-size: .72rem; line-height: 1.8; }
.admin-center-message__reply { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; }
.admin-center-message__reply textarea { padding: .6rem; border: 1px solid #d6e2de; border-radius: .6rem; background: #fbfdfc; font: inherit; resize: vertical; }
.admin-center-message__reply button { padding: .5rem .75rem; border: 0; border-radius: .6rem; background: #315f55; color: #fff; font: inherit; font-size: .65rem; font-weight: 700; cursor: pointer; }
.admin-center-inbox__empty { margin: 0; color: #7b8c87; font-size: .72rem; }
.admin-message-tools, .admin-message-section-heading { display: flex; align-items: end; justify-content: space-between; gap: .8rem; margin-bottom: .75rem; }
.admin-message-tools { justify-content: flex-end; }
.admin-message-tools label, .admin-message-section-heading label { width: min(100%, 20rem); display: grid; gap: .28rem; color: #71827d; font-size: .58rem; font-weight: 800; }
.admin-message-tools input, .admin-message-section-heading input { width: 100%; padding: .58rem .72rem; border: 1px solid #dce7e4; border-radius: .65rem; background: #fff; color: #294e48; font: inherit; font-size: .68rem; outline: none; }
.admin-message-tools input:focus, .admin-message-section-heading input:focus { border-color: #789b92; box-shadow: 0 0 0 3px rgba(49,95,85,.08); }
.admin-message-summary { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 0; border: 0; background: transparent; color: inherit; text-align: right; font: inherit; cursor: pointer; }
.admin-message-summary > div:last-child { display: grid; justify-items: end; gap: .15rem; }
.admin-message-summary i { color: #50796f; font-size: .56rem; font-style: normal; font-weight: 800; }
.admin-message-collapsible { transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.admin-message-collapsible:hover { border-color: #c9dcd7; }
.admin-message-collapsible.is-open { border-color: #9fbbb4; box-shadow: 0 7px 20px rgba(38,76,68,.07); }
.admin-message-details[hidden], .admin-message-collapsible > p[hidden] { display: none; }
.admin-message-details > p { margin: .7rem 0; color: #516963; font-size: .72rem; line-height: 1.8; white-space: pre-wrap; }
.admin-messages-more { display: block; margin: .75rem auto 0; padding: .5rem 1rem; border: 1px solid #cadbd7; border-radius: 999px; background: #fff; color: #315f55; font: inherit; font-size: .65rem; font-weight: 800; cursor: pointer; }
.admin-messages-more:hover { background: #eef5f3; }
.admin-messages-more[hidden] { display: none; }
.admin-communications-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin: .2rem 0 1rem; padding: .38rem; border: 1px solid #e1ebe8; border-radius: .9rem; background: #f4f8f7; }
.admin-communications-tabs button { display: grid; gap: .1rem; padding: .68rem .8rem; border: 0; border-radius: .68rem; background: transparent; color: #6e817c; text-align: right; font: inherit; cursor: pointer; transition: .2s ease; }
.admin-communications-tabs button span { font-size: .73rem; font-weight: 900; }
.admin-communications-tabs button small { font-size: .56rem; opacity: .78; }
.admin-communications-tabs button:hover { background: rgba(255,255,255,.7); color: #315f55; }
.admin-communications-tabs button.is-active { background: #fff; color: #294e48; box-shadow: 0 4px 14px rgba(38,76,68,.09); }
.admin-communications-pane { min-height: 15rem; }
.admin-communications-pane[hidden] { display: none; }
.admin-center-inbox, .admin-announcements-history { margin-top: 0; padding: 1rem; border: 1px solid #e1eae7; border-radius: .9rem; background: #fbfdfc; }
.admin-announcements-history { padding-top: 1rem; }
.admin-communications-title, .admin-message-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.admin-communications-title > div > span, .admin-message-section-heading > div > span, .admin-compose-heading > span { color: #b07e43; font-size: .59rem; font-weight: 900; }
.admin-communications-title h3, .admin-message-section-heading h3, .admin-compose-heading h3 { margin: .12rem 0 0; color: #294e48; font-size: .92rem; }
.admin-message-search { width: min(100%, 20rem); display: grid; gap: .25rem; color: #71827d; font-size: .57rem; font-weight: 800; }
.admin-message-search input { width: 100%; padding: .58rem .72rem; border: 1px solid #dce7e4; border-radius: .65rem; background: #fff; color: #294e48; font: inherit; font-size: .67rem; outline: none; }
.admin-compose-heading { margin-bottom: .85rem; }
.admin-compose-heading p { margin: .28rem 0 0; color: #71827d; font-size: .66rem; }
.admin-communications-pane .admin-announcement-form { grid-template-columns: minmax(11rem,.65fr) minmax(16rem,1.35fr); padding: 1rem; border: 1px solid #e1eae7; border-radius: .9rem; background: #fbfdfc; align-items: start; }
.admin-announcement-form__body { grid-column: 1 / -1; }
.admin-communications-pane .admin-announcement-form textarea { min-height: 7.5rem; }
.admin-announcement-form__action { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .2rem; }
.admin-announcement-form__action small { color: #83918d; font-size: .58rem; }
.admin-announcement-form__action .button { min-width: 8.5rem; }
@media (max-width: 680px) {
  .admin-communications-tabs { grid-template-columns: 1fr; }
  .admin-communications-tabs button { text-align: center; }
  .admin-communications-title, .admin-message-section-heading { align-items: stretch; flex-direction: column; }
  .admin-message-search { width: 100%; }
  .admin-communications-pane .admin-announcement-form { grid-template-columns: 1fr; }
  .admin-announcement-form__body, .admin-announcement-form__action { grid-column: auto; }
}
@media (max-width: 620px) { .admin-center-message__reply { grid-template-columns: 1fr; } }
.live-visitors { margin-bottom: 1rem; padding: 1rem; border: 1px solid #dce9e5; border-radius: 1rem; background: linear-gradient(145deg, #f8fcfb, #fff); }
.live-visitors__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.live-visitors__heading span { display: flex; align-items: center; gap: .35rem; color: #317462; font-size: .6rem; font-weight: 900; }
.live-visitors__heading span i { width: .48rem; height: .48rem; border-radius: 50%; background: #38a47f; box-shadow: 0 0 0 .25rem rgba(56,164,127,.12); animation: liveVisitorPulse 1.8s ease infinite; }
.live-visitors__heading h3 { margin: .12rem 0 0; color: #244e47; font-size: .95rem; }
.live-visitors__heading small { color: #83928e; font-size: .58rem; }
.live-visitors__stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .65rem; }
.live-visitors__stats article { position: relative; display: grid; gap: .22rem; padding: .82rem; border: 1px solid #e2ece9; border-radius: .78rem; background: #fff; overflow: hidden; }
.live-visitors__stats article::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: #6e9b8f; }
.live-visitors__stats article[data-variant="active"]::before { background: #36a27d; }
.live-visitors__stats article[data-variant="views"]::before { background: #b07e43; }
.live-visitors__stats article[data-variant="new"]::before { background: #688b9c; }
.live-visitors__stats span { color: #667b75; font-size: .63rem; font-weight: 800; }
.live-visitors__stats strong { color: #244e47; font-size: 1.45rem; line-height: 1.15; }
.live-visitors__stats small { color: #94a09d; font-size: .55rem; }
.live-visitors__details { display: grid; grid-template-columns: 1.4fr 1fr; gap: .75rem; margin-top: .75rem; }
.live-visitors__details > div { min-width: 0; padding: .78rem; border: 1px solid #e5eeeb; border-radius: .75rem; background: rgba(255,255,255,.72); }
.live-visitors__details > div > strong { display: block; margin-bottom: .65rem; color: #45645d; font-size: .64rem; }
.live-visitors__timeline { min-height: 6.5rem; display: flex; align-items: end; gap: .32rem; overflow-x: auto; }
.live-visitors__timeline > div { min-width: 1.4rem; height: 5.4rem; display: grid; grid-template-rows: 1fr auto; align-items: end; justify-items: center; gap: .25rem; }
.live-visitors__timeline i { width: .72rem; min-height: .4rem; border-radius: .3rem .3rem .12rem .12rem; background: linear-gradient(#4f8b7d, #85aaa1); }
.live-visitors__timeline span { color: #879590; font-size: .48rem; }
.live-visitors__timeline p, .live-visitors__pages p { margin: auto; color: #8a9894; font-size: .62rem; }
.live-visitors__pages { display: grid; gap: .42rem; }
.live-visitors__pages > div { display: grid; grid-template-columns: 1.2rem minmax(0,1fr) auto; align-items: center; gap: .45rem; padding: .42rem; border-radius: .55rem; background: #f6faf9; }
.live-visitors__pages b { width: 1.15rem; height: 1.15rem; display: grid; place-items: center; border-radius: 50%; background: #e4efec; color: #426b61; font-size: .5rem; }
.live-visitors__pages span { overflow: hidden; color: #536c66; font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.live-visitors__pages strong { color: #82918d; font-size: .53rem; }
@keyframes liveVisitorPulse { 50% { box-shadow: 0 0 0 .42rem rgba(56,164,127,0); } }
@media (max-width: 760px) { .live-visitors__stats { grid-template-columns: repeat(2,1fr); } .live-visitors__details { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .messages-workspace, .admin-announcement-form { grid-template-columns: 1fr; } .message-mailbox { grid-template-columns: 1fr; } .message-mailbox__list { max-height: 13rem; border-left: 0; border-bottom: 1px solid #e3ece9; } }

/* Student home: focused daily overview. */
.student-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(12rem, .72fr); gap: 1rem; margin: -.9rem 0 1rem; }
.student-home-card, .student-home-actions { min-width: 0; padding: 1rem; border: 1px solid rgba(49,95,85,.12); border-radius: 1rem; background: #fff; box-shadow: 0 12px 32px rgba(24,61,64,.055); }
.student-home-card { border-top: 3px solid #4f8278; }
.student-home-card--message { border-top-color: #c49351; }
.student-home-card__heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .8rem; }
.student-home-card__heading > span { color: #71847f; font-size: .72rem; font-weight: 600; }
.student-home-card__heading button { padding: .35rem .55rem; border: 0; border-radius: .5rem; background: #eef5f2; color: #315f55; font: inherit; font-size: .64rem; font-weight: 600; cursor: pointer; }
.student-home-card--message .student-home-card__heading button { background: #fff4e5; color: #8b6135; }
.student-home-card > div:last-child { display: grid; gap: .2rem; }
.student-home-card > div:last-child strong { overflow: hidden; color: #294e48; font-size: .94rem; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.student-home-card > div:last-child p { margin: 0; color: #657a75; font-size: .78rem; }
.student-home-card > div:last-child small { color: #8b9995; font-size: .67rem; }
.student-home-empty { margin: .35rem 0; color: #788a85 !important; font-size: .76rem !important; line-height: 1.7; white-space: normal !important; }
.student-home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; background: #f8fbfa; }
.student-home-actions > span, .student-home-actions > h2 { grid-column: 1 / -1; }
.student-home-actions > span { color: #b07e43; font-size: .65rem; font-weight: 600; }
.student-home-actions > h2 { margin: -.2rem 0 .35rem; color: #294e48; font-size: .9rem; }
.student-home-actions button { padding: .55rem .45rem; border: 1px solid #dce7e3; border-radius: .6rem; background: #fff; color: #49665f; font: inherit; font-size: .69rem; font-weight: 600; cursor: pointer; }
.student-home-actions button:hover { border-color: #8ca9a1; background: #edf4f1; color: #315f55; }
@media (max-width: 900px) { .student-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .student-home-actions { grid-column: 1 / -1; } }
@media (max-width: 620px) { .student-home-grid { grid-template-columns: 1fr; margin-top: -.5rem; } .student-home-actions { grid-column: auto; } }

/* Student portal typography: calm Arabic hierarchy and comfortable reading. */
body:has(.student-dashboard-page) {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
body:has(.student-dashboard-page) button,
body:has(.student-dashboard-page) input,
body:has(.student-dashboard-page) select,
body:has(.student-dashboard-page) textarea { font-family: inherit; }
body:has(.student-dashboard-page) h1,
body:has(.student-dashboard-page) h2,
body:has(.student-dashboard-page) h3,
body:has(.student-dashboard-page) h4,
body:has(.student-dashboard-page) strong { font-weight: 700; }
.student-welcome-copy h1 { font-size: clamp(2.15rem, 4.5vw, 3.25rem); font-weight: 700; line-height: 1.22; }
.student-welcome-copy .section-kicker { font-size: .78rem; font-weight: 600; letter-spacing: 0; }
.student-welcome-copy > p:last-child { font-size: .96rem; line-height: 1.85; }
.student-profile-card strong { font-size: .94rem; }
.student-profile-card span:last-child { font-size: .8rem; }
.student-view-menu button { font-size: .9rem; font-weight: 600; }
.student-overview span { font-size: .78rem; font-weight: 500; }
.student-overview strong { font-size: 1.55rem; line-height: 1.35; }
.student-overview small { font-size: .7rem; }
.student-account-strip span { font-size: .75rem; font-weight: 500; }
.student-account-strip strong { font-size: .9rem; font-weight: 600; }
.student-dashboard__heading h2 { font-size: 1.45rem; line-height: 1.35; }
.student-dashboard__heading .section-kicker { font-size: .75rem; font-weight: 600; }
.student-focus-heading small { font-size: .72rem; font-weight: 500; }
.student-focus-heading h2 { font-size: 1.16rem; font-weight: 700; }
.student-next-action h3 { font-size: 1.12rem; line-height: 1.5; }
.student-next-action p { font-size: .86rem; line-height: 1.9; }
.student-course-card__label { font-size: .72rem; font-weight: 600; }
.student-course-card__title h3 { font-size: 1.08rem; line-height: 1.5; }
.student-course-card__title p { font-size: .85rem; line-height: 1.75; }
.student-course-fact span { font-size: .73rem; font-weight: 500; }
.student-course-fact strong { font-size: .87rem; font-weight: 600; line-height: 1.65; }
.student-course-schedule > strong { font-size: .85rem; }
.student-course-schedule__lines span { font-size: .76rem; }
.student-payment-progress__summary { font-size: .82rem; }
.student-course-toggle { font-size: .84rem; font-weight: 600; }
.student-weekly-table th { font-size: .8rem; font-weight: 600; }
.student-weekly-table td { font-size: .8rem; }
.student-timetable-lesson strong { font-size: .8rem; }
.student-timetable-lesson span { font-size: .69rem; }
.messages-compose label { font-size: .72rem; font-weight: 600; }
.message-mailbox__row > div:first-child strong { font-size: .76rem; font-weight: 600; }
.message-mailbox__row > div:first-child span { font-size: .62rem; }
.message-mailbox__row time { font-size: .57rem; }
.message-reader__header div { font-size: .9rem; }
.message-reader__header span { font-size: .65rem; }
.message-item strong { font-size: .75rem; }
.message-item span { font-size: .61rem; }
.message-item p { font-size: .78rem; line-height: 1.9; }
.student-notification__summary-text strong { font-size: .82rem; }
.student-notification__summary-text small,
.student-notification__body p { font-size: .72rem; line-height: 1.8; }
@media (max-width: 520px) {
  body:has(.student-dashboard-page) { font-size: 15px; }
  .student-welcome-copy h1 { font-size: 2rem; }
  .student-view-menu button { font-size: .84rem; }
}

/* Student home composition: one continuous page instead of stacked cards. */
.student-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: .35rem 0;
  border-top: 1px solid rgba(49,95,85,.14);
  border-bottom: 1px solid rgba(49,95,85,.14);
}
.student-overview article {
  min-height: 5.7rem;
  align-content: center;
  justify-items: center;
  padding: .75rem 1.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.student-overview article:not(:last-child) { border-left: 1px solid rgba(49,95,85,.12); }
.student-overview strong { font-size: 1.7rem; }
.student-focus-grid { margin: .75rem 0 1.35rem; }
.student-next-action {
  min-height: 11rem;
  display: grid;
  grid-template-columns: minmax(12rem,.55fr) minmax(0,1.45fr);
  align-items: center;
  gap: 1.4rem;
  padding: 1.35rem 1.6rem;
  border: 0;
  border-radius: .35rem;
  box-shadow: none;
}
.student-next-action .student-focus-heading { margin: 0; }
.student-next-action > div:last-child { padding-inline-start: 1.4rem; border-inline-start: 1px solid rgba(255,255,255,.18); }
.student-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(49,95,85,.14);
  border-bottom: 1px solid rgba(49,95,85,.14);
}
.student-home-card,
.student-home-actions {
  min-height: 6.5rem;
  padding: 1rem .15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.student-home-card { display: grid; grid-template-columns: minmax(9rem,.45fr) minmax(0,1.55fr); align-items: center; gap: 1.4rem; border-top: 0; }
.student-home-card + .student-home-card { border-top: 1px solid rgba(49,95,85,.1); }
.student-home-card__heading { margin: 0; padding-inline-end: 1.3rem; border-inline-end: 1px solid rgba(49,95,85,.12); }
.student-home-card__heading > span { color: #315f55; font-size: .82rem; }
.student-home-card__heading button { background: transparent; text-decoration: underline; text-underline-offset: .2rem; }
.student-home-card--message .student-home-card__heading button { background: transparent; }
.student-home-card > div:last-child { padding-inline: .2rem 1rem; }
.student-home-card > div:last-child strong { font-size: 1rem; }
.student-home-actions {
  min-height: auto;
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .8rem 0;
  border-top: 1px solid rgba(49,95,85,.1);
}
.student-home-actions > span { color: #71847f; font-size: .7rem; }
.student-home-actions > h2 { display: none; }
.student-home-actions > span,
.student-home-actions > h2 { grid-column: auto; }
.student-home-actions button { padding: .45rem .7rem; border: 0; border-radius: 999px; background: #edf4f1; font-size: .7rem; }
@media (max-width: 700px) {
  .student-overview { grid-template-columns: 1fr; }
  .student-overview article { min-height: auto; grid-template-columns: 1fr auto; align-items: center; }
  .student-overview article:not(:last-child) { border-left: 0; border-bottom: 1px solid rgba(49,95,85,.1); }
  .student-overview article small { grid-column: 1 / -1; }
  .student-next-action { grid-template-columns: 1fr; gap: .8rem; }
  .student-next-action > div:last-child { padding: .8rem 0 0; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .student-home-card { grid-template-columns: 1fr; gap: .7rem; }
  .student-home-card__heading { padding: 0; border-inline-end: 0; }
  .student-home-card > div:last-child { padding: 0; }
  .student-home-actions { flex-wrap: wrap; }
  .student-home-actions > span { width: 100%; }
}

/* Student home balance: open summary row with refined cards below. */
.student-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.student-focus-grid { margin: 1rem 0; }
.student-next-action {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(12rem,.55fr) minmax(0,1.45fr);
  gap: 1.4rem;
  padding: 1.4rem 1.55rem;
  border: 1px solid rgba(49,95,85,.12);
  border-radius: 1.15rem;
  box-shadow: 0 16px 38px rgba(24,61,64,.1);
}
.student-home-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  padding: 0;
  border: 0;
}
.student-home-card,
.student-home-actions {
  min-height: 9.2rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(49,95,85,.11);
  border-radius: 1rem;
  background: linear-gradient(160deg, #fff 55%, #f5f9f7);
  box-shadow: 0 12px 30px rgba(24,61,64,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.student-home-card:hover,
.student-home-actions:hover { transform: translateY(-2px); border-color: rgba(49,95,85,.2); box-shadow: 0 17px 38px rgba(24,61,64,.09); }
.student-home-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-top: 1px solid rgba(49,95,85,.11);
}
.student-home-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #315f55, #78a195);
}
.student-home-card--message { background: linear-gradient(160deg, #fff 55%, #fff9ef); }
.student-home-card--message::before { background: linear-gradient(90deg, #a9763e, #d8b57d); }
.student-home-card + .student-home-card { border-top: 1px solid rgba(49,95,85,.11); }
.student-home-card__heading { margin: 0 0 .85rem; padding: 0; border: 0; }
.student-home-card__heading > span { font-size: .75rem; }
.student-home-card__heading button { padding: .34rem .58rem; background: #edf4f1; text-decoration: none; }
.student-home-card--message .student-home-card__heading button { background: #fff1dc; }
.student-home-card > div:last-child { padding: 0; }
.student-home-actions {
  min-height: 9.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: .45rem;
  background: #f8fbfa;
}
.student-home-actions > span,
.student-home-actions > h2 { grid-column: 1 / -1; width: auto; }
.student-home-actions > h2 { display: block; margin: -.15rem 0 .3rem; }
.student-home-actions button { padding: .52rem .4rem; border: 1px solid #dce7e3; border-radius: .6rem; background: #fff; }
@media (max-width: 900px) {
  .student-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-home-actions { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .student-overview { grid-template-columns: 1fr; }
  .student-next-action { grid-template-columns: 1fr; }
  .student-home-grid { grid-template-columns: 1fr; }
  .student-home-actions { grid-column: auto; }
}

body:has(.student-dashboard-page) .student-view-menu {
  position: static;
  top: auto;
  z-index: auto;
}

/* Teacher welcome uses the same visual language as the student portal. */
.teacher-dashboard-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  min-height: 12.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: 1.5rem;
  background: linear-gradient(125deg, #183e39, #295c53 68%, #806845);
  color: #fff;
  box-shadow: 0 22px 55px rgba(22,58,52,.18);
}
.teacher-dashboard-intro::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline-end: -5rem;
  top: -7rem;
  width: 20rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255,255,255,.035), 0 0 0 6rem rgba(255,255,255,.025);
}
.teacher-dashboard-intro .section-kicker { color: #d7c59d; }
.teacher-dashboard-intro h1 { color: #fff; font-size: clamp(1.75rem,4vw,2.65rem); line-height: 1.35; }
.teacher-dashboard-intro p:last-child { max-width: 42rem; color: rgba(255,255,255,.76); font-size: .85rem; line-height: 1.8; }
.teacher-intro-side { min-width: min(100%,18rem); display: grid; gap: .65rem; }
.teacher-intro-profile { display: flex; align-items: center; gap: .75rem; padding: .85rem; border: 1px solid rgba(255,255,255,.16); border-radius: 1rem; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.teacher-intro-profile > span { width: 3rem; height: 3rem; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #d7c59d; color: #183e39; font-size: 1.25rem; font-weight: 800; }
.teacher-intro-profile > div { display: grid; gap: .12rem; }
.teacher-intro-profile strong { color: #fff; font-size: .85rem; }
.teacher-intro-profile small { color: rgba(255,255,255,.7); font-size: .68rem; }
.teacher-dashboard-intro .teacher-attendance-summary { display: flex; gap: .4rem; }
.teacher-dashboard-intro .teacher-attendance-summary[hidden] { display: none; }
.teacher-dashboard-intro .teacher-attendance-summary span { min-width: 0; flex: 1; padding: .55rem; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.09); color: rgba(255,255,255,.7); box-shadow: none; }
.teacher-dashboard-intro .teacher-attendance-summary strong,
.teacher-dashboard-intro .teacher-attendance-summary .present strong,
.teacher-dashboard-intro .teacher-attendance-summary .absent strong { color: #fff; }
@media (max-width: 720px) {
  .teacher-dashboard-intro { align-items: stretch; }
  .teacher-intro-side { width: 100%; }
}

/* Light tonal rhythm for public teacher cards. */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card[data-tone="1"] { --teacher-tone: #28675d; --teacher-tone-soft: #f1f8f6; --teacher-tone-accent: #6f9c8f; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card[data-tone="2"] { --teacher-tone: #52677d; --teacher-tone-soft: #f2f5f9; --teacher-tone-accent: #8396aa; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card[data-tone="3"] { --teacher-tone: #657044; --teacher-tone-soft: #f7f8ef; --teacher-tone-accent: #a29758; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card[data-tone="4"] { --teacher-tone: #80604f; --teacher-tone-soft: #faf5f1; --teacher-tone-accent: #b68d73; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card {
  border-color: color-mix(in srgb, var(--teacher-tone) 15%, transparent);
  background: var(--teacher-tone-soft);
  box-shadow: 0 13px 34px rgba(24,62,55,.07);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card::after { background: linear-gradient(90deg, var(--teacher-tone-accent), var(--teacher-tone)); opacity: .58; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__portrait { background: linear-gradient(150deg, var(--teacher-tone), color-mix(in srgb, var(--teacher-tone) 66%, var(--teacher-tone-accent))); }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__identity { background: color-mix(in srgb, var(--teacher-tone) 90%, transparent); }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__content { background: linear-gradient(145deg, rgba(255,255,255,.96), var(--teacher-tone-soft)); }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__profile-button {
  border-color: color-mix(in srgb, var(--teacher-tone) 72%, #193d36);
  background: var(--teacher-tone);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.12);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__profile-button:hover,
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card__profile-button:focus-visible {
  background: color-mix(in srgb, var(--teacher-tone) 82%, #153b34);
  color: #fff;
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #teaching-team .teaching-team-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--teacher-tone) 30%, transparent); box-shadow: 0 20px 46px color-mix(in srgb, var(--teacher-tone) 15%, transparent); }

/* Matching four-tone identity for the public packages and offers. */
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card[data-tone="1"] { --offer-tone: #3f704d; --offer-accent: #a9c89f; --offer-glow: rgba(113, 161, 111, .3); }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card[data-tone="2"] { --offer-tone: #52677d; --offer-accent: #a8b8c9; --offer-glow: rgba(131, 150, 170, .3); }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card[data-tone="3"] { --offer-tone: #657044; --offer-accent: #c3b875; --offer-glow: rgba(162, 151, 88, .3); }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card[data-tone="4"] { --offer-tone: #4f7568; --offer-accent: #a7c6b9; --offer-glow: rgba(126, 169, 153, .3); }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active[data-tone] {
  background:
    radial-gradient(circle at 0 0, var(--offer-glow), transparent 42%),
    linear-gradient(140deg, color-mix(in srgb, var(--offer-tone) 78%, #142f3b), var(--offer-tone));
  box-shadow: 0 22px 48px color-mix(in srgb, var(--offer-tone) 24%, transparent);
}
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active[data-tone] .offer-card__tag { color: var(--offer-accent); }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active[data-tone] h3::after { background: linear-gradient(90deg, var(--offer-accent), rgba(255, 255, 255, .72)); }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offer-card--showcase-active[data-tone] .offer-card__actions a { color: var(--offer-tone); }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__selector:nth-child(1).active { border-color: #3f704d; box-shadow: inset -3px 0 #3f704d; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__selector:nth-child(2).active { border-color: #52677d; box-shadow: inset -3px 0 #52677d; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__selector:nth-child(3).active { border-color: #657044; box-shadow: inset -3px 0 #657044; }
body:not(:has(.dashboard-page)):not(:has(.auth-page)) #ads .offers-showcase__selector:nth-child(4).active { border-color: #4f7568; box-shadow: inset -3px 0 #4f7568; }

/* One visual system for student, teacher, and administration sign-in portals. */
body.auth-portal {
  --auth-accent: #315f55;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 15%, rgba(176, 138, 85, .13), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(49, 95, 85, .12), transparent 30%),
    linear-gradient(145deg, #edf4f1, #faf8f3);
}
body.auth-portal--student {
  background:
    radial-gradient(circle at 12% 15%, rgba(176, 138, 85, .12), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(63, 112, 77, .14), transparent 31%),
    linear-gradient(145deg, #edf6f0, #fbfaf5);
}
body.auth-portal--teacher {
  --auth-accent: #52677d;
  background:
    radial-gradient(circle at 12% 15%, rgba(131, 150, 170, .16), transparent 29%),
    radial-gradient(circle at 88% 82%, rgba(82, 103, 125, .12), transparent 31%),
    linear-gradient(145deg, #eef2f6, #fafbfc);
}
body.auth-portal--admin {
  --auth-accent: #657044;
  background:
    radial-gradient(circle at 12% 15%, rgba(162, 151, 88, .15), transparent 29%),
    radial-gradient(circle at 88% 82%, rgba(101, 112, 68, .13), transparent 31%),
    linear-gradient(145deg, #f2f4e9, #fbfaf5);
}
body.auth-portal .header {
  border-bottom: 1px solid rgba(49, 95, 85, .1);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 26px rgba(27, 61, 58, .05);
  backdrop-filter: blur(14px);
}
body.auth-portal .auth-page { min-height: calc(100vh - 82px); padding: 2.5rem 1rem; }
body.auth-portal .auth-card {
  position: relative;
  width: min(470px, 100%);
  overflow: hidden;
  padding: 2rem;
  border: 1px solid rgba(49, 95, 85, .12);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 65px rgba(24, 61, 64, .12);
}
body.auth-portal .auth-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #b08a55, var(--auth-accent));
}
body.auth-portal .auth-card__intro { margin-bottom: 1.4rem; }
body.auth-portal .auth-card__intro::before {
  content: 'بوابة رؤيا';
  display: block;
  margin-bottom: .42rem;
  color: #b07e43;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
}
body.auth-portal .auth-card h1 { margin: 0 0 .45rem; color: #173f50; font-size: 1.7rem; }
body.auth-portal .auth-card__intro p { margin: 0; color: #74847f; font-size: .78rem; line-height: 1.75; }
body.auth-portal .auth-form { gap: .85rem; }
body.auth-portal .auth-form label { gap: .38rem; color: #496761; font-size: .75rem; font-weight: 750; }
body.auth-portal .auth-form input {
  min-height: 48px;
  padding: .78rem .9rem;
  border: 1px solid #d5e1dd;
  border-radius: .72rem;
  background: #fbfcfc;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.auth-portal .auth-form input:focus { outline: 0; border-color: var(--auth-accent); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-accent) 13%, transparent); }
body.auth-portal .auth-form .button--primary { min-height: 47px; border-radius: .72rem; background: var(--auth-accent); }
body.auth-portal .auth-note { margin: .1rem 0 0; color: #879590; font-size: .67rem; text-align: center; }
body.auth-portal .auth-link { margin-top: 0; text-align: center; font-size: .74rem; font-weight: 750; }
body.auth-portal .teacher-form-message { margin: 0; padding: .65rem; border-radius: .6rem; background: #f8ebe8; color: #914e47; font-size: .7rem; text-align: center; }
@media (max-width: 560px) {
  body.auth-portal .header__content { min-height: 58px; }
  body.auth-portal .logo span { display: none; }
  body.auth-portal .auth-page { padding: 1.25rem .8rem; }
  body.auth-portal .auth-card { padding: 1.5rem 1.2rem; border-radius: 1.1rem; }
}
.admin-password-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #dfe9e6; }
.admin-password-form h3 { grid-column: 1 / -1; margin: 0; color: #315f55; font-size: .86rem; }
.admin-password-form #adminPasswordMessage { grid-column: 1 / -1; padding: .55rem .7rem; border-radius: .55rem; font-size: .65rem; }
.admin-password-form #adminPasswordMessage.success { background: #e7f3ee; color: #286252; }
.admin-password-form #adminPasswordMessage.error { background: #faecec; color: #9a4444; }
