/* ========================================
   About: Trust Strip, Experience, Dates, Journey
   ======================================== */

/* ---------- Trust Strip (Figma 18:1909) ---------- */
/* 1920 shell + 105px inset ⇒ 1710 content width */
.trustSection {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--trust-pad);
  box-sizing: border-box;
}

.trustStrip {
  width: 100%;
  background: rgba(255, 255, 255, 0.34);
  border-radius: clamp(14px, 1.042vw, 20px);
  padding: clamp(12px, 1.042vw, 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.trustGrid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  background: var(--color-white);
  border-radius: clamp(14px, 1.042vw, 20px);
  padding: clamp(18px, 1.563vw, 30px) clamp(12px, 1.042vw, 20px) clamp(12px, 1.042vw, 20px);
  gap: 0;
}

.trustItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 0.521vw, 10px);
  text-align: center;
  flex-shrink: 0;
}

.trustItem--sm {
  width: clamp(148px, 13.802vw, 265px);
}

.trustItem--lg {
  width: clamp(180px, 17.344vw, 333px);
}

.trustDivider {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 0;
  height: clamp(160px, 14.063vw, 270px);
  flex-shrink: 0;
}

.trustDivider img {
  width: clamp(160px, 14.063vw, 270px);
  height: 2px;
  transform: rotate(90deg);
  transform-origin: center;
}

.trustIconWrap {
  position: relative;
  width: clamp(132px, 12.448vw, 239px);
  height: clamp(100px, 9.375vw, 180px);
  flex-shrink: 0;
  overflow: hidden;
}

.trustRing {
  position: absolute;
  width: 123.32%;
  height: 121.07%;
  left: -11.34%;
  top: -6.91%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

.trustIcon {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.trustIcon img {
  position: absolute;
  max-width: none;
  pointer-events: none;
}

/* NBA: left 56 / top 2 / 128x128 */
.trustIcon--nba {
  left: clamp(30px, 2.917vw, 56px);
  top: 2px;
  width: clamp(70px, 6.667vw, 128px);
  height: clamp(70px, 6.667vw, 128px);
}

.trustIcon--nba img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NAAC: 144x121 */
.trustIcon--naac {
  left: 50%;
  top: 2px;
  width: clamp(78px, 7.5vw, 144px);
  height: clamp(66px, 6.302vw, 121px);
  transform: translateX(-50%);
}

.trustIcon--naac img {
  height: 100%;
  width: 192.14%;
  left: -53.96%;
  top: 0;
}

/* Week: 109x91, top 24 */
.trustIcon--week {
  left: calc(50% + clamp(2px, 0.208vw, 4px));
  top: clamp(14px, 1.25vw, 24px);
  width: clamp(60px, 5.677vw, 109px);
  height: clamp(50px, 4.74vw, 91px);
  transform: translateX(-50%);
}

.trustIcon--week img {
  height: 227.37%;
  width: 151.58%;
  left: -28.42%;
  top: -64.31%;
}

/* BT: 89x86, top 30 */
.trustIcon--bt {
  left: calc(50% + clamp(1px, 0.156vw, 3px));
  top: clamp(16px, 1.563vw, 30px);
  width: clamp(50px, 4.635vw, 89px);
  height: clamp(48px, 4.479vw, 86px);
  transform: translateX(-50%);
}

.trustIcon--bt img {
  height: 118.18%;
  width: 219.36%;
  left: -59.68%;
  top: -7.79%;
}

.trustLabel {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 24px);
  line-height: clamp(22px, 2.083vw, 40px);
  color: var(--color-gray);
  width: 100%;
}

.trustLabel--multi {
  line-height: clamp(20px, 1.875vw, 36px);
}

.trustLabel strong {
  font-family: var(--font-sans);
  font-weight: 700; /* Polymath Demo Bold — “12th rank” */
  font-size: clamp(16px, 1.354vw, 26px);
  color: var(--color-orange);
}

/* Tablet + mobile (≤1199): 2×2 cards */
@media (max-width: 1199px) {
  .trustSection {
    padding-inline: clamp(12px, 3vw, 24px);
  }

  .trustStrip {
    padding: clamp(10px, 2vw, 14px);
    border-radius: 16px;
  }

  .trustGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-content: initial;
    gap: clamp(10px, 2.5vw, 16px);
    padding: clamp(10px, 2vw, 14px);
    border-radius: 14px;
  }

  .trustDivider {
    display: none;
  }

  .trustItem,
  .trustItem--sm,
  .trustItem--lg {
    width: 100%;
    max-width: none;
    flex-shrink: 1;
    gap: 8px;
    padding: clamp(12px, 2.5vw, 18px) clamp(8px, 1.5vw, 12px);
    background: #fafafa;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-sizing: border-box;
  }

  .trustIconWrap {
    width: clamp(110px, 28vw, 160px);
    height: clamp(84px, 21vw, 120px);
  }

  .trustIcon--nba {
    left: clamp(24px, 6.5vw, 38px);
    width: clamp(58px, 15vw, 86px);
    height: clamp(58px, 15vw, 86px);
  }

  .trustIcon--naac {
    width: clamp(64px, 17vw, 96px);
    height: clamp(54px, 14vw, 80px);
  }

  .trustIcon--week {
    width: clamp(48px, 13vw, 72px);
    height: clamp(40px, 11vw, 60px);
    top: clamp(12px, 3vw, 16px);
  }

  .trustIcon--bt {
    width: clamp(42px, 11vw, 60px);
    height: clamp(40px, 10.5vw, 58px);
    top: clamp(14px, 3.5vw, 20px);
  }

  .trustLabel {
    font-size: clamp(13px, 3.2vw, 16px);
    line-height: 1.35;
  }

  .trustLabel--multi {
    line-height: 1.35;
  }

  .trustLabel strong {
    font-size: clamp(14px, 3.4vw, 17px);
  }
}

@media (max-width: 450px) {
  .trustGrid {
    gap: 8px;
    padding: 8px;
  }

  .trustItem,
  .trustItem--sm,
  .trustItem--lg {
    padding: 10px 6px;
    border-radius: 10px;
  }

  .trustIconWrap {
    width: 100px;
    height: 76px;
  }

  .trustIcon--nba {
    left: 22px;
    width: 54px;
    height: 54px;
  }

  .trustIcon--naac {
    width: 60px;
    height: 50px;
  }

  .trustIcon--week {
    width: 46px;
    height: 38px;
    top: 12px;
  }

  .trustIcon--bt {
    width: 40px;
    height: 38px;
    top: 14px;
  }

  .trustLabel {
    font-size: 12px;
  }

  .trustLabel strong {
    font-size: 13px;
  }
}

/* ---------- Experience (Figma 113:2331 inside 113:2846) ---------- */
/* Canvas 1920: pt 80, content 1721, head 826+28+867, body 848+34+593
   Dates overlaps experience by 120px (experience y+h 1216, dates y 1096) */
.experienceSection {
  position: relative;
  z-index: 1;
  padding-top: clamp(40px, 4.167vw, 80px);
  padding-bottom: 0;
  margin-bottom: clamp(-120px, -6.25vw, -48px);
  background:
    linear-gradient(180deg, rgba(255, 232, 212, 0) 0%, #ffe8d4 100%),
    #ffffff;
  overflow-x: clip;
}

.experienceHead {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(16px, 1.458vw, 28px);
  margin-bottom: clamp(20px, 1.563vw, 30px);
  width: 100%;
}

.experienceTitle {
  font-family: var(--font-serif); /* DM Serif Display */
  font-weight: 400;
  text-transform: capitalize;
  flex: 1 1 0;
  min-width: 0;
  max-width: 826px;
}

.experienceTitleLine1 {
  display: block;
  font-size: clamp(24px, 2.604vw, 50px);
  line-height: clamp(28px, 2.604vw, 50px);
  color: var(--color-black);
}

.experienceTitleLine2 {
  display: block;
  font-size: clamp(28px, 3.125vw, 60px);
  line-height: clamp(32px, 3.438vw, 66px);
  color: var(--color-orange);
}

.experienceIntro {
  flex: 0 1 auto;
  width: min(100%, 867px);
  max-width: 867px;
  font-family: var(--font-sans);
  font-weight: 500; /* Polymath Demo Medium */
  font-size: clamp(14px, 1.25vw, 24px);
  line-height: clamp(22px, 1.771vw, 34px);
  color: var(--color-gray);
}

.experienceIntro p + p {
  margin-top: 0;
}

.experienceBody {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(20px, 1.771vw, 34px);
  width: 100%;
}

.experienceMedia {
  flex: 0 1 848px;
  width: min(100%, 848px);
  max-width: 848px;
}

.experienceMedia img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.experienceSteps {
  flex: 0 1 593px;
  width: min(100%, 593px);
  max-width: 593px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: clamp(16px, 2.604vw, 50px);
  min-width: 0;
  overflow: visible;
}

.experienceStepsLead {
  width: 100%;
  margin-bottom: clamp(20px, 1.875vw, 36px);
  font-family: var(--font-sans);
  font-weight: 600; /* Polymath Demo Semibold */
  font-size: clamp(15px, 1.25vw, 24px);
  line-height: clamp(22px, 1.771vw, 34px);
  color: #410201;
}

.experienceStepList {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.25vw, 24px);
  width: 100%;
  max-width: 583px;
  min-width: 0;
  margin-bottom: 10px;
  overflow: visible;
}

.experienceStep {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 0.833vw, 16px);
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.experienceStep:nth-child(2) {
  padding-left: clamp(0px, 0.73vw, 14px);
  justify-content: flex-start;
}

.experienceStep:nth-child(3) {
  padding-left: clamp(0px, 2.76vw, 53px);
  justify-content: flex-start;
}

.experienceStep:nth-child(4) {
  padding-left: clamp(0px, 4.375vw, 84px);
  justify-content: flex-start;
}

.experienceStepNum {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(40px, 5.313vw, 102px);
  line-height: clamp(40px, 4.271vw, 82px);
  letter-spacing: -0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  background: var(--gradient-number);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.experienceStep:not(.is-active) .experienceStepNum {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.experienceStepBubble {
  position: relative;
  flex: 0 1 482px;
  width: min(100%, 482px);
  max-width: 482px;
  min-width: 0;
  min-height: clamp(56px, 6.042vw, 116px);
  display: flex;
  align-items: center;
  padding-left: clamp(24px, 3.02vw, 58px);
  padding-right: clamp(12px, 1.25vw, 24px);
}

.experienceStepBubble::before {
  content: "";
  position: absolute;
  left: -7.26%;
  right: -7.26%;
  top: -26.72%;
  bottom: -33.62%;
  background: url("../assets/icons/step-bubble.svg") center / 100% 100% no-repeat;
  z-index: 0;
  pointer-events: none;
}

.experienceStep.is-active .experienceStepBubble::before {
  background-image: url("../assets/icons/step-bubble-active.svg");
}

.experienceStep:nth-child(n + 3) .experienceStepBubble::before {
  background-image: url("../assets/icons/step-bubble-muted.svg");
}

.experienceStepText {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif); /* DM Serif Display */
  font-weight: 400;
  font-size: clamp(15px, 1.667vw, 32px);
  line-height: clamp(20px, 1.771vw, 34px);
  color: #a7a6a6;
}

.experienceStep.is-active .experienceStepText {
  color: #890100;
}

.experienceNote {
  width: 100%;
  font-family: var(--font-sans);
  font-weight: 500; /* Polymath Demo Medium */
  font-size: clamp(12px, 0.938vw, 18px);
  line-height: clamp(20px, 1.771vw, 34px);
  color: var(--color-gray);
  padding-left: clamp(0px, 12.8vw, 246px);
  box-sizing: border-box;
}

/* Experience two-column / stack breakpoints live in mobile.css
   ≥1200 desktop fluid | ≤1199 stack | ≤768 compact */

/* ---------- SNAP Dates (Figma 113:2371 / 126:84 inside 113:2846) ---------- */
/* Dates — Figma 113:2371 (over experience, cream card + campus) */
.datesSection {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--dates-pad) clamp(48px, 5.208vw, 100px);
  box-sizing: border-box;
}

.datesCardOuter {
  background: rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-md);
  padding: clamp(10px, 1.042vw, 20px);
  width: 100%;
  max-width: 1707px;
  margin: 0 auto;
  box-sizing: border-box;
}

.datesCard {
  position: relative;
  border: 1px solid var(--color-orange);
  border-left-width: 6px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #ffe8d4 100%);
  padding: clamp(32px, 4.167vw, 80px) clamp(12px, 2.083vw, 40px) clamp(100px, 20.52vw, 394px);
  box-sizing: border-box;
}

.datesCampus {
  position: absolute;
  left: 0.19%;
  top: 62.98%;
  width: 99.61%;
  height: 57.96%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: 0;
  display: block;
}

.datesInner {
  position: relative;
  z-index: 1;
  max-width: 1430px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3.125vw, 60px);
  width: 100%;
}

.datesTitle {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.125vw, 60px);
  line-height: clamp(32px, 3.125vw, 60px);
  text-transform: capitalize;
  width: min(100%, 588px);
}

.datesTitle .line1 {
  color: var(--color-black);
  display: block;
}

.datesTitle .line2 {
  color: var(--color-orange);
  display: block;
}

.datesTableWrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;
  border-radius: 0;
}

.datesTable {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  background: transparent;
}

.datesTable thead th {
  background: linear-gradient(90deg, #890100 0%, #ff7800 100%);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(15px, 1.458vw, 28px);
  line-height: clamp(22px, 1.771vw, 34px);
  text-align: left;
  padding: clamp(14px, 1.198vw, 23px) clamp(14px, 1.563vw, 30px);
  border: 0;
  height: clamp(48px, 4.167vw, 80px);
  vertical-align: middle;
}

.datesTable thead th:first-child {
  border-radius: 10px 0 0 0;
  width: 50%;
}

.datesTable thead th:last-child {
  border-radius: 0 10px 0 0;
  width: 50%;
}

.datesTable tbody td {
  border: 1px solid #ece3da;
  padding: clamp(12px, 1.25vw, 24px);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.25vw, 24px);
  line-height: clamp(20px, 1.771vw, 34px);
  color: #5d5d5d;
  vertical-align: middle;
  /* Figma 113:2377 — cells have no fill; cream card (+ campus) shows through */
  background: transparent;
}

.datesTable tbody tr:nth-child(even) td {
  background: transparent;
}

.datesTable tbody td strong {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-black);
}

.datesStack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(10px, 1.042vw, 20px);
  width: 100%;
}

.datesTable .datesSub {
  display: block;
  margin-top: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(12px, 0.938vw, 18px);
  line-height: clamp(20px, 1.771vw, 34px);
  color: #5d5d5d;
}

/* Desktop ≥1200: Figma 1920 lock via clamp */
@media (min-width: 1200px) {
  .datesSection {
    padding-inline: clamp(40px, 5.573vw, 107px);
    padding-bottom: clamp(64px, 5.208vw, 100px);
  }

  .datesCardOuter {
    max-width: min(1707px, 100%);
    padding: clamp(12px, 1.042vw, 20px);
  }

  .datesCard {
    padding:
      clamp(48px, 4.167vw, 80px)
      clamp(20px, 2.083vw, 40px)
      clamp(200px, 20.52vw, 394px);
    border-left-width: 6px;
  }

  .datesCampus {
    display: block;
    left: 0.19%;
    top: 62.98%;
    width: 99.61%;
    height: 57.96%;
  }

  .datesInner {
    gap: clamp(32px, 3.125vw, 60px);
  }

  .datesTitle {
    font-size: clamp(36px, 3.125vw, 60px);
    line-height: clamp(40px, 3.125vw, 60px);
  }

  .datesTable {
    min-width: 0;
  }

  .datesTable thead th {
    font-size: clamp(18px, 1.458vw, 28px);
    line-height: clamp(24px, 1.771vw, 34px);
    padding: clamp(16px, 1.198vw, 23px) clamp(18px, 1.563vw, 30px);
    height: clamp(56px, 4.167vw, 80px);
  }

  .datesTable tbody td {
    font-size: clamp(15px, 1.25vw, 24px);
    line-height: clamp(22px, 1.771vw, 34px);
    padding: clamp(14px, 1.25vw, 24px);
  }

  .datesStack {
    gap: clamp(12px, 1.042vw, 20px);
  }

  .datesTable .datesSub {
    font-size: clamp(13px, 0.938vw, 18px);
  }
}

/* Tablet: keep 2-col table */
@media (min-width: 769px) and (max-width: 1199px) {
  .datesSection {
    padding-inline: clamp(16px, 3vw, 40px);
    padding-bottom: clamp(40px, 5vw, 64px);
  }

  .datesCardOuter {
    padding: clamp(8px, 1.2vw, 14px);
  }

  .datesCard {
    padding: clamp(32px, 4vw, 48px) clamp(12px, 2vw, 24px) clamp(120px, 16vw, 200px);
    border-left-width: 5px;
  }

  .datesCampus {
    display: block;
    top: 72%;
    height: 42%;
  }

  .datesInner {
    gap: clamp(18px, 2.5vw, 28px);
  }

  .datesTitle {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
  }

  .datesTable {
    min-width: 580px;
  }

  .datesTableWrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ff7800 transparent;
  }

  .datesTable thead th {
    height: auto;
    font-size: clamp(14px, 1.8vw, 18px);
    padding: 12px 16px;
  }

  .datesTable tbody td {
    font-size: clamp(13px, 1.6vw, 16px);
    line-height: 1.35;
    padding: 12px 16px;
  }

  .datesStack {
    gap: 8px;
  }
}

/* Mobile ≤768: same 2-col table as desktop, compact fonts that fit the screen */
@media (max-width: 768px) {
  .datesSection {
    padding: 16px 12px 28px;
  }

  .datesCardOuter {
    padding: 6px;
    border-radius: 14px;
  }

  .datesCampus {
    display: none;
  }

  .datesCard {
    padding: 20px 8px 24px;
    border-left-width: 4px;
    border-radius: 14px;
  }

  .datesInner {
    gap: 12px;
    align-items: stretch;
  }

  .datesTitle {
    width: 100%;
    font-size: clamp(22px, 6.5vw, 28px);
    line-height: 1.15;
  }

  .datesTableWrap {
    background: transparent;
    overflow-x: visible;
    width: 100%;
  }

  .datesTable {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    background: transparent;
  }

  .datesTable thead {
    display: table-header-group;
  }

  .datesTable thead th {
    display: table-cell;
    height: auto;
    min-height: 36px;
    padding: 8px 6px;
    font-size: 11px;
    line-height: 14px;
    border: 0;
    vertical-align: middle;
  }

  .datesTable thead th:first-child {
    border-radius: 8px 0 0 0;
    width: 48%;
  }

  .datesTable thead th:last-child {
    border-radius: 0 8px 0 0;
    width: 52%;
  }

  .datesTable tbody tr {
    display: table-row;
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
    overflow: visible;
  }

  .datesTable tbody tr:nth-child(even),
  .datesTable tbody tr:nth-child(even) td {
    background: transparent;
  }

  .datesTable tbody td {
    display: table-cell;
    width: auto;
    border: 1px solid #ece3da;
    border-bottom: 1px solid #ece3da;
    padding: 8px 6px;
    font-size: 10px;
    line-height: 14px;
    font-weight: 500;
    color: #5d5d5d;
    background: transparent;
    vertical-align: middle;
    height: auto;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .datesTable tbody td:first-child {
    background: transparent;
    font-weight: 500;
    color: #5d5d5d;
  }

  .datesTable tbody td:last-child {
    border-bottom: 1px solid #ece3da;
  }

  .datesStack {
    gap: 4px;
  }

  .datesTable .datesSub {
    margin-top: 0;
    font-size: 9px;
    font-weight: 500;
    line-height: 12px;
    color: #5d5d5d;
  }
}

/* ---------- Phase 1 Journey (Figma 113:2474) ---------- */
.phaseSection {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 50px auto 0;
  padding: 50px var(--dates-pad) clamp(40px, 5.208vw, 100px);
  box-sizing: border-box;
}

.phaseCard {
  position: relative;
  border: 1px solid var(--color-orange);
  border-left-width: 6px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-peach) 100%);
  /* Bottom space tracks card width so the student photo sits below the table */
  padding: clamp(32px, 4.167vw, 80px) clamp(16px, 2.083vw, 40px) 34%;
  box-sizing: border-box;
}

.phasePhoto {
  position: absolute;
  left: -1%;
  bottom: 0;
  width: 102%;
  height: auto;
  max-width: none;
  pointer-events: none;
  z-index: 0;
  display: block;
}

.phaseInner {
  position: relative;
  z-index: 1;
  max-width: 1430px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3.125vw, 60px);
  width: 100%;
}

.phaseTitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.125vw, 60px);
  line-height: clamp(34px, 3.438vw, 66px);
  text-transform: capitalize;
  color: var(--color-black);
}

.phaseTitleAccent {
  color: var(--color-orange);
}

.phaseIntro {
  width: 100%;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: clamp(24px, 1.771vw, 34px);
  color: var(--color-gray);
}

.phaseTableWrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.phaseTable {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
}

.phaseTable thead th {
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(16px, 1.458vw, 28px);
  line-height: clamp(22px, 1.771vw, 34px);
  text-align: left;
  padding: clamp(14px, 1.198vw, 23px) clamp(14px, 1.563vw, 30px);
  border: 0;
  height: clamp(52px, 4.167vw, 80px);
  vertical-align: middle;
  width: 25%;
}

.phaseTable thead th:first-child {
  border-radius: 10px 0 0 0;
}

.phaseTable thead th:last-child {
  border-radius: 0 10px 0 0;
}

.phaseTable tbody td {
  border: 1px solid var(--color-border);
  padding: clamp(12px, 1.25vw, 24px);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(14px, 1.25vw, 24px);
  line-height: clamp(22px, 1.771vw, 34px);
  color: var(--color-gray);
  vertical-align: middle;
  background: transparent;
  word-break: break-word;
}

@media (max-width: 768px) {
  .phaseSection {
    padding: 0 12px 28px;
  }

  .phaseCard {
    padding: 20px 10px 48%;
    border-left-width: 4px;
    border-radius: 14px;
  }

  .phasePhoto {
    display: block;
  }

  .phaseInner {
    gap: 16px;
    align-items: stretch;
  }

  .phaseTitle {
    font-size: clamp(22px, 6.5vw, 28px);
    line-height: 1.2;
    gap: 6px;
  }

  .phaseIntro {
    font-size: 14px;
    line-height: 22px;
  }

  .phaseTableWrap {
    overflow: visible;
  }

  .phaseTable {
    min-width: 0;
    table-layout: auto;
  }

  .phaseTable thead {
    display: none;
  }

  .phaseTable tbody tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
  }

  .phaseTable tbody td {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    padding: 10px 12px;
    font-size: 14px;
    line-height: 20px;
  }

  .phaseTable tbody td:last-child {
    border-bottom: 0;
  }

  .phaseTable tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-red);
  }
}

/* ---------- Gallery slider (before Journey) ---------- */
.gallerySection {
  background: var(--color-white);
  padding: 0 0;
  overflow-x: clip;
}

.galleryInner {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3.125vw, 60px);
  min-width: 0;
}

.gallerySection .sectionHead {
  align-items: center;
  gap: clamp(12px, 1.25vw, 24px);
  min-height: clamp(48px, 3.958vw, 76px);
}

.gallerySection .sectionHeadTitle {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(26px, 3.125vw, 60px);
  line-height: clamp(30px, 3.438vw, 66px);
  gap: clamp(6px, 0.521vw, 10px);
}

.gallerySwiper {
  width: 100%;
  overflow: visible;
  padding-bottom: clamp(8px, 0.625vw, 12px);
}

.gallerySwiper .swiper-slide {
  height: auto;
}

.galleryCard {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: clamp(14px, 1.042vw, 20px);
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: var(--shadow-soft);
}

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

@media (max-width: 767px) {
  .gallerySection .sliderNav {
    margin-left: auto;
  }

  .galleryCard {
    border-radius: 12px;
  }
}

/* ---------- Journey (Figma 1920×709 — desktop from 1024) ---------- */
.journeySection {
  position: relative;
  min-height: clamp(360px, 36.927vw, 709px);
  display: flex;
  align-items: center;
  padding: clamp(48px, 7.813vw, 150px) 0;
  overflow: hidden;
  background: #890100;
}

.journeyBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  z-index: 0;
  pointer-events: none;
}

.journeyInner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(28px, 3.125vw, 60px);
  width: 100%;
  max-width: min(100%, 980px);
}

.journeyTitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(6px, 0.521vw, 10px);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.125vw, 60px);
  line-height: clamp(34px, 3.438vw, 66px);
  color: var(--color-white);
  text-transform: capitalize;
  width: 100%;
}

.journeyTitle span {
  color: var(--color-white);
}

.journeyStats {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: clamp(24px, 3.125vw, 60px);
  width: 100%;
}

.journeyStat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 1.667vw, 32px);
  flex: 0 1 auto;
  min-width: 0;
  width: clamp(140px, 13.906vw, 267px);
}

.journeyStat:nth-child(1) {
  width: clamp(130px, 11.042vw, 212px);
}

.journeyStat:nth-child(2) {
  width: clamp(140px, 12.5vw, 240px);
}

.journeyStat:nth-child(3) {
  width: clamp(150px, 13.906vw, 267px);
}

.journeyStatText {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.938vw, 18px);
  width: 100%;
}

.journeyStat .iconCircle--lg {
  width: clamp(72px, 6.25vw, 120px);
  height: clamp(72px, 6.25vw, 120px);
  background: transparent;
  border-color: var(--color-red);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.journeyStatIcon {
  width: clamp(28px, 2.604vw, 50px);
  height: clamp(28px, 2.604vw, 50px);
  object-fit: contain;
  display: block;
}

.journeyStatValue {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 4.167vw, 80px);
  line-height: 1;
  color: var(--color-white);
  margin: 0;
}

.journeyStatLabel {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(16px, 1.667vw, 32px);
  line-height: 1;
  color: var(--color-white);
  margin: 0;
}

/* Desktop: Figma row layout from 1024 */
@media (min-width: 1024px) {
  .journeySection {
    min-height: clamp(520px, 36.927vw, 709px);
    padding: clamp(96px, 7.813vw, 150px) 0;
  }

  .journeyStats {
    flex-wrap: nowrap;
  }

  .journeyStat {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ≤1023: mobile-style stacked flow + stronger readability overlay */
@media (max-width: 1023px) {
  .journeySection {
    min-height: 0;
    padding: clamp(40px, 6vw, 72px) 0;
    align-items: flex-start;
  }

  /* Darken left/mid so white title + stats stay readable over campus */
  .journeySection::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(
        90deg,
        rgba(65, 2, 1, 0.92) 0%,
        rgba(137, 1, 0, 0.88) 32%,
        rgba(137, 1, 0, 0.62) 58%,
        rgba(137, 1, 0, 0.28) 78%,
        rgba(137, 1, 0, 0.08) 100%
      ),
      linear-gradient(
        180deg,
        rgba(65, 2, 1, 0.35) 0%,
        rgba(65, 2, 1, 0.12) 40%,
        transparent 70%
      );
  }

  .journeyBg {
    object-position: 68% center;
    z-index: 0;
  }

  .journeySection .journeyInner {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding-inline: clamp(16px, 3vw, 28px);
    gap: clamp(20px, 3vw, 36px);
  }

  .journeyTitle {
    font-size: clamp(26px, 4.5vw, 40px);
    line-height: 1.2;
    gap: clamp(6px, 1vw, 10px);
  }

  .journeyStats {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: clamp(16px, 2.5vw, 28px);
    width: 100%;
  }

  .journeyStat,
  .journeyStat:nth-child(1),
  .journeyStat:nth-child(2),
  .journeyStat:nth-child(3) {
    flex-direction: row;
    align-items: center;
    gap: clamp(14px, 2vw, 20px);
    width: 100%;
    max-width: 420px;
  }

  .journeyStat .iconCircle--lg {
    width: clamp(52px, 8vw, 72px);
    height: clamp(52px, 8vw, 72px);
    flex-shrink: 0;
  }

  .journeyStatIcon {
    width: clamp(24px, 4vw, 34px);
    height: clamp(24px, 4vw, 34px);
  }

  .journeyStatText {
    gap: clamp(4px, 0.8vw, 8px);
    min-width: 0;
  }

  .journeyStatValue {
    font-size: clamp(32px, 5.5vw, 52px);
  }

  .journeyStatLabel {
    font-size: clamp(15px, 2.4vw, 22px);
  }
}

/* Narrow phones: slightly tighter + denser left scrub */
@media (max-width: 480px) {
  .journeySection::after {
    background:
      linear-gradient(
        90deg,
        rgba(65, 2, 1, 0.95) 0%,
        rgba(137, 1, 0, 0.9) 40%,
        rgba(137, 1, 0, 0.7) 65%,
        rgba(137, 1, 0, 0.35) 85%,
        rgba(137, 1, 0, 0.12) 100%
      ),
      linear-gradient(
        180deg,
        rgba(65, 2, 1, 0.4) 0%,
        rgba(65, 2, 1, 0.15) 45%,
        transparent 75%
      );
  }

  .journeyBg {
    object-position: 60% center;
  }

  .journeySection .journeyInner {
    padding-inline: 16px;
    gap: 20px;
  }

  .journeyStat,
  .journeyStat:nth-child(1),
  .journeyStat:nth-child(2),
  .journeyStat:nth-child(3) {
    max-width: 100%;
    gap: 14px;
  }

  .journeyStat .iconCircle--lg {
    width: 52px;
    height: 52px;
  }

  .journeyStatIcon {
    width: 26px;
    height: 26px;
  }
}
