/* Global styles — Masahat Sukoon design foundation
   Use Tailwind utilities for UI. This file holds tokens + base only. */

:root {
  /* Brand palette (from logo) */
  --primary: #D6A2A2;
  --primary-soft: #E8C4C4;
  --primary-deep: #A06B6B;
  --primary-ink: #7A4E4E;
  --sand: #F5F1E9;
  --sand-light: #FAF8F4;
  --sand-dark: #E8E0D4;
  --secondary: #5C4545;
  --text: #5C4545;
  --text-muted: #8A6F6F;
  --white: #FFFFFF;
  --success: #4F8A6B;
  --danger: #C45C5C;

  /* Aliases used across the project */
  --primary-color: var(--primary);
  --secondary-color: var(--secondary);
  --base-font: 'Cairo', sans-serif;

  /* Aliases referenced by inline styles in Blade views and admin.js.
     These were being used without ever being declared, so those rules
     silently did nothing (no background, no border, no colour) and pages
     drifted out of sync visually. Mapped onto the brand palette so every
     screen resolves to the same design system. */
  --color-primary: var(--primary-deep);
  --bg-color: var(--sand-light);
  --border: rgba(214, 162, 162, 0.28);
  --border-color: rgba(214, 162, 162, 0.28);
  --text-color: var(--text);
  --heading-color: var(--primary-ink);
  --success-color: var(--success);
  --error-color: var(--danger);
  --warn-color: var(--danger);
  --border-radius-sm: 0.5rem;
  --fs-xs: 0.8rem;

  /* Layout */
  --header-h: 4.75rem;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 8px 28px rgba(160, 107, 107, 0.1);
  --focus-ring: 0 0 0 3px rgba(214, 162, 162, 0.55);
}

/* Accessibility: respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  position: relative;
  font-family: var(--base-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: var(--sand-light);
  line-height: 1.7;
}

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

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

/* Focus visibility (a11y) */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  right: 1rem;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--primary-ink);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Scrollbar (webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--sand-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
}

/* Firefox scrollbar */
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--sand-light);
}

/* ============================ */
/* ===== SITE CONTAINER ======= */
/* (custom class — avoids Tailwind CDN .container override) */
/* ============================ */
.site-container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  .site-container {
    max-width: 1320px;
  }
}

/* ============================ */
/* ===== BUTTON SYSTEM ======== */
/* ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.8125rem;
  gap: 0.4rem;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.0625rem;
  gap: 0.6rem;
}

.btn-primary {
  background: var(--primary-deep);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-ink);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  color: var(--primary-ink);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary-ink);
}

.btn-soft:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-ink);
}

.btn-ghost:hover {
  background: var(--sand);
  color: var(--primary-ink);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.section-pad {
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding-block: 5.5rem;
  }
}

/* ============================ */
/* ===== HOME HERO ============ */
/* ============================ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: hero-ken 18s ease-out forwards;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(122, 78, 78, 0.72) 0%,
      rgba(160, 107, 107, 0.35) 45%,
      rgba(214, 162, 162, 0.18) 100%
    );
}

.hero__content {
  width: 100%;
  padding-top: 5rem;
  padding-bottom: 3.5rem;
}

.hero__copy {
  max-width: 40rem;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 18px rgba(92, 69, 69, 0.25);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(250, 248, 244, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

@keyframes hero-ken {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

@media (min-width: 768px) {
  .hero {
    align-items: center;
  }

  .hero__content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__img {
    animation: none;
    transform: none;
  }
}

/* ============================ */
/* ===== COURSE TYPES ========== */
/* ============================ */
.course-types {
  position: relative;
  background-color: var(--sand-light);
  background-image:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(232, 196, 196, 0.45), transparent 60%),
    radial-gradient(ellipse 55% 40% at 0% 100%, rgba(214, 162, 162, 0.22), transparent 55%);
}

.course-types__intro {
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  text-align: center;
}

.course-types__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.course-types__heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.course-types__lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.8;
  color: var(--text-muted);
}

.course-types__grid {
  display: grid;
  gap: 1.25rem;
}

.type-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.35);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.08);
  color: inherit;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.type-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
}

.type-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 0.7s ease;
}

.type-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.35rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(250, 248, 244, 0.65) 0%, rgba(232, 196, 196, 0.28) 100%);
}

.type-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.type-card__text {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--secondary);
}

.type-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-deep);
  transition: gap 0.25s ease, color 0.25s ease;
}

.type-card:hover {
  transform: translateY(-3px);
  border-color: rgba(160, 107, 107, 0.45);
  box-shadow: 0 14px 34px rgba(160, 107, 107, 0.14);
}

.type-card:hover .type-card__img {
  transform: scale(1.05);
}

.type-card:hover .type-card__cta {
  gap: 0.7rem;
  color: var(--primary-ink);
}

.type-card:focus-visible {
  box-shadow: var(--focus-ring);
}

@media (min-width: 768px) {
  .course-types__intro {
    margin-bottom: 3.25rem;
  }

  .course-types__grid {
    /* auto-fit, not a fixed 2: there is one card per course type, so the row
       has to absorb a new type without leaving a lone card on its own line. */
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.5rem;
  }

  .type-card__body {
    padding: 1.55rem 1.6rem 1.7rem;
  }

  .type-card__title {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .type-card,
  .type-card__img,
  .type-card__cta {
    transition: none;
  }

  .type-card:hover {
    transform: none;
  }

  .type-card:hover .type-card__img {
    transform: none;
  }
}

/* ============================ */
/* ===== FEATURED COURSES ===== */
/* ============================ */
.featured {
  background:
    radial-gradient(ellipse 60% 45% at 0% 0%, rgba(232, 196, 196, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(214, 162, 162, 0.16), transparent 50%),
    var(--sand);
}

.featured__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.featured__intro {
  max-width: 34rem;
}

.featured__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.featured__heading {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.featured__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .featured__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.25rem;
  }

  .featured__lead {
    font-size: 1.02rem;
  }
}

/* ============================ */
/* ===== HOW IT WORKS ========== */
/* ============================ */
.steps {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(232, 196, 196, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(214, 162, 162, 0.18), transparent 50%),
    var(--sand-light);
}

.steps__intro {
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  text-align: center;
}

.steps__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.steps__heading {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.steps__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.steps__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.75rem;
}

.steps__item:last-child {
  padding-bottom: 0;
}

.steps__item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 2.75rem;
  right: 1.3rem;
  width: 2px;
  height: calc(100% - 2.75rem);
  background: linear-gradient(to bottom, var(--primary), rgba(214, 162, 162, 0.15));
  border-radius: 99px;
}

.steps__marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 6px 18px rgba(160, 107, 107, 0.12);
}

.steps__num {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-ink);
}

.steps__panel {
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(214, 162, 162, 0.28);
  box-shadow: 0 8px 24px rgba(160, 107, 107, 0.06);
}

.steps__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-ink);
}

.steps__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--secondary);
}

.steps__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

@media (min-width: 768px) {
  .steps__intro {
    margin-bottom: 3rem;
  }

  .steps__lead {
    font-size: 1.02rem;
  }

  .steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .steps__item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-bottom: 0;
  }

  .steps__item:not(:last-child)::before {
    top: 1.55rem;
    right: 50%;
    left: auto;
    width: calc(100% + 1.5rem);
    height: 2px;
    background: linear-gradient(to left, rgba(214, 162, 162, 0.2), var(--primary), rgba(214, 162, 162, 0.2));
    transform: none;
  }

  .steps__marker {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.15rem;
  }

  .steps__num {
    font-size: 1.15rem;
  }

  .steps__panel {
    width: 100%;
    padding: 1.35rem 1.25rem 1.5rem;
    text-align: center;
  }

  .steps__title {
    font-size: 1.15rem;
  }

  .steps__text {
    font-size: 0.93rem;
  }

  .steps__actions {
    margin-top: 2.75rem;
  }
}

/* ============================ */
/* ===== WHY US ================ */
/* ============================ */
.why {
  background: var(--sand);
}

.why__grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.why__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand-dark);
  aspect-ratio: 4 / 3;
}

.why__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.why__heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.why__lead {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--secondary);
}

.why__points {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.why__points li {
  position: relative;
  padding-right: 1.35rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--primary-ink);
}

.why__points li::before {
  content: '';
  position: absolute;
  top: 0.65rem;
  right: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--primary);
}

@media (min-width: 768px) {
  .why__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 2.75rem;
  }

  .why__media {
    aspect-ratio: 5 / 4;
    min-height: 22rem;
  }

  .why__lead {
    font-size: 1.05rem;
  }

  .why__points {
    margin-bottom: 2rem;
  }

  .why__points li {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .why__grid {
    gap: 3.5rem;
  }
}

/* ============================ */
/* ===== CONSULT CTA =========== */
/* ============================ */
.consult-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 22rem;
  overflow: hidden;
  color: #fff;
}

.consult-cta__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.consult-cta__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.consult-cta__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(92, 69, 69, 0.82) 0%,
      rgba(122, 78, 78, 0.55) 45%,
      rgba(122, 78, 78, 0.35) 100%
    );
}

.consult-cta__content {
  width: 100%;
  padding-block: 3.5rem;
}

.consult-cta__copy {
  max-width: 36rem;
}

.consult-cta__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(250, 248, 244, 0.85);
}

.consult-cta__heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.consult-cta__text {
  margin: 0 0 1.5rem;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.85;
  color: rgba(250, 248, 244, 0.92);
}

.consult-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .consult-cta {
    min-height: 26rem;
  }

  .consult-cta__content {
    padding-block: 4.5rem;
  }
}

/* ============================ */
/* ===== PAGE INTRO ============ */
/* ============================ */
.page-intro {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(232, 196, 196, 0.4), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(214, 162, 162, 0.18), transparent 50%),
    var(--sand);
  border-bottom: 1px solid rgba(214, 162, 162, 0.22);
}

.page-intro__inner {
  padding-block: 3rem;
  max-width: 40rem;
}

.page-intro__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.page-intro__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-ink);
}

.page-intro__lead {
  margin: 0;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .page-intro__inner {
    padding-block: 4rem;
  }
}

/* ============================ */
/* ===== ABOUT STORY =========== */
/* ============================ */
.about-story {
  background: var(--sand-light);
}

.about-story__grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.about-story__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand-dark);
  aspect-ratio: 4 / 3;
}

.about-story__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story__identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.about-story__avatar {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.35);
  padding: 0.2rem;
}

.about-story__brand {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-ink);
  line-height: 1.3;
}

.about-story__role {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--primary-deep);
}

.about-story__heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.about-story__text {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--secondary);
}

.about-story__points {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.about-story__points li {
  position: relative;
  padding-right: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--primary-ink);
}

.about-story__points li::before {
  content: '';
  position: absolute;
  top: 0.55rem;
  right: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--primary);
}

@media (min-width: 768px) {
  .about-story__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 2.75rem;
  }

  .about-story__media {
    aspect-ratio: 5 / 4;
    min-height: 22rem;
  }

  .about-story__text {
    font-size: 1.02rem;
  }
}

@media (min-width: 1024px) {
  .about-story__grid {
    gap: 3.5rem;
  }
}

/* ============================ */
/* ===== COURSES CATALOG ======= */
/* ============================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.catalog {
  background: var(--sand-light);
}

.catalog__toolbar {
  margin-bottom: 1.5rem;
}

.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.catalog__filter {
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(214, 162, 162, 0.45);
  background: #fff;
  color: var(--primary-ink);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.catalog__filter:hover {
  border-color: var(--primary);
}

.catalog__filter.is-active {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #fff;
}

.catalog__grid {
  display: grid;
  gap: 1.15rem;
}

.catalog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.28);
  color: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.catalog-card.is-owned .catalog-card__link {
  border-color: rgba(79, 138, 107, 0.4);
}

.catalog-card__owned {
  display: inline-flex;
  margin: 0 0 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(79, 138, 107, 0.15);
  color: #3f7a58;
  font-size: 0.7rem;
  font-weight: 700;
}

.catalog-card.is-owned .catalog-card__cta {
  color: #3f7a58;
}

.course-buy.is-owned .course-buy__btn.is-disabled,
.course-buy.is-owned .course-buy__btn[aria-disabled='true'] {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.9;
  background: #4f8a6b;
  color: #fff;
}

.course-buy__owned {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--secondary);
}

.course-buy__owned a {
  color: var(--primary-deep);
  font-weight: 700;
}

.course-buy__owned.is-hidden,
.course-buy__owned[hidden] {
  display: none;
}

.catalog-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--sand);
}

.catalog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.catalog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.25rem;
}

.catalog-card__tag {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-deep);
}

.catalog-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-ink);
}

.catalog-card__text {
  margin: 0 0 0.9rem;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--secondary);
  overflow-wrap: break-word;
  word-break: break-word;
}

.catalog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-deep);
  transition: gap 0.25s ease, color 0.25s ease;
}

.catalog-card:hover .catalog-card__link,
.catalog-card:focus-within .catalog-card__link {
  border-color: rgba(160, 107, 107, 0.45);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.1);
}

.catalog-card:hover .catalog-card__img,
.catalog-card:focus-within .catalog-card__img {
  transform: scale(1.04);
}

.catalog-card:hover .catalog-card__cta,
.catalog-card:focus-within .catalog-card__cta {
  gap: 0.65rem;
  color: var(--primary-ink);
}

.catalog-card__link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.catalog__empty {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .catalog__toolbar {
    margin-bottom: 2rem;
  }

  .catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .catalog-card__title {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog__filter,
  .catalog-card__link,
  .catalog-card__img,
  .catalog-card__cta {
    transition: none;
  }

  .catalog-card:hover .catalog-card__img,
  .catalog-card:focus-within .catalog-card__img {
    transform: none;
  }
}

/* ============================ */
/* ===== COURSE DETAILS ======== */
/* ============================ */
.course-details {
  background: var(--sand-light);
}

.course-details__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.course-details__crumb a {
  color: var(--primary-deep);
  font-weight: 600;
}

.course-details__crumb a:hover {
  color: var(--primary-ink);
}

.course-details__grid {
  display: grid;
  gap: 1.75rem;
}

.course-details__cover {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
  aspect-ratio: 16 / 10;
}

.course-details__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-details__header {
  margin-top: 1.25rem;
}

.course-details__tag {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-deep);
}

.course-details__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-ink);
}

.course-details__lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--secondary);
}

.course-details__block {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(214, 162, 162, 0.28);
}

.course-details__h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.course-details__text {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--secondary);
  /* Admin-authored description is rendered as raw HTML (rich-text editor
     output), which can contain a run of text with no normal breakable
     spaces (a long word, a URL, or non-breaking spaces from paste). Without
     this, such a run refuses to wrap and overflows out of this column,
     underneath the sticky sidebar next to it. */
  overflow-wrap: break-word;
  word-break: break-word;
}

.course-details__text:last-child {
  margin-bottom: 0;
}

.course-details__video {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
  border: 1px solid rgba(214, 162, 162, 0.28);
  aspect-ratio: 16 / 9;
}

.course-details__video-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
  color: var(--primary-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.course-details__video-ph i {
  font-size: 2.25rem;
  opacity: 0.85;
}

.course-details__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.course-details__list li {
  position: relative;
  padding-right: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--primary-ink);
}

.course-details__list li::before {
  content: '';
  position: absolute;
  top: 0.6rem;
  right: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--primary);
}

.course-details__files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.course-details__file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.3);
  color: var(--primary-ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.course-details__file i {
  color: var(--primary-deep);
  font-size: 1.15rem;
}

.course-details__file span {
  flex: 1;
}

.course-details__file em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.course-details__note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.course-buy {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.3);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.08);
}

.course-buy__label {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.course-buy__price {
  display: flex;
  align-items: baseline;
  /* Three items once a discount is shown (was / amount / currency), and the
     amount is 2rem — without wrapping they push the aside sideways on a phone. */
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  color: var(--primary-ink);
}

.course-buy__amount {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.course-buy__currency {
  font-size: 0.95rem;
  font-weight: 600;
}

.course-buy__meta {
  margin: 0 0 1.15rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.course-buy__btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.course-buy__hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

.course-buy__alt {
  display: block;
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.course-buy__alt:hover {
  color: var(--primary-ink);
}

@media (min-width: 900px) {
  .course-details__grid {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 2rem;
    align-items: start;
  }

  .course-details__aside {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }

  .course-details__header {
    margin-top: 1.5rem;
  }

  .course-details__block {
    margin-top: 2.25rem;
  }
}

/* ============================ */
/* ===== WEEK CALENDAR ========= */
/* ============================ */
/* Shared 7-day strip used by both the admin dashboard and the user profile.
   style.css is loaded by both layouts, so this is defined once. */
.week-cal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.week-cal__day {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.9rem 0.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(214, 162, 162, 0.28);
  box-shadow: 0 6px 18px rgba(160, 107, 107, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.week-cal__day:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 162, 162, 0.55);
  box-shadow: 0 12px 26px rgba(160, 107, 107, 0.1);
}

/* Today reads as the anchor of the strip. */
.week-cal__day.is-today {
  background: var(--sand-light);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(160, 107, 107, 0.12);
}

.week-cal__head {
  text-align: center;
  padding-bottom: 0.6rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(214, 162, 162, 0.35);
}

.week-cal__weekday {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-deep);
}

.week-cal__date {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.week-cal__day.is-today .week-cal__weekday {
  color: var(--primary-ink);
}

.week-cal__today-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 0.68rem;
  font-weight: 700;
}

.week-cal__empty {
  margin: auto 0;
  padding: 0.65rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.75;
}

.week-cal__items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.week-cal__item {
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 0.6rem;
  background: var(--sand-light);
  border: 1px solid rgba(214, 162, 162, 0.25);
  text-align: right;
  overflow-wrap: break-word;
  word-break: break-word;
}

.week-cal__day.is-today .week-cal__item {
  background: var(--white);
}

.week-cal__time {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-ink);
}

.week-cal__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--secondary);
}

.week-cal__note {
  color: var(--text-muted);
}

.week-cal__badge {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(79, 138, 107, 0.14);
  color: var(--success);
}

.week-cal__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.week-cal__link:hover {
  color: var(--primary-ink);
  text-decoration: underline;
}

@media (min-width: 480px) {
  .week-cal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .week-cal {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

/* Full week visible in one row once there's room for it. */
@media (min-width: 1180px) {
  .week-cal {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .week-cal__day {
    transition: none;
  }

  .week-cal__day:hover {
    transform: none;
  }
}

/* ============================ */
/* ===== BOOKING PAGE ========== */
/* ============================ */
.booking {
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 196, 196, 0.28), transparent 55%),
    var(--sand-light);
}

.booking-wizard {
  max-width: 46rem;
  margin-inline: auto;
}

.booking__intro {
  max-width: 34rem;
  margin-bottom: 1.35rem;
}

.booking__heading {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--primary-ink);
}

.booking__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--secondary);
}

.booking-progress {
  margin-bottom: 1.75rem;
}

.booking-progress__track {
  height: 4px;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: rgba(214, 162, 162, 0.28);
  overflow: hidden;
}

.booking-progress__fill {
  display: block;
  height: 100%;
  width: 33.333%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-deep));
  transition: width 0.3s ease;
}

.booking-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.booking-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.booking-steps__item.is-active {
  color: var(--primary-ink);
}

.booking-steps__item.is-done {
  color: var(--primary-deep);
}

.booking-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(232, 196, 196, 0.4);
  color: var(--primary-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.booking-steps__item.is-active .booking-steps__num {
  background: var(--primary-deep);
  color: #fff;
}

.booking-steps__item.is-done .booking-steps__num {
  background: var(--primary);
  color: #fff;
}

.booking-pane[hidden] {
  display: none !important;
}

.booking-pane.is-active {
  display: block;
}

.offer-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.offer-card {
  cursor: pointer;
}

.offer-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.offer-card.is-owned {
  cursor: not-allowed;
  pointer-events: none;
}

.offer-card.is-owned .offer-card__box {
  opacity: 0.72;
  background: var(--sand-light);
  border-style: dashed;
}

.offer-card__owned-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(79, 138, 107, 0.15);
  color: #3f7a58;
  font-size: 0.7rem;
  font-weight: 700;
}

.offer-card__owned-badge[hidden] {
  display: none;
}

.offer-card__box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1.5px solid rgba(214, 162, 162, 0.32);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.offer-card__kind {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary-deep);
}

.offer-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.offer-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.offer-card__text {
  margin: 0.2rem 0 0.35rem;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--secondary);
}

.offer-card__price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-ink);
}

.offer-card__price b,
.offer-card__amount {
  font-size: 1.35rem;
  font-weight: 700;
}

.offer-card input:checked + .offer-card__box {
  border-color: var(--primary-deep);
  box-shadow: 0 8px 22px rgba(160, 107, 107, 0.12);
  background:
    linear-gradient(180deg, rgba(250, 248, 244, 0.35) 0%, rgba(232, 196, 196, 0.2) 100%),
    #fff;
}

.offer-card input:focus-visible + .offer-card__box {
  box-shadow: var(--focus-ring);
}

.booking-perks {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.booking-perks--compact li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--primary-ink);
}

.booking-perks i {
  color: var(--primary-deep);
}

.booking-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.booking-nav .btn {
  flex: 1 1 10rem;
  justify-content: center;
}

.booking__panel {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.3);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.08);
}

.booking__panel--confirm {
  max-width: 26rem;
}

.booking-summary {
  margin: 0 0 1.15rem;
  display: grid;
  gap: 0.85rem;
}

.booking-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.booking-summary dt {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.booking-summary dd {
  margin: 0;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-ink);
}

.booking-summary__total {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(214, 162, 162, 0.28);
}

.booking-summary__total dd {
  font-size: 1.15rem;
}

.booking__note-inline {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

.booking__login-link {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.booking__login-link:hover {
  color: var(--primary-ink);
}

.booking__login-note {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.booking__admin-note {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--sand);
  border: 1px dashed rgba(214, 162, 162, 0.55);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--secondary);
}

.booking__admin-note a {
  font-weight: 600;
  color: var(--primary-deep);
}

.booking__admin-note a:hover {
  color: var(--primary-ink);
}

.booking__pending-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--sand);
  border: 1px solid rgba(214, 162, 162, 0.4);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.06);
}

.booking__pending-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.booking__pending-text {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--secondary);
}

.cal {
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.3);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.06);
}

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cal__month {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.cal__nav {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 162, 162, 0.4);
  background: var(--sand-light);
  color: var(--primary-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.cal__nav:hover {
  background: #fff;
  border-color: var(--primary);
}

.cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.cal__day {
  aspect-ratio: 1;
  min-height: 2.35rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: default;
}

.cal__day.is-muted {
  opacity: 0.35;
}

.cal__day.is-available {
  background: rgba(232, 196, 196, 0.35);
  color: var(--primary-ink);
  cursor: pointer;
}

.cal__day.is-available:hover {
  background: rgba(214, 162, 162, 0.45);
}

.cal__day.is-selected {
  background: var(--primary-deep);
  color: #fff;
}

.cal__day:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.cal__slots {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(214, 162, 162, 0.25);
}

.cal__slots-title {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-ink);
}

.cal__times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cal__time {
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(214, 162, 162, 0.4);
  background: var(--sand-light);
  color: var(--primary-ink);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.cal__time:hover {
  border-color: var(--primary);
}

.cal__time.is-selected {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #fff;
}

.cal__time:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.cal__empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.booking-form__fieldset {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}

.booking-form__legend {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.booking-form__types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.booking-type {
  cursor: pointer;
}

.booking-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-type__box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 0.85rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(214, 162, 162, 0.4);
  background: var(--sand-light);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.booking-type__box strong {
  font-size: 0.95rem;
  color: var(--primary-ink);
}

.booking-type__box em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.booking-type input:checked + .booking-type__box {
  border-color: var(--primary-deep);
  background: rgba(232, 196, 196, 0.35);
}

.booking-type input:focus-visible + .booking-type__box {
  box-shadow: var(--focus-ring);
}

.booking-form__field {
  margin-bottom: 1rem;
}

.booking-form__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-ink);
}

.booking-form__optional {
  font-weight: 500;
  color: var(--text-muted);
}

/* A checkbox that gates another field (e.g. "enable a discounted price").
   The generic .booking-form__field rules stretch every input to 100% and give
   it form padding, which a checkbox must not inherit. */
.booking-form__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.booking-form__toggle input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--primary-deep);
  cursor: pointer;
}

.booking-form__toggle label {
  margin: 0;
  font-weight: 600;
  cursor: pointer;
}

.booking-form__field input:disabled,
.booking-form__field select:disabled,
.booking-form__field textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(214, 162, 162, 0.14);
}

.booking-form__field input,
.booking-form__field select,
.booking-form__field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(214, 162, 162, 0.45);
  background: var(--sand-light);
  color: var(--secondary);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.booking-form__field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.booking-form__field input::placeholder,
.booking-form__field textarea::placeholder {
  color: var(--text-muted);
}

.booking-form__field input:focus,
.booking-form__field select:focus,
.booking-form__field textarea:focus {
  outline: none;
  border-color: var(--primary-deep);
  box-shadow: var(--focus-ring);
}

.booking-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.35rem;
}

.booking-form__status {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

.booking-form__status.is-success {
  background: rgba(79, 138, 107, 0.12);
  color: var(--success);
}

.booking-form__status.is-error {
  background: rgba(196, 92, 92, 0.12);
  color: var(--danger);
}

@media (min-width: 640px) {
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .booking-steps__item {
    flex-direction: row;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-progress__fill,
  .offer-card__box,
  .cal__nav,
  .cal__time {
    transition: none;
  }
}

/* ============================ */
/* ===== CONTACT PAGE ========== */
/* ============================ */
.contact {
  background: var(--sand-light);
}

.contact__grid {
  display: grid;
  gap: 1.75rem;
}

.contact__heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--primary-ink);
}

.contact__text {
  margin: 0 0 1.35rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--secondary);
}

.contact__channels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.3);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-channel:hover {
  border-color: rgba(160, 107, 107, 0.45);
  box-shadow: 0 8px 22px rgba(160, 107, 107, 0.08);
}

.contact-channel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(232, 196, 196, 0.4);
  color: var(--primary-ink);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-channel__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-channel__body strong {
  font-size: 0.98rem;
  color: var(--primary-ink);
}

.contact-channel__body em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact__panel {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.3);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.08);
}

.contact__form-title {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-ink);
}

/* Public pagination (vendor/pagination/public.blade.php). Wraps rather than
   overflowing, so a long run of page numbers stays inside the page on a
   phone. */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.pagination__item.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Informational note above the contact fields: tells a signed-in client that
   her message will arrive linked to her account, and tells an admin why there
   is no form for her. Quiet enough not to compete with the fields. */
.contact__form-note {
  margin: 0 0 1.1rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  background: var(--sand-light);
  border: 1px solid rgba(214, 162, 162, 0.3);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.contact__form-note strong {
  color: var(--primary-ink);
}

.contact__form-note a {
  color: var(--primary-deep);
  font-weight: 600;
}

.contact__form-note a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
    align-items: start;
  }

  .contact__panel {
    padding: 1.6rem;
  }
}

/* ============================ */
/* ===== ABOUT VISION ========== */
/* ============================ */
.about-vision {
  background: var(--sand);
}

.about-vision__intro {
  max-width: 34rem;
  margin-bottom: 2rem;
}

.about-vision__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.about-vision__heading {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-ink);
}

.about-vision__lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-vision__grid {
  display: grid;
  gap: 1rem;
}

.vision-item {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 162, 162, 0.28);
}

.vision-item__title {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-ink);
}

.vision-item__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .about-vision__intro {
    margin-bottom: 2.5rem;
  }

  .about-vision__lead {
    font-size: 1.02rem;
  }

  .about-vision__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .vision-item {
    padding: 1.55rem 1.4rem;
  }

  .vision-item__title {
    font-size: 1.15rem;
  }

  .vision-item__text {
    font-size: 0.95rem;
  }
}

/* ============================ */
/* ===== SITE FOOTER ========== */
/* ============================ */
.site-footer {
  margin-top: auto;
  background:
    radial-gradient(ellipse 55% 50% at 100% 0%, rgba(232, 196, 196, 0.35), transparent 55%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(214, 162, 162, 0.16), transparent 50%),
    var(--sand);
  border-top: 1px solid rgba(214, 162, 162, 0.28);
  color: var(--secondary);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2.25rem;
}

.site-footer__brand {
  max-width: 22rem;
}

.site-footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.site-footer__logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.35);
  padding: 0.2rem;
}

.site-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-footer__brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-ink);
  line-height: 1.25;
}

.site-footer__brand-text em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.site-footer__about {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.site-footer__cta {
  width: fit-content;
}

.site-footer__title {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.site-footer__list,
.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.site-footer__list a,
.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--secondary);
  transition: color 0.25s ease;
}

.site-footer__list a:hover,
.site-footer__contact a:hover {
  color: var(--primary-ink);
}

.site-footer__contact i {
  width: 1.1rem;
  text-align: center;
  color: var(--primary-deep);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-block: 1.15rem 1.5rem;
  border-top: 1px solid rgba(214, 162, 162, 0.25);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 162, 162, 0.4);
  background: rgba(255, 255, 255, 0.65);
  color: var(--primary-deep);
  font-size: 1rem;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.site-footer__social a:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary-ink);
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 1.75rem;
  }
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 0.85fr 0.85fr 1.1fr;
    gap: 2.5rem;
    padding-block: 3.5rem 2.5rem;
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-block: 1.25rem 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__list a,
  .site-footer__contact a,
  .site-footer__social a {
    transition: none;
  }
}

/* ============================ */
/* ===== AUTH PAGES =========== */
/* ============================ */
.auth {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(232, 196, 196, 0.4), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(214, 162, 162, 0.18), transparent 50%),
    var(--sand-light);
}

.auth__panel {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  padding: 1.6rem 1.35rem 1.75rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.3);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.08);
}

.auth__brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth__logo {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  margin: 0 auto 0.85rem;
  border-radius: 0.85rem;
  background: var(--sand-light);
  border: 1px solid rgba(214, 162, 162, 0.35);
  padding: 0.25rem;
}

.auth__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}

.auth__heading {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-ink);
}

.auth__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.auth__form {
  margin-bottom: 1.15rem;
}

.auth__switch {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--secondary);
}

.auth__switch a {
  font-weight: 700;
  color: var(--primary-deep);
}

.auth__switch a:hover {
  color: var(--primary-ink);
}

@media (min-width: 768px) {
  .auth__panel {
    padding: 2rem 1.75rem 1.9rem;
  }
}

/* Locked course content (after purchase / login gate) */
.course-locked {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(214, 162, 162, 0.3);
  background: var(--sand);
  min-height: 14rem;
}

.course-locked__veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  text-align: center;
  background:
    linear-gradient(
      to top,
      rgba(250, 248, 244, 0.96) 0%,
      rgba(245, 241, 233, 0.88) 55%,
      rgba(245, 241, 233, 0.78) 100%
    );
}

.course-locked__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(232, 196, 196, 0.45);
  color: var(--primary-ink);
  font-size: 1.15rem;
}

.course-locked__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.course-locked__text {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.course-locked__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

/* ============================ */
/* ===== PRELOADER ============ */
/* ============================ */
html.is-loading,
html.is-loading body {
  overflow: hidden;
}

/* Instant cover before partial injects (empty placeholder) */
html.is-loading body > [data-partial='preloader'] {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(232, 196, 196, 0.45), transparent 60%),
    radial-gradient(ellipse 55% 40% at 100% 100%, rgba(214, 162, 162, 0.2), transparent 55%),
    var(--sand-light);
}

/* Skip preloader on in-site navigation (same session) */
html.is-preloaded [data-partial='preloader'],
html.is-preloaded .preloader {
  display: none !important;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(232, 196, 196, 0.45), transparent 60%),
    radial-gradient(ellipse 55% 40% at 100% 100%, rgba(214, 162, 162, 0.2), transparent 55%),
    var(--sand-light);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__glow {
  position: absolute;
  width: min(22rem, 70vw);
  height: min(22rem, 70vw);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(214, 162, 162, 0.28) 0%, transparent 70%);
  animation: preloader-glow 2.8s ease-in-out infinite;
  pointer-events: none;
}

.preloader__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

.preloader__mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: 1.25rem;
}

.preloader__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(214, 162, 162, 0.28);
  border-top-color: var(--primary-deep);
  border-right-color: var(--primary);
  animation: preloader-spin 1.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.preloader__logo {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.35);
  padding: 0.35rem;
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.12);
  animation: preloader-breathe 2.4s ease-in-out infinite;
}

.preloader__brand {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-ink);
  letter-spacing: 0.02em;
}

.preloader__hint {
  margin: 0 0 1.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.preloader__bar {
  width: 8.5rem;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(214, 162, 162, 0.28);
}

.preloader__bar-fill {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-deep));
  animation: preloader-bar 1.35s ease-in-out infinite;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes preloader-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes preloader-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes preloader-bar {
  0% {
    transform: translateX(150%);
  }
  100% {
    transform: translateX(-250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__glow,
  .preloader__ring,
  .preloader__logo,
  .preloader__bar-fill {
    animation: none;
  }

  .preloader__ring {
    border-color: var(--primary);
  }
}

/* ============================ */
/* ===== SCROLL TOP BTN ======= */
/* ============================ */
#scrollTopBtn {
  transform: translateY(20px);
  background-color: var(--primary-deep);
  color: var(--white);
}

#scrollTopBtn:hover {
  background-color: var(--primary-ink);
}

#scrollTopBtn.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0);
}

/* ============================ */
/* ===== HEADER NAVIGATION ===== */
/* ============================ */
.nav-link {
  position: relative;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-deep);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 99px;
}

.nav-link:hover::after {
  width: 100%;
}

/* Active style managed by layout.js */
.nav-link.text-primary-ink::after {
  width: 100%;
  background-color: var(--primary-ink);
}

.nav-link-mobile {
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
  width: fit-content;
}

.nav-link-mobile::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-deep);
  transition: width 0.3s ease;
  border-radius: 99px;
}

.nav-link-mobile:hover::after {
  width: 2.5rem;
}

.nav-link-mobile.text-primary-ink {
  color: var(--primary-ink) !important;
}

.nav-link-mobile.text-primary-ink::after {
  width: 3.5rem;
  background-color: var(--primary-ink);
}

/* ============================ */
/* ===== MOBILE FULL MENU ===== */
/* ============================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background-color: #FAF8F4;
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(214, 162, 162, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(160, 107, 107, 0.12), transparent 50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(1.25rem);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  min-height: 100%;
  min-height: 100dvh;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-menu__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-menu__logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: 0.65rem;
  border: 1px solid rgba(214, 162, 162, 0.35);
  background: #fff;
}

.mobile-menu__brand-text {
  display: flex;
  flex-direction: column;
}

.mobile-menu__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-ink);
  line-height: 1.2;
}

.mobile-menu__sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.mobile-menu__close {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 162, 162, 0.4);
  background: #fff;
  color: var(--primary-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.mobile-menu__close:hover {
  background: var(--sand);
}

.mobile-menu__close:active {
  transform: scale(0.95);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  padding: 2rem 0.25rem;
  flex: 1;
  justify-content: center;
}

.mobile-menu__nav .nav-link-mobile {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 700;
  color: var(--secondary);
  padding: 0.15rem 0;
}

.mobile-menu__nav .nav-link-mobile:hover {
  color: var(--primary-deep);
}

.mobile-menu__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(214, 162, 162, 0.25);
}

.mobile-menu__cta {
  width: 100%;
}

.mobile-menu__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mobile-menu__social {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.15rem;
  color: var(--primary-deep);
}

.mobile-menu__social a:hover {
  color: var(--primary-ink);
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 1280px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============================ */
/* ===== USER PROFILE ========= */
/* ============================ */
.profile-hero {
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2rem);
  background:
    radial-gradient(ellipse 65% 55% at 100% 0%, rgba(232, 196, 196, 0.42), transparent 55%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(214, 162, 162, 0.16), transparent 50%),
    var(--sand-light);
  border-bottom: 1px solid rgba(214, 162, 162, 0.2);
}

.profile-hero__inner {
  display: grid;
  gap: 1.5rem;
}

.profile-hero__identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-hero__avatar {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.35);
  color: var(--primary-deep);
  font-size: 1.35rem;
  box-shadow: 0 8px 22px rgba(160, 107, 107, 0.08);
}

.profile-hero__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary-deep);
}

.profile-hero__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-ink);
}

.profile-hero__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.profile-hero__account-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.profile-hero__account-link:hover {
  color: var(--primary-ink);
}

.profile-section__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary-deep);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.profile-stats__item {
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.28);
  text-align: center;
}

.profile-stats__item dt {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.profile-stats__item dd {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--primary-ink);
  line-height: 1.2;
}

.profile-section__head {
  margin-bottom: 1.35rem;
}

.profile-section__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--primary-ink);
}

.profile-section__lead {
  margin: 0;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.profile-section--soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 28%),
    var(--sand-light);
}

/* Courses list */
.profile-courses {
  display: grid;
  gap: 1rem;
}

/* Account settings */
.account-back {
  margin: 0.85rem 0 0;
}

.account-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.account-back a:hover {
  color: var(--primary-ink);
}

.account-settings__grid {
  display: grid;
  gap: 1.15rem;
}

.account-panel {
  padding: 1.25rem 1.15rem 1.35rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.28);
  box-shadow: 0 8px 24px rgba(160, 107, 107, 0.06);
}

.account-panel__title {
  margin: 0 0 1.1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.profile-course__link {
  display: grid;
  gap: 0;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-course__link:hover,
.profile-course__link:focus-visible {
  border-color: rgba(214, 162, 162, 0.55);
  box-shadow: 0 10px 28px rgba(160, 107, 107, 0.1);
}

.profile-course__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.profile-course__body {
  padding: 1rem 1.05rem 1.15rem;
}

.profile-course__tag {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.profile-course__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-ink);
  line-height: 1.4;
}

.profile-course__text {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-wrap: break-word;
  word-break: break-word;
}

.profile-course__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.package-progress {
  display: grid;
  gap: 1rem;
}

.package-progress__card {
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.28);
}

.package-progress__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.95rem;
}

.package-progress__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.package-progress__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.package-progress__bar {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(214, 162, 162, 0.22);
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.package-progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary-deep);
}

.package-progress__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--secondary);
}

.package-progress__text strong {
  color: var(--primary-ink);
}

.package-progress__sep {
  margin-inline: 0.35rem;
  color: rgba(160, 107, 107, 0.55);
}

.package-progress__empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px dashed rgba(214, 162, 162, 0.4);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
}

.package-progress__empty[hidden] {
  display: none;
}

.consult-path {
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(214, 162, 162, 0.28);
}

.consult-path--spaced {
  margin-top: 1.15rem;
}

.consult-step.is-waiting .consult-step__marker {
  background: rgba(214, 162, 162, 0.35);
  border-color: var(--primary);
  color: var(--primary-ink);
}

.consult-step.is-waiting .consult-step__badge {
  background: rgba(214, 162, 162, 0.28);
  color: var(--primary-deep);
}

.consult-path__summary {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(214, 162, 162, 0.22);
}

.consult-path__package {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.consult-path__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.consult-path__progress-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(214, 162, 162, 0.22);
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.consult-path__progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary-deep);
}

.consult-path__progress-text {
  margin: 0;
  font-size: 0.84rem;
  color: var(--secondary);
}

.consult-path__progress-text strong {
  color: var(--primary-ink);
}

.consult-path__sep {
  margin-inline: 0.35rem;
  color: rgba(160, 107, 107, 0.55);
}

.consult-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.consult-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  position: relative;
  padding-bottom: 1.25rem;
}

.consult-step:last-child {
  padding-bottom: 0;
}

.consult-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 2.35rem;
  right: 1.05rem;
  width: 2px;
  bottom: 0.15rem;
  background: rgba(214, 162, 162, 0.35);
}

.consult-step.is-done:not(:last-child)::before {
  background: rgba(79, 138, 107, 0.45);
}

.consult-step__marker {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid rgba(214, 162, 162, 0.4);
  background: var(--sand-light);
  color: var(--primary-ink);
  position: relative;
  z-index: 1;
}

.consult-step.is-done .consult-step__marker {
  background: rgba(79, 138, 107, 0.15);
  border-color: rgba(79, 138, 107, 0.45);
  color: #3f7a58;
}

.consult-step.is-current .consult-step__marker {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #fff;
}

.consult-step.is-locked .consult-step__marker {
  color: var(--text-muted);
  background: #fff;
}

.consult-step__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.3rem;
}

.consult-step__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary-ink);
}

.consult-step.is-locked .consult-step__title {
  color: var(--text-muted);
}

.consult-step__badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(214, 162, 162, 0.22);
  color: var(--primary-ink);
}

.consult-step.is-done .consult-step__badge {
  background: rgba(79, 138, 107, 0.15);
  color: #3f7a58;
}

.consult-step.is-current .consult-step__badge {
  background: rgba(214, 162, 162, 0.35);
  color: var(--primary-ink);
}

.consult-step.is-locked .consult-step__badge {
  background: rgba(160, 107, 107, 0.1);
  color: var(--text-muted);
}

.consult-step__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.consult-step__action {
  margin-top: 0.75rem;
}

.consult-path__note {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--secondary);
}

.consult-path__note a {
  color: var(--primary-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.consult-path__note a:hover {
  color: var(--primary-ink);
}

@media (min-width: 640px) {
  .profile-hero__inner {
    gap: 1.75rem;
  }

  .profile-hero__avatar {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.5rem;
  }

  .profile-stats__item {
    padding: 1rem 0.9rem;
  }

  .profile-courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .account-settings__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .consult-path {
    padding: 1.35rem 1.35rem 1.45rem;
  }

  .consult-path__summary {
    grid-template-columns: 1fr minmax(12rem, 16rem);
    align-items: end;
  }
}

@media (min-width: 1024px) {
  .profile-hero__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-course__link {
    transition: none;
  }
}

/* SweetAlert2 Sukoon Theme Overrides */
div.swal2-container {
  font-family: var(--base-font, 'Cairo', sans-serif) !important;
}
div.swal2-popup, .swal2-custom-popup {
  border-radius: var(--radius-lg, 1.25rem) !important;
  background-color: var(--sand-light, #FAF8F4) !important;
  color: var(--text, #5C4545) !important;
  box-shadow: var(--shadow-soft, 0 8px 28px rgba(160, 107, 107, 0.1)) !important;
  border: 1px solid var(--primary-soft, #E8C4C4) !important;
}
h2.swal2-title {
  color: var(--primary-ink, #7A4E4E) !important;
  font-weight: 700 !important;
}
div.swal2-html-container {
  color: var(--text-muted, #8A6F6F) !important;
}
button.swal2-confirm, .swal2-custom-confirm {
  background-color: var(--primary, #D6A2A2) !important;
  color: var(--white, #FFFFFF) !important;
  border-radius: var(--radius, 0.75rem) !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  border: none !important;
}
button.swal2-confirm:hover, .swal2-custom-confirm:hover {
  background-color: var(--primary-deep, #A06B6B) !important;
  transform: translateY(-2px) !important;
}
button.swal2-cancel, .swal2-custom-cancel {
  background-color: transparent !important;
  color: var(--text-muted, #8A6F6F) !important;
  border: 1px solid var(--text-muted, #8A6F6F) !important;
  border-radius: var(--radius, 0.75rem) !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  transition: all 0.2s ease !important;
}
button.swal2-cancel:hover, .swal2-custom-cancel:hover {
  background-color: var(--sand-dark, #E8E0D4) !important;
  color: var(--text, #5C4545) !important;
}
div.swal2-toast {
  border-radius: var(--radius, 0.75rem) !important;
  border: 1px solid var(--primary-soft, #E8C4C4) !important;
  background-color: var(--white, #FFFFFF) !important;
  color: var(--text, #5C4545) !important;
}

/* Original price shown struck through next to a discounted one. */
/* Price display, shared by courses and services (layouts.partials.price).
   Reading order is old → new: the struck-through original comes first, then
   what is actually paid. "مجانًا" replaces a zero amount so a free item is
   never shown as "0.00 د.ك". Size comes from the surrounding context. */
.price__was {
  margin-inline-end: 0.4rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  white-space: nowrap;
}

.price__now,
.price__currency,
.price__free {
  white-space: nowrap;
}

.price__now,
.price__free {
  font-weight: 700;
}

.price__free {
  color: var(--success);
}

/* Course image gallery. auto-fill reflows from one column on a phone up to as
   many as fit, so it needs no breakpoints of its own. */
.course-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-gallery__item {
  margin: 0;
}

.course-gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(214, 162, 162, 0.35);
  border-radius: var(--radius);
  background: var(--sand-light);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.course-gallery__btn:hover,
.course-gallery__btn:focus-visible {
  border-color: var(--primary-deep);
  transform: translateY(-2px);
}

.course-gallery__btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* The frame clips the zoom so the image scales inside its own corner radius
   instead of spilling past the button's border. */
.course-gallery__frame {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px);
}

.course-gallery__btn img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-gallery__btn:hover img,
.course-gallery__btn:focus-visible img {
  transform: scale(1.06);
}

/* Magnifier hint: the thumbnails are buttons, not decoration, and without
   an affordance nobody discovers they open. */
.course-gallery__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(92, 69, 69, 0.42);
  color: #fff;
  font-size: 1.05rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.course-gallery__btn:hover .course-gallery__zoom,
.course-gallery__btn:focus-visible .course-gallery__zoom {
  opacity: 1;
}

/* Touch has no hover, so the hint would never appear — and a permanent
   overlay would just dim every thumbnail. Leave them clean there. */
@media (hover: none) {
  .course-gallery__zoom {
    display: none;
  }
}

.course-gallery__badge {
  position: absolute;
  inset-block-end: 0.4rem;
  inset-inline-start: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(92, 69, 69, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
}

/* ===== Gallery lightbox ===== */

/* Lock the page behind the viewer so a swipe scrolls the gallery, not the
   article underneath it. */
body.has-lightbox {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 3vw, 2rem);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 32, 32, 0.88);
}

.lightbox__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(64rem, 100%);
  max-height: 100%;
  border-radius: var(--radius-lg);
  background: var(--sand-light);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(214, 162, 162, 0.3);
  flex-shrink: 0;
}

.lightbox__counter {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-ink);
  font-variant-numeric: tabular-nums;
}

.lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 999px;
  background: rgba(214, 162, 162, 0.22);
  color: var(--primary-ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(214, 162, 162, 0.4);
}

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #241a1a;
  /* The dialog is capped at the viewport, so the image gets whatever is left
     after the bar and caption — never pushing them off-screen. */
  flex: 1 1 auto;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 40rem);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Faded in on load so switching slides doesn't flash the previous image
   stretched to the next one's box. */
.lightbox__img.is-ready {
  opacity: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--primary-ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.lightbox__nav:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Logical insets: prev sits at the start edge, which is the RIGHT in Arabic. */
.lightbox__nav--prev {
  inset-inline-start: 0.6rem;
}

.lightbox__nav--next {
  inset-inline-end: 0.6rem;
}

.lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.9rem;
  flex-shrink: 0;
}

.lightbox__caption {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--secondary);
}

.lightbox__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(92, 69, 69, 0.12);
  color: var(--primary-ink);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Phones: edge-to-edge, smaller controls, and a shorter image so the caption
   and counter stay visible without scrolling. */
@media (max-width: 30rem) {
  .lightbox {
    padding: 0;
  }

  .lightbox__dialog {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .lightbox__img {
    max-height: 100%;
  }

  .lightbox__nav {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.9rem;
  }
}

/* Landscape phones have almost no vertical room; give it all to the image. */
@media (max-height: 26rem) {
  .lightbox__img {
    max-height: 100%;
  }

  .lightbox__foot {
    padding-block: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-gallery__btn img,
  .lightbox__img,
  .lightbox__nav {
    transition: none;
  }
}

/* Promo code input, shared by the course buy box and the booking wizard. */
.coupon-field {
  margin-bottom: 0.85rem;
  text-align: start;
}

.coupon-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-ink);
}

.coupon-field input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(214, 162, 162, 0.45);
  background: var(--sand-light);
  color: var(--secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.coupon-field input::placeholder {
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-muted);
}

.coupon-field input:focus {
  outline: none;
  border-color: var(--primary-deep);
  box-shadow: var(--focus-ring);
}

/* Live promo-code feedback under the input. */
.coupon-field__note {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 600;
}

.coupon-field__note[data-state="ok"] {
  color: var(--success);
}

.coupon-field__note[data-state="error"] {
  color: var(--danger);
}

.coupon-field__note[data-state="muted"] {
  color: var(--text-muted);
  font-weight: 500;
}
