:root {
  --ink: #07111f;
  --ink-2: #0d1b2e;
  --gold: #d9aa62;
  --gold-2: #f0c980;
  --paper: #f5f7fb;
  --card: #ffffff;
  --muted: #667085;
  --line: #e6e9ef;
  --shadow: 0 18px 44px rgba(7, 17, 31, 0.12);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(5, 13, 27, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  min-height: 82px;
  padding: 0 7vw;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 250px;
}

.brand-mark {
  color: var(--gold-2);
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-style: italic;
  line-height: 1;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 4px;
  text-transform: uppercase;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: center;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  padding: 32px 0 28px;
  position: relative;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--gold-2);
}

.main-nav a:first-child::after {
  background: var(--gold-2);
  border-radius: 99px;
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
}

.header-actions,
.hero-actions,
.account-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.gold-button,
.ghost-button,
.icon-button {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.gold-button {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border: 0;
  color: #132033;
  padding: 0 20px;
  text-transform: uppercase;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.64);
  color: white;
  padding: 0 18px;
}

.icon-button {
  background: transparent;
  border: 0;
  color: white;
  font-size: 26px;
  height: 42px;
  width: 42px;
}

.gold-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.menu-button {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 8px;
  width: 42px;
}

.menu-button span {
  background: white;
  border-radius: 99px;
  display: block;
  height: 2px;
  margin: 6px 0;
}

.hero {
  background: #07111f;
  color: white;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.hero-media {
  background-image:
    linear-gradient(90deg, rgba(3, 8, 17, 0.96) 0%, rgba(3, 8, 17, 0.68) 38%, rgba(3, 8, 17, 0.16) 70%),
    var(--hero-image, url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=82"));
  background-position: center right;
  background-size: cover;
  inset: 0;
  position: absolute;
}

.hero-shade {
  background:
    radial-gradient(circle at 70% 34%, rgba(217, 170, 98, 0.25), transparent 24%),
    linear-gradient(180deg, transparent 65%, rgba(5, 13, 27, 0.65));
  inset: 0;
  position: absolute;
}

.hero-content {
  margin-left: 7vw;
  max-width: 610px;
  padding: 78px 0 120px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  margin: 0 0 20px;
  max-width: 680px;
}

.hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 610px;
}

.stats-bar {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, 1fr);
  margin: -42px auto 18px;
  max-width: 1540px;
  overflow: hidden;
  position: relative;
  width: 86vw;
  z-index: 3;
}

.stats-bar article {
  align-items: center;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 4px 14px;
  grid-template-columns: auto 1fr;
  padding: 22px 28px;
}

.stats-bar article:last-child {
  border-right: 0;
}

.stats-bar span {
  color: var(--gold);
  font-size: 34px;
  grid-row: span 2;
}

.stats-bar strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
}

.stats-bar small {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-grid,
.feature-cards,
.management,
.login-panels {
  margin: 18px auto 0;
  max-width: 1540px;
  width: 86vw;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 1.25fr 1.1fr;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(7, 17, 31, 0.06);
  min-width: 0;
  padding: 22px;
}

.section-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2,
.feature-card h2,
.section-title h2,
.account-band h2 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0;
}

.section-head a {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.comment-row,
.video-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comment-card,
.video-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.comment-card {
  min-height: 158px;
  padding: 14px;
}

.comment-top {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar {
  align-items: center;
  background: #132033;
  border-radius: 999px;
  color: var(--gold-2);
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.comment-card p {
  color: #3c4657;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.video-thumb {
  align-items: center;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(rgba(5, 13, 27, 0.1), rgba(5, 13, 27, 0.72)),
    var(--thumb);
  background-position: center;
  background-size: cover;
  color: white;
  display: flex;
  justify-content: center;
}

.play {
  align-items: center;
  background: white;
  border-radius: 999px;
  color: #07111f;
  display: flex;
  font-size: 18px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.video-card h3 {
  font-size: 14px;
  line-height: 1.35;
  margin: 10px 12px 6px;
}

.video-card p {
  color: #4b5565;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 12px 12px;
}

.video-card .video-meta {
  color: #94703a;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.post-list {
  display: grid;
  gap: 10px;
}

.post-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 72px 1fr;
  padding-bottom: 10px;
}

.post-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.post-item img {
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  object-fit: cover;
  width: 72px;
}

.post-item h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

.post-item time {
  color: var(--muted);
  font-size: 12px;
}

.feature-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.feature-card {
  background:
    linear-gradient(90deg, rgba(5, 13, 27, 0.96), rgba(5, 13, 27, 0.48)),
    var(--feature-image);
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  color: white;
  min-height: 190px;
  padding: 28px;
}

.feature-card span {
  color: var(--gold-2);
  font-size: 36px;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  max-width: 360px;
}

.feature-card a {
  background: var(--gold-2);
  border-radius: 5px;
  color: #132033;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-top: 10px;
  padding: 12px 18px;
  text-transform: uppercase;
}

.books {
  --feature-image: url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=900&q=80");
}

.mountains {
  --feature-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80");
}

.office {
  --feature-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80");
}

.account-band {
  align-items: center;
  background: var(--ink);
  color: white;
  display: flex;
  justify-content: space-between;
  margin: 14px auto 0;
  max-width: 1540px;
  padding: 30px 7vw;
}

.account-band h2 {
  font-size: 30px;
  max-width: 740px;
}

.management {
  padding: 54px 0 62px;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(5, 13, 27, 0.94), rgba(5, 13, 27, 0.58)),
    var(--page-image);
  background-position: center;
  background-size: cover;
  color: white;
  min-height: 330px;
  padding: 78px 7vw;
}

.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 900px;
}

.page-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
}

.about-hero,
.account-hero {
  --page-image: url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1800&q=82");
}

.education-hero {
  --page-image: url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1800&q=82");
}

.career-hero,
.contact-hero {
  --page-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=82");
}

.travel-hero {
  --page-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=82");
}

.comments-hero,
.videos-hero,
.blog-hero,
.events-hero {
  --page-image: url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=82");
}

.students-hero {
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.96), rgba(7, 17, 31, 0.62), rgba(7, 17, 31, 0.18)),
    url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1800&q=82");
  background-position: center 42%;
  background-size: cover;
  color: white;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 360px;
  padding: 76px 7vw 42px;
}

.students-hero-content {
  max-width: 760px;
}

.students-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.02;
  margin: 0 0 16px;
}

.students-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
  max-width: 680px;
}

.students-hero-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.students-hero-links a,
.students-hero-stats span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: white;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 16px;
  text-transform: uppercase;
}

.students-hero-links a {
  background: rgba(255, 255, 255, 0.1);
}

.students-hero-stats {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.students-hero-stats span {
  align-items: center;
  background: rgba(7, 17, 31, 0.62);
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}

.students-hero-stats strong {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.page-section {
  padding: 34px 0 18px;
}

.content-grid,
.program-grid,
.card-grid,
.review-grid,
.video-gallery,
.event-list,
.auth-page,
.panel-history,
.panel-messages {
  margin: 22px auto 0;
  max-width: 1540px;
  width: 86vw;
}

.content-grid,
.program-grid,
.card-grid,
.review-grid,
.video-gallery {
  display: grid;
  gap: 16px;
}

.content-grid {
  grid-template-columns: 2fr 1fr 1fr;
}

.program-grid,
.review-grid,
.video-gallery {
  grid-template-columns: repeat(3, 1fr);
}

.video-player-wrap {
  margin: 24px auto 64px;
  max-width: 1100px;
  width: 86vw;
}

.video-player {
  aspect-ratio: 16 / 9;
  background: #07111f;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  width: 100%;
}

.card-grid {
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: 54px;
}

.content-panel,
.program-grid article,
.listing-card,
.event-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(7, 17, 31, 0.06);
}

.content-panel,
.program-grid article {
  padding: 26px;
}

.content-panel strong {
  color: var(--gold);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
}

.content-panel span,
.listing-card span,
.event-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.content-panel.wide p,
.program-grid p,
.listing-card p,
.event-item p,
.contact-card p {
  color: var(--muted);
  line-height: 1.7;
}

.listing-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  overflow: hidden;
}

.listing-card img {
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  width: 100%;
}

.listing-card div {
  padding: 24px;
}

.listing-card h2,
.event-item h2 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 8px 0 10px;
}

.comment-card.large {
  background: white;
  min-height: 190px;
}

.event-list {
  display: grid;
  gap: 14px;
  padding-bottom: 54px;
}

.event-item {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 150px 1fr;
  padding: 24px;
}

.event-item time {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 800;
}

.auth-page {
  max-width: 760px;
  padding-bottom: 54px;
}

.inline-form {
  margin-top: 20px;
}

.panel-row,
.panel-stats,
.panel-messages {
  margin-top: 18px;
}

.admin-shell {
  background: #eaf0f6;
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 82px);
}

.admin-sidebar {
  background: #2f4358;
  color: rgba(255, 255, 255, 0.82);
  padding: 22px 18px;
}

.admin-logo {
  color: white;
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 24px;
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar a {
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  display: block;
  font-weight: 800;
  padding: 12px 14px;
}

.admin-sidebar a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.admin-main {
  min-width: 0;
  padding: 24px;
}

.admin-topbar {
  align-items: center;
  background: white;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 18px 20px;
}

.admin-topbar span {
  color: var(--muted);
  font-weight: 800;
}

.admin-topbar h1 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 4px 0 0;
}

.admin-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 16px;
}

.admin-stats article,
.admin-card {
  background: white;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(47, 67, 88, 0.08);
}

.admin-stats article {
  padding: 18px;
}

.admin-stats span {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.admin-stats strong {
  color: #2f4358;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  margin-top: 4px;
}

.admin-card {
  margin-bottom: 18px;
  overflow: visible;
}

.admin-card-head {
  align-items: flex-start;
  border-bottom: 1px solid #edf1f5;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 20px;
}

.admin-card-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 4px;
}

.admin-card-head p {
  color: var(--muted);
  margin: 0;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #edf1f5;
  color: #465366;
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #6b7687;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table tr:hover td {
  background: #fbfcfe;
}

.admin-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 5px;
  height: 54px;
  object-fit: cover;
  width: 86px;
}

.admin-actions {
  align-items: center;
  display: flex;
  gap: 7px;
  position: relative;
}

.admin-actions form {
  margin: 0;
}

.icon-action {
  align-items: center;
  background: #eef4fb;
  border: 0;
  border-radius: 5px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 9px;
}

.icon-action.view {
  background: #e8f3ff;
  color: #1570ef;
}

.icon-action.approve {
  background: #d1fadf;
  color: #05603a;
}

.icon-action.reject,
.icon-action.delete {
  background: #fee4e2;
  color: #b42318;
}

.status-pill,
.tag {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  text-transform: uppercase;
}

.status-pill.pending {
  background: #fff3cd;
  color: #946200;
}

.status-pill.approved,
.status-pill.published,
.tag {
  background: #d1fadf;
  color: #05603a;
}

.status-pill.rejected {
  background: #fee4e2;
  color: #b42318;
}

.muted-action {
  color: #98a2b3;
}

.admin-button {
  background: #12b76a;
  border: 0;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-weight: 900;
  min-height: 38px;
  padding: 0 14px;
}

.admin-button.danger {
  background: #ef4444;
}

.admin-create {
  position: relative;
}

.admin-create summary {
  background: #12b76a;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  padding: 10px 14px;
}

.admin-create summary::-webkit-details-marker,
.row-edit summary::-webkit-details-marker {
  display: none;
}

.admin-form {
  background: white;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(47, 67, 88, 0.18);
  display: grid;
  gap: 12px;
  min-width: 360px;
  padding: 16px;
  position: absolute;
  right: 0;
  top: 48px;
  z-index: 10;
}

.settings-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 20px;
}

.settings-form .admin-button,
.settings-preview {
  align-self: end;
}

.settings-preview {
  background: #f8fafc;
  border: 1px solid #e4eaf1;
  border-radius: 8px;
  padding: 12px;
}

.settings-preview span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.settings-preview img {
  aspect-ratio: 16 / 7;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.row-edit {
  position: relative;
}

.row-edit summary {
  align-items: center;
  background: #eef4fb;
  border-radius: 5px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  list-style: none;
  width: 34px;
}

.row-edit .admin-form {
  right: -90px;
  top: 40px;
}

.section-title {
  max-width: 760px;
}

.section-title h2 {
  font-size: 40px;
}

.section-title p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.workflow {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.login-panels {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.teacher-login-card {
  margin-top: 24px;
  max-width: 520px;
}

.hint {
  color: var(--muted);
  line-height: 1.6;
}

.flash {
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(7, 17, 31, 0.14);
  font-weight: 800;
  left: 50%;
  max-width: min(92vw, 720px);
  padding: 14px 18px;
  position: fixed;
  text-align: center;
  top: 96px;
  transform: translateX(-50%);
  width: max-content;
  z-index: 50;
}

.flash.success {
  background: #d1fadf;
  color: #05603a;
}

.flash.error {
  background: #fee4e2;
  color: #b42318;
}

.workflow article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.workflow strong {
  align-items: center;
  background: #132033;
  border-radius: 999px;
  color: var(--gold-2);
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.workflow h3 {
  margin: 18px 0 8px;
}

.workflow p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.site-footer {
  background: #07111f;
  color: white;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  margin: 0 auto;
  max-width: 1540px;
  padding: 34px 0;
  width: 86vw;
}

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.76);
  display: block;
  margin: 8px 0;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.56);
  margin: 0;
  padding: 16px;
  text-align: center;
}

.copyright a {
  color: var(--gold);
  font-weight: 800;
}

.modal {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  max-width: 980px;
  padding: 0;
  width: min(92vw, 980px);
}

.modal::backdrop {
  background: rgba(5, 13, 27, 0.72);
  backdrop-filter: blur(4px);
}

.modal-close {
  background: #07111f;
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-size: 28px;
  height: 40px;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 40px;
  z-index: 2;
}

.auth-shell {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 580px;
}

.auth-side {
  background:
    linear-gradient(rgba(5, 13, 27, 0.78), rgba(5, 13, 27, 0.9)),
    url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=700&q=80");
  background-position: center;
  background-size: cover;
  color: white;
  padding: 42px;
}

.auth-side h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  margin: 12px 0;
}

.auth-side p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.auth-main {
  padding: 42px;
}

.auth-form,
.panel-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

label {
  color: #344054;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

input,
select,
textarea {
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.tab-row {
  background: #eef2f7;
  border-radius: 7px;
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
}

.tab-row button {
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  flex: 1;
  font-weight: 900;
  min-height: 40px;
}

.tab-row button.active {
  background: white;
  box-shadow: 0 8px 20px rgba(7, 17, 31, 0.08);
}

.teacher-grid,
.student-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.admin-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
}

.admin-list.tall-list {
  max-height: 620px;
}

.admin-item {
  background: #f8fafc;
  border: 1px solid #edf0f5;
  border-radius: 7px;
  padding: 12px;
}

.admin-item strong {
  display: block;
  margin-bottom: 4px;
}

.admin-item small {
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

.mini-actions {
  display: flex;
  gap: 8px;
}

.mini-actions button,
.delete-form button {
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

.compact-form {
  gap: 10px;
}

.compact-form textarea {
  min-height: 82px;
}

.delete-form {
  margin-top: 8px;
}

.approve {
  background: #d1fadf;
  color: #05603a;
}

.reject {
  background: #fee4e2;
  color: #b42318;
}

.toast {
  background: #101828;
  border-radius: 7px;
  bottom: 24px;
  color: white;
  left: 50%;
  opacity: 0;
  padding: 12px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 16px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 40;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.light-header .site-header {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

body.light-header .main-nav a,
body.light-header .icon-button {
  color: var(--ink);
}

body.light-header .menu-button span {
  background: var(--ink);
}

@media (max-width: 1200px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .main-nav.open {
    background: rgba(5, 13, 27, 0.98);
    display: grid;
    grid-column: 1 / -1;
    gap: 0;
    padding-bottom: 18px;
  }

  .main-nav.open a {
    padding: 14px 0;
  }

  .dashboard-grid,
  .feature-cards,
  .workflow,
  .login-panels,
  .content-grid,
  .program-grid,
  .card-grid,
  .review-grid,
  .video-gallery,
  .teacher-grid,
  .student-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .comment-row,
  .video-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .students-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .students-hero-stats {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0 20px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    display: none;
  }

  .hero-content {
    margin: 0;
    padding: 58px 22px 108px;
  }

  .hero-media {
    background-position: 66% center;
  }

  .hero-actions,
  .account-actions,
  .account-band {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-bar,
  .dashboard-grid,
  .feature-cards,
  .management,
  .login-panels,
  .footer-grid {
    width: calc(100vw - 32px);
  }

  .page-hero {
    padding: 58px 22px;
  }

  .students-hero {
    background-position: 58% center;
    min-height: 0;
    padding: 58px 22px 34px;
  }

  .students-hero-links,
  .students-hero-stats {
    flex-wrap: wrap;
  }

  .students-hero-links a,
  .students-hero-stats span {
    border-radius: 7px;
    justify-content: center;
  }

  .listing-card,
  .event-item {
    grid-template-columns: 1fr;
  }

  .listing-card img {
    max-height: 240px;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stats-bar article {
    border-right: 0;
  }

  .comment-row,
  .video-row,
  .footer-grid,
  .auth-shell,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .account-band {
    gap: 20px;
    padding: 28px 20px;
  }

  .auth-side,
  .auth-main {
    padding: 28px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-sidebar nav,
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-main {
    padding: 14px;
  }

  .admin-card-head,
  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-form,
  .row-edit .admin-form {
    min-width: min(86vw, 360px);
    position: fixed;
    right: 16px;
    top: 110px;
  }

  .settings-form {
    grid-template-columns: 1fr;
  }
}
