/* =========================
   Academy PDP — Layout
========================= */
.hb-academy-pdp { background: transparent; }

.hb-academy-hero { padding: 64px 0 18px; }

.hb-academy-hero__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;

  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

/* =========================
   Hero text
========================= */
.hb-academy-hero__kicker{
  margin: 4px 0 20px 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: .7;
}

.hb-academy-hero__title{
  margin: 0 0 10px;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.1;
  font-weight: 500;
}

.hb-academy-hero__subtitle{
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.6;
  opacity: .88;
  max-width: 56ch;
}

/* =========================
   Dates
========================= */
.hb-academy-dates{
  margin: 8px 0 16px;
  font-size: 15px;
  color: var(--hb-text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dates hierarchy */
.hb-academy-dates.is-group{
  font-weight: 600;
  color: var(--hb-text);
}

.hb-academy-dates.is-private{
  font-size: 14px;
  opacity: .75;
}

/* =========================
   Meta info
========================= */
.hb-academy-hero__meta{
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  font-size: 14px;
  opacity: .92;
}

/* =========================
   CTA
========================= */
.hb-academy-hero__cta{
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin-top: 12px;
}

.hb-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

/* Primary */
.hb-btn--primary{
  background: var(--hb-pink);
  color: #fff;
  transition: background-color .25s ease, transform .2s ease;
}
.hb-btn--primary:hover{
  background: var(--hb-pink-hover);
}

/* Secondary */
.hb-btn--secondary{
  background: transparent;
  color: var(--hb-text-muted);
  border: 2px solid var(--hb-pink);
  transition: background-color .25s ease, color .25s ease;
  min-height: 46px;
}
.hb-btn--secondary:hover{
  background: var(--hb-pink);
  color: #fff;
}

/* Notes */
.hb-cta-note{
  font-size: 14px;
  padding: 8px 0;
}

/* =========================
   Media (image)
========================= */
.hb-academy-hero__media{
  position: relative;
  margin-right: -16px;
  border-radius: 18px;
  overflow: hidden;
}

.hb-academy-hero__img{
  width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.6),
    var(--hb-shadow-media);
}

.hb-academy-hero__placeholder{
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(0,0,0,.06);
}

/* =========================
   Body
========================= */
.hb-academy-body{ padding: 34px 0 80px; }

.hb-academy-body__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hb-academy-body p,
.hb-academy-body li{ color: var(--hb-text-muted); }

.hb-academy-body h2,
.hb-academy-body h3{ color: var(--hb-text); }

/* =========================
   Content cards
========================= */
.hb-academy-section-card{
  background: #fff;
  border-radius: var(--hb-radius);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--hb-shadow-soft);
}

/* =========================
   Bottom CTA
========================= */
.hb-academy-cta-bottom{
  margin-top: 80px;
  text-align: center;

  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);

  background: #fff;
  padding: 64px 20px;
}

.hb-academy-cta-bottom h3{
  font-size: 28px;
  margin-bottom: 8px;
}

.hb-academy-cta-bottom p{
  margin-bottom: 24px;
  opacity: .85;
}

.hb-academy-cta-buttons{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px){
  .hb-academy-hero__inner{
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* Sold out / disabled primary CTA */
.hb-btn--disabled{
  background: #ddd;
  color: #777;
  cursor: not-allowed;
  box-shadow: none;
}

.hb-academy-hero__media{
  position: relative;
  margin-right: -16px;
  border-radius: 18px;
}

.hb-academy-hero__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;      /* this is key/ */
  object-position: center;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.6),
    var(--hb-shadow-media);
  max-height: 660px;
}

/* CTA spacing + emphasis */
.hb-academy-hero__cta{
  margin-top: 6px;
  gap: 12px;
}

.hb-btn--primary{
  min-height: 48px;
  box-shadow: 0 10px 22px rgba(224,143,193,0.22);
}

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

/* =========================
  START - Academy Overview (/academy)
========================= */

.hb-academy-overview__container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hb-academy-overview__header{
  padding: 56px 0 18px;
}

.hb-academy-overview__title{
  margin: 0 0 10px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.1;
}

.hb-academy-overview__subtitle{
  margin: 0;
  opacity: .85;
  max-width: 70ch;
}

.hb-academy-overview__content{
  padding: 26px 0 70px;
}

.hb-academy-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.hb-academy-card{
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.hb-academy-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.hb-academy-card__media{
  /* aspect-ratio: 4 / 3; */
  overflow: hidden;
  background: rgba(0,0,0,.04);
}

.hb-academy-card__img{
  width: 100%;
  display: block;
  border-radius: 12px;
}

.hb-academy-card__img--placeholder{
  width: 100%;
  height: 100%;
}

.hb-academy-card__body{
  padding: 16px 16px 18px;
}

.hb-academy-card__top{
  display: flex;
  margin-bottom: 10px;
}

.hb-academy-card__badge{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(224,143,193,.14);
  color: #111;
}

.hb-academy-card__title{
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.hb-academy-card__subtitle{
  margin: 0 0 14px;
  font-size: 14px;
  opacity: .85;
}

.hb-academy-card__meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hb-academy-card__meta-item{
  font-size: 13px;
  opacity: .8;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 4px 8px;
}

.hb-academy-card__cta-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  background: var(--hb-pink);
  color: #fff;
}

.hb-academy-overview__bottom{
  margin-top: 56px;
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
  text-align: center;
}

.hb-academy-overview__bottom h2{
  margin: 0 0 8px;
  font-size: 22px;
}

.hb-academy-overview__bottom p{
  margin: 0 0 16px;
  opacity: .85;
}

@media (max-width: 900px){
  .hb-academy-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px){
  .hb-academy-overview__header{ padding: 34px 0 14px; }
  .hb-academy-overview__content{ padding: 18px 0 56px; }
  .hb-academy-grid{ grid-template-columns: 1fr; }
}

/* =========================================
   Academy Overview – Card Alignment Fix
========================================= */

/* Make card content vertical */
.hb-academy-card {
  display: flex;
  flex-direction: column;
}

/* Clamp subtitle to 2 lines */
.hb-academy-card__subtitle {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;  /* limit to 2 lines */
  overflow: hidden;
  min-height: 3.2em;     /* ensures equal height even if text is short */
}

/* Push CTA section to bottom */
.hb-academy-card__cta {
  margin-top: auto;
}

/* Subtitle – desktop alignment */
.hb-academy-card__subtitle {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px; /* aligns buttons in desktop */
}

/* Mobile optimization */
@media (max-width: 768px) {
  .hb-academy-card__subtitle {
    min-height: auto; /* remove forced height */
  }
}

/* Filter categories - subcategories */
.hb-academy-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 18px 0 26px;
}

.hb-academy-tab{
  display:inline-flex;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  color:#111;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}

.hb-academy-tab:hover{
  border-color: rgba(224,143,193,.7);
}

.hb-academy-tab.is-active{
  background: rgba(224,143,193,.14);
  border-color: rgba(224,143,193,.55);
}

/* =========================================
   Academy Overview — More air + stronger copy
   Uses existing classes only
========================================= */

/* Give the whole header more breathing room */
.hb-academy-overview__header{
  padding: 74px 0 28px; /* was 56px 0 18px */
}

/* Title: slightly heavier + a bit more space */
.hb-academy-overview__title{
  margin: 0 0 14px; /* was 0 0 10px */
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* Subtitle: more readable + more “motivating” */
.hb-academy-overview__subtitle{
  margin: 0;
  line-height: 1.65;
  opacity: .92;           /* was .85 */
  max-width: 68ch;
}

/* Tabs: push them down from subtitle + make them feel more “button-like” */
.hb-academy-tabs{
  margin: 26px 0 34px; /* was 18px 0 26px */
  gap: 12px;
}

/* Tabs: slightly larger + softer background */
.hb-academy-tab{
  padding: 12px 16px;      /* was 10px 14px */
  font-size: 13px;
  border-color: rgba(0,0,0,.09);
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.hb-academy-tab:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.07);
}

/* Active tab: a touch more contrast */
.hb-academy-tab.is-active{
  background: rgba(224,143,193,.18); /* was .14 */
  border-color: rgba(224,143,193,.65); /* was .55 */
}

/* Add a bit more space before the grid starts */
.hb-academy-overview__content{
  padding: 32px 0 78px; /* was 26px 0 70px */
}

/* Mobile tuning */
@media (max-width: 520px){
  .hb-academy-overview__header{
    padding: 46px 0 18px; /* was 34px 0 14px */
  }

  .hb-academy-overview__subtitle{
    font-size: 18px;
  }

  .hb-academy-tabs{
    margin: 18px 0 24px;
    gap: 10px;
  }

  .hb-academy-tab{
    padding: 10px 14px;
    box-shadow: none; /* cleaner on mobile */
  }
}

/* =========================================
   Academy Overview — Header polish
========================================= */

.hb-academy-overview__header{
  padding: 78px 0 30px;
}

.hb-academy-overview__kicker{
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
}

.hb-academy-overview__title{
  margin: 0 0 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hb-academy-overview__subtitle{
  margin: 0;
  /* font-size: 17px; */
  line-height: 1.65;
  opacity: .92;
  max-width: 68ch;
}

/* Tabs */
.hb-academy-tabs{
  margin: 28px 0 0;
  gap: 12px;
}

.hb-academy-tab{
  padding: 12px 16px;
  border-color: rgba(0,0,0,.09);
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.hb-academy-tab:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.07);
}

.hb-academy-tab.is-active{
  background: rgba(224,143,193,.18);
  border-color: rgba(224,143,193,.65);
}

/* Mobile */
@media (max-width: 520px){
  .hb-academy-overview__header{ padding: 46px 0 18px; }
  .hb-academy-overview__subtitle{ font-size: 16px; }
  .hb-academy-tabs{ margin-top: 18px; gap: 10px; }
  .hb-academy-tab{ padding: 10px 14px; box-shadow: none; }
}
.hb-academy-overview__subtitle{
  line-height: 1.6;
  font-weight: 500;
  max-width: 720px;
  margin-top: 8px;
  color: #2c2c2c;
  margin: 10px 0 20px 0;
}

#hb-academy-overview__benefits {
  padding: 12px 0 20px 0 !important;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
}

/* === Academy grid: portrait-friendly image area (NO manual cropping) === */

/* 1) Make the media area portrait */
.hb-academy-card__media{
 /* portrait; aspect-ratio: 4 / 5; try 3/4 or 9/16 if you want taller */
  width: 100%;
  overflow: hidden;
  background: rgba(255,255,255,.7); /* soft “frame” behind contain images */
}

/* Optional: ensure the whole card still looks consistent */
.hb-academy-card{
  overflow: hidden;
}

/* Contenedor de la imagen */
.hb-academy-card__media{
  width: 100%;
  overflow: hidden;
  display: block;      /* mejor que flex aquí */
  box-sizing: border-box;
}

/* Imagen (clase real de WP) */
.hb-academy-card__media img.hb-academy-card__img.wp-post-image{
  width: 100%;
  height: auto;
  display: block;
}

.academy-price{
  margin-top: 6px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 6px;
}

/* =========================
  END - Academy Overview (/academy)
========================= */

/* =========================
  START - Course PDP
========================= */
.hb-academy-price{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin: 12px 0 6px;
}
.hb-academy-price__amount{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hb-academy-price__note{
  font-size: 14px;
  font-weight: 600;
  opacity: .75;
}

/* =========================
  END - Course PDP
========================= */
