:root {
  --maroon: #650000;
  --deep: #5a0000;
  --cream: #fff9e8;
  --light: #fffdf3;
  --border: #e3d1ac;
  --muted: #796b56;
  --gold: #b58c42;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at 12% 5%,
      rgba(190, 138, 47, 0.15),
      transparent 22rem
    ),
    radial-gradient(
      circle at 90% 18%,
      rgba(101, 0, 0, 0.08),
      transparent 25rem
    ),
    var(--cream);
  color: #32271f;
  font:
    16px/1.65 Arial,
    Helvetica,
    sans-serif;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--maroon);
  line-height: 1.2;
}
h1 {
  font-size: 42px;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 23px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
img {
  max-width: 100%;
  display: block;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #b58c42;
  outline-offset: 3px;
}
button {
  border: 1px solid var(--border);
  background: var(--light);
  border-radius: 9px;
  padding: 9px 14px;
  color: var(--maroon);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 23px;
  border-radius: 12px;
  background: var(--maroon);
  border: 1px solid var(--maroon);
  color: #fff9e8;
  font-weight: 600;
  font-size: 15px;
  transition:
    transform 0.18s,
    background 0.18s;
}
.button:hover {
  background: #820e0e;
  transform: translateY(-1px);
}
.button.outline {
  background: transparent;
  color: var(--maroon);
}
.button.light {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--maroon);
}
.wide {
  width: 100%;
  margin: 15px 0;
}
.brand-header {
  position: relative;
  padding: 11px 30px 9px;
  text-align: left;
  background: linear-gradient(100deg, #3e0000 0%, #730000 48%, #420000 100%);
  border-bottom: 3px solid #d5a84e;
  box-shadow:
    inset 0 -1px 0 #fff0a9,
    0 2px 9px rgba(64, 0, 0, 0.22);
}
.brand-header::after {
  content: "✦   ✦   ✦";
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: #e7c46d;
  font-size: 11px;
  letter-spacing: 6px;
  opacity: 0.7;
}
.brand-header > a {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 3px 8px;
  border: 1px solid #d8ac51;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff9df, #f3d88e);
  box-shadow: inset 0 0 0 1px #fff6cf;
}
.mobile-menu-icon,
.mobile-header-actions {
  display: none;
}
.brand-header img {
  width: 230px;
  height: 62px;
  object-fit: contain;
}
.brand-header span {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--maroon);
  font-weight: 700;
  margin-top: 3px;
}
.identity-strip {
  max-width: 680px;
  margin: auto;
  padding: 15px 22px;
}
.auth-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.identity div {
  min-width: 0;
}
.identity strong {
  font-size: 20px;
  color: var(--maroon);
}
.identity div span {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.identity img,
.avatar {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}
.avatar {
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--cream);
  font: 28px Georgia;
}
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 10px 15px;
  border-bottom: 2px solid #d5a84e;
  background: #610000;
  font-size: 14px;
  color: #fff2c4;
}
.desktop-nav a:hover {
  color: #ffd770;
  text-decoration: none;
}
.page {
  max-width: 1260px;
  margin: 18px auto;
  padding: 30px 30px 50px;
  min-height: 50vh;
  border: 2px solid #9b681d;
  border-radius: 18px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 251, 230, 0.94),
      rgba(255, 248, 224, 0.96)
    ),
    repeating-linear-gradient(
      45deg,
      transparent 0 12px,
      rgba(154, 101, 22, 0.035) 12px 13px
    );
  box-shadow:
    inset 0 0 0 3px #f1cf78,
    inset 0 0 0 6px #7b2600,
    0 10px 26px rgba(83, 31, 0, 0.13);
}
.page > section {
  margin-top: 35px;
}
.page.narrow {
  max-width: 750px;
}
.dashboard-home {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  max-width: 1420px;
}
.dashboard-content {
  min-width: 0;
}
.dashboard-sidebar {
  align-self: start;
  position: sticky;
  top: 16px;
  display: grid;
  gap: 3px;
  padding: 15px 10px;
  border: 2px solid #d8ad55;
  border-radius: 16px;
  background: var(--maroon);
  box-shadow:
    inset 0 0 0 2px #6b1300,
    inset 0 0 0 5px #e7c267,
    0 7px 15px rgba(72, 0, 0, 0.18);
}
.dashboard-sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 13px;
  color: #e9cb8e;
  font:
    600 14px Georgia,
    serif;
}
.dashboard-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 9px;
  color: var(--cream);
  font-size: 12px;
}
.dashboard-sidebar a:hover,
.dashboard-sidebar a.is-active {
  background: #f4d98e;
  color: var(--maroon);
  font-weight: 700;
}
.dashboard-hero {
  min-height: 215px;
}
.dashboard-hero > div {
  width: min(56%, 540px);
  padding: 31px 32px;
}
.dashboard-hero h1 {
  margin: 9px 0;
  font-size: clamp(30px, 3vw, 45px);
}
.dashboard-welcome {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 98px;
  margin-top: 15px;
  padding: 12px 17px;
  border: 2px solid #d3aa58;
  border-radius: 14px;
  background: linear-gradient(90deg, #fffdf3, #f7e8c6 55%, #fff8df);
  box-shadow: inset 0 0 0 2px #fff7d7;
}
.dashboard-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 50%;
  color: var(--cream);
  background: var(--maroon);
  font:
    700 27px Georgia,
    serif;
}
.dashboard-welcome > div:nth-child(2) {
  min-width: 0;
}
.dashboard-welcome small {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.dashboard-welcome h2 {
  margin: 0;
  font-size: 24px;
}
.dashboard-welcome p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.dashboard-welcome .search {
  flex: 1;
  min-width: 220px;
  margin: 0 0 0 auto;
}
.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 13px;
  border: 2px solid #d3aa58;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(90deg, #fffdf3, #fff5d8);
  box-shadow: inset 0 0 0 2px #fff8de;
}
.dashboard-stat-grid > div {
  display: grid;
  grid-template-columns: 32px auto;
  grid-template-rows: auto auto;
  gap: 0 9px;
  align-items: center;
  padding: 13px;
  border-right: 1px solid var(--border);
}
.dashboard-stat-grid > div:last-child {
  border-right: 0;
}
.dashboard-stat-grid svg {
  grid-row: 1 / 3;
  color: var(--maroon);
}
.dashboard-stat-grid strong {
  color: var(--maroon);
  font-size: 20px;
  line-height: 1;
}
.dashboard-stat-grid span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}
.home-hero {
  position: relative;
  display: block;
  min-height: 430px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--maroon);
  color: var(--cream);
}
.page > .home-hero {
  margin: 0;
}
.home-page > section {
  margin-top: 28px;
}
.home-search .search {
  margin: 18px 0 0;
  box-shadow: 0 5px 18px #6500000d;
}
.home-search .search.compact button {
  width: 46px;
  display: grid;
  place-items: center;
  padding: 0;
}
.home-search .search.compact button svg {
  color: var(--cream);
}
.home-hero-copy .button svg,
.section-heading a svg {
  flex-shrink: 0;
}
.section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.home-hero > div {
  position: relative;
  z-index: 1;
  width: min(54%, 590px);
  padding: 62px 44px;
}
.home-hero h1 {
  color: var(--cream);
  font-size: clamp(40px, 4vw, 60px);
  margin: 15px 0;
}
.home-hero small {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #e4c98e;
}
.home-hero p {
  color: #ecdbb5;
}
.home-hero img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px 7px 5px 17px;
  margin: 25px 0;
}
.search input {
  margin: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 0;
  min-width: 0;
}
.search button {
  background: var(--maroon);
  color: var(--cream);
  font-size: 14px;
  min-height: 44px;
}
.search svg {
  color: var(--maroon);
  flex-shrink: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 32px 0 14px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading small {
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--gold);
}
.section-heading a {
  font-size: 13px;
  color: var(--maroon);
  white-space: nowrap;
}
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.education-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 152px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 17px;
  overflow: hidden;
  background: var(--light);
  box-shadow: 0 5px 18px #6500000a;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.education-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.08) contrast(1.04);
}
.education-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 251, 232, 0.95) 12%,
    rgba(255, 247, 218, 0.84) 52%,
    rgba(101, 0, 0, 0.16)
  );
  pointer-events: none;
}
.education-card > :not(.education-art) {
  position: relative;
  z-index: 1;
}
.education-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px #65000012;
}
.education-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  flex-shrink: 0;
  color: var(--maroon);
  background: #f5e9ce;
}
.education-card.gurukul .education-icon {
  color: var(--cream);
  background: var(--maroon);
}
.education-card.nepal .education-icon {
  color: var(--gold);
  background: #f9efd8;
}
.education-card-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.education-card-copy strong {
  font:
    600 25px/1.13 Georgia,
    "Times New Roman",
    serif;
  color: var(--maroon);
}
.education-card-copy small {
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}
.education-arrow {
  color: var(--maroon);
}
.home-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px !important;
  padding: 14px 0;
  border-block: 1px solid var(--border);
}
.home-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 18px;
  border-right: 1px solid var(--border);
}
.home-highlight:last-child {
  border-right: 0;
}
.home-highlight > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--maroon);
  background: #f5e9ce;
}
.home-highlight div {
  display: grid;
  line-height: 1.2;
}
.home-highlight strong {
  color: var(--maroon);
  font-size: 13px;
}
.home-highlight small {
  color: var(--muted);
  font-size: 11px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.course-grid.home-course-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-course-row .course-card-media {
  aspect-ratio: 16 / 9;
  padding: 0;
}
.home-course-row .course-card > div {
  padding: 14px;
}
.home-course-row .course-card h3 {
  font-size: 19px;
  margin: 7px 0;
}
.home-course-row .course-card p {
  display: none;
}
.home-course-row .course-card strong {
  display: none;
}
.home-course-row .course-card span {
  margin-top: 8px;
}
.course-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 17px;
  overflow: hidden;
  background: var(--light);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px #65000012;
}
.course-card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f0df, #eee0bd);
  padding: 8px;
}
.course-card-media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.course-card > div {
  padding: 19px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-card small {
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.course-card h3 {
  font-size: 22px;
  margin: 10px 0;
}
.course-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-card span {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: auto;
}
.course-card strong {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--maroon);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 14px;
  font-size: 13px;
}
.page-banner {
  background: var(--maroon);
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 12px 18px;
  border-radius: 14px;
  margin: 12px 0 24px;
  overflow: hidden;
}
.page-banner h1 {
  color: var(--cream);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: clamp(21px, 2.2vw, 29px);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-banner small {
  flex: 0 0 auto;
  color: #e3c886;
  letter-spacing: 0.12em;
  font-size: 11px;
  white-space: nowrap;
}
.page-banner p {
  display: none;
}
.category-row,
.category-grid {
  display: grid;
  gap: 24px;
}
.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin: auto;
}
.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.board-row {
  gap: 16px;
}
.board-row .category-art {
  aspect-ratio: 16 / 10;
}
.board-row .category-card > div:last-child {
  padding: 14px 16px;
}
.board-row .category-card h3 {
  font-size: 20px;
}
.category-card {
  border: 2px solid var(--maroon);
  border-radius: 25px;
  overflow: hidden;
  background: var(--light);
  box-shadow: 0 5px 20px #65000009;
  transition: transform 0.2s;
}
.category-card:hover {
  transform: translateY(-4px);
}
.category-art {
  aspect-ratio: 1;
  background: #fff4d4;
  display: grid;
  place-items: center;
  padding: 9px;
}
.category-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 17px;
}
.category-card > div:last-child {
  padding: 17px 20px;
}
.category-card h3 {
  font-size: 24px;
  margin: 0 0 8px;
}
.category-card span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 20px;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.back {
  color: var(--maroon);
  font-size: 14px;
}
.category-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--light);
}
.category-heading .back {
  font-weight: 600;
  white-space: nowrap;
}
.category-heading > div {
  min-width: 0;
}
.category-heading p,
.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.category-heading h1 {
  margin: 2px 0 0;
  overflow: hidden;
  font-size: clamp(22px, 2.3vw, 30px);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selection-count {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3e7c9;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.filter-panel,
.panel {
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: 17px;
  background: var(--light);
  margin: 25px 0;
}
.filter-panel h2 {
  margin-top: 0;
}
.selection-panel {
  margin-block: 18px 28px;
}
.selection-panel-heading,
.course-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.selection-panel-heading h2,
.course-preview-heading h2 {
  margin: 4px 0 0;
  font-size: 25px;
}
.text-button,
.text-link {
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: var(--maroon);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.text-button:hover,
.text-link:hover {
  text-decoration: underline;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.filter-field {
  min-width: 0;
  padding: 11px 12px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffdf6;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.filter-field.is-selected {
  border-color: var(--maroon);
  box-shadow: inset 0 0 0 1px var(--maroon);
}
.filter-field.is-disabled {
  background: #f7f1e4;
}
.filter-field > span {
  display: block;
  color: #493524;
  font-size: 13px;
  font-weight: 700;
}
.filter-field select {
  margin-bottom: 10px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.filter-field select:focus-visible {
  outline-offset: 1px;
}
.course-preview {
  margin-top: 30px;
}
.course-preview-heading {
  margin-bottom: 15px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #493524;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 13px 12px;
  border: 1px solid #cdbb97;
  background: #fffdf6;
  color: #33271e;
  border-radius: 10px;
  margin: 7px 0 18px;
  font-size: 16px;
  min-width: 0;
}
input[type="checkbox"] {
  width: auto;
}
select {
  white-space: normal;
  text-overflow: ellipsis;
  min-height: 50px;
}
textarea {
  resize: vertical;
}
.subtle {
  font-size: 13px;
  color: var(--muted);
}
.empty {
  background: var(--light);
  border: 1px dashed #bea16e;
  border-radius: 17px;
  text-align: center;
  padding: 35px;
  max-width: 800px;
  margin: 25px auto;
}
.empty p {
  color: var(--muted);
}
.empty a {
  color: var(--maroon);
  font-weight: 600;
}
.notice {
  border-left: 3px solid #b18b45;
  background: #f2e6c6;
  padding: 17px;
  font-size: 14px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
  font-size: 14px;
}
.auth-page {
  max-width: 1050px;
  margin: 35px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
}
.auth-page > aside {
  background: var(--maroon);
  color: var(--cream);
  padding: 40px;
}
.auth-page aside h1 {
  color: var(--cream);
  font-size: 43px;
}
.auth-page aside img {
  width: 240px;
  border-radius: 50%;
  margin: 40px auto;
}
.auth-page > section {
  padding: 40px;
  background: var(--light);
}
.auth-page section h1 {
  font-size: 34px;
}
.auth-page section > a {
  display: block;
  margin: 13px 0;
  font-size: 14px;
  color: var(--maroon);
}
.password {
  position: relative;
}
.password input {
  padding-right: 70px;
}
.password button {
  position: absolute;
  right: 4px;
  top: 4px;
  background: transparent;
  border: 0;
  font-size: 13px;
}
.password + small {
  color: var(--muted);
}
.dashboard-tabs,
.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.dashboard-tabs a,
.pills button {
  border: 1px solid var(--border);
  padding: 10px 17px;
  border-radius: 24px;
  color: var(--maroon);
  font-size: 14px;
}
.pills [aria-pressed="true"] {
  background: var(--maroon);
  color: var(--cream);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 25px 0;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--light);
}
.stat-row > div {
  text-align: center;
  padding: 18px;
  border-right: 1px solid var(--border);
}
.stat-row > div:last-child {
  border: 0;
}
.stat-row strong {
  display: block;
  font: 30px Georgia;
  color: var(--maroon);
}
.stat-row span {
  font-size: 12px;
  color: var(--muted);
}
.continue-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--light);
  padding: 15px;
  margin: 15px 0;
}
.continue-card img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 10px;
}
.continue-card > div {
  flex: 1;
  min-width: 0;
}
.continue-card h3 {
  font-size: 20px;
  margin: 0;
}
.continue-card p {
  font-size: 13px;
  margin: 5px 0;
}
.continue-card small {
  font-size: 12px;
  color: var(--muted);
}
.continue-card > span {
  font-size: 13px;
  color: var(--maroon);
}
.home-continue .section-heading {
  margin-bottom: 12px;
}
.home-continue-card {
  min-height: 112px;
  margin: 0;
  padding: 12px;
  gap: 15px;
  box-shadow: 0 5px 18px #6500000a;
}
.home-continue-card > img {
  width: 92px;
  height: 92px;
  border-radius: 12px;
}
.home-continue-card .continue-copy {
  display: grid;
  gap: 3px;
}
.home-continue-card .continue-copy > small {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-continue-card h3 {
  font-size: 19px;
  margin: 0;
}
.home-continue-card p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.continue-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
}
.continue-progress progress {
  flex: 1;
  height: 7px;
}
.continue-progress span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.continue-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--maroon);
  color: var(--cream) !important;
  font-size: 12px !important;
  font-weight: 700;
}
.result-row {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 17px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.course-detail,
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 25px;
  align-items: start;
}
.course-banner {
  display: flex;
  background: var(--maroon);
  color: var(--cream);
  border-radius: 20px;
  overflow: hidden;
}
.course-banner > img {
  width: 30%;
  object-fit: contain;
  background: #f2e4c9;
  padding: 12px;
}
.course-banner > div {
  padding: 27px;
}
.course-banner h1 {
  font-size: 33px;
  color: var(--cream);
  margin: 10px 0;
}
.course-banner p {
  font-size: 14px;
}
.course-banner small {
  font-size: 9px;
  color: #e4c788;
}
.course-sidebar {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 23px;
}
.course-sidebar h3 {
  margin-top: 0;
}
.course-sidebar p {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
progress {
  width: 100%;
  height: 9px;
  accent-color: var(--maroon);
}
.chapter {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 15px 0;
}
.chapter summary {
  background: #f4e9cd;
  padding: 17px;
  cursor: pointer;
  color: var(--maroon);
  font-weight: 600;
  font-size: 15px;
}
.chapter summary span {
  float: right;
  font-weight: 400;
  font-size: 12px;
}
.lesson-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 17px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.lesson-row > div {
  flex: 1;
  min-width: 0;
}
.lesson-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.lesson-row svg {
  flex-shrink: 0;
}
.lesson-row:hover,
.lesson-row.selected {
  background: #f1e5c8;
}
.lesson-layout video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 15px;
  background: #260000;
}
.lesson-layout h1 {
  font-size: 32px;
}
.reading-banner {
  padding: 30px;
  background: var(--maroon);
  border-radius: 17px;
  color: var(--cream);
}
.reading-banner h1 {
  color: var(--cream);
}
.lesson-text,
.prewrap {
  white-space: pre-wrap;
  font-size: 17px;
  line-height: 1.9;
}
.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.answer {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  font-weight: 400;
}
.answer input {
  width: auto;
  margin: 0;
  accent-color: var(--maroon);
}
.feedback {
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}
.pdf-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
  font-size: 14px;
}
.pdf-canvas {
  overflow: auto;
  border: 1px solid var(--border);
  background: #e4dccb;
  max-width: 100%;
  padding: 12px;
}
.pdf-canvas canvas {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
}
.admin-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 25px;
}
.record {
  display: block;
  width: 100%;
  text-align: left;
  margin: 9px 0;
  font-size: 14px;
}
.record small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.member-row > div {
  flex: 1;
}
.member-row p {
  font-size: 13px;
}
.loading {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.site-footer {
  max-width: 1260px;
  margin: auto;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  padding: 24px 30px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.site-footer address {
  font-style: normal;
  line-height: 1.7;
}
.profile-learning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.profile-learning h2 {
  margin: 4px 0 8px;
}
.profile-learning .eyebrow,
.live-classes .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.live-classes-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.live-classes-heading h1 {
  margin: 6px 0 8px;
}
.live-classes-heading > div > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}
.live-classes-empty {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 760px;
}
.live-classes-empty h2 {
  margin: 5px 0 8px;
}
.live-classes-empty .subtle {
  margin: 0;
}
.live-classes-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--maroon);
}
.bottom-nav {
  display: none;
}

/* Shared heritage frame: used by the catalogue, lessons, assessment and certificate screens. */
.panel,
.filter-panel,
.course-card,
.category-card,
.course-sidebar,
.chapter,
.lesson-content,
.quiz-card,
.certificate,
.continue-card,
.home-highlight,
.education-card {
  border-color: #c99a43 !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 249, 218, 0.9),
    0 4px 11px rgba(94, 40, 0, 0.1);
}
.panel,
.filter-panel,
.course-sidebar,
.lesson-content,
.quiz-card,
.certificate {
  background: linear-gradient(135deg, #fffdf4, #fff4d8) !important;
}
.course-card,
.category-card,
.continue-card,
.education-card,
.home-highlight {
  background: linear-gradient(135deg, #fffef6, #f9e9be) !important;
}
.section-heading h2,
.course-detail h1,
.lesson-content h1,
.quiz-card h1,
.certificate h1 {
  text-shadow: 1px 1px 0 #f5d993;
}
.course-card::before,
.category-card::before,
.panel::before,
.filter-panel::before {
  content: "✦";
  position: absolute;
  top: 7px;
  right: 10px;
  color: #b47a1e;
  font-size: 12px;
  opacity: 0.7;
}
.course-card,
.category-card,
.panel,
.filter-panel {
  position: relative;
}
.course-card-media,
.course-card-media img {
  background: #5d0a00;
}
.course-card-media img {
  object-fit: contain;
}
.site-footer {
  margin-top: 28px;
  border: 2px solid #9b681d;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, #490000, #700000, #490000);
  box-shadow: inset 0 2px 0 #e7c267;
  color: #ffe9ad;
}
.site-footer address {
  color: inherit;
}

/* Royal framing based on the supplied ornamental border artwork.  It is used
   as a true border treatment on major areas, never as a full-page image. */
.page {
  border: 20px solid transparent;
  border-image-source: url("/images/royal-temple-frame-reference.png");
  border-image-slice: 125;
  border-image-width: 17px;
  border-image-repeat: stretch;
  border-radius: 0;
  box-shadow: 0 11px 30px rgba(74, 20, 0, 0.2);
}
.home-hero {
  border: 18px solid transparent;
  border-image-source: url("/images/royal-temple-frame-reference.png");
  border-image-slice: 125;
  border-image-width: 14px;
  border-image-repeat: stretch;
  border-radius: 0;
  box-shadow: 0 8px 22px rgba(74, 20, 0, 0.25);
}
.dashboard-sidebar {
  border: 16px solid transparent;
  border-image-source: url("/images/royal-temple-frame-reference.png");
  border-image-slice: 125;
  border-image-width: 13px;
  border-image-repeat: stretch;
  border-radius: 0;
}
.section-heading {
  padding-bottom: 8px;
  border-bottom: 2px solid #c99538;
  background: linear-gradient(
      90deg,
      transparent,
      rgba(230, 190, 99, 0.35),
      transparent
    )
    bottom / 100% 1px no-repeat;
}
.section-heading h2::after {
  content: "  ✦  ❦  ✦";
  color: #ad731a;
  font-size: 13px;
  letter-spacing: 2px;
  vertical-align: middle;
}
.teacher-page {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  max-width: 1500px;
}
.teacher-side {
  align-self: start;
  position: sticky;
  top: 10px;
  display: grid;
  gap: 4px;
  padding: 18px 10px;
  background: linear-gradient(#6d0000, #330000);
  color: #fff5d0;
  border: 15px solid transparent;
  border-image: url("/images/royal-temple-frame-reference.png") 125 / 12px
    stretch;
}
.teacher-side strong {
  padding: 8px 10px 13px;
  color: #f0cc72;
  font: 700 14px Georgia;
}
.teacher-side a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
}
.teacher-side a.active,
.teacher-side a:hover {
  background: #f9dc87;
  color: #650000;
  font-weight: 700;
}
.teacher-top {
  min-height: 170px;
  padding: 25px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(90deg, #fff9e8cc, #fff9e833),
    url("/images/home-campus-hero.png") center/cover;
  border: 15px solid transparent;
  border-image: url("/images/royal-temple-frame-reference.png") 125 / 12px
    stretch;
}

/* Royal landing page: the shared reference composition, implemented with the academy's own routes and content. */
@media (min-width: 761px) {
  body {
    background: #f2dfb0;
  }
  .brand-header {
    min-height: 104px;
    padding: 10px calc((100% - 1320px) / 2 + 28px);
    border-top: 8px solid #4d0000;
  }
  .brand-header > a {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .brand-header img {
    width: 275px;
    height: 76px;
    filter: drop-shadow(0 2px 1px #180000);
  }
  .brand-header span {
    color: #ffe7a0;
  }
  .brand-header::after {
    content: "❦  ✦  ❦";
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    font-size: 18px;
  }
  .identity-strip {
    position: absolute;
    z-index: 3;
    right: max(28px, calc((100% - 1320px) / 2 + 28px));
    top: 13px;
    margin: 0;
    padding: 0;
  }
  .auth-actions {
    gap: 8px;
  }
  .auth-actions .button {
    min-height: 40px;
    padding: 8px 18px;
    color: #4e0000;
    background: linear-gradient(#ffe8a1, #cf942c);
    border-color: #f6cc5c;
  }
  .auth-actions .button.outline {
    background: #700000;
    color: #fff5cf;
  }
  .desktop-nav {
    position: absolute;
    z-index: 4;
    top: 39px;
    left: 50%;
    transform: translateX(-10%);
    display: flex;
    gap: 22px;
    color: #ffeccb;
    font:
      600 13px Georgia,
      serif;
  }
  .desktop-nav a {
    color: inherit;
  }
  .desktop-nav a:hover {
    color: #ffda72;
  }
  .royal-home {
    max-width: 1320px;
    margin: 0 auto 26px;
    padding: 18px 22px 8px;
    background: #fff8df;
    box-shadow: 0 6px 24px #4b210855;
  }
  .royal-home > section {
    margin-top: 18px;
  }
  .royal-hero {
    min-height: 405px;
    border: 18px solid transparent;
    border-image: url("/images/royal-temple-frame-reference.png") 125 / 18px
      stretch;
    border-radius: 0;
  }
  .royal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
      90deg,
      rgba(63, 0, 0, 0.86) 0%,
      rgba(83, 0, 0, 0.67) 35%,
      rgba(83, 0, 0, 0.08) 70%
    );
  }
  .royal-hero > div {
    width: 48%;
    padding: 75px 52px;
  }
  .royal-hero h1 {
    font-size: clamp(46px, 4.1vw, 69px);
    text-shadow: 0 2px 2px #250000;
  }
  .royal-hero p {
    font:
      18px/1.5 Georgia,
      serif;
    color: #fff1c9;
  }
  .royal-hero small {
    color: #ffd56d;
  }
  .royal-hero .button.light {
    background: linear-gradient(#ffeaa8, #d69a28);
    border-color: #ffcf55;
    color: #570000;
    font:
      700 16px Georgia,
      serif;
    border-radius: 24px;
  }
  .education-section .section-heading {
    display: none;
  }
  .education-grid {
    gap: 16px;
  }
  .education-card {
    min-height: 202px;
    padding: 31px 29px;
    border: 5px double #c18a27;
    border-radius: 18px;
    box-shadow:
      0 3px 0 #640000,
      inset 0 0 0 2px #ffe9a5;
  }
  .education-art {
    opacity: 0.78;
  }
  .education-card::after {
    background: linear-gradient(
      90deg,
      rgba(255, 250, 224, 0.97) 2%,
      rgba(255, 248, 217, 0.78) 49%,
      rgba(83, 0, 0, 0.46)
    );
  }
  .education-card.gurukul::after {
    background: linear-gradient(
      90deg,
      rgba(88, 0, 0, 0.64),
      rgba(88, 0, 0, 0.25),
      rgba(255, 246, 210, 0.08)
    );
  }
  .education-card-copy strong {
    font-size: 31px;
    text-shadow: 0 1px #fff3c5;
  }
  .education-card.gurukul .education-card-copy strong,
  .education-card.gurukul .education-card-copy small {
    color: #fff6d8;
    text-shadow: 0 1px 2px #350000;
  }
  .education-card-copy small {
    font:
      14px/1.4 Georgia,
      serif;
    color: #4e2115;
  }
  .education-icon {
    background: #f7d96d;
    color: #690000;
  }
  .education-arrow {
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 50%;
    background: #730000;
    color: #ffe8a0;
  }
  .home-highlights {
    grid-template-columns: repeat(6, 1fr);
    margin-top: 14px !important;
    padding: 9px 0;
    border: 2px solid #dcba64;
    background: #fff7dd;
  }
  .home-highlight {
    padding: 6px 9px;
  }
  .home-highlight > span {
    background: #f3ddb0;
    color: #720000;
  }
  .home-highlight strong {
    font-size: 12px;
  }
  .home-highlight small {
    font-size: 10px;
  }
  .home-course-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .home-course-row .course-card {
    border: 2px solid #d3aa58;
    border-radius: 10px;
    box-shadow: 0 2px 5px #6b220018;
  }
  .home-course-row .course-card-media {
    aspect-ratio: 16/8;
  }
  .home-course-row .course-card h3 {
    font-size: 16px;
  }
  .home-course-row .course-card > div {
    padding: 8px 10px;
  }
  .royal-home .section-heading {
    margin: 18px 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #c99027;
  }
  .royal-home .section-heading h2 {
    font-size: 28px;
    color: #6b0000;
  }
  .royal-home .section-heading a {
    padding: 6px 12px;
    border-radius: 15px;
    color: #fff7d7;
    background: #720000;
  }
  .site-footer {
    max-width: 1320px;
    margin: 0 auto;
    min-height: 62px;
    border-top: 3px solid #d8a53e;
    background: linear-gradient(90deg, #4b0000, #790000, #4b0000);
    color: #fff0c5;
  }
  .site-footer address {
    text-align: center;
    font-style: normal;
    font-size: 13px;
  }
}
.teacher-top h1 {
  margin: 5px 0;
  font-size: 38px;
}
.teacher-top p {
  margin: 0;
  font-size: 17px;
}
.teacher-search {
  align-self: start;
  min-width: 280px;
  padding: 11px 16px;
  border-radius: 9px;
  background: #fffdf3;
  border: 1px solid #c9993f;
  color: #796b56;
  font-size: 13px;
}
.teacher-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.teacher-stats > div,
.teacher-panel {
  background: #fffaf0;
  border: 1px solid #e0bd65;
  box-shadow:
    inset 0 0 0 2px #fff4cf,
    0 4px 12px #65000016;
}
.teacher-stats > div {
  display: grid;
  grid-template-columns: 30px auto;
  gap: 0 8px;
  padding: 13px;
  border-radius: 10px;
}
.teacher-stats svg {
  grid-row: 1/3;
  color: #8b1800;
}
.teacher-stats strong {
  font-size: 22px;
  color: #650000;
  line-height: 1;
}
.teacher-stats span {
  font-size: 11px;
  color: #6f5944;
}
.teacher-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(210px, 0.8fr) minmax(
      210px,
      0.9fr
    );
  gap: 14px;
}
.teacher-panel {
  padding: 15px;
  border-radius: 12px;
}
.teacher-panel h2 {
  margin: 0 0 12px;
  font-size: 21px;
}
.teacher-courses article {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #eadbb7;
}
.teacher-courses img {
  height: 64px;
  width: 110px;
  object-fit: cover;
  border-radius: 7px;
}
.teacher-courses h3 {
  margin: 0;
  font-size: 17px;
}
.teacher-courses p {
  margin: 2px 0;
  font-size: 12px;
  color: #76614c;
}
.published,
.draft {
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
}
.published {
  background: #ccefc7;
  color: #176b26;
}
.draft {
  background: #ffe29a;
  color: #6f4b00;
}
.teacher-courses button {
  padding: 6px 10px;
}
.teacher-action {
  display: flex;
  width: 100%;
  gap: 8px;
  align-items: center;
  margin: 7px 0;
  padding: 9px;
  border-radius: 7px;
  background: #fff8e8;
  color: #750000;
}
.teacher-activity {
  padding: 9px 0;
  margin: 0;
  border-bottom: 1px solid #eadbb7;
  font-size: 13px;
}
.teacher-activity small {
  display: block;
  color: #92785a;
}
.teacher-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 14px;
}
.teacher-bottom p {
  font-size: 13px;
  color: #6f5944;
}
