/* Course / masterclass detail — cream & gold restyle */

.cd-page {
  --cd-cream: #f7f4ee;
  --cd-cream-deep: #efe9df;
  --cd-gold: #c4a35a;
  --cd-gold-dark: #a68b4b;
  --cd-ink: #2a241c;
  --cd-muted: #7a7268;
  --cd-line: #e4ddd2;
  --cd-radius: 22px;
  color: var(--cd-ink);
  background: #fff;
}

.cd-page a {
  color: var(--cd-gold-dark);
}

.cd-page a:hover {
  color: var(--cd-ink);
}

/* Kill size jump on hover: Akame sets a:hover { font-weight: 400 },
   which shrinks/grows bold links & buttons; also block any transform scale. */
.cd-page a:hover,
.cd-page a:focus,
.cd-page a:active,
.cd-page .cd-btn:hover,
.cd-page .cd-btn:focus,
.cd-page .cd-btn:active,
.cd-page .btn:hover,
.cd-page .btn:focus,
.cd-page .akame-btn:hover,
.cd-page .akame-btn:focus {
  transform: none !important;
  -webkit-transform: none !important;
}

.cd-page .cd-btn,
.cd-page .cd-btn:hover,
.cd-page .cd-btn:focus,
.cd-page .cd-btn:active {
  font-weight: 700 !important;
  font-size: 13px !important;
}

.cd-page .cd-price__phone,
.cd-page .cd-price__phone:hover,
.cd-page .cd-price__phone:focus {
  font-weight: 600 !important;
}

.cd-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ----- Hero ----- */
.cd-hero {
  padding: 20px 0 12px;
}

.cd-hero .cd-wrap {
  background: #f6f1e8;
  border-radius: var(--cd-radius);
  padding: 32px 28px;
}

.cd-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px 48px;
  align-items: stretch;
}

.cd-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cd-gold);
}

.cd-hero__title {
  margin: 0 0 18px;
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.18;
  color: var(--cd-ink);
}

.cd-hero__status {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cd-hero__status--open {
  color: #3d7a4a;
}

.cd-hero__status--closed {
  color: #a04545;
}

.cd-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--cd-muted);
  font-size: 14px;
}

.cd-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cd-hero__meta i {
  color: var(--cd-gold);
  font-size: 15px;
  width: 1em;
  text-align: center;
}

.cd-hero__lead {
  margin: 0 0 24px;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.65;
  color: #4a433a;
}

.cd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cd-btn--gold {
  background: var(--cd-gold);
  color: #fff !important;
  border-color: var(--cd-gold);
}

.cd-btn--gold:hover {
  background: var(--cd-gold-dark);
  border-color: var(--cd-gold-dark);
  color: #fff !important;
}

.cd-btn--ghost {
  background: transparent;
  color: var(--cd-ink) !important;
  border-color: #c8bfb0;
}

.cd-btn--ghost:hover {
  border-color: var(--cd-gold);
  color: var(--cd-gold-dark) !important;
}

.cd-btn--block {
  width: 100%;
}

.cd-hero__media-col {
  position: relative;
  min-width: 0;
  height: 100%;
}

.cd-hero__media {
  position: sticky;
  top: 96px;
  max-width: 360px;
  margin-left: auto;
}

.cd-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--cd-radius);
  background: var(--cd-cream);
}

.cd-hero__media-fallback {
  aspect-ratio: 4 / 5;
  border-radius: var(--cd-radius);
  background: var(--cd-cream);
}

/* ----- Features ----- */
.cd-features {
  padding: 28px 0 8px;
  border-top: 1px solid var(--cd-line);
  border-bottom: 1px solid var(--cd-line);
  margin: 20px 0 0;
}

.cd-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
}

.cd-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cd-feature img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.cd-feature span {
  font-size: 13px;
  line-height: 1.35;
  color: #4a433a;
}

/* ----- Sections shared ----- */
.cd-section {
  padding: 56px 0 8px;
}

.cd-section__title {
  margin: 0 0 20px;
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--cd-ink);
}

.cd-section__title--center {
  text-align: center;
  margin-bottom: 36px;
}

.cd-dual {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 36px 40px;
  align-items: start;
}

.cd-dual--single {
  grid-template-columns: minmax(280px, 420px);
  justify-content: end;
}

.cd-about__body {
  font-size: 16px;
  line-height: 1.7;
  color: #3d372f;
}

.cd-about__body p {
  margin: 0 0 1em;
}

.cd-about__body .lead {
  font-size: 1.05em;
  color: #4a433a;
}

.cd-about__body ul,
.cd-program__body ul {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0 0 0 4px;
  position: relative;
}

.cd-about__body ul::before,
.cd-program__body ul::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: #ddd4c5;
}

.cd-about__body li,
.cd-program__body li {
  position: relative;
  padding: 0 0 14px 28px;
  margin: 0;
  line-height: 1.55;
}

.cd-about__body li:last-child,
.cd-program__body li:last-child {
  padding-bottom: 0;
}

.cd-about__body li::before,
.cd-program__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cd-gold);
  box-shadow: 0 0 0 3px #fff;
  z-index: 1;
}

.cd-about__body li .fa,
.cd-program__body li .fa {
  display: none;
}

.cd-about__body blockquote,
.cd-about__quote {
  margin: 28px 0 0;
  padding: 22px 24px 22px 28px;
  background: var(--cd-cream);
  border-radius: 18px;
  font-style: italic;
  color: #5a5248;
  position: relative;
}

.cd-about__quote::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 14px;
  font-family: "Playfair Display", serif;
  font-size: 48px;
  line-height: 1;
  color: var(--cd-gold);
  opacity: 0.85;
}

.cd-about__quote p {
  margin: 0;
  padding-left: 18px;
}

/* ----- Price card ----- */
.cd-price {
  background: var(--cd-cream);
  border-radius: var(--cd-radius);
  padding: 28px 26px 24px;
  position: sticky;
  top: 96px;
}

.cd-price__label {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 500;
}

.cd-price__value {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cd-ink);
}

.cd-price__value span {
  font-size: 18px;
  font-weight: 500;
  color: var(--cd-muted);
}

.cd-price__note {
  margin: 0 0 18px;
  color: var(--cd-muted);
  font-size: 15px;
}

.cd-price__contacts {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e0d8cb;
}

.cd-price__phone {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--cd-ink) !important;
  text-decoration: none !important;
}

.cd-price__phone:hover {
  color: var(--cd-gold-dark) !important;
}

.cd-price__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cd-price__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--cd-ink) !important;
  text-decoration: none !important;
  border: 1px solid var(--cd-line);
}

.cd-price__socials a:hover {
  border-color: var(--cd-gold);
  color: var(--cd-gold-dark) !important;
}

.cd-price__socials img {
  width: 20px;
  height: 20px;
}

/* ----- Program + teacher ----- */
.cd-program__body {
  font-size: 15px;
  line-height: 1.6;
  color: #3d372f;
}

.cd-program__body p {
  margin: 0 0 0.85em;
}

.cd-teacher {
  background: var(--cd-cream);
  border-radius: var(--cd-radius);
  padding: 28px 24px 24px;
  text-align: center;
}

.cd-teacher__label {
  margin: 0 0 16px;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 500;
  text-align: left;
}

.cd-teacher__photo {
  width: 200px;
  height: 200px;
  margin: 0 auto 14px;
  border-radius: var(--cd-radius);
  overflow: hidden;
  background: #fff;
}

.cd-teacher__photo a {
  display: block;
  width: 100%;
  height: 100%;
}

.cd-teacher__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cd-teacher__name {
  margin: 0 0 4px;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 500;
}

.cd-teacher__name a {
  color: inherit !important;
  text-decoration: none !important;
}

.cd-teacher__name a:hover {
  color: var(--cd-gold-dark) !important;
}

.cd-teacher__role {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--cd-muted);
}

.cd-teacher__facts {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  text-align: left;
}

.cd-teacher__facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #4a433a;
}

.cd-teacher__facts img {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  object-fit: contain;
}

.cd-teacher__quote {
  margin: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
  color: #6a6258;
  text-align: left;
}

/* ----- How it works ----- */
.cd-how {
  padding: 48px 0 16px;
}

.cd-how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cd-how__card {
  background: var(--cd-cream);
  border-radius: var(--cd-radius);
  padding: 28px 18px 24px;
  text-align: center;
}

.cd-how__card img {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.cd-how__card h3 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 500;
}

.cd-how__card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cd-muted);
}

/* ----- Gallery ----- */
.cd-gallery {
  padding: 40px 0 8px;
}

.cd-gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.cd-gallery__grid a,
.cd-gallery__grid figure {
  margin: 0;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cd-cream);
}

.cd-gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- CTA band ----- */
.cd-cta {
  margin: 48px 0 0;
  background: var(--cd-cream);
  overflow: hidden;
}

.cd-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 40px;
  align-items: center;
  padding: 48px 0;
  position: relative;
}

.cd-cta__copy h2 {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.2;
}

.cd-cta__copy p {
  margin: 0 0 22px;
  max-width: 28em;
  color: #5a5248;
  line-height: 1.55;
}

.cd-cta__visual {
  position: relative;
  justify-self: end;
  max-width: 320px;
  width: 100%;
}

.cd-cta__visual img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--cd-radius) var(--cd-radius) 0 0;
}

.cd-cta__script {
  font-family: "Caveat", cursive;
  font-size: 28px;
  color: var(--cd-gold-dark);
  margin: 10px 0 0;
  transform: rotate(-6deg);
  text-align: right;
}

.cd-back {
  padding: 40px 0 64px;
  text-align: center;
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
  .cd-hero__grid,
  .cd-dual,
  .cd-cta__inner {
    grid-template-columns: 1fr;
  }

  .cd-hero__media {
    position: static;
    max-width: 360px;
    margin: 8px auto 0;
  }

  .cd-price {
    position: static;
  }

  .cd-features__grid,
  .cd-how__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cd-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cd-cta__visual {
    justify-self: center;
    order: -1;
    max-width: 260px;
  }

  .cd-cta__script {
    text-align: center;
  }
}

@media (max-width: 575px) {
  .cd-hero .cd-wrap {
    padding: 24px 18px;
  }

  .cd-features__grid,
  .cd-how__grid {
    grid-template-columns: 1fr;
  }

  .cd-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cd-hero__actions .cd-btn {
    width: 100%;
  }

  .cd-feature {
    justify-content: flex-start;
  }
}
