@font-face {
  font-family: "Sofia Pro";
  src: local("Sofia Pro"), local("SofiaPro-Regular");
  font-weight: 400;
}

@font-face {
  font-family: "Sofia Pro";
  src: local("Sofia Pro Semi Bold"), local("SofiaPro-SemiBold");
  font-weight: 700;
}

:root {
  --purple: #281d43;
  --purple-deep: #24183d;
  --red: #b32022;
  --red-light: #e34745;
  --lime: #c2c95b;
  --ink: #39333d;
  --muted: #756f78;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --line: #ece8ed;
  --shadow: 0 16px 34px rgba(31, 24, 45, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Sofia Pro", "Avenir Next", "Montserrat", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.52;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

.shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--purple);
  box-shadow: 0 2px 18px rgba(17, 9, 32, 0.18);
}

.nav {
  min-height: 78px;
  display: grid;
  grid-template-columns: 294px 1fr auto;
  align-items: center;
  gap: 34px;
}

.brand img {
  width: 290px;
  height: 55px;
  object-fit: cover;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  justify-content: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.nav-links a,
.dropdown-trigger {
  color: rgba(255, 255, 255, 0.74);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links .active,
.nav-item.active > .dropdown-trigger,
.nav-item:hover > .dropdown-trigger,
.nav-item.is-expanded > .dropdown-trigger {
  color: #f4ed78;
  transform: translateY(-1px);
}

.nav-item {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.dropdown-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.nav-item:hover .dropdown-trigger::after,
.nav-item:focus-within .dropdown-trigger::after,
.nav-item.is-expanded .dropdown-trigger::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  z-index: 60;
  min-width: 192px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0)),
    #2a1d48;
  box-shadow: 0 24px 54px rgba(10, 5, 23, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(0.96);
  transform-origin: top center;
  transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #2a1d48;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  transform: translateX(-50%) rotate(45deg);
}

.dropdown-menu::after {
  content: "";
  position: absolute;
  inset: -22px 0 auto;
  height: 22px;
}

.dropdown-wide {
  min-width: 330px;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.nav-item.is-expanded .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.dropdown-menu a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 5px;
  font-size: 13px;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.dropdown-menu a::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: #f4ed78;
  transition: width 0.22s ease, margin-right 0.22s ease;
}

.dropdown-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.dropdown-menu a:hover::before {
  width: 12px;
  margin-right: 8px;
}

.nav-actions {
  gap: 10px;
}

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-ghost,
.btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline {
  padding-inline: 22px;
}

.btn-red {
  color: #fff;
  background: #e3423f;
  box-shadow: 0 8px 16px rgba(227, 66, 63, 0.18);
}

.btn-light {
  color: #2f2937;
  background: #fff;
  border-color: #cfc8cf;
}

.btn-soft {
  color: #fff;
  background: rgba(255, 255, 255, 0.19);
}

.menu-toggle {
  display: none;
}

.hero {
  margin-top: 18px;
  min-height: 352px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
  padding: 10px 10px 10px 38px;
  color: #fff;
  background: var(--purple);
  border-radius: 9px;
  overflow: hidden;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.1;
}

.hero p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.79);
  font-size: 15px;
}

.hero-media img {
  width: 100%;
  height: 334px;
  object-fit: cover;
  border-radius: 8px;
}

.stats {
  height: 64px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  color: #fff;
  background: var(--red);
  border-radius: 9px;
  box-shadow: 0 8px 16px rgba(120, 16, 19, 0.12);
}

.stats div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.stats div:first-child {
  border-left: 0;
}

.stats strong {
  font-size: 29px;
  line-height: 1;
}

.stats span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.panel {
  margin-top: 32px;
  padding: 26px 20px 20px;
  background: #fff;
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--lime);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 35px);
  line-height: 1.14;
  color: #3d3740;
}

.programme h2,
.programme .section-subtitle,
.library-band h2,
.library-band .section-subtitle,
.voices h2,
.updates-band h2,
.updates-band .eyebrow {
  text-align: center;
}

.section-subtitle {
  max-width: 620px;
  margin: 8px auto 24px;
  color: #716a72;
  font-size: 14px;
  line-height: 1.42;
}

.course-feature {
  display: grid;
  grid-template-columns: 580px 1fr;
  gap: 32px;
  align-items: center;
}

.course-image {
  width: 580px;
  height: 298px;
  object-fit: cover;
  border-radius: 7px;
}

.course-content h3 {
  margin: 0 0 8px;
  font-size: 23px;
  color: #4a444d;
}

.course-content p {
  margin: 0 0 18px;
  color: #6f6870;
  font-size: 14px;
}

.course-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

.course-meta div,
.course-meta dt,
.course-meta dd {
  min-width: 0;
}

.course-meta dt {
  color: #a9a1aa;
  font-size: 10px;
}

.course-meta dd {
  margin: 0;
  color: #473f49;
  font-size: 12px;
  font-weight: 700;
}

.course-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.service-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card {
  min-height: 174px;
  padding: 22px 56px 22px 18px;
  border-left: 1px solid var(--line);
}

.service-card:first-child {
  border-left: 0;
}

.service-icon {
  color: var(--lime);
  font-size: 29px;
  line-height: 1;
}

.service-card h3 {
  margin: 8px 0 4px;
  font-size: 24px;
  line-height: 1;
}

.service-card p {
  margin: 0;
  color: #5e5861;
  font-size: 13px;
}

.library-band,
.updates-band {
  margin-top: 44px;
  padding: 42px 0 50px;
  background: #f7f7f7;
}

.library-page {
  background:
    radial-gradient(circle at 85% 9%, rgba(179, 32, 34, 0.05), transparent 22rem),
    #fff;
}

.library-hero {
  position: relative;
  min-height: 354px;
  margin-top: 15px;
  padding: 30px 14px 14px 38px;
  display: grid;
  grid-template-columns: 1fr 561px;
  gap: 54px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--purple);
  border-radius: 8px;
}

.library-hero::before,
.library-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.library-hero::before {
  width: 320px;
  height: 320px;
  left: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(194, 201, 91, 0.16), transparent 68%);
  animation: slow-drift 10s ease-in-out infinite alternate;
}

.library-hero::after {
  width: 230px;
  height: 230px;
  right: 360px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 66%);
  animation: slow-drift 12s ease-in-out infinite alternate-reverse;
}

.library-hero-copy {
  position: relative;
  z-index: 1;
}

.library-hero h1 {
  max-width: 610px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(34px, 3.7vw, 48px);
  line-height: 1.16;
}

.library-hero-copy > p:not(.course-kicker) {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.79);
  font-size: 15px;
  line-height: 1.62;
}

.library-hero-media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 7px;
  box-shadow: 0 22px 48px rgba(13, 9, 24, 0.24);
}

.library-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 38%, rgba(255, 255, 255, 0.24) 47%, transparent 56% 100%);
  transform: translateX(-135%);
  animation: hero-sheen 4.8s ease-in-out infinite;
}

.library-hero-media img {
  width: 100%;
  height: 326px;
  object-fit: cover;
}

.library-tools {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.library-search {
  flex: 1;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 76px;
  max-width: 579px;
}

.library-search span,
.library-search input,
.library-search button,
.library-tools select {
  height: 40px;
}

.library-search span {
  display: grid;
  place-items: center;
  color: #868087;
  border: 1px solid #d9d5da;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #fff;
}

.library-search input {
  min-width: 0;
  border: 1px solid #d9d5da;
  border-left: 0;
  padding: 0 12px;
  color: #3d3740;
  font: inherit;
}

.library-search button {
  margin-left: 13px;
  border: 0;
  cursor: pointer;
}

.library-tools select {
  width: 176px;
  padding: 0 12px;
  border: 1px solid #d9d5da;
  border-radius: 4px;
  background: #fff;
  color: #3d3740;
  font-family: inherit;
}

.library-filters {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.filter-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-left: 1px solid #ede9ee;
  color: #4a444d;
  background: #f8f8f8;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.filter-tab:first-child,
.filter-tab:nth-child(7) {
  border-left: 0;
  border-radius: 4px 0 0 4px;
}

.filter-tab.active,
.filter-tab:hover {
  z-index: 1;
  color: #9f1d22;
  background: #fde2e4;
  box-shadow: 0 10px 22px rgba(179, 32, 34, 0.12);
  transform: translateY(-2px);
}

.catalogue {
  margin-top: 26px;
  margin-bottom: 74px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 48px 20px;
}

.catalogue-card {
  min-width: 0;
  transform-origin: center bottom;
}

.catalogue-card.is-hidden {
  display: none;
}

.catalogue-card img {
  width: 100%;
  aspect-ratio: 190 / 305;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 11px 25px rgba(38, 31, 48, 0.13);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.catalogue-card:hover img {
  transform: translateY(-9px) rotateX(2deg);
  box-shadow: 0 23px 38px rgba(38, 31, 48, 0.2);
  filter: saturate(1.05);
}

.catalogue-card h2 {
  margin: 13px 0 2px;
  color: #25212a;
  font-size: 19px;
  line-height: 1.13;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  height: calc(1.13em * 3);
}

.catalogue-card p {
  margin: 0;
  color: #4f4852;
  font-size: 12px;
}

.course-page .material-box a {
  color: #2d6e35;
  font-weight: 700;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.book {
  min-width: 0;
}

.book img {
  width: 100%;
  aspect-ratio: 188 / 304;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 7px 16px rgba(34, 28, 44, 0.09);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book:hover img {
  transform: translateY(-6px);
  box-shadow: 0 16px 26px rgba(34, 28, 44, 0.16);
}

.book h3 {
  margin: 12px 0 2px;
  font-size: 17px;
  line-height: 1.18;
  color: #302a34;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  height: calc(1.18em * 3);
}

.book p {
  margin: 0;
  color: #5f5961;
  font-size: 12px;
}

.why {
  margin-top: 74px;
  padding: 16px;
  display: grid;
  grid-template-columns: 501px 1fr;
  gap: 72px;
  align-items: center;
  color: #fff;
  background: var(--purple);
  border-radius: 9px;
}

.why img {
  width: 501px;
  height: 303px;
  object-fit: cover;
  border-radius: 7px;
}

.why .eyebrow {
  text-align: left;
}

.why h2 {
  color: #fff;
  font-size: clamp(30px, 3vw, 43px);
}

.why p:not(.eyebrow) {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.voices {
  margin-top: 34px;
}

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

.testimonial-grid article {
  min-height: 172px;
  padding: 27px 24px 20px;
  background: #fff;
  border: 1px solid #efebef;
  border-radius: 4px;
}

.testimonial-grid p {
  margin: 0 0 28px;
  color: #454047;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
}

.testimonial-grid span,
.testimonial-grid small {
  display: block;
  color: #887f88;
  font-size: 12px;
}

.testimonial-grid small {
  color: #aaa2aa;
}

.update-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.update-grid article {
  min-height: 126px;
  padding: 18px;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 12px 24px rgba(35, 27, 44, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.update-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(35, 27, 44, 0.12);
}

.update-grid span {
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
}

.update-grid p {
  margin: 6px 0 10px;
  color: #2f2a33;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.18;
}

.update-grid time {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  border-radius: 3px;
  padding: 0 8px;
  color: #fff;
  background: #8d8a8e;
  font-size: 9px;
}

.extras {
  margin-top: 36px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.editors {
  min-height: 312px;
  padding: 62px 58px;
  color: #fff;
  text-align: center;
  background: var(--red);
  border-radius: 8px;
}

.editors h2,
.magazine h2 {
  font-size: clamp(29px, 2.7vw, 38px);
}

.editors h2 {
  color: #fff;
}

.editors p {
  margin: 20px 0 26px;
  color: rgba(255, 255, 255, 0.78);
}

.magazine {
  min-height: 312px;
  padding: 32px 34px 28px;
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 34px;
  align-items: center;
  background: #f8f8f8;
  border-radius: 8px;
}

.magazine img {
  width: 164px;
  height: 250px;
  object-fit: cover;
}

.magazine p {
  margin: 14px 0 18px;
  color: #675f68;
  font-size: 14px;
}

.site-footer {
  padding: 34px 0 0;
  color: #fff;
  background: var(--purple);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.75fr 0.75fr 0.75fr;
  gap: 74px;
}

.footer-about img {
  width: 290px;
  height: 55px;
  object-fit: cover;
  margin-bottom: 28px;
}

.footer-about p {
  max-width: 350px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.site-footer h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 12px;
}

.site-footer a {
  display: block;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.course-page {
  background:
    radial-gradient(circle at 14% 9%, rgba(194, 201, 91, 0.08), transparent 22rem),
    linear-gradient(#fff, #fff);
}

.course-hero {
  position: relative;
  min-height: 355px;
  margin-top: 15px;
  padding: 36px 36px 28px 38px;
  display: grid;
  grid-template-columns: 1fr 564px;
  gap: 50px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--purple);
  border-radius: 9px;
}

.course-hero::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 64%);
  animation: slow-drift 9s ease-in-out infinite alternate;
}

.course-kicker {
  margin: 0 0 5px;
  color: #ecf06e;
  font-size: 16px;
  font-weight: 700;
}

.course-hero h1 {
  max-width: 610px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(36px, 4.1vw, 55px);
  line-height: 1.08;
}

.course-hero-copy > p:not(.course-kicker) {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.64;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 54px 0 0;
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
}

.hero-facts dd {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.course-hero-media {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 24px 50px rgba(11, 7, 22, 0.24);
}

.course-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.22) 45%, transparent 54% 100%);
  transform: translateX(-130%);
  animation: hero-sheen 4.6s ease-in-out infinite;
}

.course-hero-media img {
  width: 100%;
  height: 328px;
  object-fit: cover;
}

.course-tabs {
  margin-top: 13px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.course-tabs::-webkit-scrollbar {
  display: none;
}

.course-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #3c3540;
  background: #fafafa;
  border: 1px solid #f1eef1;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.course-tabs a:hover,
.course-tabs a.active {
  color: #a31b20;
  background: #fde8e8;
  transform: translateY(-2px);
}

.course-layout {
  margin-top: 16px;
  margin-bottom: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 22px;
  align-items: start;
}

.course-main {
  display: grid;
  gap: 18px;
}

.course-panel,
.checkout-card {
  background: #fff;
  border: 1px solid #ebe8ec;
  border-radius: 7px;
  box-shadow: 0 13px 30px rgba(31, 24, 45, 0.06);
}

.course-panel {
  padding: 25px 24px 30px;
}

.course-panel h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.course-panel p {
  color: #554d57;
  font-size: 15px;
  line-height: 1.62;
}

.course-panel h3 {
  margin: 26px 0 13px;
  color: #9ba316;
  font-size: 18px;
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.included-grid div {
  min-height: 84px;
  padding: 17px 14px;
  background: #f8f8f8;
  border-radius: 7px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.included-grid div:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(31, 24, 45, 0.08);
}

.included-grid strong,
.included-grid span {
  display: block;
}

.included-grid strong {
  margin-bottom: 5px;
  color: #302934;
  font-size: 13px;
}

.included-grid span {
  color: #9a929b;
  font-size: 11px;
  line-height: 1.35;
}

.mini-panel {
  min-height: 232px;
}

.mini-panel h3 {
  margin: 15px 0 4px;
}

.mini-panel p {
  margin: 0 0 15px;
}

.checkout-card {
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.checkout-head {
  padding: 20px 15px 19px;
  color: #fff;
  background: var(--red);
}

.checkout-head span,
.checkout-head small {
  display: block;
  color: #fff490;
  font-size: 13px;
  font-weight: 700;
}

.checkout-head strong {
  display: block;
  color: #fff;
  font-size: 29px;
  line-height: 1.1;
}

.checkout-head s {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

.checkout-card label,
.checkout-card select,
.seat-note,
.fee-row,
.material-box,
.pay-row,
.checkout-card .btn,
.secure-note {
  margin-inline: 15px;
}

.checkout-card label {
  display: block;
  margin-top: 15px;
  margin-bottom: 7px;
  color: #473f49;
  font-size: 13px;
}

.checkout-card select {
  width: calc(100% - 30px);
  height: 45px;
  padding: 0 12px;
  border: 1px solid #bfb8c0;
  border-radius: 4px;
  color: #3c3540;
  background: #fff;
  font-family: inherit;
  font-weight: 700;
}

.seat-note,
.secure-note {
  color: #928a94;
  font-size: 9px;
}

.fee-row,
.pay-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.fee-row {
  margin-top: 18px;
  color: #3c3540;
  font-size: 13px;
}

.fee-row.muted {
  margin-top: 8px;
  color: #1e1723;
  font-size: 11px;
}

.material-box {
  margin-top: 11px;
  padding: 13px 12px 10px;
  background: #effdf2;
}

.material-box strong {
  color: #6fa45a;
  font-size: 13px;
}

.material-box p {
  margin: 4px 0 0;
  color: #27212c;
  font-size: 11px;
  line-height: 1.28;
}

.pay-row {
  margin-top: 25px;
  margin-bottom: 13px;
  color: #3c3540;
  font-size: 16px;
  font-weight: 700;
}

.btn-wide {
  width: calc(100% - 30px);
  margin-bottom: 11px;
}

.secure-note {
  margin-top: 0;
  margin-bottom: 13px;
  text-align: center;
}

@keyframes hero-sheen {
  0%, 52% {
    transform: translateX(-130%);
  }
  78%, 100% {
    transform: translateX(130%);
  }
}

@keyframes slow-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(34px, 20px, 0) scale(1.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1080px) {
  .nav {
    grid-template-columns: auto auto;
    gap: 18px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    margin-left: auto;
    display: inline-grid;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 4px;
    background: transparent;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.is-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.is-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 78px;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(390px, 88vw);
    padding: 24px 24px 130px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    color: #fff;
    background:
      linear-gradient(150deg, rgba(255, 255, 255, 0.08), transparent 38%),
      #25183f;
    box-shadow: -28px 0 60px rgba(13, 7, 28, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateX(102%);
    transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.3s ease;
  }

  .nav-links::before {
    content: "";
    position: fixed;
    inset: 78px min(390px, 88vw) 0 0;
    background: rgba(11, 7, 21, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
  }

  .nav.is-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav.is-open .nav-links::before {
    opacity: 1;
  }

  .nav-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 72;
    width: min(390px, 88vw);
    padding: 18px 24px 24px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, rgba(37, 24, 63, 0), #25183f 28%);
    opacity: 0;
    pointer-events: none;
    transform: translateX(102%);
    transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.3s ease;
  }

  .nav.is-open .nav-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-links > a,
  .dropdown-trigger {
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    padding: 0 2px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    transform: none;
  }

  .nav-links > a:hover,
  .nav-links .active,
  .nav-item.active > .dropdown-trigger,
  .nav-item:hover > .dropdown-trigger,
  .nav-item.is-expanded > .dropdown-trigger {
    transform: none;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dropdown-menu,
  .dropdown-wide {
    position: static;
    min-width: 0;
    width: 100%;
    max-height: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    overflow: hidden;
    transition: max-height 0.34s ease, padding 0.34s ease;
  }

  .dropdown-menu::before,
  .dropdown-menu::after {
    display: none;
  }

  .nav-item.is-expanded .dropdown-menu {
    max-height: 420px;
    padding: 3px 0 14px;
  }

  .dropdown-menu a {
    min-height: 36px;
    padding: 0 0 0 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    transform: translateX(-8px);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease, color 0.22s ease, background 0.22s ease;
  }

  .nav-item.is-expanded .dropdown-menu a {
    opacity: 1;
    transform: translateX(0);
  }

  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(0);
  }

  .hero,
  .course-feature,
  .why,
  .extras,
  .magazine,
  .course-hero,
  .course-layout,
  .library-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
    gap: 24px;
  }

  .course-image,
  .why img {
    width: 100%;
    height: auto;
  }

  .book-grid,
  .update-grid,
  .catalogue {
    grid-template-columns: repeat(3, 1fr);
  }

  .why {
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .course-hero {
    gap: 28px;
  }

  .course-hero-media img {
    height: auto;
  }

  .library-hero-media img {
    height: auto;
  }

  .checkout-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1240px);
  }

  .brand img,
  .footer-about img {
    width: 218px;
    height: 42px;
  }

  .hero-media img {
    height: auto;
  }

  .stats {
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 0;
  }

  .stats div {
    border-left: 0;
    padding: 10px;
  }

  .course-meta,
  .service-grid,
  .testimonial-grid,
  .footer-grid,
  .hero-facts,
  .included-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    border: 0;
    gap: 14px;
  }

  .service-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 22px;
  }

  .book-grid,
  .update-grid,
  .catalogue {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .why {
    margin-top: 42px;
  }

  .editors,
  .magazine {
    padding: 28px;
  }

  .magazine img {
    width: 150px;
    height: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
  }

  .course-hero {
    padding: 28px 18px;
  }

  .library-hero {
    padding: 28px 18px 18px;
  }

  .library-tools,
  .library-search {
    max-width: none;
    width: 100%;
  }

  .library-tools {
    flex-direction: column;
  }

  .library-tools select {
    width: 100%;
  }

  .hero-facts {
    margin-top: 28px;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .book-grid,
  .update-grid,
  .catalogue {
    grid-template-columns: 1fr;
  }

  .hero {
    border-radius: 0;
    width: 100%;
    padding: 28px 18px;
  }

  .course-actions,
  .nav-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ============================================
   Course detail page — additions
   (hero image callouts, 3-col fact grid,
   checkout fee breakdown, resource list)
   ============================================ */

.hero-facts--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 520px;
}

.course-hero-media {
  position: relative;
}

.course-hero-media::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(10, 6, 20, 0.82) 78%);
  pointer-events: none;
}

.hero-callouts {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.hero-callouts > div:last-child {
  text-align: right;
}

.hero-callouts span {
  display: block;
  margin-bottom: 4px;
  color: #ecf06e;
  font-size: 12px;
  font-weight: 700;
}

.hero-callouts strong {
  display: block;
  color: #fff;
  font-size: 26px;
  line-height: 1.15;
}

.hero-callouts small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.checkout-head .fee-breakdown {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 400;
}

.material-box ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.material-box li {
  margin-top: 4px;
}

.material-box li a {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 760px) {
  .hero-facts--three {
    max-width: none;
  }

  .hero-callouts {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-callouts > div:last-child {
    text-align: left;
  }
}

/* ============================================
   Book detail page — additions
   ============================================ */

.book-hero {
  position: relative;
  min-height: 355px;
  margin-top: 15px;
  padding: 36px 38px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--purple);
  border-radius: 9px;
}

.book-hero::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 64%);
  animation: slow-drift 9s ease-in-out infinite alternate;
}

.book-hero-cover {
  position: relative;
  z-index: 1;
}

.book-hero-cover img {
  width: 230px;
  height: 345px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 24px 46px rgba(11, 7, 22, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-hero-copy {
  position: relative;
  z-index: 1;
}

.book-hero-copy .course-kicker {
  margin-bottom: 4px;
}

.book-hero-copy h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.14;
}

.book-editor {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.book-hero-copy > p.book-description {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
}

.book-hero-copy .hero-facts {
  margin-top: 26px;
  grid-template-columns: repeat(4, 1fr);
}

.book-hero-copy .hero-facts dt {
  color: rgba(255, 255, 255, 0.5);
}

.book-hero-copy .btn {
  margin-top: 22px;
}

.book-details {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}

.detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: #3d3740;
  font-size: 14px;
}

.detail-row span {
  color: #726b74;
}

.detail-row strong {
  color: #2c2630;
  font-weight: 700;
  text-align: right;
}

.book-checkout-head .price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.book-checkout-head .price-line strong {
  font-size: 29px;
  color: #fff;
}

.book-checkout-head .price-line em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.btn-subnote {
  margin-top: -4px;
  margin-bottom: 13px;
  text-align: center;
  color: #928a94;
  font-size: 11px;
}

@media (max-width: 1080px) {
  .book-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .book-hero-copy .hero-facts {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .book-details {
    grid-template-columns: 1fr;
    gap: 0;
  }
}