:root {
  --bg: #f8f1e4;
  --surface: #fffaf2;
  --surface-soft: #f3e5d3;
  --surface-muted: #ead8c1;
  --text: #3f2b1f;
  --text-soft: #6f5646;
  --line: rgba(110, 75, 50, 0.16);
  --primary: #b96f34;
  --primary-deep: #8e5529;
  --shadow: 0 24px 60px rgba(95, 66, 41, 0.13);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --wrap: min(1160px, calc(100vw - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(205, 162, 102, 0.14), transparent 38%),
    radial-gradient(circle at top right, rgba(222, 189, 141, 0.14), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.platform-page {
  min-height: 100vh;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(110, 75, 50, 0.08);
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
}

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

.brand-logo {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-text strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand-text small {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--primary-deep);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.22s ease;
  font-weight: 700;
}

.header-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 16px 32px rgba(158, 101, 43, 0.22);
  color: #fff;
}

.header-cta:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(142, 85, 41, 0.35);
  color: var(--primary-deep);
}

.btn.full {
  width: 100%;
}

.access-shortcuts {
  margin-top: 14px;
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.mobile-nav-shell {
  display: none;
}

.mobile-nav {
  display: none;
}

.mobile-nav-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  padding: 38px 0 76px;
}

.hero,
.catalog-section,
.detail-section,
.checkout-section,
.login-section,
.portal-section {
  margin-top: 26px;
}

.hero-grid,
.detail-grid,
.checkout-grid,
.login-grid {
  display: grid;
  gap: 26px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}

.hero-copy,
.hero-card,
.course-card,
.detail-copy,
.detail-media,
.checkout-card,
.login-card,
.portal-shell {
  border: 1px solid rgba(140, 99, 64, 0.08);
  background: rgba(255, 250, 242, 0.94);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-card,
.detail-copy,
.detail-media,
.checkout-card,
.login-card,
.portal-shell {
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 34px 36px 34px;
}

.hero-card {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-photo-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(209, 167, 109, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(245, 235, 220, 0.96));
}

.hero-photo-card::before,
.hero-photo-card::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 72%;
  height: 92px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(185, 111, 52, 0.96), rgba(142, 85, 41, 0.96));
  transform: translateX(-50%);
  box-shadow: 0 16px 32px rgba(130, 80, 41, 0.18);
}

.hero-photo-card::before {
  top: 78px;
}

.hero-photo-card::after {
  bottom: 76px;
}

.hero-photo-card img {
  position: relative;
  z-index: 1;
  width: min(110%, 660px);
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(8px) scale(1.07);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-copy h1,
.section-heading h2,
.detail-copy h2,
.login-copy h2,
.portal-header h2 {
  margin-top: 18px;
}

.hero-copy h1 {
  max-width: 11.8ch;
  font-size: clamp(3.4rem, 4.8vw, 5rem);
  line-height: 0.92;
}

.hero-copy p,
.section-heading p,
.detail-copy p,
.login-copy p,
.checkout-card p,
.portal-header p,
.course-body p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 1rem;
}

.hero-copy p {
  max-width: 34rem;
  margin-top: 18px;
}

.hero-actions,
.course-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 26px;
}

.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 28px;
}

.section-heading h2 {
  font-size: clamp(2.25rem, 4vw, 3.4rem);
}

.section-heading p {
  margin-top: 14px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.course-card {
  border-radius: 28px;
  overflow: hidden;
}

.course-thumb {
  display: block;
  aspect-ratio: 1.68 / 1;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(233, 219, 199, 0.66), rgba(247, 239, 228, 0.84));
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.course-thumb-bread img {
  object-position: center center;
}

.course-body {
  display: grid;
  gap: 18px;
  padding: 24px 26px 28px;
  text-align: center;
}

.card-tag {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-body h3 {
  font-size: clamp(2rem, 2.6vw, 2.7rem);
  line-height: 1.02;
}

.course-actions {
  justify-content: center;
}

.course-actions .btn {
  min-width: 188px;
}

.detail-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  align-items: stretch;
}

.detail-grid-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
}

.detail-media {
  overflow: hidden;
}

.detail-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

.detail-media-bread img {
  object-position: center center;
}

.detail-copy {
  padding: 28px 28px 30px;
  display: grid;
  gap: 20px;
}

.detail-copy h2 {
  font-size: clamp(3rem, 4.6vw, 5rem);
}

.detail-points {
  display: grid;
  gap: 12px;
}

.detail-points div {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  display: grid;
  gap: 8px;
}

.detail-points strong {
  font-size: 1.04rem;
}

.detail-points span {
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 0.96rem;
}

.detail-section-soft .detail-media,
.detail-section-soft .detail-copy {
  background: rgba(248, 238, 221, 0.9);
}

.checkout-grid,
.login-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-card,
.login-card,
.login-copy {
  padding: 32px 30px;
}

.checkout-card h2,
.login-copy h2,
.portal-header h2 {
  margin-top: 14px;
  margin-bottom: 12px;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 0.98;
}

.checkout-card-action h3 {
  margin-top: 14px;
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

.checkout-card p,
.login-copy p,
.portal-header p {
  margin-top: 12px;
}

.summary-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.summary-list span {
  color: var(--text-soft);
}

.summary-list strong {
  text-align: right;
}

.inline-feedback {
  min-height: 1.4em;
  margin-top: 12px;
  color: var(--primary-deep);
  font-weight: 700;
}

.login-form,
.admin-form {
  display: grid;
  gap: 16px;
}

.access-note {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.access-note strong {
  font-size: 0.95rem;
}

.access-note span {
  color: var(--text-soft);
  line-height: 1.55;
}

.login-form label,
.admin-form label {
  display: grid;
  gap: 8px;
}

.login-form span,
.admin-form span {
  font-size: 0.92rem;
  font-weight: 700;
}

.login-form input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.admin-form textarea {
  min-height: 130px;
  padding: 14px 16px;
  resize: vertical;
}

.portal-section.is-hidden {
  display: none;
}

.login-section.is-hidden {
  display: none;
}

.portal-shell {
  padding: 36px;
}

.portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portal-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.portal-card h3 {
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  line-height: 1.02;
}

.portal-card p {
  margin-top: 12px;
  color: var(--text-soft);
  line-height: 1.68;
}

.calendar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.slot-pill {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
}

.slot-pill.is-selected {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 14px 28px rgba(158, 101, 43, 0.2);
}

.request-box {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portal-card-wide {
  grid-column: 1 / -1;
}

.slot-list,
.request-list,
.student-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.slot-item,
.request-item,
.student-list div {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.slot-item,
.request-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.slot-item strong,
.request-item strong,
.student-list strong {
  display: block;
}

.slot-item span,
.request-item span,
.student-list span,
.saved-location {
  color: var(--text-soft);
  line-height: 1.6;
}

.saved-location {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .top-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle,
  .mobile-nav-shell {
    display: flex;
  }

  .mobile-nav-shell {
    justify-content: center;
    padding: 0 20px 18px;
  }

  .mobile-nav {
    width: min(100%, 760px);
    padding: 12px;
    border: 1px solid rgba(140, 99, 64, 0.08);
    border-radius: 24px;
    background: rgba(255, 250, 242, 0.95);
    box-shadow: var(--shadow);
  }

  .mobile-nav.is-open {
    display: grid;
    gap: 10px;
  }

  .mobile-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    font-weight: 700;
  }

  .mobile-nav-action {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
  }

  .hero-grid,
  .detail-grid,
  .detail-grid-reverse,
  .checkout-grid,
  .login-grid,
  .portal-grid,
  .admin-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 14ch;
    font-size: clamp(2.9rem, 8vw, 4rem);
  }

  .hero-photo-card {
    min-height: 470px;
  }

  .hero-photo-card img {
    width: min(108%, 580px);
    transform: translateY(6px) scale(1.04);
  }

  .detail-media img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --wrap: min(100vw - 20px, 100%);
  }

  .header-inner {
    min-height: 72px;
    gap: 14px;
  }

  .brand-logo {
    width: 54px;
  }

  .brand-text strong {
    font-size: 0.92rem;
  }

  main {
    padding: 18px 0 54px;
  }

  .hero,
  .catalog-section,
  .detail-section,
  .checkout-section,
  .login-section,
  .portal-section {
    margin-top: 18px;
  }

  .hero-copy,
  .hero-card,
  .detail-copy,
  .detail-media,
  .checkout-card,
  .login-card,
  .portal-shell {
    border-radius: 26px;
  }

  .hero-copy,
  .checkout-card,
  .login-card,
  .login-copy,
  .portal-shell {
    padding: 22px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1 {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.3rem, 9.2vw, 3rem);
  }

  .hero-copy p {
    max-width: none;
  }

  .hero-actions,
  .course-actions,
  .portal-header {
    justify-content: center;
  }

  .hero-photo-card {
    min-height: 395px;
  }

  .hero-photo-card::before,
  .hero-photo-card::after {
    width: 80%;
    height: 74px;
  }

  .hero-photo-card::before {
    top: 42px;
  }

  .hero-photo-card::after {
    bottom: 48px;
  }

  .hero-photo-card img {
    width: 100%;
    max-width: 500px;
    max-height: 100%;
    transform: translateY(6px) scale(1.08);
  }

  .section-heading h2,
  .detail-copy h2,
  .checkout-card h2,
  .login-copy h2,
  .portal-header h2,
  .portal-card h3,
  .course-body h3 {
    line-height: 1;
  }

  .detail-copy h2 {
    font-size: clamp(2.45rem, 11vw, 3.2rem);
  }

  .detail-media img {
    width: 100%;
    height: auto;
  }

  .course-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .portal-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .slot-item,
  .request-item {
    grid-template-columns: 1fr;
  }
}

.platform-footer {
  padding: 0 0 28px;
}

.platform-footer .wrap {
  display: flex;
  justify-content: center;
}

.platform-footer p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.platform-footer a {
  color: var(--primary-deep);
  font-weight: 800;
}
