/* =========================
   COURSE PAGES — courses.css
   Shared by all 6 course pages
========================= */
.course-page { background: #ffffff; overflow-x: hidden; }

/* =========================
   HERO
========================= */
.course-hero {
  position: relative;
  min-height: 68vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: #081a35;
}
.course-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.08);
  will-change: transform;
  animation: courseHeroBg 8s var(--ease) forwards;
}
@keyframes courseHeroBg {
  from { transform: scale(1.08); }
  to   { transform: scale(1.02); }
}
.course-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(4,14,31,.92) 0%, rgba(4,14,31,.7) 50%, rgba(4,14,31,.55) 100%),
    radial-gradient(700px 420px at 20% 30%, rgba(212,166,42,.14), transparent 60%);
}
.course-hero-inner {
  position: relative; z-index: 2;
  padding: 80px 0;
}
.course-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px; font-size: .82rem; color: rgba(255,255,255,.6);
}
.course-breadcrumb a {
  color: rgba(255,255,255,.6); text-decoration: none;
  transition: color .2s;
}
.course-breadcrumb a:hover { color: #fff; }
.course-breadcrumb span { color: var(--gold); }

.course-hero-inner h1 {
  margin: 0; color: #fff;
  font-size: clamp(2.4rem,5.5vw,5rem);
  line-height: .95; letter-spacing: -.05em; font-weight: 800;
  animation: chSlideLeft .85s var(--ease) .1s both;
}
.course-hero-inner h1 span { display: block; color: rgba(255,255,255,.75); }
.course-hero-desc {
  margin: 22px 0 0; color: rgba(255,255,255,.78);
  font-size: 1.04rem; max-width: 62ch; line-height: 1.8;
  animation: chSlideLeft .85s var(--ease) .28s both;
}
.course-hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px;
  animation: chSlideLeft .85s var(--ease) .44s both;
}
@keyframes chSlideLeft {
  from { opacity: 0; transform: translateX(-55px); }
  to   { opacity: 1; transform: translateX(0); }
}
.course-hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
  animation: chSlideLeft .85s var(--ease) .56s both;
}
.course-tag {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 700;
  backdrop-filter: blur(10px);
}
.course-tag-gold {
  background: rgba(212,166,42,.18);
  border-color: rgba(212,166,42,.3);
  color: #ffe39a;
}

/* =========================
   QUICK NAV
========================= */
.course-quicknav {
  position: relative; z-index: 20;
  margin-top: -26px;
}
.course-quicknav-inner {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 10px;
  width: fit-content;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(15,23,42,.1);
  backdrop-filter: blur(14px);
  animation: qnavDrop .7s var(--ease) .85s both;
}
@keyframes qnavDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.course-quicknav-inner a {
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--navy);
  font-weight: 700; font-size: .86rem; white-space: nowrap;
  transition: background .22s, color .22s, transform .2s var(--bounce);
}
.course-quicknav-inner a:hover { background: rgba(9,42,87,.08); transform: translateY(-1px); }
.course-quicknav-inner a.active { background: var(--navy); color: #fff; }

/* =========================
   INTRO SECTION
========================= */
.course-intro-section {
  background: #fff;
  padding-top: 110px;
}
.course-intro-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.85fr);
  gap: 60px; align-items: start;
}
.course-intro-copy h2 {
  margin: 0; color: var(--text);
  font-size: clamp(1.9rem,3vw,3rem);
  line-height: 1.05; letter-spacing: -.04em; font-weight: 800;
}
.course-intro-copy p {
  margin: 16px 0 0; color: #475569; line-height: 1.85; font-size: 1rem;
}
.course-intro-img {
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(15,23,42,.14);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0d2545, #0b1b36);
  position: relative;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.course-intro-img:hover { transform: scale(1.02) translateY(-4px); box-shadow: 0 44px 100px rgba(15,23,42,.2); }
.course-intro-img img { width: 100%; height: 100%; object-fit: cover; }

/* =========================
   DEGREE TYPES — card grid
========================= */
.course-types-section { background: #f8fafc; }
.course-types-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
}
.course-type-card {
  background: #fff; border-radius: 26px;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: var(--shadow-sm);
  overflow: hidden; position: relative;
  opacity: 0; transform: translateY(40px) scale(.95);
  transition: opacity .7s var(--ease), transform .7s cubic-bezier(.34,1.56,.64,1),
              box-shadow .4s, border-color .35s;
}
.course-type-card.ctv { opacity: 1 !important; transform: none !important; }
/* Shimmer */
.course-type-card::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transition: left .55s var(--ease);
}
.course-type-card:hover::after { left: 150%; }
.course-type-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(13,59,122,.12); }
/* Left accent */
.course-type-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, var(--gold), var(--blue-2));
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
.course-type-card:hover::before { transform: scaleY(1); }

.card-img-wrap {
  width: 100%; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, #0d2545, #0b1b36);
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.course-type-card:hover .card-img-wrap img { transform: scale(1.07); }

.card-body { padding: 26px; }
.card-no {
  display: inline-flex; align-items: center;
  min-width: 44px; height: 32px; padding: 0 10px;
  border-radius: 10px; margin-bottom: 14px;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  background: rgba(13,59,122,.08); color: var(--blue);
  transition: transform .3s var(--bounce), background .3s;
}
.course-type-card:hover .card-no { transform: scale(1.1) rotate(-4deg); background: rgba(13,59,122,.14); }
.card-body h3 { margin: 0 0 12px; font-size: 1.2rem; letter-spacing: -.02em; }
.card-body p  { margin: 0; color: var(--muted); line-height: 1.75; font-size: .92rem; }

/* =========================
   FEATURES SECTION
========================= */
.course-features-section {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 440px at 15% 12%, rgba(212,166,42,.12), transparent 60%),
    radial-gradient(760px 420px at 84% 26%, rgba(13,59,122,.28), transparent 60%),
    linear-gradient(to bottom, #07142a, #081b38);
}
.course-features-section::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 30s linear infinite;
}
@keyframes gridScroll {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}
.features-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
  position: relative; z-index: 1;
}
.feature-card {
  padding: 28px; border-radius: 24px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  overflow: hidden; position: relative;
  opacity: 0; transform: translateX(60px);
  transition: opacity .65s var(--ease), transform .65s var(--ease),
              background .4s, border-color .4s, box-shadow .4s;
}
.feature-card.ctv { opacity: 1 !important; transform: none !important; }
.feature-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--blue-2));
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
.feature-card:hover::before { transform: scaleY(1); }
/* Shimmer */
.feature-card::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  transition: left .55s var(--ease);
}
.feature-card:hover::after { left: 150%; }
.feature-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(212,166,42,.25);
  box-shadow: 0 28px 60px rgba(0,0,0,.22);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 16px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: rgba(212,166,42,.14);
  transition: transform .4s var(--bounce), background .3s;
}
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(6deg); background: rgba(212,166,42,.24); }
.feature-card h3 { margin: 0 0 10px; color: #fff; font-size: 1.05rem; }
.feature-card p  { margin: 0; color: rgba(255,255,255,.72); font-size: .88rem; line-height: 1.7; }

/* =========================
   ENTRY REQUIREMENTS
========================= */
.course-entry-section {
  background: #fff;
  position: relative;
}
.entry-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px;
}
.entry-card {
  padding: 30px; border-radius: 24px;
  background: linear-gradient(to bottom, #fff, #fbfdff);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: var(--shadow-sm);
  will-change: transform;
  transition: box-shadow .4s var(--ease), border-color .35s;
}
.entry-card:hover { box-shadow: var(--shadow-md); border-color: rgba(13,59,122,.12); }
.entry-card-icon {
  width: 52px; height: 52px; border-radius: 18px; margin-bottom: 20px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: rgba(13,59,122,.08);
}
.entry-card h3 { margin: 0 0 14px; font-size: 1.15rem; letter-spacing: -.02em; }
.entry-card ul {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 10px;
}
.entry-card li {
  display: flex; gap: 10px; align-items: flex-start;
  color: #475569; font-size: .92rem; line-height: 1.6;
}
.entry-card li::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--gold), var(--blue-2));
}

/* =========================
   SUBJECT AREAS
========================= */
.subjects-section {
  background: #f8fafc;
}
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 14px;
}
.subject-pill {
  padding: 16px 20px; border-radius: 16px;
  background: #fff; border: 1px solid rgba(15,23,42,.07);
  box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: .9rem; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s cubic-bezier(.34,1.56,.64,1),
              background .3s, border-color .3s, box-shadow .3s, color .3s;
  cursor: default;
}
.subject-pill.ctv { opacity: 1 !important; transform: none !important; }
.subject-pill::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--blue-2));
  transition: transform .3s var(--bounce);
}
.subject-pill:hover {
  background: var(--navy); color: #fff;
  border-color: var(--navy);
  box-shadow: 0 12px 30px rgba(9,42,87,.2);
  transform: translateY(-4px) !important;
}
.subject-pill:hover::before { background: #fff; transform: scale(1.4); }

/* =========================
   COURSE NAV STRIP (other courses)
========================= */
.other-courses-section { background: #07142a; }
.other-courses-section .section-intro h2 { color: #fff; }
.other-courses-section .eyebrow { color: rgba(255,255,255,.65); }
.courses-nav-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
}
.course-nav-card {
  padding: 24px; border-radius: 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease),
              background .3s, border-color .3s;
}
.course-nav-card.ctv { opacity: 1 !important; transform: none !important; }
.course-nav-card:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(212,166,42,.3);
  transform: translateY(-6px) !important;
}
.course-nav-card-label {
  font-weight: 800; font-size: .95rem; color: #fff;
}
.course-nav-card-sub {
  font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 4px;
}
.course-nav-arrow {
  color: var(--gold); font-size: 1.2rem; flex-shrink: 0;
  transition: transform .3s var(--bounce);
}
.course-nav-card:hover .course-nav-arrow { transform: translateX(6px); }
.course-nav-card.is-active {
  background: rgba(212,166,42,.14);
  border-color: rgba(212,166,42,.3);
  pointer-events: none;
}
.course-nav-card.is-active .course-nav-card-label { color: #ffe39a; }

/* =========================
   CTA CLOSING
========================= */
.course-cta-section { background: #f8fafc; }
.course-cta-panel {
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(260px,.7fr);
  gap: 40px; align-items: center;
  padding: 50px; border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.course-cta-panel:hover { transform: translateY(-4px); box-shadow: 0 40px 100px rgba(15,23,42,.16); }
.course-cta-panel::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,166,42,.12), transparent 70%);
  pointer-events: none;
}
.course-cta-copy h2 { color: var(--text); max-width: 14ch; margin: 0; }
.course-cta-copy p { margin: 14px 0 0; color: var(--muted); max-width: 58ch; }
.course-cta-copy small { display: block; margin-top: 12px; color: var(--muted-soft); font-size: .82rem; }
.course-cta-actions { display: grid; gap: 14px; }

/* =========================
   REVEAL
========================= */
.reveal { opacity: 0; transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-visible { opacity: 1 !important; transform: none !important; }
.reveal-up    { transform: translateY(50px); }
.reveal-left  { transform: translateX(-70px); }
.reveal-right { transform: translateX(70px); }
.reveal-scale { transform: scale(.88) translateY(22px); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* =========================================================
   RESPONSIVE — 1024px
========================================================= */
@media (max-width: 1024px) {
  .course-types-grid  { grid-template-columns: repeat(2,1fr); }
  .features-grid      { grid-template-columns: repeat(2,1fr); }
  .courses-nav-grid   { grid-template-columns: repeat(2,1fr); }
  .course-intro-grid  { grid-template-columns: 1fr; gap: 36px; }
  .course-cta-panel   { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   RESPONSIVE — 900px
========================================================= */
@media (max-width: 900px) {
  .course-hero-inner { padding: 64px 0 72px; }
  .course-hero-inner h1 { font-size: clamp(2.2rem,7vw,3.4rem); }
  .course-quicknav-inner { width: 100%; border-radius: 20px; justify-content: center; }
  .course-hero-actions { flex-direction: column; align-items: stretch; }
  .btn, .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* =========================================================
   RESPONSIVE — 768px
========================================================= */
@media (max-width: 768px) {
  .course-types-grid  { grid-template-columns: 1fr; gap: 16px; }
  .features-grid      { grid-template-columns: 1fr; gap: 14px; }
  .entry-grid         { grid-template-columns: 1fr; }
  .courses-nav-grid   { grid-template-columns: 1fr 1fr; gap: 12px; }
  .course-intro-section { padding-top: 80px; }
  .course-cta-panel   { padding: 28px 20px; border-radius: 24px; }
  .subjects-grid      { grid-template-columns: repeat(2,1fr); }
  .section            { padding: 72px 0; }
}

/* =========================================================
   RESPONSIVE — 480px
========================================================= */
@media (max-width: 480px) {
  :root { --header-h: 68px; }
  .course-hero-inner { padding: 48px 0 56px; }
  .course-hero-inner h1 { font-size: clamp(1.8rem,9vw,2.6rem); }
  .course-hero-desc { font-size: .9rem; }
  .course-quicknav-inner { overflow-x: auto; flex-wrap: nowrap; border-radius: 14px; scrollbar-width: none; }
  .course-quicknav-inner::-webkit-scrollbar { display: none; }
  .course-quicknav-inner a { font-size: .76rem; padding: 0 10px; flex-shrink: 0; }
  .card-body { padding: 20px; }
  .feature-card { padding: 22px 18px; }
  .entry-card   { padding: 22px 18px; }
  .courses-nav-grid { grid-template-columns: 1fr; }
  .subjects-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .subject-pill  { padding: 13px 16px; font-size: .82rem; }
  .course-cta-panel { padding: 22px 16px; border-radius: 18px; }
  .section { padding: 56px 0; }
}

/* =========================================================
   RESPONSIVE — 360px
========================================================= */
@media (max-width: 360px) {
  .course-hero-inner h1 { font-size: 1.7rem; }
  .subjects-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .course-hero-bg { animation: none !important; transform: scale(1) !important; }
  .course-type-card, .feature-card, .subject-pill,
  .course-nav-card, .course-hero-inner h1,
  .course-hero-desc, .course-hero-actions,
  .course-hero-tags, .course-quicknav-inner {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}
