/* ============================================================
   Course / visa detail page (px-service-details) — prefix cd-
   Scoped under .cd-page. Replaces the old inline <style> block.
   ============================================================ */
.cd-page { background: var(--px-paper); color: var(--px-navy); font-family: var(--px-body); }
.cd-page h1, .cd-page h2, .cd-page h3, .cd-page h4, .cd-page h5 { text-transform: none; letter-spacing: -.02em; }
.cd-page a { text-decoration: none; }
.cd-page a:focus-visible, .cd-page button:focus-visible { outline: 2px solid var(--px-gold); outline-offset: 3px; border-radius: 8px; }

.cd-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px; font: 600 12px/1 var(--px-body); letter-spacing: .16em; text-transform: uppercase; color: #8a6218; }
.cd-eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.cd-eyebrow.is-light, .cd-hero .cd-eyebrow { color: var(--px-gold-hi); }
.cd-h2 { margin: 0; font: 600 36px/1 var(--px-display); color: var(--px-navy); max-width: 12em; }
.cd-h2 em, .cd-h1 .gd, .cd-h1 .num, .cd-cta h2 em, .cd-mara h3 em { font-style: normal; color: var(--px-gold-text); }
.cd-lede { margin: 24px 0 0; font-size: 16px; line-height: 1.7; color: #3b4566; max-width: 34em; }

/* Hero ---------------------------------------------------------------- */
.cd-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--px-ink); color: #fff; padding: calc(var(--px-header-h) + clamp(50px, 6vw, 90px)) 0 96px; }
.cd-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cd-hero-bg img { width: 100%; height: 118%; object-fit: cover; opacity: .55; }
.cd-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,16,51,.96) 0%, rgba(7,16,51,.82) 48%, rgba(7,16,51,.5) 100%), linear-gradient(0deg, var(--px-ink) 0%, rgba(7,16,51,0) 40%); }
.cd-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.cd-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; font: 500 14px var(--px-body); color: var(--px-mist); }
.cd-breadcrumb a { color: var(--px-gold-hi); }
.cd-breadcrumb a:hover { text-decoration: underline; }
.cd-breadcrumb .sep { opacity: .5; }
.cd-breadcrumb .cur { color: #fff; }
.cd-h1 { margin: 0; font: 600 48px/.96 var(--px-display); letter-spacing: -.03em; color: #fff; max-width: 9.5em; }
.cd-h1 .gd, .cd-h1 .num { color: var(--px-gold-hi); font-style: normal; }
.cd-hero-lede { margin: 24px 0 0; max-width: 32em; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.8); }
.cd-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.cd-hero-visual { position: relative; justify-self: end; width: min(100%, 440px); perspective: 1200px; }
.cd-hero-card { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--px-navy); box-shadow: 0 50px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.12); }
.cd-hero-card img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }
.cd-hero-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,16,51,.85) 0%, rgba(7,16,51,0) 40%); pointer-events: none; }
.cd-hero-card-tag { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px; border-radius: 16px; background: rgba(7,16,51,.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.14); }
.cd-hero-card-tag .tag-l { display: block; font: 500 12px/1 var(--px-body); letter-spacing: .12em; text-transform: uppercase; color: var(--px-mist); }
.cd-hero-card-tag .tag-v { display: block; margin-top: 8px; font: 600 24px/1 var(--px-display); color: #fff; }
.cd-hero-card-tag .tag-seal { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--px-gold); color: var(--px-ink); }
.cd-hero-badge { position: absolute; z-index: 3; left: -34px; top: 38px; display: grid; gap: 4px; padding: 16px 24px; border-radius: 24px; background: var(--px-gold); color: var(--px-ink); box-shadow: 0 24px 50px rgba(0,0,0,.4); transform: translateZ(60px); }
.cd-hero-badge .bg-big { font: 600 30px/1 var(--px-display); letter-spacing: -.02em; }
.cd-hero-badge span:last-child { font: 600 12px/1 var(--px-body); letter-spacing: .12em; text-transform: uppercase; }

/* Facts strip ----------------------------------------------------------- */
.cd-strip { position: relative; z-index: 2; margin-top: -64px; }
.cd-strip-inner { display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 24px; background: var(--px-navy); color: #fff; box-shadow: 0 40px 90px rgba(7,16,51,.35); border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.cd-strip-inner.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cd-strip-cell { display: flex; align-items: center; gap: 16px; padding: 24px; border-left: 1px solid rgba(255,255,255,.1); transition: background .4s var(--px-ease); min-width: 0; }
.cd-strip-cell:first-child { border-left: 0; }
.cd-strip-cell:hover { background: rgba(255,255,255,.05); }
.cd-strip-icn { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 16px; background: rgba(200,240,60,.16); color: var(--px-gold-hi); transition: background .4s, color .4s, transform .5s var(--px-ease); }
.cd-strip-cell:hover .cd-strip-icn { background: var(--px-gold); color: var(--px-ink); transform: rotate(-8deg); }
.cd-strip-cell .lb { display: block; font: 500 12px/1 var(--px-body); letter-spacing: .12em; text-transform: uppercase; color: var(--px-mist); }
.cd-strip-cell .vl { display: block; margin-top: 8px; font: 600 20px/1.1 var(--px-display); color: #fff; overflow-wrap: anywhere; }

/* Sections -------------------------------------------------------------- */
.cd-section { position: relative; padding: 64px 0; }
.cd-section.alt { background: var(--px-ivory); }
.cd-section.dark { background: var(--px-ink); color: var(--px-ivory); }
.cd-section.dark .cd-h2 { color: #fff; }
.cd-section.dark .cd-lede { color: var(--px-mist); }
.cd-section-head { margin-bottom: 40px; }

/* Pillars ---------------------------------------------------------------- */
.cd-why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.cd-why .cd-section-head { position: sticky; top: 120px; margin: 0; }
.cd-pillars { display: grid; }
.cd-pillar { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 24px 0; border-top: 1px solid var(--px-line-dark); }
.cd-pillar > * { transition: translate .5s var(--px-ease); }
.cd-pillar:last-child { border-bottom: 1px solid var(--px-line-dark); }
.cd-pillar::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--px-gold); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--px-ease); }
.cd-pillar:hover > * { translate: 14px 0; }
.cd-pillar:hover::before { transform: scaleX(1); }
.cd-pillar .pn { grid-row: span 2; font: 600 48px/.9 var(--px-display); color: var(--px-gold-text); min-width: 1.1em; }
.cd-pillar .pt { display: block; margin-bottom: 8px; font: 600 12px/1 var(--px-body); letter-spacing: .14em; text-transform: uppercase; color: #5b6486; }
.cd-pillar h4 { margin: 0 0 12px; font: 600 24px/1.08 var(--px-display); color: var(--px-navy); }
.cd-pillar p { margin: 0; font-size: 16px; line-height: 1.7; color: #3b4566; max-width: 36em; }

/* Detail layout: tabs + sticky enquiry card ------------------------------ */
.cd-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.cd-tabs-rail { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; margin: 0 0 24px; border-radius: 9999px; background: var(--px-ivory); border: 1px solid var(--px-line-dark); width: fit-content; max-width: 100%; }
.cd-tab-btn { display: inline-flex; align-items: center; padding: 16px 24px; border: 0; border-radius: 9999px; background: transparent; cursor: pointer; font: 600 14px/1 var(--px-body); color: #3b4566; transition: background .35s var(--px-ease), color .35s; }
.cd-tab-btn:hover { background: rgba(11,20,55,.07); color: var(--px-navy); }
.cd-tab-btn.is-active { background: var(--px-navy); color: #fff; box-shadow: 0 10px 26px rgba(11,20,55,.25); }
.cd-tab-desc { display: none; }
.cd-tabs-body { position: relative; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 rgba(11,20,55,.06), 0 30px 80px rgba(11,20,55,.08); overflow: hidden; }
.cd-tabs-body::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--px-gold), var(--px-gold-hi), transparent); }
.cd-tab-pane { display: none; padding: 32px; }
.cd-tab-pane.is-active { display: block; animation: cd-pane .6s var(--px-ease); }
@keyframes cd-pane { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.cd-tab-pane h2, .cd-tab-pane h3 { margin: 0 0 16px; font: 600 30px/1.08 var(--px-display); color: var(--px-navy); }
.cd-tab-pane h3:not(:first-child) { margin-top: 40px; }
.cd-tab-pane h4 { margin: 32px 0 12px; font: 600 12px/1.3 var(--px-body); letter-spacing: .12em; text-transform: uppercase; color: #8a6218; }
.cd-tab-pane h5 { margin: 24px 0 8px; font: 600 16px var(--px-body); color: var(--px-navy); }
.cd-tab-pane p, .cd-tab-pane li { font-size: 16px; line-height: 1.75; color: #2a3247; }
.cd-tab-pane p { margin: 0 0 16px; }
.cd-tab-pane ul, .cd-tab-pane ol { margin: 8px 0 24px; padding-left: 0; list-style: none; }
.cd-tab-pane li { position: relative; margin-bottom: 12px; padding-left: 32px; }
.cd-tab-pane ul li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--px-gold); }
.cd-tab-pane ol { counter-reset: cd-ol; }
.cd-tab-pane ol li { counter-increment: cd-ol; padding-left: 48px; }
.cd-tab-pane ol li::before { content: counter(cd-ol); position: absolute; left: 0; top: .2em; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--px-navy); color: var(--px-gold-hi); font: 600 12px/1 var(--px-body); }
.cd-tab-pane strong { color: var(--px-navy); font-weight: 600; }
.cd-tab-pane a { color: #8a6218; text-decoration: underline; text-underline-offset: 3px; }
.cd-tab-pane a:hover { color: var(--px-navy); }
.cd-tab-pane img { max-width: 100%; height: auto; border-radius: 16px; margin: 12px 0; }

.cd-aside { position: sticky; top: 104px; }
.cd-enquiry { position: relative; padding: 24px; border-radius: 24px; background: var(--px-navy); color: var(--px-ivory); overflow: hidden; box-shadow: 0 40px 90px rgba(7,16,51,.28); }
.cd-enquiry::before { content: ''; position: absolute; right: -120px; top: -120px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(200,240,60,.35); box-shadow: 0 0 0 40px rgba(200,240,60,.05); pointer-events: none; }
.cd-enquiry > * { position: relative; }
.cd-enquiry h3 { margin: 0 0 12px; font: 600 30px/1.04 var(--px-display); color: #fff; }
.cd-enquiry p { margin: 0 0 24px; font-size: 14px; line-height: 1.65; color: var(--px-mist); }
.cd-enquiry .px-btn { width: 100%; justify-content: space-between; margin-top: 12px; }
.cd-enquiry-meta { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--px-line); display: grid; gap: 4px; font-size: 12px; color: var(--px-mist); }
.cd-enquiry-meta b { color: var(--px-gold-hi); font-weight: 600; letter-spacing: .04em; }

/* Universities ----------------------------------------------------------- */

/* MARA trust --------------------------------------------------------------- */
.cd-mara { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 32px; border-radius: 24px; background: var(--px-navy); color: var(--px-ivory); position: relative; overflow: hidden; }
.cd-mara::before { content: ''; position: absolute; left: -200px; bottom: -280px; width: 640px; height: 640px; border-radius: 50%; border: 1px solid rgba(200,240,60,.25); box-shadow: 0 0 0 70px rgba(200,240,60,.04); pointer-events: none; }
.cd-mara > * { position: relative; }
.cd-mara h3 { margin: 0 0 24px; font: 600 36px/1.02 var(--px-display); color: #fff; }
.cd-mara h3 em { color: var(--px-gold-hi); }
.cd-mara p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--px-mist); }
.cd-mara-points { display: grid; gap: 16px; }
.cd-mara-point { display: flex; gap: 16px; padding: 24px 24px; border-radius: 24px; background: rgba(255,255,255,.05); border: 1px solid var(--px-line); transition: background .4s, transform .5s var(--px-ease), border-color .4s; }
.cd-mara-point:hover { background: rgba(255,255,255,.09); transform: translateX(8px); border-color: rgba(200,240,60,.5); }
.cd-mara-point .icn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 16px; background: rgba(200,240,60,.18); color: var(--px-gold-hi); }
.cd-mara-point h5 { margin: 0 0 8px; font: 600 16px/1.3 var(--px-body); color: #fff; letter-spacing: 0; }
.cd-mara-point p { font-size: 14px; line-height: 1.6; }

/* Related guides ------------------------------------------------------------ */
.cd-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cd-guide { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 190px; padding: 24px 32px; border-radius: 24px; background: #fff; color: var(--px-navy); box-shadow: 0 1px 0 rgba(11,20,55,.06), 0 18px 50px rgba(11,20,55,.06); transition: background .5s var(--px-ease), color .5s, transform .5s var(--px-ease); }
.cd-guide:hover { background: var(--px-navy); color: #fff; transform: translateY(-6px); }
.cd-guide .g { font: 600 12px/1 var(--px-body); letter-spacing: .14em; text-transform: uppercase; color: #8a6218; }
.cd-guide h3 { margin: 0; font: 600 24px/1.2 var(--px-display); color: inherit; }
.cd-guide .px-arrow { width: 20px; height: 20px; transition: transform .45s var(--px-ease); color: var(--px-gold-text); }
.cd-guide:hover .px-arrow { transform: translateX(8px); }

/* CTA ------------------------------------------------------------------------ */
.cd-cta-section { background: var(--px-ink); color: var(--px-ivory); padding: 80px 0; position: relative; overflow: hidden; }
.cd-cta-section::before { content: ''; position: absolute; width: 780px; height: 780px; right: -220px; top: -260px; border-radius: 50%; border: 1px solid rgba(200,240,60,.22); box-shadow: 0 0 0 90px rgba(200,240,60,.03); pointer-events: none; }
.cd-cta { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; }
.cd-cta h2 { margin: 0 0 24px; font: 600 36px/.98 var(--px-display); letter-spacing: -.03em; color: #fff; }
.cd-cta h2 em { color: var(--px-gold-hi); }
.cd-cta p { margin: 0; max-width: 34em; font-size: 16px; line-height: 1.7; color: var(--px-mist); }
.cd-cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 1100px) {
  .cd-detail { grid-template-columns: 1fr; }
  .cd-aside { position: static; }
  .cd-strip-inner, .cd-strip-inner.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cd-strip-cell:nth-child(odd) { border-left: 0; }
  .cd-strip-cell:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 900px) {
  .cd-hero-inner, .cd-why, .cd-mara, .cd-cta { grid-template-columns: 1fr; }
  .cd-hero-visual { justify-self: start; width: min(100%, 380px); }
  .cd-hero-badge { left: 12px; }
  .cd-why .cd-section-head { position: static; }
}
@media (max-width: 560px) {
  .cd-strip-inner, .cd-strip-inner.cols-4 { grid-template-columns: 1fr; }
  .cd-strip-cell { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .cd-strip-cell:first-child { border-top: 0; }
  .cd-tabs-rail { border-radius: 24px; width: 100%; }
  .cd-tab-btn { flex: 1 1 auto; justify-content: center; padding: 12px 16px; }
  .cd-pillar { grid-template-columns: 1fr; }
  .cd-pillar .pn { grid-row: auto; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-tab-pane.is-active { animation: none; }
  .cd-pillar, .cd-pillar::before, .cd-mara-point, .cd-guide { transition: none; }
}
.cd-guide:hover .g { color: var(--px-gold-hi); }


/* Fluid sizes snapped to fixed scale steps */
@media (min-width: 561px) and (max-width: 1080px) {
  .cd-h2 { font: 600 48px/1 var(--px-display); }
  .cd-lede { font-size: 16px; }
  .cd-hero { padding: calc(var(--px-header-h) + clamp(50px, 6vw, 90px)) 0 96px; }
  .cd-hero-inner { gap: 64px; }
  .cd-h1 { font: 600 72px/.96 var(--px-display); }
  .cd-hero-lede { font-size: 18px; }
  .cd-strip { margin-top: -48px; }
  .cd-strip-cell { padding: 32px; }
  .cd-strip-cell .vl { font: 600 24px/1.1 var(--px-display); }
  .cd-section { padding: 96px 0; }
  .cd-section-head { margin-bottom: 48px; }
  .cd-why { gap: 80px; }
  .cd-pillar { column-gap: 32px; padding: 32px 0; }
  .cd-pillar .pn { font: 600 72px/.9 var(--px-display); }
  .cd-pillar h4 { font: 600 30px/1.08 var(--px-display); }
  .cd-detail { gap: 48px; }
  .cd-tab-pane { padding: 40px; }
  .cd-tab-pane h2, .cd-tab-pane h3 { font: 600 36px/1.08 var(--px-display); }
  .cd-enquiry { padding: 32px; }
  .cd-enquiry h3 { font: 600 30px/1.04 var(--px-display); }
  .cd-mara { gap: 64px; padding: 48px; }
  .cd-mara h3 { font: 600 48px/1.02 var(--px-display); }
  .cd-cta-section { padding: 96px 0; }
  .cd-cta { gap: 64px; }
  .cd-cta h2 { font: 600 60px/.98 var(--px-display); }
}
@media (min-width: 1081px) {
  .cd-h2 { font: 600 72px/1 var(--px-display); }
  .cd-lede { font-size: 18px; }
  .cd-hero { padding: calc(var(--px-header-h) + clamp(50px, 6vw, 90px)) 0 96px; }
  .cd-hero-inner { gap: 96px; }
  .cd-h1 { font: 600 96px/.96 var(--px-display); }
  .cd-hero-lede { font-size: 20px; }
  .cd-strip { margin-top: -40px; }
  .cd-strip-cell { padding: 32px; }
  .cd-strip-cell .vl { font: 600 24px/1.1 var(--px-display); }
  .cd-section { padding: 96px 0; }
  .cd-section-head { margin-bottom: 64px; }
  .cd-why { gap: 96px; }
  .cd-pillar { column-gap: 40px; padding: 40px 0; }
  .cd-pillar .pn { font: 600 96px/.9 var(--px-display); }
  .cd-pillar h4 { font: 600 36px/1.08 var(--px-display); }
  .cd-detail { gap: 64px; }
  .cd-tab-pane { padding: 64px; }
  .cd-tab-pane h2, .cd-tab-pane h3 { font: 600 36px/1.08 var(--px-display); }
  .cd-enquiry { padding: 40px; }
  .cd-enquiry h3 { font: 600 36px/1.04 var(--px-display); }
  .cd-mara { gap: 96px; padding: 80px; }
  .cd-mara h3 { font: 600 60px/1.02 var(--px-display); }
  .cd-cta-section { padding: 96px 0; }
  .cd-cta { gap: 96px; }
  .cd-cta h2 { font: 600 72px/.98 var(--px-display); }
}
