/* ===================================================================
   INTERNAL PAGES — Rich Layout System
   Loaded after style.css on all internal (non-home) pages
   =================================================================== */

/* ---------- Decorative page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(201,162,39,0.22) 0, transparent 42%),
    radial-gradient(circle at 10% 110%, rgba(20,57,122,0.9) 0, transparent 46%),
    linear-gradient(115deg, var(--navy-deep), var(--navy) 60%, var(--navy-light));
}
.page-hero::after {
  /* subtle diagonal texture */
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }

.breadcrumb {
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; opacity: 0.55; }

/* ---------- At-a-glance strip (course pages) ---------- */
.glance-bar {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0;
  border-bottom: 3px solid var(--gold-dark);
}
.glance-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.glance-item {
  padding: 18px 22px;
  border-right: 1px solid rgba(11,42,91,0.18);
}
.glance-item:last-child { border-right: none; }
.glance-item .g-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 3px;
}
.glance-item .g-value { font-size: 16.5px; font-weight: 700; line-height: 1.35; }

/* ---------- Two column content layout ---------- */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 52px;
  align-items: start;
}
.content-main { min-width: 0; }
.content-side { position: sticky; top: 74px; display: grid; gap: 20px; }

/* ---------- Sidebar cards ---------- */
.side-card {
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: 0 2px 10px rgba(11,42,91,0.05);
}
.side-card h3 {
  font-size: 21px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
}
.side-card h3 i { color: var(--gold-dark); font-size: 15px; }
.side-card.facts-card {
  background:
    linear-gradient(180deg, rgba(18,32,6,0.34) 0%, rgba(18,32,6,0.50) 100%),
    linear-gradient(145deg, #3f7016 0%, #56862a 32%, #8a9c35 62%, #c1b674 100%);
  border: none;
  color: var(--white);
  box-shadow: 0 16px 36px rgba(11,42,91,0.28);
  position: relative;
  overflow: hidden;
}
.side-card.facts-card::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -66px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.55) 0%, rgba(201,162,39,0) 68%);
  pointer-events: none;
}
.side-card.facts-card > * { position: relative; z-index: 1; }
.side-card.facts-card h3 { color: var(--white); border-bottom-color: rgba(255,255,255,0.28); }
.side-card.facts-card h3 i { color: var(--gold); }
.side-card.facts-card .facts-list li { border-bottom-color: rgba(255,255,255,0.22); }
.side-card.facts-card .facts-list i { color: #e9d58a; }
.side-card.facts-card .btn-gold { background: var(--gold); color: var(--navy-deep); }
.side-card.office-card {
  background: var(--ivory);
  border: 1px solid var(--cream);
}

.facts-list { list-style: none; }
.facts-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.16);
  font-size: 14.5px;
  align-items: start;
}
.facts-list li:last-child { border-bottom: none; }
.facts-list i { color: var(--gold); font-size: 13px; margin-top: 4px; }
.facts-list .f-label { display: block; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.7; margin-bottom: 2px; }

.side-links { list-style: none; }
.side-links li { border-bottom: 1px solid var(--cream); }
.side-links li:last-child { border-bottom: none; }
.side-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s, padding-left 0.2s;
}
.side-links a::before {
  content: "\f105"; /* fa-angle-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--gold-dark);
  font-size: 12px;
  transition: transform 0.2s;
}
.side-links a:hover { color: var(--navy); padding-left: 6px; }
.side-links a:hover::before { transform: translateX(3px); }

.side-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.side-note strong { color: var(--navy); }

/* ---------- Article typography ---------- */
.article { font-size: 17px; color: var(--text); }
.article > p { margin-bottom: 16px; }
.article p.prose { margin-bottom: 18px; }

.article .lead-para {
  font-size: 19.5px;
  line-height: 1.7;
  color: #2b3138;
  border-left: 4px solid var(--gold);
  padding-left: 22px;
  margin-bottom: 28px;
}

.article h2 {
  font-size: clamp(25px, 3vw, 31px);
  margin: 46px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream);
  position: relative;
}
.article h2::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 70px; height: 3px; background: var(--gold);
}
.article h3 {
  font-size: 23px;
  margin: 34px 0 12px;
  padding-left: 16px;
  border-left: 4px solid var(--gold);
  line-height: 1.3;
}
.article h3 .h-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 30px; height: 30px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  vertical-align: middle;
}
.article h4 { font-size: 20px; margin: 26px 0 10px; color: var(--navy); }

/* Feature list (converted <ul>) */
.article ul.feature-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px 24px;
}
.article ul.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.5;
}
.article ul.feature-list li::before {
  content: "\f058"; /* fa-check-circle */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--gold-dark);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 14px;
}

/* Numbered list (converted <ol>) */
.article ol.numbered-list { margin: 0 0 24px; padding-left: 0; list-style: none; counter-reset: n; }
.article ol.numbered-list li {
  counter-increment: n;
  position: relative;
  padding: 12px 0 12px 46px;
  border-bottom: 1px solid var(--cream);
  font-size: 16.5px;
}
.article ol.numbered-list li::before {
  content: counter(n);
  position: absolute; left: 0; top: 11px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.article ol.numbered-list li:last-child { border-bottom: none; }

/* Chips / tags */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 50px;
  background: var(--cream);
  border: 1px solid #e2d9c0;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 600;
}
.chip:hover { background: var(--navy); color: var(--gold); border-color: var(--navy); }

/* Admission badge */
.admission-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
  border-radius: 50px;
  padding: 9px 20px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 22px;
}
.admission-badge i { color: #2e7d32; }

/* Callout box */
.callout {
  background: var(--ivory);
  border: 1px solid var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 26px 0;
}
.callout h4 { margin-top: 0; font-size: 20px; }
.callout p:last-child { margin-bottom: 0; }
.callout.navy { background: linear-gradient(140deg, var(--navy-deep), var(--navy)); border-left-color: var(--gold); color: rgba(255,255,255,0.9); }
.callout.navy h4 { color: var(--white); }

/* Pull quote */
.pull-quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-style: italic;
  color: var(--navy);
  line-height: 1.4;
  padding: 26px 30px;
  margin: 30px 0;
  background: var(--ivory);
  border-radius: 8px;
  position: relative;
}
.pull-quote::before {
  content: "\201C";
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 70px;
  line-height: 1;
  color: var(--gold);
  position: absolute;
  top: 14px; left: 16px;
  opacity: 0.85;
}
.pull-quote span { display: block; margin-top: 14px; font-style: normal; font-family: "Source Sans 3", Arial, sans-serif; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }

/* ---------- Special page blocks ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin: 34px 0 10px;
}
.stat-box {
  background: var(--ivory);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}
.stat-box .s-num {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.stat-box .s-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); }

/* step cards (how to enrol) */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 28px 0; }
.step-card {
  background: var(--white);
  border: 1px solid var(--cream);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  transition: all 0.25s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-card .step-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.step-card h4 { margin: 0 0 8px; font-size: 20px; }
.step-card p { font-size: 15px; color: var(--muted); margin: 0; }

/* audience columns (rural programme) */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 30px 0; }
.audience-card {
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(11,42,91,0.05);
}
.audience-card .a-head {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 12px;
}
.audience-card .a-head i { color: var(--gold); font-size: 18px; }
.audience-card .a-head h3 { color: var(--white); font-size: 22px; margin: 0; padding: 0; border: none; }
.audience-card ul { list-style: none; padding: 20px 24px 24px; margin: 0; }
.audience-card li {
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--cream);
  font-size: 15.5px;
  position: relative;
}
.audience-card li:last-child { border-bottom: none; }
.audience-card li::before {
  content: "\f111"; /* fa-circle */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--gold);
  position: absolute; left: 0; top: 14px;
  font-size: 7px;
}
.audience-card li em { font-style: normal; color: var(--gold-dark); font-weight: 700; font-size: 13px; }

/* semester / topic grid (MA page) */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0 30px; }
.topic-card {
  background: var(--white);
  border: 1px solid var(--cream);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 22px 24px;
}
.topic-card h4 { margin: 0 0 12px; font-size: 19px; color: var(--navy); }
.topic-card ul { list-style: none; margin: 0; padding: 0; }
.topic-card li { font-size: 15px; color: var(--text); padding: 5px 0 5px 20px; position: relative; }
.topic-card li::before { content: "\f00a"; color: var(--gold-dark); position: absolute; left: 0; font-weight: 900; font-size: 9px; top: 9px; }
.topic-card .credit-tag { display: inline-block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: 8px; }

/* timeline (MA activities) */
.timeline { list-style: none; margin: 24px 0; padding: 0 0 0 30px; border-left: 3px solid var(--cream); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute; left: -40px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline .t-year {
  display: inline-block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px; font-weight: 700; color: var(--navy);
  margin-bottom: 4px;
}
.timeline p { font-size: 15.5px; color: var(--text); margin: 0; }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin: 30px 0; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
  transition: all 0.25s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .c-icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
}
.contact-card h3 { font-size: 21px; margin-bottom: 8px; }
.contact-card p { font-size: 15.5px; color: var(--muted); margin: 0; }
.contact-card a { color: var(--navy); font-weight: 700; }

/* map placeholder */
.map-frame {
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 26px 0;
  background: var(--white);
}
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- CTA bar ---------- */
.course-cta {
  margin-top: 50px;
  background:
    linear-gradient(180deg, rgba(18,32,6,0.30) 0%, rgba(18,32,6,0.46) 100%),
    linear-gradient(120deg, #23400b 0%, #3f7016 35%, #6d8f2c 68%, #b9a552 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(11,42,91,0.3);
}
.course-cta::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(201,162,39,0.12);
}
.course-cta h3 { color: var(--white); font-size: 26px; margin-bottom: 6px; position: relative; }
.course-cta p { color: rgba(255,255,255,0.85); font-size: 15.5px; margin: 0; position: relative; }
.course-cta .btn { position: relative; }

/* ===================================================================
   M.A. IN ARCHAEOLOGY — redesigned page
   =================================================================== */
.ma-hero { padding: 58px 0 54px; }
.ma-hero h1 { margin-bottom: 16px; }
.ma-hero-lead {
  max-width: 780px;
  font-size: 17.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
  margin-bottom: 26px;
}
.ma-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.ma-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.mh-stat {
  background: rgba(7, 28, 62, 0.42);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.mh-num {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.mh-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 7px;
}

.ma-themes { margin: 0 0 8px; }

/* semester roadmap */
.sem-roadmap { display: grid; gap: 24px; margin: 28px 0 12px; }
.sem-block {
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: 26px 28px 28px;
  box-shadow: 0 2px 10px rgba(11,42,91,0.05);
}
.sem-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--cream);
}
.sem-num {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-deep), var(--navy));
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sem-head h3 { margin: 0; padding: 0; border: none; font-size: 24px; color: var(--navy); }
.sem-sub { margin: 3px 0 0; font-size: 14.5px; color: var(--muted); }
.sem-note {
  display: inline-block;
  margin-top: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--cream);
  border-radius: 50px;
  padding: 4px 12px;
}

/* paper cards */
.paper-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
}
.paper-card {
  background: var(--ivory);
  border: 1px solid var(--cream);
  border-left: 3px solid var(--navy);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.paper-code {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
}
.paper-title { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.45; }
.paper-note { font-size: 13px; color: var(--muted); }

/* specialisation baskets */
.basket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.basket-card {
  border: 1px solid var(--cream);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px 22px;
}
.basket-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.basket-head i { color: var(--gold-dark); font-size: 15px; }
.basket-head h4 { margin: 0; font-size: 19px; color: var(--navy); flex: 1; }
.basket-count {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.basket-card ul { list-style: none; margin: 0; padding: 0; }
.basket-card li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.45;
  border-bottom: 1px dashed var(--cream);
}
.basket-card li:last-child { border-bottom: none; }
.basket-card li::before {
  content: "\f00a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--gold-dark);
  position: absolute; left: 0; top: 11px;
  font-size: 8px;
}

/* fieldwork timeline */
.ma-timeline {
  list-style: none;
  margin: 26px 0;
  padding: 0 0 0 34px;
  border-left: 3px solid var(--cream);
}
.ma-timeline li { position: relative; padding: 0 0 28px 28px; }
.ma-timeline li:last-child { padding-bottom: 0; }
.ma-timeline li::before {
  content: "";
  position: absolute; left: -45px; top: 5px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.ma-timeline .t-year {
  display: inline-block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.ma-timeline p { font-size: 15.5px; color: var(--text); margin: 0; }

.ma-sub-head { margin-top: 34px; }

/* workshops */
.workshop-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--ivory);
  border: 1px solid var(--cream);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 18px 0 10px;
}
.w-icon {
  flex: 0 0 54px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-deep), var(--navy));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.w-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 4px;
}
.workshop-card h4 { margin: 0 0 4px; font-size: 19px; color: var(--navy); }
.workshop-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.w-year {
  margin-left: auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
}

/* special lectures */
.lecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0 8px;
}
.lecture-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: 20px 22px 20px 24px;
  overflow: hidden;
  transition: all 0.25s;
}
.lecture-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold);
}
.lecture-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lecture-card h4 { margin: 0 0 6px; font-size: 18px; color: var(--navy); padding-right: 70px; }
.lecture-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.lecture-card .l-year {
  position: absolute;
  top: 18px; right: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gold-dark);
  background: var(--cream);
  border-radius: 50px;
  padding: 3px 10px;
}

/* ===================================================================
   CERTIFICATE COURSE PAGES (NEP syllabus layout)
   =================================================================== */
.course-hero { padding: 54px 0 50px; }
.course-hero h1 { font-size: clamp(30px, 4.2vw, 48px); margin-bottom: 14px; }
.course-hero-lead {
  max-width: 790px;
  font-size: 17.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.87);
  margin-bottom: 24px;
}
.course-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
}
.course-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 50px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
  font-size: 13.5px;
  letter-spacing: 0.3px;
}
.course-badges li i { color: var(--gold); font-size: 12px; }
.course-badges li strong {
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
}
.course-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* objectives */
.obj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 20px 0 6px;
}
.obj-card {
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--cream);
  border-radius: 12px;
  padding: 18px 18px 18px 56px;
}
.obj-num {
  position: absolute;
  left: 16px; top: 17px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-deep), var(--navy));
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.obj-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }

/* learning outcomes */
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 10px;
  margin: 20px 0 6px;
}
.outcome-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.outcome-item i { color: var(--gold-dark); font-size: 14px; margin-top: 3px; }

/* module cards */
.syllabus-note {
  font-size: 14.8px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 780px;
}
.mod-list { display: grid; gap: 18px; margin: 22px 0 6px; }
.mod-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(11,42,91,0.055);
  transition: box-shadow 0.25s, transform 0.25s;
}
.mod-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
}
.mod-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11,42,91,0.11); }
.mod-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 22px 17px 26px;
  background: linear-gradient(90deg, var(--ivory) 0%, rgba(247,244,236,0.4) 100%);
  border-bottom: 1px solid var(--cream);
}
.mod-num {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-deep), var(--navy));
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mod-title { flex: 1; min-width: 0; }
.mod-kicker {
  display: block;
  font-size: 10.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 2px;
}
.article .mod-card h3 {
  margin: 0;
  padding: 0;
  border: none;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 19.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.mod-hours {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream);
  border-radius: 50px;
  padding: 6px 13px;
  white-space: nowrap;
}
.mod-body { padding: 16px 22px 20px 26px; }
.mod-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 7px 24px;
}
.mod-body li {
  position: relative;
  padding-left: 17px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.mod-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* two-part course switch */
.part-switch { margin: 22px 0 6px; }
.part-switch > input { position: absolute; opacity: 0; pointer-events: none; }
.part-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--ivory);
  border: 1px solid var(--cream);
  border-radius: 50px;
  margin-bottom: 20px;
  max-width: 100%;
  flex-wrap: wrap;
}
.part-tabs label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.3;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.part-tabs label span {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark);
}
.part-tabs label:hover { background: rgba(11,42,91,0.05); }
.part-switch > input:focus-visible ~ .part-tabs {
  box-shadow: 0 0 0 3px rgba(201,162,39,0.5);
}
.part-switch > input:nth-of-type(1):checked ~ .part-tabs label:nth-of-type(1),
.part-switch > input:nth-of-type(2):checked ~ .part-tabs label:nth-of-type(2) {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(11,42,91,0.22);
}
.part-switch > input:nth-of-type(1):checked ~ .part-tabs label:nth-of-type(1) span,
.part-switch > input:nth-of-type(2):checked ~ .part-tabs label:nth-of-type(2) span {
  color: var(--gold);
}
.part-panel { display: none; }
.part-switch > input:nth-of-type(1):checked ~ .part-panel.p1,
.part-switch > input:nth-of-type(2):checked ~ .part-panel.p2 {
  display: block;
  animation: partFade 0.28s ease;
}
@keyframes partFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.part-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--navy);
  background: var(--cream);
  border-radius: 50px;
  padding: 7px 16px;
  margin: 0;
}
.part-meta i { color: var(--gold-dark); font-size: 12px; }

/* assessment */
.assess-wrap {
  background: var(--ivory);
  border: 1px solid var(--cream);
  border-radius: 14px;
  padding: 24px;
  margin: 22px 0 8px;
}
.assess-bar {
  display: flex;
  height: 16px;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.12);
}
.assess-bar .a-int {
  background: linear-gradient(90deg, var(--navy-deep), var(--navy-light));
}
.assess-bar .a-ext {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
}
.assess-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 14px 0 0;
}
.assess-legend > div { display: flex; align-items: baseline; gap: 9px; }
.assess-legend strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.leg-int strong { color: var(--navy); }
.leg-ext strong { color: var(--gold-dark); }
.assess-legend span { font-size: 13.5px; color: var(--muted); }
.assess-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.assess-note i { color: var(--gold-dark); margin-top: 3px; }
.assess-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--cream);
}
.article .assess-block h4 {
  margin: 0 0 12px;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.assess-block h4 i { color: var(--gold-dark); font-size: 13px; }
.eval-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.eval-chip {
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: 50px;
  padding: 6px 13px;
  font-size: 13px;
  color: var(--text);
}
.eval-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.paper-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.paper-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.paper-list li::before {
  content: "\\f0da";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0; top: 2px;
  color: var(--gold-dark);
  font-size: 10px;
}

/* reading list */
.book-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.book-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
}
.book-list li i { color: var(--gold-dark); font-size: 13px; margin-top: 4px; }
.book-fold {
  border: 1px solid var(--cream);
  border-radius: 12px;
  background: var(--ivory);
  margin: 0 0 12px;
  overflow: hidden;
}
.book-fold summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}
.book-fold summary::-webkit-details-marker { display: none; }
.book-fold summary i:first-child { color: var(--gold-dark); font-size: 13px; }
.book-fold summary i:last-child {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.2s;
}
.book-fold[open] summary i:last-child { transform: rotate(180deg); }
.book-fold .book-list { padding: 0 14px 14px; margin: 0; }
.f-sub { opacity: 0.8; font-size: 12.5px; }
.facts-card .fee-amount { color: var(--gold); font-size: 19px; font-weight: 700; letter-spacing: 0.3px; line-height: 1.2; }

/* tall sidebars must stay reachable when sticky */
@media (min-width: 981px) {
  .content-side {
    max-height: calc(100vh - 94px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 3px;
  }
  .content-side::-webkit-scrollbar { width: 6px; }
  .content-side::-webkit-scrollbar-thumb { background: rgba(11,42,91,0.22); border-radius: 3px; }
  .content-side::-webkit-scrollbar-track { background: transparent; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ma-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assess-cols { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; gap: 36px; }
  .content-side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .glance-bar .container { grid-template-columns: repeat(2, 1fr); }
  .glance-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 980px) {
  .glance-bar .container { grid-template-columns: 1fr; }
  .glance-item { border-right: none; border-bottom: 1px solid rgba(11,42,91,0.18); }
  .article .lead-para { font-size: 18px; padding-left: 16px; }
  .article ul.feature-list { grid-template-columns: 1fr; }
  .ma-hero { padding: 44px 0 42px; }
  .ma-hero-lead { font-size: 16.5px; }
  .sem-block { padding: 22px 20px 24px; }
  .paper-grid, .basket-grid, .lecture-grid { grid-template-columns: 1fr; }
  .workshop-card { flex-wrap: wrap; gap: 14px; }
  .w-year { margin-left: 0; }
  .course-hero { padding: 40px 0 38px; }
  .course-hero-lead { font-size: 16px; }
  .course-badges li { padding: 8px 14px; font-size: 12.5px; }
  .course-badges li strong { font-size: 15px; }
  .mod-head { gap: 12px; padding: 15px 16px 15px 20px; flex-wrap: wrap; }
  .mod-body { padding: 14px 16px 16px 20px; }
  .mod-body ul { grid-template-columns: 1fr; }
  .assess-wrap { padding: 18px; }
  .part-tabs label { padding: 8px 14px; font-size: 12.5px; }
  .book-fold summary { font-size: 14px; padding: 12px 14px; }
}
@media (max-width: 560px) {
  .ma-hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mh-num { font-size: 30px; }
  .mh-label { font-size: 10.5px; letter-spacing: 1.2px; }
  .ma-hero-actions .btn { width: 100%; text-align: center; }
  .sem-head { gap: 12px; }
  .lecture-card h4 { padding-right: 0; }
  .lecture-card .l-year { position: static; display: inline-block; margin-bottom: 8px; }
  .course-hero-actions .btn { width: 100%; text-align: center; }
  .course-badges { gap: 8px; }
  .mod-num { flex-basis: 38px; width: 38px; height: 38px; font-size: 16px; }
  .article .mod-card h3 { font-size: 18px; }
  .mod-hours { font-size: 10.5px; padding: 5px 10px; }
  .part-tabs { display: flex; width: 100%; }
  .part-tabs label { flex: 1 1 100%; }
  .assess-legend { gap: 10px 20px; }
  .assess-legend strong { font-size: 22px; }
}
