/* =========================================================
   Black 2 Blonde — Premium Salon Education / Seminar Section
   Corrected version: balanced height, no image crop, full content visible
   ========================================================= */

.hx-education-premium {
  padding-top: clamp(72px, 7vw, 108px);
  padding-bottom: clamp(72px, 7vw, 108px);
  background:
    radial-gradient(circle at 94% 8%, rgba(200, 164, 106, 0.10), transparent 28%),
    linear-gradient(180deg, #fbf7f2 0%, #f6eee6 100%);
}

.hx-education-premium .hx-wrap {
  width: min(1180px, calc(100% - 12vw));
  margin-inline: auto;
}

.hx-education-premium .hx-education-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.hx-education-premium .hx-education-heading-copy {
  max-width: 780px;
}

.hx-education-premium .hx-education-heading .hx-title {
  max-width: 760px;
  margin-bottom: 12px;
}

.hx-education-premium .hx-education-heading .hx-lead {
  max-width: 720px;
  margin-bottom: 0;
}

.hx-education-premium .hx-education-actions {
  justify-content: flex-end;
  margin: 0;
  align-self: end;
}

/* Featured live-session block */
.hx-education-premium .hx-education-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .85fr);
  overflow: hidden;
  border: 1px solid rgba(21, 18, 21, 0.09);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(21, 18, 21, 0.10);
}

/* Two-image presentation: shows full content instead of cropping */
.hx-education-premium .hx-education-feature-media {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  background: #eee5dc;
}

.hx-education-premium .hx-education-feature-main,
.hx-education-premium .hx-education-feature-secondary {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #ded4ca;
}

.hx-education-premium .hx-education-feature-main img,
.hx-education-premium .hx-education-feature-secondary img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 420px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #ded4ca;
}

.hx-education-premium .hx-education-feature-copy {
  padding: clamp(26px, 3.2vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hx-education-premium .hx-education-label,
.hx-education-premium .hx-education-copy > span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(200, 164, 106, 0.13);
  color: #8e693b;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hx-education-premium .hx-education-feature-copy h3 {
  margin: 16px 0 12px;
  max-width: 440px;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(28px, 2.7vw, 39px);
  line-height: 1.08;
  font-weight: 600;
}

.hx-education-premium .hx-education-feature-copy > p {
  margin: 0;
  max-width: 470px;
  color: #6f6468;
  font-size: 15px;
  line-height: 1.7;
}

.hx-education-premium .hx-education-feature-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hx-education-premium .hx-education-feature-points span {
  padding: 8px 11px;
  border: 1px solid rgba(21, 18, 21, 0.09);
  border-radius: 999px;
  background: #faf6f1;
  color: #5f5559;
  font-size: 11px;
  font-weight: 600;
}

/* Three equal education cards */
.hx-education-premium .hx-education-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.hx-education-premium .hx-education-small-card {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(21, 18, 21, 0.09);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(21, 18, 21, 0.075);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hx-education-premium .hx-education-small-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(21, 18, 21, 0.11);
}

.hx-education-premium .hx-education-small-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5ddd5;
}

.hx-education-premium .hx-education-small-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #e5ddd5;
}

.hx-education-premium .hx-education-copy {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hx-education-premium .hx-education-copy h3 {
  margin: 14px 0 9px;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.12;
  font-weight: 600;
}

.hx-education-premium .hx-education-copy p {
  margin: 0;
  color: #6f6468;
  font-size: 14px;
  line-height: 1.65;
}

.hx-education-premium .hx-learning-tracks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
}

.hx-education-premium .hx-learning-tracks span {
  padding: 8px 13px;
  border: 1px solid rgba(21, 18, 21, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #675b60;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
}

/* Tablet */
@media (max-width: 980px) {
  .hx-education-premium .hx-wrap {
    width: min(100% - 10vw, 1180px);
  }

  .hx-education-premium .hx-education-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hx-education-premium .hx-education-actions {
    justify-content: flex-start;
  }

  .hx-education-premium .hx-education-feature {
    grid-template-columns: 1fr;
  }

  .hx-education-premium .hx-education-feature-media {
    grid-template-columns: 1.4fr .6fr;
  }

  .hx-education-premium .hx-education-feature-main img,
  .hx-education-premium .hx-education-feature-secondary img {
    min-height: 300px;
    max-height: 380px;
  }

  .hx-education-premium .hx-education-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-education-premium .hx-education-small-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 560px);
    justify-self: center;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hx-education-premium {
    padding-top: 56px;
    padding-bottom: 62px;
  }

  .hx-education-premium .hx-wrap {
    width: calc(100% - 8vw);
  }

  .hx-education-premium .hx-education-heading {
    gap: 18px;
    margin-bottom: 24px;
  }

  .hx-education-premium .hx-education-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .hx-education-premium .hx-education-actions .hx-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hx-education-premium .hx-education-feature {
    border-radius: 18px;
  }

  .hx-education-premium .hx-education-feature-media {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .hx-education-premium .hx-education-feature-main img,
  .hx-education-premium .hx-education-feature-secondary img {
    min-height: 0;
    max-height: none;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .hx-education-premium .hx-education-feature-copy {
    padding: 24px 20px 26px;
  }

  .hx-education-premium .hx-education-feature-copy h3 {
    font-size: clamp(27px, 8vw, 34px);
  }

  .hx-education-premium .hx-education-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }

  .hx-education-premium .hx-education-small-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .hx-education-premium .hx-education-small-media {
    aspect-ratio: auto;
  }

  .hx-education-premium .hx-education-small-media img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .hx-education-premium .hx-education-copy {
    padding: 20px;
  }

  .hx-education-premium .hx-learning-tracks {
    justify-content: flex-start;
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx-education-premium .hx-education-small-card {
    transition: none;
  }
}

/* Working seminar image slider */
.hx-education-premium .hx-education-feature-media {
  display: block;
  padding: 10px;
  background: #eee5dc;
}

.hx-education-premium .hx-education-slider {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  height: 100%;
  border-radius: 16px;
  background: #ded4ca;
}

.hx-education-premium .hx-education-slides,
.hx-education-premium .hx-education-slide {
  position: absolute;
  inset: 0;
}

.hx-education-premium .hx-education-slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
}

.hx-education-premium .hx-education-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hx-education-premium .hx-education-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #ded4ca;
}

.hx-education-premium .hx-education-slider-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  background: rgba(21,18,21,.72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(21,18,21,.2);
}

.hx-education-premium .hx-education-slider-btn.prev { left: 14px; }
.hx-education-premium .hx-education-slider-btn.next { right: 14px; }

.hx-education-premium .hx-education-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(21,18,21,.55);
  backdrop-filter: blur(8px);
}

.hx-education-premium .hx-education-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}

.hx-education-premium .hx-education-dots button.is-active {
  background: #fff;
  transform: scale(1.18);
}

@media (max-width: 980px) {
  .hx-education-premium .hx-education-slider {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .hx-education-premium .hx-education-slider {
    min-height: 300px;
  }

  .hx-education-premium .hx-education-slider-btn {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}
