/* ============================================================
   MATI BHADRA SAGARA — STUDY PAGE
   css/pages/study.css
   ============================================================ */


/* ─────────────────────────────────────────────────────────────
   HERO — split panel (text left, image + quote right)
   ───────────────────────────────────────────────────────────── */

.study-hero {
  background-color: var(--color-bg-primary);
  background-image: url('../../assets/images/foundation-of-practice-image-tibetan-text.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Warm cream wash over the brocade background */
.study-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 248, 242, 0.92);
  pointer-events: none;
}

.study-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-9);
  align-items: center;
}

.study-hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.study-hero__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--type-size-h2-l);
  line-height: var(--type-lh-h2-l);
  color: var(--color-brand-rust);
}

.study-hero__body {
  font-size: var(--type-size-body-m);
  line-height: var(--type-lh-body-m);
  color: var(--color-text-body);
  max-width: 52ch;
}

.study-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

/* Image + overlaid quote */
.study-hero__media {
  position: relative;
}

.study-hero__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

.study-hero__quote-block {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--color-cta);
  padding: var(--space-5) var(--space-6);
  max-width: 80%;
}

.study-hero__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--type-size-quote-s);
  line-height: var(--type-lh-quote-s);
  color: var(--color-text-white);
  max-width: none;
}

@media (min-width: 480px) {
  .study-hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 769px) {
  .study-hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-9);
  }

  .study-hero__image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 420px;
  }
}

@media (min-width: 1025px) {
  .study-hero__inner {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-11);
  }

  .study-hero__heading {
    font-size: var(--type-size-h1-l);
    line-height: var(--type-lh-h1-l);
  }
}


/* ─────────────────────────────────────────────────────────────
   CORE PHILOSOPHY
   ───────────────────────────────────────────────────────────── */

.core-philosophy {
  background-color: var(--color-bg-primary);
  border-top: 1px solid var(--color-border-subtle);
}

.core-philosophy__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-9);
}

.core-philosophy__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.core-philosophy__heading {
  font-size: var(--type-size-h2-l);
  line-height: var(--type-lh-h2-l);
  color: var(--color-brand-rust);
}

/* Left-border accent block */
.core-philosophy__accent-block {
  border-left: var(--accent-block-border);
  padding-left: var(--accent-block-pl);
}

.core-philosophy__accent-block p {
  font-size: var(--type-size-body-m);
  line-height: var(--type-lh-body-m);
  color: var(--color-text-body);
  max-width: 52ch;
}

/* 2-col cards */
.core-philosophy__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.philosophy-card {
  background-color: var(--color-bg-secondary);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.philosophy-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.philosophy-card__heading {
  font-family: var(--font-display);
  font-size: var(--type-size-h3);
  line-height: var(--type-lh-h3);
  color: var(--color-brand-rust);
  font-weight: 400;
}

.philosophy-card__body {
  font-family: var(--font-sans);
  font-size: var(--type-size-body);
  line-height: var(--type-lh-body);
  color: var(--color-text-body);
  max-width: 38ch;
}

@media (min-width: 480px) {
  .core-philosophy__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) {
  .core-philosophy__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-9);
  }
}

@media (min-width: 1025px) {
  .core-philosophy__inner {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-11);
  }
}


/* ─────────────────────────────────────────────────────────────
   THREE-FOLD FORMAT
   ───────────────────────────────────────────────────────────── */

.threefold {
  background-color: var(--color-bg-secondary);
}

.threefold__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-9);
}

.threefold__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.threefold__heading {
  font-size: var(--type-size-h2-l);
  line-height: var(--type-lh-h2-l);
  color: var(--color-brand-rust);
}

/* Phase cards — mobile 1-col */
.threefold__phases {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.phase-card {
  background-color: var(--color-bg-primary);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Phase 02 — dominant red card */
.phase-card--featured {
  background-color: var(--color-cta);
}

.phase-card--featured .phase-card__number,
.phase-card--featured .phase-card__heading,
.phase-card--featured .phase-card__body {
  color: var(--color-text-white);
}

/* Phase 03 — has image at bottom */
.phase-card--image {
  padding-bottom: 0;
  overflow: hidden;
}

.phase-card__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 7;
  display: block;
  margin-top: var(--space-5);
}

.phase-card__number {
  font-family: var(--font-sans);
  font-size: var(--type-size-eyebrow-m);
  letter-spacing: var(--type-ls-eyebrow-m);
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
}

.phase-card__heading {
  font-family: var(--font-display);
  font-size: var(--type-size-h3);
  line-height: var(--type-lh-h3);
  color: var(--color-brand-rust);
  font-weight: 400;
}

.phase-card__body {
  font-family: var(--font-sans);
  font-size: var(--type-size-body);
  line-height: var(--type-lh-body);
  color: var(--color-text-body);
  flex: 1;
  max-width: 42ch;
}

.phase-card__cta {
  align-self: flex-start;
  margin-top: var(--space-2);
}

/* Tablet: Phase 01 + 02 side by side, Phase 03 full-width */
@media (min-width: 769px) {
  .threefold__phases {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
  }

  /* Phase 02 featured spans full width */
  .phase-card--featured {
    grid-column: 1 / -1;
  }
}

/* Desktop: 3-col, Phase 02 still visually dominant via height */
@media (min-width: 1025px) {
  .threefold__phases {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
  }

  .phase-card--featured {
    grid-column: auto;
  }
}


/* ─────────────────────────────────────────────────────────────
   NEW TO STUDY?
   ───────────────────────────────────────────────────────────── */

.new-to-study {
  background-color: var(--color-bg-primary);
}

.new-to-study__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-9);
}

.new-to-study__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.new-to-study__heading {
  font-size: var(--type-size-h2-l);
  line-height: var(--type-lh-h2-l);
  color: var(--color-brand-rust);
}

.new-to-study__intro {
  font-size: var(--type-size-body-m);
  line-height: var(--type-lh-body-m);
  color: var(--color-text-body);
  max-width: 52ch;
}

.new-to-study__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.study-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-5);
  padding-block: var(--space-7);
  border-top: 1px solid var(--color-border-subtle);
  align-items: start;
}

.study-step:last-child {
  border-bottom: 1px solid var(--color-border-subtle);
}

.study-step__number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--type-size-h3);
  line-height: 1;
  color: var(--color-brand-crimson);
}

.study-step__heading {
  font-family: var(--font-display);
  font-size: var(--type-size-h3);
  line-height: var(--type-lh-h3);
  color: var(--color-brand-rust);
  font-weight: 400;
  margin-bottom: var(--space-3);
}

.study-step__body {
  font-size: var(--type-size-body-m);
  line-height: var(--type-lh-body-m);
  color: var(--color-text-body);
  max-width: 56ch;
}

@media (min-width: 769px) {
  .new-to-study__inner {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-11);
    align-items: start;
  }

  .new-to-study__header {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-8));
  }
}


/* ─────────────────────────────────────────────────────────────
   CTA — red block
   ───────────────────────────────────────────────────────────── */

.study-cta {
  background-color: var(--color-cta);
}

.study-cta__inner {
  display: flex;
  justify-content: center;
}

.study-cta__content {
  max-width: 44rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.study-cta__heading {
  font-family: var(--font-display);
  font-size: var(--type-size-h2-l);
  line-height: var(--type-lh-h2-l);
  color: var(--color-text-white);
  font-weight: 400;
}

.study-cta__body {
  font-size: var(--type-size-body-m);
  line-height: var(--type-lh-body-m);
  color: rgba(255, 241, 237, 0.85);
  max-width: 48ch;
}
