@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: 36px;
  font-weight: 400;
  line-height: 1.1;
}

.hero p {
  max-width: 610px;
  margin: 0;
  color: #F8F8F8;
  font-size: 16px;
   font-weight: 400;
   line-height: 25px;
}

.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: #9D2222;
  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; */
      color: #FAF677 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 25px !important;
}

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

.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%;
  }
}

/* --- MOBILE SUB-MENU ANIMATION ENHANCEMENTS --- */
@media (max-width: 1080px) {
  /* 1. Smoother Accordion Expansion */
  .nav-item.has-dropdown .dropdown-menu {
    display: block !important; /* Ensure it's not hidden by other styles */
    visibility: visible !important;
    position: static !important;
    max-height: 0 !important;
    opacity: 1 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* 2. Expanded State height */
  .nav-item.has-dropdown.is-expanded .dropdown-menu {
    max-height: 600px !important; /* Sufficient height for all links */
    padding-top: 5px !important;
    padding-bottom: 15px !important;
  }

  /* 3. Staggered Link Animation (Slide + Fade) */
  .nav-item.has-dropdown .dropdown-menu a {
    opacity: 0 !important;
    transform: translateX(-15px) !important;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1) !important;
  }

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

  /* 4. Individual Link Delays (The "Animated" Effect) */
  .nav-item.is-expanded .dropdown-menu a:nth-child(1) { transition-delay: 0.05s !important; }
  .nav-item.is-expanded .dropdown-menu a:nth-child(2) { transition-delay: 0.10s !important; }
  .nav-item.is-expanded .dropdown-menu a:nth-child(3) { transition-delay: 0.15s !important; }
  .nav-item.is-expanded .dropdown-menu a:nth-child(4) { transition-delay: 0.20s !important; }
  .nav-item.is-expanded .dropdown-menu a:nth-child(5) { transition-delay: 0.25s !important; }
  .nav-item.is-expanded .dropdown-menu a:nth-child(6) { transition-delay: 0.30s !important; }
  .nav-item.is-expanded .dropdown-menu a:nth-child(7) { transition-delay: 0.35s !important; }
  .nav-item.is-expanded .dropdown-menu a:nth-child(8) { transition-delay: 0.40s !important; }

  /* 5. Smooth Arrow Rotation */
  .nav-item.has-dropdown .dropdown-trigger::after {
    transition: transform 0.3s ease !important;
  }

  .nav-item.has-dropdown.is-expanded .dropdown-trigger::after {
    transform: rotate(225deg) translate(-1px, -1px) !important;
  }

  /* 6. Active Link Styling in Mobile */
  .nav-links a.active, 
  .nav-links .dropdown-trigger[aria-expanded="true"] {
    color: #f4ed78 !important;
  }
}


@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; */

      color: #FAF677 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 25px !important;
}

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

.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;
  }
}

/* ============================================
   Digital Library ? Derived Books collection cards
   ============================================ */

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

.catalogue-card > a {
  display: block;
  color: inherit;
}

.collection-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 190 / 305;
}

.collection-thumb::before,
.collection-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #e7d9c2;
}

.collection-thumb::before {
  transform: translate(7px, -7px);
  background: #dfcfb0;
}

.collection-thumb::after {
  transform: translate(3px, -3px);
  background: #efe3ce;
}

.collection-thumb img,
.collection-placeholder {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #e3e1e6;
  box-shadow: 0 11px 25px rgba(38, 31, 48, 0.13);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.collection-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 4px;
  background: #f0a3a6;
  color: #7a1418;
  font-size: 11px;
  font-weight: 700;
}

/* ============================================
   Collection detail page (e.g. Elements of
   Computer Hardware) ? additions
   ============================================ */

.book-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.book-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 7px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(31, 24, 45, 0.08);
}

.book-row img,
.book-row .book-row-placeholder {
  width: 56px;
  height: 78px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(31, 24, 45, 0.14);
  flex-shrink: 0;
  background: #ded7d0;
}

.book-row-body h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #2c2630;
}

.book-row-meta {
  margin: 0 0 6px;
  color: #8f8891;
  font-size: 12px;
}

.book-row-link {
  color: #b32022;
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.book-row-link.is-upcoming {
  color: #a39da5;
  font-weight: 400;
}

.topic-grid,
.tag-row {
  margin-top: 16px;
}

.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.topic-grid span,
.tag-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: #f8f8f8;
  border-radius: 7px;
  color: #473f49;
  font-size: 14px;
}

.topic-grid span::before,
.tag-row span::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 0.42em;
  height: 0.72em;
  margin: 0 0.1em 0.12em 0.05em;
  border-right: 2px solid #b32022;
  border-bottom: 2px solid #b32022;
  transform: rotate(40deg);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-row span {
  width: auto;
}

.book-checkout-head .price-note {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.material-box .bullets {
  list-style: disc;
  margin: 8px 0 0 18px;
  padding: 0;
}

.material-box .bullets li {
  margin-bottom: 6px;
  color: #27212c;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .book-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@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; */
      color: white;
    font-size: 36px;
    font-weight: 400;
    line-height: 40px;
    margin: 10px 0 20px;
}

.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; */
      color: white;
    font-size: 36px;
    font-weight: 400;
    line-height: 40px;
    margin: 10px 0 20px;
}

.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;
  }
}

/* ============================================
   Digital Library ? Derived Books collection cards
   ============================================ */

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

.catalogue-card > a {
  display: block;
  color: inherit;
}

.collection-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 190 / 305;
}

.collection-thumb::before,
.collection-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #e7d9c2;
}

.collection-thumb::before {
  transform: translate(7px, -7px);
  background: #dfcfb0;
}

.collection-thumb::after {
  transform: translate(3px, -3px);
  background: #efe3ce;
}

.collection-thumb img,
.collection-placeholder {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #e3e1e6;
  box-shadow: 0 11px 25px rgba(38, 31, 48, 0.13);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.collection-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 4px;
  background: #f0a3a6;
  color: #7a1418;
  font-size: 11px;
  font-weight: 700;
}

/* ============================================
   Collection detail page (e.g. Elements of
   Computer Hardware) ? additions
   ============================================ */

.book-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.book-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 7px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(31, 24, 45, 0.08);
}

.book-row img,
.book-row .book-row-placeholder {
  width: 56px;
  height: 78px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(31, 24, 45, 0.14);
  flex-shrink: 0;
  background: #ded7d0;
}

.book-row-body h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #2c2630;
}

.book-row-meta {
  margin: 0 0 6px;
  color: #8f8891;
  font-size: 12px;
}

.book-row-link {
  color: #b32022;
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.book-row-link.is-upcoming {
  color: #a39da5;
  font-weight: 400;
}

.topic-grid,
.tag-row {
  margin-top: 16px;
}

.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.topic-grid span,
.tag-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: #f8f8f8;
  border-radius: 7px;
  color: #473f49;
  font-size: 14px;
}

.topic-grid span::before,
.tag-row span::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 0.42em;
  height: 0.72em;
  margin: 0 0.1em 0.12em 0.05em;
  border-right: 2px solid #b32022;
  border-bottom: 2px solid #b32022;
  transform: rotate(40deg);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-row span {
  width: auto;
}

.book-checkout-head .price-note {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.material-box .bullets {
  list-style: disc;
  margin: 8px 0 0 18px;
  padding: 0;
}

.material-box .bullets li {
  margin-bottom: 6px;
  color: #27212c;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .book-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   Course page tabs ? panel switching,
   curriculum accordion, batch schedule rows
   ============================================ */

.tab-panel.is-hidden {
  display: none;
}

.curriculum-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.curriculum-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 12px;
}

.curriculum-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.curriculum-unit {
  background: #f8f8f8;
  border-radius: 7px;
  overflow: hidden;
}

.curriculum-unit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}

.curriculum-unit-header h4 {
  margin: 0 0 3px;
  font-size: 17px;
  color: #2c2630;
}

.curriculum-unit-header p {
  margin: 0;
  color: #9a929b;
  font-size: 12px;
}

.curriculum-unit-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lecture-badge {
  background: #fff;
  border: 1px solid #e3dfe4;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #3c3540;
  white-space: nowrap;
}

.curriculum-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid #6f6870;
  border-bottom: 2px solid #6f6870;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.curriculum-unit.is-open .curriculum-chevron {
  transform: rotate(225deg);
}

.curriculum-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.curriculum-unit.is-open .curriculum-body {
  max-height: 600px;
}

.curriculum-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.curriculum-body li {
  padding: 12px 20px;
  border-top: 1px solid #eee;
  color: #473f49;
  font-size: 14px;
}

.batch-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: #f8f8f8;
  border-radius: 7px;
  margin-bottom: 12px;
}

.batch-date {
  background: var(--purple);
  color: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
  min-width: 60px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  flex-shrink: 0;
}

.batch-info {
  flex: 1;
  min-width: 0;
}

.batch-info h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #2c2630;
}

.batch-info p {
  margin: 0;
  color: #9a929b;
  font-size: 12px;
}

.batch-status {
  padding: 8px 16px;
  border: 1px solid #d9d5da;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #3c3540;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .batch-row {
    flex-wrap: wrap;
  }

  .curriculum-unit-header {
    flex-wrap: wrap;
  }
}

:root {
    --primary-red: #dc4c4c;
    --dark-purple: #2d1b42;
    --border-color: #e2e2e2;
    --text-muted: #716a72;
}

/* Modal Overlay Animation */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.payment-modal-container {
    background: #fff;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.payment-modal-overlay.active .payment-modal-container {
    transform: translateY(0);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 10;
}

/* Banner Section */
.modal-banner {
    background: var(--dark-purple);
    color: white;
    display: flex;
    padding: 20px;
    gap: 25px;
    align-items: center;
}

.banner-image img {
    width: 280px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.banner-text .kicker {
    color: #ffd700;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.banner-text h1 {
    font-size: 28px;
    margin: 5px 0;
}

.banner-text p {
    font-size: 14px;
    opacity: 0.9;
    max-width: 500px;
}

/* Body Layout */
.modal-body-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    padding: 30px;
    gap: 30px;
}

/* Left Column */
.modal-options-col {
    min-width: 0;
}

.option-group { margin-bottom: 25px; }
.group-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #444;
}

.batch-selector-static {
    background: #f8f8f8;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    color: #333;
}

/* Payment options ? dynamic 1 / 2 / 3+ cards inside the checkout modal */
.payment-radio-grid {
    display: grid;
    gap: 15px;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

/* 1 option ? one full-width card */
.payment-radio-grid:has(> .radio-card:only-child) {
    grid-template-columns: minmax(0, 1fr);
}

/* 3+ options ? wrap into a responsive equal-width grid */
.payment-radio-grid:has(> .radio-card:nth-child(3)) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.radio-card {
    cursor: pointer;
    position: relative;
    display: flex;
    margin: 0;
    min-width: 0;
    height: 100%;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.radio-card-content {
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    min-height: 54px;
    background: #fff;
}

.radio-card-content .label {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.radio-card-content .price-sep {
    flex: 0 0 auto;
    line-height: 1.35;
    align-self: center;
    opacity: 0.85;
}

.radio-card-content .price {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1.35;
    align-self: center;
}

.radio-card input:checked + .radio-card-content {
    border-color: #2e7d32;
    background: #f1f8f1;
}

.radio-dot {
    width: 14px;
    height: 14px;
    border: 1px solid #999;
    border-radius: 50%;
    margin-right: 0;
    display: inline-block;
    position: relative;
    flex: 0 0 14px;
    align-self: center;
    box-sizing: border-box;
}

.radio-card input:checked + .radio-card-content .radio-dot {
    background: #2e7d32;
    border-color: #2e7d32;
}

.radio-card input:checked + .radio-card-content .radio-dot::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Installment schedule for the selected payplan (from course-payment.php) */
.payment-radio-grid,
.books-scroll-list {
    transition: opacity 0.22s ease;
}

@keyframes payplanFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payplan-installments {
    margin-top: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    animation: payplanFadeIn 0.28s ease;
}

.payplan-installments-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 12px 15px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.payplan-installments-name {
    font-weight: 600;
    color: #333;
}

.payplan-installments-count {
    color: var(--text-muted, #777);
    font-size: 13px;
    white-space: nowrap;
}

.payplan-installments-list {
    max-height: 180px;
    overflow-y: auto;
}

.payplan-installment-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.payplan-installment-row:last-child {
    border-bottom: none;
}

.payplan-installment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.payplan-installment-num {
    color: #333;
    font-weight: 500;
}

.payplan-installment-due {
    color: #777;
    font-size: 12px;
}

.payplan-installment-amt {
    flex: 0 0 auto;
    white-space: nowrap;
    color: #333;
    font-weight: 500;
}

/* Books List */
.books-scroll-list {
    border: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
    max-height: 200px;
    overflow-y: auto;
}

.book-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.book-total-row {
    border: 1px solid var(--border-color);
    border-top: none;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
}

.books-mandatory-note {
    margin: 10px 0 8px;
    padding: 0 2px;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280;
    font-style: italic;
}

/* Right Summary Card */
.modal-summary-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.summary-header {
    background: #b53838;
    color: white;
    padding: 20px;
}

.early-bird-tag { font-size: 12px; opacity: 0.9; }
.price-main { font-size: 24px; font-weight: 700; margin: 4px 0; }
.tax-breakdown { font-size: 13px; opacity: 0.8; }

.summary-details { padding: 20px; flex-grow: 1; }

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.material-alert {
    background: #f1fdf1;
    border-left: 4px solid #4caf50;
    padding: 10px;
    margin: 15px 0;
}

.material-alert strong { color: #2e7d32; font-size: 13px; }
.material-alert p { font-size: 12px; margin: 4px 0 0; color: #555; line-height: 1.4; }

.summary-sub-line { border-top: 1px solid #eee; padding-top: 15px; margin-top: 10px; color: var(--text-muted); font-size: 13px; }

.payable-now {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.payable-now strong { font-size: 20px; color: #333; }

.btn-payment-final {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 15px;
    width: calc(100% - 40px);
    margin: 0 20px 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.18s ease, opacity 0.2s ease;
}

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

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

.payment-footer {
    font-size: 11px;
    text-align: center;
    color: #999;
    padding-bottom: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 850px) {
    .modal-body-layout { grid-template-columns: 1fr; }
    .modal-banner { flex-direction: column; text-align: center; }
    .banner-image img { width: 100%; }

    /* Keep 2 equal cards when exactly two options; otherwise wrap/stack */
    .payment-radio-grid:has(> .radio-card:nth-child(3)) {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    }
}

@media (max-width: 560px) {
    .payment-radio-grid,
    .payment-radio-grid:has(> .radio-card:only-child),
    .payment-radio-grid:has(> .radio-card:nth-child(2):last-child),
    .payment-radio-grid:has(> .radio-card:nth-child(3)) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 1. The Full Screen Overlay (Blurred) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Transparent dark tint */
    backdrop-filter: blur(8px); /* Blurs the website background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

/* 2. The Modal Container (Ensures centering) */
.modal-container {
    perspective: 1000px;
}

/* 3. The Login Card (Dimensions from your layout) */
.login-card {
    width: 1180px;
    max-width: 95vw; /* Responsive for smaller screens */
    height: 767px;
    max-height: 90vh; /* Responsive */
    background: #2d1b42; /* The exact dark purple from your hex */
    border-radius: 10px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow-y: auto; /* Scrollable if screen is small */
    
    /* Animation: Zoom in and Fade in */
    opacity: 0;
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .login-card {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Close Button */
.close-x {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

/* Inner Content Alignment */
.login-inner-content {
    width: 100%;
    max-width: 440px; /* Aligns with the width of the form elements */
    margin: 60px auto;
    text-align: center;
    color: white;
}

/* Logo Section */
.logo-header {
    /* background: white; */
    padding: 15px 30px;
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 40px;
}

.logo-header img {
    height: 60px;
    display: block;
}

/* Heading */
.login-heading {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 35px;
    color: white;
}

/* Form Styles */
.login-form { text-align: left; }

.input-row { margin-bottom: 22px; }

.input-row label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.input-row input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 6px;
    border: none;
    background: #f8f9fa;
    font-size: 16px;
    color: #333;
}

.auth-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 30px;
}

.forgot-link { color: white; text-decoration: underline; }

/* Buttons */
.btn-login-red {
    width: 100%;
    padding: 16px;
    background: #dc4c4c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.terms-text {
    font-size: 11px;
    text-align: center;
    margin-top: 15px;
    opacity: 0.7;
}

.terms-text a { color: white; text-decoration: underline; }

/* Divider Line */
.divider-line {
    text-align: center;
    position: relative;
    margin: 30px 0;
}

.divider-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.2);
}

.divider-line span {
    position: relative;
    background: #2d1b42; /* Matches the card background */
    padding: 0 15px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* Google Button */
.btn-google-white {
    width: 100%;
    padding: 12px;
    background: white;
    color: #333;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.btn-google-white img { height: 20px; }

/* Signup Link */
.signup-footer {
    text-align: center;
    margin-top: 35px;
    font-size: 14px;
}

.signup-footer a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* Phone Input Group Styling */
.phone-input-container {
    display: flex;
    gap: 10px;
}

.country-code {
    background: #f8f9fa;
    padding: 0 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 500;
    min-width: 90px;
}

.country-code img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.phone-main-input {
    flex: 1;
}

/* Ensure Register Modal uses same animation as login */
#registerModal.active .login-card {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Specific adjustment for the switch link */
.signup-footer a {
    cursor: pointer;
}
/* --- Auth profile + feedback (site-wide) --- */
.btn-profile {
  gap: 10px;
  padding-inline: 12px 16px !important;
  max-width: min(220px, 46vw);
  animation: aalProfileIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.btn-profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #2a1d44;
  background: #f4ed78;
}
.btn-profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
@keyframes aalProfileIn {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-feedback {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.auth-feedback.is-visible { opacity: 1; transform: translateY(0); }
.auth-feedback.is-error {
  background: rgba(220, 76, 76, 0.12);
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, 0.22);
}
.auth-feedback.is-success {
  background: rgba(46, 125, 50, 0.12);
  color: #1b5e20;
  border: 1px solid rgba(46, 125, 50, 0.22);
}
.login-card .auth-feedback.is-error {
  background: rgba(255, 120, 120, 0.16);
  color: #ffd4d4;
  border-color: rgba(255, 180, 180, 0.28);
}
.login-card .auth-feedback.is-success {
  background: rgba(120, 220, 150, 0.16);
  color: #d8ffe4;
  border-color: rgba(180, 255, 200, 0.28);
}
.btn-primary.is-loading,
.btn-login-red.is-loading { opacity: 0.78; pointer-events: none; }
@media (max-width: 720px) {
  .btn-profile-name { max-width: 110px; }
}
@media (max-width: 480px) {
  .btn-profile-name { display: none; }
  .btn-profile { padding-inline: 10px !important; }
}

/* Digital library ? Subscribe CTA on book cards */
.catalogue-card .catalogue-subscribe {
  display: inline-flex;
  width: 100%;
  margin-top: 12px;
  min-height: 38px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.catalogue-card .catalogue-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(227, 66, 63, 0.22);
}
