/* ==========================================================================
   Curriculum & CBSE Framework section (academics.html, #cbse only).
   Typography and buttons follow index.html: .hp-kicker, .hp-h2 with the orange
   .hp-script word, .hp-body and .hp-pill (from shared-chrome.css).
   Scoped under .acad-cbse so no other section changes.
   ========================================================================== */

.acad-cbse {
  position: relative;
  padding: clamp(64px, 8vw, 110px) 0;
  overflow-x: clip;
}

.acad-cbse .hp-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--hp-gutter);
  position: relative;
}

.acad-cbse-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* ---- copy ---- */
.acad-cbse .hp-kicker {
  font-family: var(--hp-nav);
  font-size: 17px;
  color: var(--hp-orange);
  margin-bottom: 14px;
}

.acad-cbse .hp-h2 {
  font-family: var(--hp-sans);
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--hp-navy);
  margin: 0 0 26px;
}

.acad-cbse .hp-h2 .hp-script {
  font-size: 1.05em;
  letter-spacing: 0;
  white-space: normal;
}

.acad-cbse .hp-body {
  font-family: var(--hp-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--hp-ink);
  margin: 0 0 34px;
}

.acad-cbse-sub {
  font-family: var(--hp-nav);
  font-size: 17px;
  font-weight: 400;
  color: var(--hp-orange);
  margin: 0 0 18px;
}

.acad-cbse .ticks {
  margin: 0 0 38px;
}

.acad-cbse-btns {
  margin: 0;
}

/* ---- media ---- */
.acad-cbse-media {
  position: relative;
  display: flex;
  flex-direction: column;
}

.acad-cbse-photo {
  display: block;
  width: 100%;
  height: auto;
}

.acad-why {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  margin-top: -72px;
  width: min(400px, 78%);
  padding: 30px 32px 28px;
  border-radius: 28px;
  background: #fffdf8;
  border: 1px solid rgba(242, 111, 46, .16);
  box-shadow: 0 26px 60px rgba(18, 41, 75, .16);
  overflow: hidden;
}

/* gradient accent bar along the top edge */
.acad-why::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--hp-orange), #ffb07c 55%, var(--hp-blue));
}

/* soft orange glow in the corner */
.acad-why::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 111, 46, .16), rgba(242, 111, 46, 0) 70%);
  pointer-events: none;
}

.acad-why-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--hp-serif);
  font-weight: 500;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--hp-navy);
  margin: 0 0 14px;
}

/* small orange badge in front of the title */
.acad-why-title::before {
  content: "\2726";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hp-orange);
  color: #fff;
  font-family: var(--hp-sans);
  font-size: 15px;
}

.acad-why p {
  position: relative;
  z-index: 1;
  font-family: var(--hp-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--hp-ink);
  margin: 0;
}

/* ---- tablet: stack, card sits under the photo ---- */
@media (max-width: 1024px) {
  .acad-cbse-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .acad-cbse-media {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
  }
  .acad-why {
    align-self: stretch;
    width: 100%;
    margin-top: 24px;
  }
}

/* ---- phone ---- */
@media (max-width: 720px) {
  .acad-cbse {
    padding: 56px 0 64px;
  }
  .acad-cbse .hp-h2 {
    font-size: clamp(32px, 8.8vw, 42px);
    margin-bottom: 20px;
  }
  .acad-cbse .hp-h2 .hp-script {
    font-size: 1.05em;
  }
  .acad-cbse .hp-body {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .acad-cbse .ticks {
    margin-bottom: 30px;
  }
  .acad-why {
    padding: 26px 22px 22px;
    border-radius: 22px;
  }
  .acad-cbse .hp-btns .hp-pill {
    min-height: 52px;
    padding: 0 20px;
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .acad-cbse .hp-btns .hp-pill {
    font-size: 15px;
    padding: 0 16px;
  }
}

/* ---------- desktop: image on the left, copy on the right ---------- */
@media (min-width: 1025px) {
  .acad-cbse-media {
    order: -1;
  }
}
