/* ═══════════════════════════════════════════════════════════════
   CCE Courses Pro — Public CSS v5.0
   Exact match to cce.iisc.ac.in design screenshots
═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts loaded via wp_enqueue_style, not @import ─── */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --navy:      #0d2b4e;
  --navy-dk:   #071e36;
  --navy-md:   #1a3a5c;
  --gold:      #c9a84c;
  --red:       #b33a28;
  --red-dk:    #8b2a1c;
  --cream:     #f5f0e8;
  --cream-lt:  #faf7f2;
  --white:     #ffffff;
  --border:    #e8e3da;
  --text:      #1a1a1a;
  --text-md:   #4b5563;
  --text-lt:   #9ca3af;
  --shadow:    0 2px 12px rgba(13,43,78,.08);
  --shadow-md: 0 6px 24px rgba(13,43,78,.12);
  --shadow-lg: 0 16px 48px rgba(13,43,78,.18);
  --r:         8px;
  --r-md:      12px;
  --r-lg:      16px;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'DM Sans', system-ui, -apple-system, sans-serif;
  --emoji:     'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;
  --max:       1280px;
}

/* ── Reset ─────────────────────────────────────────────────── */
.cce-wrap *, .cce-single-wrap * { box-sizing: border-box; }
.cce-wrap, .cce-single-wrap {
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;

}
.cce-wrap a, .cce-single-wrap a { text-decoration: none; }
.cce-wrap img, .cce-single-wrap img { max-width: 100%; height: auto; display: block; }

/* ════════════════════════════════════════════════════════════
   FILTER BAR (front + archive pages)
════════════════════════════════════════════════════════════ */
.cce-filter-bar {
  background: #fff;
  border: 1px solid #e8e3da;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(13,43,78,.08);
  display: block !important;
  visibility: visible !important;
}
.cce-filter-bar__inner {
  display: flex !important; align-items: flex-end; gap: 16px; flex-wrap: wrap;
}
.cce-filter-group { display: flex; flex-direction: column; gap: 5px; }
.cce-filter-group--grow { flex: 1; min-width: 180px; }
.cce-filter-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: #9ca3af; text-transform: uppercase; font-family: -apple-system,BlinkMacSystemFont,'DM Sans',sans-serif;
}
.cce-filter-select,
.cce-search-input {
  height: 40px; padding: 0 12px;
  border: 1.5px solid #e8e3da; border-radius: 8px;
  font-family: -apple-system,BlinkMacSystemFont,'DM Sans',sans-serif; font-size: 14px;
  color: #1a1a1a; background: #fff; outline: none;
  transition: border-color .15s;
}
.cce-filter-select:focus,
.cce-search-input:focus { border-color: #0d2b4e; }
.cce-search-input { min-width: 200px; }
.cce-filter-checks {
  display: flex; gap: 14px; align-items: flex-end; padding-bottom: 4px;
}
.cce-checkbox-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; cursor: pointer; color: #1a1a1a;
  font-family: -apple-system,BlinkMacSystemFont,'DM Sans',sans-serif;
}
.cce-checkbox-label input { width: 16px; height: 16px; accent-color: #0d2b4e; }
.cce-filter-actions { display: flex; gap: 8px; margin-left: auto; }
.cce-results-summary { font-size: 13px; color: #9ca3af; margin-bottom: 12px; }

/* Results summary */
.cce-results-summary { font-size: 13px; color: var(--text-lt); margin-bottom: 12px; }

/* ════════════════════════════════════════════════════════════
   GRID + BUTTONS
════════════════════════════════════════════════════════════ */
.cce-grid { display: grid; gap: 24px; align-items: stretch; }
.cce-grid--2 { grid-template-columns: repeat(2,1fr); }
.cce-grid--3 { grid-template-columns: repeat(3,1fr); }
.cce-grid--4 { grid-template-columns: repeat(4,1fr); }
/* Responsive grid breakpoints */
@media(max-width:1024px){
  .cce-grid--4 { grid-template-columns: repeat(3,1fr); }
}
@media(max-width:768px){
  .cce-grid--3, .cce-grid--4 { grid-template-columns: repeat(2,1fr); gap: 16px; }
}
@media(max-width:480px){
  .cce-grid--2, .cce-grid--3, .cce-grid--4 { grid-template-columns: 1fr; gap: 14px; }
}
/* Cards stretch to fill full row height */
.cce-grid > .cce-card { height: 100%; }

.cce-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 24px; border-radius: var(--r);
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s; white-space: nowrap; text-decoration: none;
}
.cce-btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.cce-btn--primary:hover { background: var(--navy-md); }
.cce-btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.cce-btn--ghost:hover { background: var(--navy); color: #fff; }
.cce-btn--cta-solid {
  background: #fff; color: var(--red); border: 2px solid #fff;
  font-size: 14px; font-weight: 700; padding: 13px 30px; border-radius: var(--r-md);
}
.cce-btn--cta-solid:hover { background: transparent; color: #fff; }
.cce-btn--cta-outline-dark {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5);
  font-size: 14px; font-weight: 700; padding: 13px 30px; border-radius: var(--r-md);
}
.cce-btn--cta-outline-dark:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ════════════════════════════════════════════════════════════
   COURSE CARD + HOVER OVERLAY
════════════════════════════════════════════════════════════ */
.cce-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13,43,78,.08);
  background: #fff;
  display: flex; flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s, transform .2s;
}
.cce-card:hover {
  box-shadow: 0 12px 40px rgba(13,43,78,.18);
  transform: translateY(-2px);
}

/* Thumb — fixed 16:9 height, never stretches */
.cce-card__thumb {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
  background: var(--navy);
  flex-shrink: 0;
}
.cce-card__thumb-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.cce-card:hover .cce-card__thumb-img { transform: scale(1.04); }
.cce-card__thumb-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.cce-card__thumb-placeholder svg { width: 100%; height: 100%; display: block; }
.cce-card__cat-tag {
  position: absolute; top: 12px; left: 12px;
  background: #2563eb; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 20px; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}

/* Instructor overlay on thumb */
.cce-card__instr-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(7,20,40,.95) 0%, rgba(7,20,40,.7) 50%, transparent 100%);
  padding: 14px 14px 12px;
}
.cce-card__instr-overlay__inner { display: flex; align-items: center; gap: 10px; }
.cce-card__instr-photo {
  width: 40px; height: 40px;
  min-width: 40px; min-height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(255,255,255,.9);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  display: block;
  aspect-ratio: 1/1;
}
.cce-card__instr-init {
  width: 40px; height: 40px;
  min-width: 40px; min-height: 40px;
  border-radius: 50%;
  background: #0d2b4e; color: #c9a84c;
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.8);
  flex-shrink: 0;
}
.cce-card__instr-text strong { display: block; font-size: 13px; font-weight: 700; color: #fff; line-height: 1.25; }
.cce-card__instr-text span   { font-size: 11px; color: rgba(255,255,255,.85); line-height: 1.4; display: block; }

/* Card body */
.cce-card__body { padding: 14px 18px; flex: 1; }
.cce-card__type {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: var(--text-lt); text-transform: uppercase; display: block; margin-bottom: 6px;
}
.cce-card__title {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  line-height: 1.4; color: var(--navy); margin-bottom: 12px;
}
.cce-card__title a { color: inherit; }
.cce-card__title a:hover { color: var(--red); }
.cce-card__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cce-card__meta-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-md); }
.cce-card__meta-sep  { color: var(--border); }
.cce-card__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 20px;
}
.cce-badge--closed { background: #fef2f2; color: #b33a28; }
.cce-badge--open   { background: #f0fdf4; color: #166534; }
.cce-status-dot    { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cce-badge--closed .cce-status-dot { background: #b33a28; }
.cce-badge--open   .cce-status-dot { background: #16a34a; }

/* Card footer */
.cce-card__footer  { border-top: 1px solid var(--border); padding: 13px 18px; flex-shrink: 0; }
.cce-card__view-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--navy);
  transition: color .2s;
}
.cce-card__view-btn:hover { color: var(--red); }

/* Hover overlay — covers card completely on hover */
.cce-card__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, #0d2b4e 0%, #071e36 100%);
  padding: 16px 16px 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 20;
  display: flex; flex-direction: column;
  pointer-events: none;
  overflow: hidden;  /* strict clip — nothing escapes card bounds */
}
.cce-card:hover .cce-card__overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Overlay actions always at bottom, View More full width */
.cco-actions {
  margin-top: auto !important;
  padding-top: 10px;
}
.cco-btn--primary {
  flex: 1;
  justify-content: center;
  text-align: center;
}
/* Compress overlay rows if content is tall */
.cco-rows { gap: 0; overflow: hidden; }
.cco-row  { padding: 6px 0; }
.cco-title { font-size: 13px; margin-bottom: 8px; }
/* Hide hover overlay on mobile — no hover on touch */
@media(max-width:768px) {
  .cce-card__overlay { display: none !important; }
}
.cco-cat  { font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; margin-bottom: 7px; }
.cco-title { font-family: var(--serif); font-size: 14px; font-weight: 600; color: #fff; line-height: 1.4; margin-bottom: 12px; }
.cco-rows  { display: flex; flex-direction: column; flex: 1; }
.cco-row   { display: grid; grid-template-columns: 80px 1fr; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.cco-row:first-child { border-top: 1px solid rgba(255,255,255,.07); }
.cco-row__label { font-size: 10px; font-weight: 600; letter-spacing: .1em; color: rgba(255,255,255,.38); text-transform: uppercase; padding-top: 2px; }
.cco-row__val   { font-size: 13px; font-weight: 500; color: #fff; }
.cco-status--closed { color: #f87171; font-size: 12px; font-weight: 600; }
.cco-status--open   { color: #4ade80; font-size: 12px; font-weight: 600; }
.cco-instructor {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0 12px; border-top: 1px solid rgba(255,255,255,.08); margin-top: auto;
}
.cco-instructor__photo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(201,168,76,.4); flex-shrink: 0; }
.cco-instructor__init  { width: 34px; height: 34px; border-radius: 50%; background: rgba(201,168,76,.18); border: 2px solid rgba(201,168,76,.38); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.cco-instructor__name  { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.cco-instructor__dept  { font-size: 11px; color: rgba(255,255,255,.48); line-height: 1.3; margin-top: 1px; }
.cco-actions { display: flex; gap: 8px; }
.cco-btn {
  flex: 1; padding: 9px; border-radius: var(--r);
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  text-align: center; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.cco-btn--primary  { background: #fff; color: var(--navy); }
.cco-btn--primary:hover  { background: var(--gold); color: #fff; }
.cco-btn--secondary { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.cco-btn--secondary:hover { background: rgba(255,255,255,.2); }

/* No results */
.cce-no-courses { grid-column: 1/-1; text-align: center; padding: 60px; color: var(--text-lt); font-size: 16px; }

/* Touch devices — tap to show overlay instead of hover */
.cce-touch-device .cce-card__overlay { display: flex; } /* re-enable for touch tap */
.cce-touch-device .cce-card__overlay.cce-overlay--active { transform: translateY(0) !important; pointer-events: auto !important; }
/* Hide hover-triggered overlay on touch (only show on tap via JS) */

  .cce-card__overlay.cce-overlay--active { transform: translateY(0) !important; }
}

/* ════════════════════════════════════════════════════════════
   SINGLE COURSE — HERO
════════════════════════════════════════════════════════════ */
.cce-hero {
  background: #071e36 !important; /* navy-dk hard value */
  position: relative; overflow: hidden; min-height: 520px;
}
.cce-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; opacity: .2;
}
.cce-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(7,30,54,.97) 40%, rgba(13,43,78,.75));
}
.cce-hero__grid-pattern {
  position: absolute; inset: 0; opacity: .025;
  background-image: linear-gradient(#c9a84c 1px, transparent 1px), linear-gradient(90deg, #c9a84c 1px, transparent 1px);
  background-size: 64px 64px;
}
.cce-hero__content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 52px 40px;
  display: grid; grid-template-columns: 1fr 370px; gap: 48px; align-items: start;
}
/* breadcrumb */
.cce-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 18px; }
.cce-breadcrumb a { color: rgba(255,255,255,.45); }
.cce-breadcrumb a:hover { color: var(--gold); }
.cce-breadcrumb span { opacity: .4; }
/* badge */
.cce-badge--hero {
  display: inline-block;
  background: rgba(201,168,76,.12); color: var(--gold);
  border: 1px solid rgba(201,168,76,.28);
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 16px;
}
/* hero text */
.cce-hero__pretitle { font-size: 20px; font-weight: 300; color: rgba(255,255,255,.65) !important; margin: 0 0 7px; }
.cce-hero__title { font-family: 'Playfair Display', Georgia, serif; font-size: 36px; font-weight: 700; color: #c9a84c !important; line-height: 1.2; margin: 0 0 16px; }
.cce-hero__sub { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.cce-hero__desc { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.72); max-width: 560px; margin-bottom: 22px; }
.cce-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cce-tag { background: rgba(255,255,255,.08); color: rgba(255,255,255,.78); font-size: 12px; padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.12); }
/* hero stats bar */
.cce-hero__stats { display: flex; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); }
.cce-hero-stat  { flex: 1; padding: 17px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.cce-hero-stat:last-child { border-right: none; }
.cce-hero-stat__val { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--gold); }
.cce-hero-stat__label { font-size: 9px; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-top: 3px; text-transform: uppercase; }

/* Sidebar card */
.cce-course-card-sidebar { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.cce-course-card-sidebar__head { background: linear-gradient(135deg, #b33a28, #8b2a1c); padding: 20px; }
.cce-course-card-sidebar__sub  { font-size: 9px; font-weight: 700; letter-spacing: .12em; color: rgba(255,255,255,.55); text-transform: uppercase; margin-bottom: 7px; }
.cce-course-card-sidebar__title { font-family: var(--serif); font-size: 14px; font-weight: 600; color: #fff; line-height: 1.45; margin-bottom: 4px; }
.cce-course-card-sidebar__dur  { font-size: 13px; color: rgba(255,255,255,.6); }
.cce-course-card-sidebar__rows { padding: 4px 0; }
.cce-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.cce-detail-row:last-child { border-bottom: none; }
.cce-detail-row__label { color: var(--text-lt); }
.cce-detail-row__val   { font-weight: 600; color: var(--navy); text-align: right; }
.cce-course-card-sidebar__btns { padding: 12px 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.cce-sc-btn-primary { display: block; background: var(--red); color: #fff; text-align: center; padding: 12px; border-radius: var(--r); font-weight: 700; font-size: 14px; transition: background .2s; }
.cce-sc-btn-primary:hover { background: var(--red-dk); }
.cce-sc-btn-outline { display: block; background: transparent; color: var(--navy); text-align: center; padding: 11px; border-radius: var(--r); font-weight: 700; font-size: 14px; border: 2px solid var(--navy); transition: all .2s; }
.cce-sc-btn-outline:hover { background: var(--navy); color: #fff; }
.cce-sidebar-phone { text-align: center; padding-bottom: 6px; font-size: 12px; color: var(--text-lt); }

/* ════════════════════════════════════════════════════════════
   SECTIONS — shared
════════════════════════════════════════════════════════════ */
.cce-section { padding: 72px 0; overflow: hidden; }
.cce-section--cream   { background: var(--cream-lt); }
.cce-section--white   { background: #fff; }
.cce-section--navy    { background: var(--navy); }
.cce-section--offwhite { background: #fafafa; }
.cce-section--enroll  { background: linear-gradient(135deg, #0d2b4e 0%, #1a3a5c 100%); }
.cce-section__inner { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* Eyebrow */
.cce-section__label {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; color: var(--red); text-transform: uppercase; margin-bottom: 10px;
}
/* Navy section overrides */
.cce-section--navy .cce-section__label { color: var(--gold); }
.cce-section--navy .cce-section__title { color: #fff; }
.cce-section--navy .cce-section__rule  { background: var(--gold); }

/* Section title */
.cce-section__title {
  font-family: var(--serif); font-size: 36px; font-weight: 700;
  color: var(--navy); line-height: 1.2; margin: 0 0 14px;
}
/* Red rule */
.cce-section__rule { width: 56px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 44px; }

/* ════════════════════════════════════════════════════════════
   COURSE AT A GLANCE
   Screenshot: 6-col grid, white rounded cards, value (top navy serif),
   emoji icon (middle), label (bottom small-caps gray)
════════════════════════════════════════════════════════════ */
.cce-glance-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cce-glance-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 14px 22px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(13,43,78,.05);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: box-shadow .2s, transform .2s;
}
.cce-glance-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Value — navy serif, top */
.cce-glance-card__value {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
/* Icon — emoji, middle */
.cce-glance-card__icon {
  font-size: 28px;
  line-height: 1.2;
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Android Emoji",EmojiSymbols,sans-serif;
  font-style: normal;
  display: block;
}
/* Label — small caps gray, bottom */
.cce-glance-card__label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; color: var(--text-lt);
  text-transform: uppercase; line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════
   INSTRUCTOR
   Screenshot: white card, photo left (108×126 rect),
   name (serif 22px navy), red uppercase title, bio gray
════════════════════════════════════════════════════════════ */
.cce-instructors-grid { display: flex; flex-direction: column; gap: 28px; }
/* ── Instructor Card — Image 2 style ─────────────────── */
.cce-instructor-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e8e3da;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(13,43,78,.07);
  margin-bottom: 20px;
}
.cce-instructor-card--no-video { }
.cce-instructor-card--no-video .cce-instructor-card__left { }
.cce-instructor-card__left {
  display: flex; gap: 22px; align-items: flex-start; flex: 1; min-width: 0;
}
.cce-instructor-card__photo {
  width: 100px; height: 120px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 1px solid #e8e3da;
}
div.cce-instructor-card__photo {
  width: 100px; height: 120px;
  border-radius: 8px;
  background: linear-gradient(135deg,#0d2b4e,#1a3a5c);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; font-weight: 700; color: #c9a84c;
  flex-shrink: 0;
}
.cce-instructor-card__info { flex: 1; min-width: 0; }
.cce-instructor-card__name {
  font-size: 20px; font-weight: 700;
  color: #0d2b4e; margin: 0 0 4px;
  display: flex; align-items: center; gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'DM Sans', sans-serif;
}
.cce-instructor-card__title {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: #b33a28; text-transform: uppercase; margin-bottom: 12px;
}
.cce-instructor-card__bio {
  font-size: 14px; line-height: 1.75; color: #475569; margin-bottom: 10px;
}
.cce-instructor-card__dept { font-size: 12px; color: #94a3b8; }
/* Video panel */
.cce-instructor-card__video { min-width: 320px; max-width: 360px; flex-shrink: 0; }
/* Video thumb in instructor card */
.cce-video-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--red); text-transform: uppercase; margin-bottom: 13px; }
.cce-video-thumb {
  background: linear-gradient(135deg, #1a3a5c 0%, #8b2a1c 100%);
  border-radius: var(--r-lg); padding: 44px 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; min-height: 210px; cursor: pointer;
}
.cce-video-play {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s;
}
.cce-video-play:hover { transform: scale(1.1); background: rgba(255,255,255,.28); }
.cce-video-play svg { width: 60px; height: 60px; }
.cce-video-caption { color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; text-align: center; line-height: 1.5; }
.cce-video-caption small { font-size: 12px; opacity: .6; display: block; margin-top: 4px; }

/* ════════════════════════════════════════════════════════════
   VIDEO PLAY BUTTON (lightbox trigger)
════════════════════════════════════════════════════════════ */
.cce-video-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: transform .2s; z-index: 2;
}
.cce-video-play-btn svg { width: 64px; height: 64px; }
.cce-video-play-btn:hover { transform: translate(-50%,-50%) scale(1.1); }
.cce-video-play-btn--lg svg { width: 80px; height: 80px; }
.cce-video-thumb-wrap { position: relative; }

/* Lightbox */
.cce-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.cce-lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.86); cursor: pointer; }
.cce-lightbox__wrap { position: relative; z-index: 1; width: min(90vw,960px); }
.cce-lightbox__close { position: absolute; top: -40px; right: 0; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; }
.cce-lightbox__close:hover { background: rgba(255,255,255,.3); }
.cce-lightbox__video { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.cce-lightbox__video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
body.cce-lightbox-open { overflow: hidden; }

/* ════════════════════════════════════════════════════════════
   COURSE VIDEO SECTION (standalone)
════════════════════════════════════════════════════════════ */
.cce-course-video-block { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.cce-course-video-thumb { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 16/9; cursor: pointer; }
.cce-course-video-thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.cce-course-video-thumb:hover .cce-course-video-thumb__img { transform: scale(1.03); opacity: .85; }
.cce-course-video-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(7,30,54,.85), transparent); padding: 20px 24px 18px; pointer-events: none; }
.cce-course-video-overlay__text { color: #fff; font-size: 16px; font-weight: 600; }
.cce-course-video-overlay__sub  { color: rgba(255,255,255,.65); font-size: 13px; margin-top: 3px; }
.cce-course-video-meta { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.cce-course-video-instr { display: flex; align-items: flex-start; gap: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 18px 20px; }
.cce-course-video-instr__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(201,168,76,.4); flex-shrink: 0; }
.cce-course-video-instr__init  { width: 56px; height: 56px; border-radius: 50%; background: rgba(201,168,76,.18); border: 2px solid rgba(201,168,76,.4); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.cce-course-video-instr__name  { font-family: var(--serif); font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.cce-course-video-instr__title { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }

/* ════════════════════════════════════════════════════════════
   OBJECTIVES
   Screenshot: 3-col, white cards, 3px red left bar, left text
════════════════════════════════════════════════════════════ */
.cce-objectives-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.cce-objective-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px 22px 22px 25px; position: relative; overflow: hidden;
  transition: box-shadow .2s;
}
.cce-objective-card:hover { box-shadow: var(--shadow); }
.cce-objective-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--red); }
.cce-objective-card p { font-size: 14px; line-height: 1.75; color: var(--text-md); margin: 0; text-align: left; }

/* ════════════════════════════════════════════════════════════
   SYLLABUS
   Screenshot: 2-col, white cards, dark-red numbered badge
════════════════════════════════════════════════════════════ */
.cce-syllabus-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.cce-syllabus-card {
  display: flex; align-items: flex-start; gap: 15px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 17px 20px; transition: box-shadow .2s;
}
.cce-syllabus-card:hover { box-shadow: var(--shadow); }
.cce-syllabus-card__num {
  background: var(--red); color: #fff;
  min-width: 36px; height: 36px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.cce-syllabus-card p { font-size: 14px; line-height: 1.65; color: var(--text-md); margin: 0; padding-top: 3px; text-align: left; }

/* ════════════════════════════════════════════════════════════
   ELIGIBILITY
   Screenshot: navy bg, gold eyebrow/rule, 2-col semi-transparent cards
════════════════════════════════════════════════════════════ */
.cce-elig-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.cce-elig-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: var(--r-lg); padding: 28px 28px 24px; }
.cce-elig-card__title { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--gold); margin: 0 0 18px; }
.cce-elig-list { list-style: none; margin: 0; padding: 0; }
.cce-elig-list li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.65; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.cce-elig-list li:last-child { border-bottom: none; }
.cce-elig-list svg { flex-shrink: 0; margin-top: 4px; }
.cce-elig-list .arrow { color: var(--gold); flex-shrink: 0; font-weight: 700; }

/* ════════════════════════════════════════════════════════════
   FEE & SCHEDULE
   Screenshot: 2-col, fee=navy header+white rows, schedule=tagged rows
════════════════════════════════════════════════════════════ */
.cce-fee-schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.cce-fee-table {
  background: #0d2b4e;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(13,43,78,.08);
  overflow: visible;
}
.cce-fee-table__head {
  padding: 22px 26px 20px;
  border-radius: 14px 14px 0 0;
  background: #0d2b4e;
}
.cce-fee-table__head-title {
  color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 5px;
}
.cce-fee-table__head-sub {
  color: rgba(255,255,255,.5); font-size: 12px; line-height: 1.5;
}
.cce-fee-table__body {
  background: #fff;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  border: 1px solid #e8e3da;
  border-top: none;
}
.cce-fee-row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px;
  border-bottom: 1px solid #e8e3da;
  font-size: 14px;
  color: #4b5563;
}
.cce-fee-row:last-child { border-bottom: none; }
.cce-fee-row--total {
  background: #fff8f6;
  font-weight: 700;
  font-size: 15px;
  color: #0d2b4e;
}
.cce-fee-table__note {
  padding: 10px 26px;
  background: #faf7f2;
  font-size: 12px;
  color: #9ca3af;
  border-top: 1px solid #e8e3da;
  border-radius: 0 0 14px 14px;
}
.cce-fee-empty {
  background: #f8fafc;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  font-size: 14px;
  color: var(--text-lt);
  text-align: center;
}
.cce-schedule-list { display: flex; flex-direction: column; }
.cce-schedule-row { display: flex; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.cce-schedule-row:first-child { border-top: 2px solid var(--red); }
.cce-schedule-tag { background: #fff; border: 1px solid var(--border); border-radius: var(--r); font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--text-lt); padding: 5px 9px; min-width: 52px; text-align: center; flex-shrink: 0; text-transform: uppercase; }
.cce-schedule-val { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 2px; }
.cce-schedule-label { font-size: 10px; letter-spacing: .1em; color: var(--text-lt); margin-top: 2px; text-transform: uppercase; }

/* ════════════════════════════════════════════════════════════
   REFERENCE BOOKS
   Screenshot: cream bg, navy number badge, bold title, italic gray author
════════════════════════════════════════════════════════════ */
.cce-books-list { display: flex; flex-direction: column; gap: 12px; }
.cce-book-row { display: flex; align-items: flex-start; gap: 16px; background: var(--cream-lt); border: 1px solid var(--border); border-radius: var(--r-md); padding: 17px 22px; transition: box-shadow .2s; }
.cce-book-row:hover { box-shadow: var(--shadow); }
.cce-book-num { background: var(--navy); color: #fff; min-width: 36px; height: 36px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.cce-book-title  { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.cce-book-author { font-size: 13px; color: var(--text-lt); font-style: italic; }

/* ════════════════════════════════════════════════════════════
   ENROLLMENT TABS
════════════════════════════════════════════════════════════ */
.cce-enroll-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.cce-etab {
  padding: 12px 24px; border: none; background: transparent;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--text-lt); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .2s;
}
.cce-etab:hover { color: var(--navy); }
.cce-etab.active { color: var(--navy); border-bottom-color: var(--red); }
.cce-etab-panel       { display: none; }
.cce-etab-panel.active { display: block; }

/* Stats grid */
.cce-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); border-radius: var(--r-lg); overflow: hidden; background: var(--navy); border: 1px solid rgba(255,255,255,.08); }
.cce-stat-counter { padding: 36px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); transition: background .2s; }
.cce-stat-counter:last-child { border-right: none; }
.cce-stat-counter:hover { background: rgba(255,255,255,.04); }
.cce-stat-counter__icon  { font-size: 28px; display: block; margin-bottom: 12px; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; }
.cce-stat-counter__count { font-family: var(--serif); font-size: 38px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.cce-stat-counter__label { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,.5); text-transform: uppercase; line-height: 1.4; }

/* Semester grid */
.cce-semesters-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.cce-semester-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 18px; position: relative; display: flex; flex-direction: column; gap: 9px; transition: box-shadow .2s, transform .2s; }
.cce-semester-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cce-semester-card--current { border-color: var(--navy); border-width: 2px; }
.cce-semester-card__current-badge { position: absolute; top: -1px; right: 14px; background: var(--navy); color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .12em; padding: 4px 10px; border-radius: 0 0 7px 7px; }
.cce-semester-card__label { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--navy); margin-top: 6px; }
.cce-semester-card__dates { font-size: 12px; color: var(--text-lt); }
.cce-semester-card__status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; width: fit-content; }
.cce-sem-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cce-sem-st--closed   { background: #f3f4f6; color: #6b7280; }  .cce-sem-st--closed .cce-sem-dot { background: #9ca3af; }
.cce-sem-st--open     { background: #f0fdf4; color: #166534; }  .cce-sem-st--open .cce-sem-dot   { background: #16a34a; }
.cce-sem-st--ongoing  { background: #eff6ff; color: #1d4ed8; }  .cce-sem-st--ongoing .cce-sem-dot { background: #3b82f6; }
.cce-sem-st--upcoming { background: #fffbeb; color: #92400e; }  .cce-sem-st--upcoming .cce-sem-dot { background: #f59e0b; }
.cce-semester-card__enrolled { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-md); }
.cce-semester-card__btn { display: inline-block; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: 6px; transition: background .2s; align-self: flex-start; text-decoration: none; }
.cce-semester-card__btn:hover { background: var(--navy-md); color: #fff; }

/* Topper cards */
.cce-topper-subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.cce-topper-stab { padding: 7px 16px; border: 1.5px solid var(--border); border-radius: 20px; background: #fff; color: var(--text-md); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: var(--sans); }
.cce-topper-stab:hover { border-color: var(--navy); color: var(--navy); }
.cce-topper-stab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.cce-topper-sem-panel       { display: none; }
.cce-topper-sem-panel.active { display: block; overflow: visible; }
.cce-toppers-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px;  overflow: visible; padding-top: 14px; }
.cce-topper-card { background: #fff; border: 1px solid #e8e3da; border-radius: 14px; padding: 24px 14px 18px; text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; transition: box-shadow .25s; }
.cce-topper-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cce-topper-card__rank { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #c9a84c; color: #0d2b4e; font-size: 11px; font-weight: 800; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(13,43,78,.15); z-index:1; }
.cce-topper-card:nth-child(1) .cce-topper-card__rank { background: #FFD700; }
.cce-topper-card:nth-child(2) .cce-topper-card__rank { background: #C0C0C0; }
.cce-topper-card:nth-child(3) .cce-topper-card__rank { background: #CD7F32; color: #fff; }
.cce-topper-card__photo-wrap { margin-top: 10px; }
.cce-topper-card__photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); transition: border-color .2s; }
.cce-topper-card:hover .cce-topper-card__photo { border-color: var(--gold); }
.cce-topper-card__initials { width: 76px; height: 76px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--serif); font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 10px; border: 3px solid var(--border); }
.cce-topper-card__name    { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.cce-topper-card__college { font-size: 12px; color: var(--text-lt); line-height: 1.4; }
.cce-topper-card__score   { font-size: 12px; font-weight: 700; color: var(--red); background: #fef2f2; padding: 2px 10px; border-radius: 12px; }
.cce-topper-card__note    { font-size: 11px; color: var(--text-lt); font-style: italic; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 3px; line-height: 1.5; }

/* ════════════════════════════════════════════════════════════
   CUSTOM EXTRA SECTIONS
════════════════════════════════════════════════════════════ */
.cce-extra-content { gap: 24px; }
.cce-extra-cols-1 { display: block; }
.cce-extra-cols-2 { display: grid; grid-template-columns: repeat(2,1fr); }
.cce-extra-cols-3 { display: grid; grid-template-columns: repeat(3,1fr); }
.cce-extra-block-front { font-size: 15px; line-height: 1.7; }
.cce-extra-block-front h4 { font-family: var(--serif); font-size: 18px; color: var(--navy); margin: 0 0 12px; }
.cce-extra-block--card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.cce-extra-block--list ul { padding-left: 20px; }
.cce-extra-block--list li { margin-bottom: 8px; color: var(--text-md); }

/* ════════════════════════════════════════════════════════════
   CTA SECTION
   Screenshot: dark navy gradient, large serif white title, 2 buttons
════════════════════════════════════════════════════════════ */
.cce-cta-section {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 55%, #1a3a5c 100%);
  padding: 96px 40px; text-align: center; position: relative; overflow: hidden;
}
.cce-cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(201,168,76,.05), transparent); }
.cce-cta-content { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cce-cta-title { font-family: var(--serif); font-size: 46px; font-weight: 700; color: #fff; margin: 0 0 14px; }
.cce-cta-sub   { color: rgba(255,255,255,.62); font-size: 15px; margin: 0 0 40px; }
.cce-cta-btns  { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════
   SINGLE COURSE — hide theme duplicate title/thumbnail only
════════════════════════════════════════════════════════════ */
body.cce-single-course .et_pb_post > .post-thumbnail,
body.cce-single-course .et_pb_post > .entry-title,
body.cce-single-course h1.entry-title,
body.cce-single-course .page-title        { display: none !important; }
body.cce-single-course .et_pb_post        { padding: 0 !important; }



/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media(max-width:1100px){
  .cce-grid--4 { grid-template-columns: repeat(3,1fr); }
  .cce-hero__content { grid-template-columns: 1fr; }
  .cce-course-card-sidebar { display: none !important; }
  .cce-instructor-card { grid-template-columns: 1fr; }
  .cce-fee-schedule-grid { grid-template-columns: 1fr; }
  .cce-glance-grid { grid-template-columns: repeat(3,1fr); }
  .cce-course-video-block { grid-template-columns: 1fr; }
}
@media(max-width:900px){
  .cce-grid--3 { grid-template-columns: repeat(2,1fr); }
  .cce-objectives-grid { grid-template-columns: repeat(2,1fr); }
  .cce-syllabus-grid { grid-template-columns: 1fr; }
  .cce-elig-grid { grid-template-columns: 1fr; }
  .cce-semesters-grid { grid-template-columns: repeat(2,1fr); }
  .cce-toppers-grid { grid-template-columns: repeat(3,1fr); }
  .cce-stats-grid { grid-template-columns: repeat(2,1fr); }
  .cce-stat-counter:nth-child(2) { border-right: none; }
  .cce-stat-counter { border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media(max-width:640px){
  .cce-grid--2,.cce-grid--3,.cce-grid--4 { grid-template-columns: 1fr; }
  .cce-hero__content { padding: 36px 20px; }
  .cce-hero__title { font-size: 26px; }
  .cce-section { padding: 52px 0; }
  .cce-section__inner { padding: 0 20px; }
  .cce-section__title { font-size: 28px; }
  .cce-glance-grid { grid-template-columns: repeat(2,1fr); }
  .cce-objectives-grid { grid-template-columns: 1fr; }
  .cce-toppers-grid { grid-template-columns: repeat(2,1fr); }
  .cce-semesters-grid { grid-template-columns: 1fr; }
  .cce-cta-title { font-size: 32px; }
  .cce-cta-section { padding: 68px 20px; }
  .cce-filter-bar__inner { flex-direction: column; align-items: stretch; }
  .cce-search-input { min-width: 0; width: 100%; }
  .cce-filter-actions { justify-content: flex-end; }
  .cce-extra-cols-2,.cce-extra-cols-3 { grid-template-columns: 1fr; }
}

/* Tab emoji icons */
.etab-icon {
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  font-size: 16px;
  display: inline;
}

/* ════════════════════════════════════════════════════════════
   AUTO-COLLAPSE: 2-col → 1-col when one side empty
════════════════════════════════════════════════════════════ */
.cce-fee-schedule-grid--single { grid-template-columns: 1fr !important; max-width: 600px; }

.cce-elig-grid--single         { grid-template-columns: 1fr !important; max-width: 640px; }

/* ════════════════════════════════════════════════════════════
   MOBILE — complete responsive overhaul
════════════════════════════════════════════════════════════ */

/* ── Mobile base ─────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Section padding */
  .cce-section { padding: 48px 0; }
  .cce-section__inner { padding: 0 18px; }
  .cce-section__title { font-size: 26px; line-height: 1.25; }
  .cce-section__rule  { margin-bottom: 28px; }

  /* Hero */
  .cce-hero { min-height: auto; }
  .cce-hero__content {
    grid-template-columns: 1fr;
    padding: 36px 18px;
    gap: 0;
  }
  .cce-hero__title    { font-size: 24px; }
  .cce-hero__pretitle { font-size: 15px; }
  .cce-hero__desc     { font-size: 14px; }
  .cce-hero__tags     { gap: 6px; }
  .cce-tag            { font-size: 11px; padding: 4px 10px; }
  .cce-hero__stats    { flex-wrap: wrap; }
  .cce-hero-stat      { flex: 1 1 40%; min-width: 120px; padding: 14px 10px; }
  .cce-hero-stat__val { font-size: 16px; }
  .cce-course-card-sidebar { display: none !important; }

  /* Glance — 2 col on mobile */
  .cce-glance-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cce-glance-card { padding: 20px 10px 16px; }
  .cce-glance-card__value { font-size: 15px; }
  .cce-glance-card__icon  { font-size: 22px; }
  .cce-glance-card__label { font-size: 9px; }

  /* Instructor */
  .cce-instructor-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
  .cce-instructor-card__left { flex-direction: column; }
  .cce-instructor-card__photo {
    width: 80px; height: 92px; font-size: 32px;
  }
  .cce-instructor-card__name  { font-size: 18px; }
  .cce-video-thumb { min-height: 160px; padding: 28px 16px; }

  /* Objectives — 1 col */
  .cce-objectives-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Syllabus — 1 col */
  .cce-syllabus-grid { grid-template-columns: 1fr; }

  /* Eligibility — 1 col */
  .cce-elig-grid { grid-template-columns: 1fr; gap: 14px; }
  .cce-elig-card { padding: 20px; }

  /* Fee + Schedule — stacked */
  .cce-fee-schedule-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cce-fee-row { padding: 11px 18px; font-size: 13px; }
  .cce-fee-row--total { font-size: 14px; }

  /* Schedule rows */
  .cce-schedule-row { gap: 12px; padding: 12px 0; }
  .cce-schedule-tag { font-size: 9px; min-width: 42px; padding: 4px 6px; }
  .cce-schedule-val { font-size: 16px; }

  /* Books */
  .cce-book-row { padding: 14px 16px; gap: 12px; }
  .cce-book-title { font-size: 14px; }

  /* Enrollment tabs */
  .cce-enroll-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cce-etab { padding: 10px 16px; font-size: 13px; white-space: nowrap; }

  /* Stats grid — 2 col */
  .cce-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cce-stat-counter { padding: 24px 12px; }
  .cce-stat-counter__count { font-size: 28px; }
  .cce-stat-counter__label { font-size: 10px; }
  .cce-stat-counter:nth-child(2) { border-right: none; }
  .cce-stat-counter:nth-child(1),
  .cce-stat-counter:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }

  /* Semester grid — 1 col */
  .cce-semesters-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cce-semester-card { padding: 18px 14px; }

  /* Toppers — 2 col */
  .cce-toppers-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cce-topper-card { padding: 20px 10px 14px; }
  .cce-topper-card__photo, .cce-topper-card__initials { width: 64px; height: 64px; }
  .cce-topper-card__initials { font-size: 24px; }
  .cce-topper-card__name { font-size: 13px; }

  /* CTA */
  .cce-cta-section { padding: 60px 18px; }
  .cce-cta-title { font-size: 28px; }
  .cce-cta-sub   { font-size: 14px; }
  .cce-cta-btns  { flex-direction: column; align-items: center; }
  .cce-btn--cta-solid,
  .cce-btn--cta-outline-dark { width: 100%; max-width: 320px; justify-content: center; }

  /* Course cards */
  .cce-card__title { font-size: 14px; }
  .cce-grid--3 { grid-template-columns: 1fr; }
  .cce-grid--2 { grid-template-columns: 1fr; }

  /* Filter bar */
  .cce-filter-bar { padding: 16px; }
  .cce-filter-bar__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cce-filter-group { width: 100%; }
  .cce-filter-select, .cce-search-input { width: 100%; }
  .cce-filter-checks { flex-direction: row; gap: 16px; }
  .cce-filter-actions { justify-content: flex-end; }

  /* mobile apply bar removed */
}

/* ── Very small screens ──────────────────────────────────── */
@media (max-width: 420px) {
  .cce-glance-grid { grid-template-columns: repeat(2, 1fr); }
  .cce-semesters-grid { grid-template-columns: 1fr; }
  .cce-toppers-grid   { grid-template-columns: 1fr; }
  .cce-hero-stat { flex: 1 1 100%; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.08); }
  .cce-hero__title { font-size: 22px; }
}

/* ════════════════════════════════════════════════════════════
   ADAPTIVE COLUMNS — all sections collapse when content sparse
   No empty columns ever appear on the page
════════════════════════════════════════════════════════════ */

/* ── Glance ─────────────────────────────────────────────── */
/* Default: 6-col. Fewer items → fewer columns */
.cce-glance-grid--4col { grid-template-columns: repeat(4, 1fr) !important; }
.cce-glance-grid--3col { grid-template-columns: repeat(3, 1fr) !important; }

/* ── Objectives ──────────────────────────────────────────── */
/* Default: 3-col */
.cce-objectives-grid--2col { grid-template-columns: repeat(2, 1fr) !important; }
.cce-objectives-grid--1col { grid-template-columns: 1fr !important; }

/* ── Syllabus ────────────────────────────────────────────── */
/* Default: 2-col */
.cce-syllabus-grid--1col { grid-template-columns: 1fr !important; }

/* ── Semesters ───────────────────────────────────────────── */
/* Default: 4-col */
.cce-semesters-grid--2col { grid-template-columns: repeat(2, 1fr) !important; }
.cce-semesters-grid--1col { grid-template-columns: 1fr !important; max-width: 320px; }

/* ── Toppers ─────────────────────────────────────────────── */
/* Default: 5-col */
.cce-toppers-grid--4col { grid-template-columns: repeat(4, 1fr) !important; }
.cce-toppers-grid--2col { grid-template-columns: repeat(2, 1fr) !important; }
.cce-toppers-grid--1col { grid-template-columns: 1fr !important; max-width: 260px; margin: 0 auto; }

/* ── Stats ───────────────────────────────────────────────── */
/* Default: 4-col */
.cce-stats-grid--2col { grid-template-columns: repeat(2, 1fr) !important; }
.cce-stats-grid--1col { grid-template-columns: 1fr !important; max-width: 320px; margin: 0 auto; }

/* ── Instructor card video block ─────────────────────────── */
.cce-course-video-block--no-meta { grid-template-columns: 1fr !important; }
.cce-course-video-block--no-meta .cce-course-video-thumb { 
  aspect-ratio: 16/9; 
  max-width: 860px; 
  margin: 0 auto; 
}

/* Absolutely ensure sidebar and its children never bleed outside on any screen */
.cce-course-card-sidebar { contain: layout; }
@media (max-width: 1100px) {
  .cce-course-card-sidebar,
  .cce-course-card-sidebar * { display: none !important; visibility: hidden !important; }
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY TAB FILTER — front page
═══════════════════════════════════════════════════════════════ */
.cce-cat-tabs {
  margin-bottom: 32px;
}
.cce-cat-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e8e3da;
}
.cce-cat-tab {
  padding: 8px 20px;
  border: 1.5px solid #e8e3da;
  border-radius: 24px;
  background: #fff;
  color: #4b5563;
  font-family: -apple-system, BlinkMacSystemFont, 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.cce-cat-tab:hover {
  border-color: #0d2b4e;
  color: #0d2b4e;
  background: #f0f5fb;
}
.cce-cat-tab.active {
  background: #0d2b4e;
  color: #fff;
  border-color: #0d2b4e;
}
.cce-cat-tabs__search {
  max-width: 360px;
}
.cce-cat-tabs__search .cce-search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid #e8e3da;
  border-radius: 8px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'DM Sans', sans-serif;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.cce-cat-tabs__search .cce-search-input:focus {
  border-color: #0d2b4e;
}

/* Mobile tabs */
@media (max-width: 640px) {
  .cce-cat-tabs__nav {
    gap: 6px;
  }
  .cce-cat-tab {
    padding: 7px 14px;
    font-size: 12px;
  }
  .cce-cat-tabs__search {
    max-width: 100%;
  }
}

/* ─── Category pill tabs (front page) ─── */
.cce-cat-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.cce-cat-pill {
  padding: 7px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  color: #4b5563;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  white-space: nowrap;
}
.cce-cat-pill:hover { border-color: #0d2b4e; color: #0d2b4e; background: #f0f5fb; }
.cce-cat-pill.active { background: #0d2b4e; color: #fff; border-color: #0d2b4e; }
@media(max-width:640px){ .cce-cat-pill{ font-size:12px; padding:6px 13px; } }

/* ── Credits badge on thumbnail (top-right) ────────────── */
.cce-card__credits-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(201,168,76,.95);
  color: #071e36;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 4px 9px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* ── Gradient overlay on thumbnail ─────────────────────── */
.cce-card__thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7,20,40,.92) 0%,
    rgba(7,20,40,.5)  45%,
    transparent       100%
  );
  pointer-events: none;
}

/* ── Timing pill badges ─────────────────────────────────── */
.cce-card__badges {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cce-timing-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.cce-timing-pill--upcoming { color: #1d4ed8; background: #eff6ff; }
.cce-timing-pill--ongoing  { color: #166534; background: #f0fdf4; }
.cce-timing-pill--past     { color: #6b7280; background: #f3f4f6; }

/* ════════════════════════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════════════════════════ */
.cce-tst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.cce-tst-card {
  background: #fff;
  border: 1px solid #e8e3da;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(13,43,78,.06);
  transition: box-shadow .2s;
}
.cce-tst-card:hover { box-shadow: 0 6px 24px rgba(13,43,78,.1); }
.cce-tst-card__stars {
  font-size: 18px;
  color: #f59e0b;
  letter-spacing: 2px;
  line-height: 1;
}
.cce-tst-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  flex: 1;
  font-style: italic;
  margin: 0;
}
.cce-tst-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.cce-tst-card__photo {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8e3da;
  flex-shrink: 0;
}
.cce-tst-card__initials {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #0d2b4e;
  color: #c9a84c;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cce-tst-card__name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.cce-tst-card__role {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

@media(max-width:900px) { .cce-tst-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px) { .cce-tst-grid { grid-template-columns: 1fr; } }

/* ── Venue / Map section ─────────────────────────────── */
.cce-venue-block { margin-top: 24px; }
.cce-venue-address {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: #334155; line-height: 1.6;
  margin-bottom: 20px; padding: 16px 20px;
  background: #f8fafc; border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.cce-venue-address svg { flex-shrink: 0; margin-top: 3px; stroke: #0d2b4e; }
.cce-venue-map { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(13,43,78,.1); }

/* ════════════════════════════════════════════════════════════
   STICKY ENROLL SIDEBAR — desktop only, right middle of page
════════════════════════════════════════════════════════════ */
.cce-sticky-enroll {
  display: none; /* hidden by default, shown by JS on desktop */
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
}
.cce-sticky-enroll__inner {
  background: #0d2b4e;
  border-radius: 14px 0 0 14px;
  padding: 18px 16px;
  box-shadow: -4px 0 24px rgba(13,43,78,.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 130px;
  max-width: 150px;
  text-align: center;
}
.cce-sticky-enroll__deadline {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-bottom: 10px;
  width: 100%;
}
.cce-sticky-enroll__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.cce-sticky-enroll__date {
  font-size: 13px;
  font-weight: 700;
  color: #c9a84c;
  line-height: 1.2;
}
.cce-sticky-enroll__countdown {
  font-size: 10px;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239,68,68,.15);
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 2px;
}
.cce-sticky-enroll__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #c9a84c;
  color: #071e36;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s, transform .15s;
  width: 100%;
}
.cce-sticky-enroll__btn svg { margin-top: 2px; }
.cce-sticky-enroll__btn:hover {
  background: #b8962a;
  transform: translateX(-2px);
}
/* Show only on desktop (≥1024px) */
@media (min-width: 1024px) {
  .cce-sticky-enroll { display: block; }
}
/* Scroll-triggered show via JS — starts hidden */
.cce-sticky-enroll.cce-sticky-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(100%);
  transition: opacity .3s, transform .3s;
}
.cce-sticky-enroll.cce-sticky-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
  transition: opacity .3s, transform .3s;
}

/* ── Text justification ─────────────────────────────── */
.cce-wrap p,
.cce-wrap li,
.cce-instructor-card__bio,
.cce-objective-item,
.cce-syllabus-item,
.cce-elig-list li,
.cce-book-item,
.cce-section__intro,
.cce-topper-card__note,
.cce-tst-card__text {
    text-align: justify;
    hyphens: auto;
}

@media (max-width: 768px) {
    /* All 2-column layouts → single column on mobile */
    .cce-elig-grid,
    .cce-semesters-grid--2col,
    .cce-toppers-grid--2col,
    .cce-stats-grid--2col,
    .cce-tst-grid,
    .cce-books-grid,
    .cce-glance-grid,
    .cce-fee-schedule-grid,
    .cce-fee-schedule-grid--single,
    .cce-instructor-card {
        grid-template-columns: 1fr !important;
    }
    /* Semester cards → 1 col */
    .cce-semesters-grid {
        grid-template-columns: 1fr !important;
    }
    /* Instructor card flex → column */
    .cce-instructor-card {
        flex-direction: column !important;
    }
    .cce-instructor-card__video {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ── Semester selector ──────────────────────────────── */
.cce-sem-selector {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cce-sem-selector__label {
  font-size: 13px; font-weight: 700; color: #0d2b4e;
  white-space: nowrap;
}
.cce-sem-selector__select {
  height: 42px; padding: 0 36px 0 14px;
  border: 2px solid #0d2b4e; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: #0d2b4e; background: #fff;
  outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230d2b4e' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  min-width: 220px;
}
.cce-sem-selector__select:focus { box-shadow: 0 0 0 3px rgba(13,43,78,.12); }

/* ── Semester Toppers ───────────────────────────────── */
.cce-sem-toppers {
  margin-top: 32px;
  background: linear-gradient(135deg, #0d2b4e 0%, #1a3a5c 100%);
  border-radius: 20px;
  padding: 32px 28px 28px;
  position: relative;
  overflow: visible;
}
/* Adjust text colors for dark background */
.cce-sem-toppers .cce-sem-toppers__title { color: #fff; }
.cce-sem-toppers .cce-sem-toppers__sem   { color: rgba(255,255,255,.55); }
.cce-sem-toppers .cce-sem-toppers__hd    { border-bottom-color: rgba(255,255,255,.12); }
.cce-sem-toppers .cce-sem-toppers__total { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.7); }

.cce-sem-toppers__hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
  padding-bottom: 14px; border-bottom: 1.5px solid #e8e3da;
}
.cce-sem-toppers__title {
  font-size: 18px; font-weight: 700; color: #0d2b4e;
  display: flex; align-items: center; gap: 10px;
}
.cce-sem-toppers__icon { font-size: 22px; }
.cce-sem-toppers__sem  { font-size: 14px; font-weight: 500; color: #64748b; }
.cce-sem-toppers__count { display: flex; align-items: center; gap: 10px; }
.cce-sem-toppers__certified {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f0fdf4; color: #166534;
  border: 1px solid #bbf7d0; border-radius: 20px;
  font-size: 12px; font-weight: 700; padding: 4px 12px;
}
.cce-sem-toppers__total {
  background: #f8fafc; color: #64748b;
  border: 1px solid #e2e8f0; border-radius: 20px;
  font-size: 12px; font-weight: 600; padding: 4px 12px;
}

.cce-sem-toppers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  overflow: visible;
  padding-top: 18px;
}

/* Topper card */
.cce-topper-card {
  background: #fff;
  border: 1px solid #e8e3da;
  border-radius: 16px;
  padding: 32px 16px 20px;
  text-align: center;
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  overflow: visible;
  box-shadow: 0 2px 12px rgba(13,43,78,.07);
  transition: box-shadow .2s, transform .2s;
}
.cce-topper-card:hover {
  box-shadow: 0 8px 32px rgba(13,43,78,.14);
  transform: translateY(-4px);
}
.cce-topper-card--top {
  border-color: #f0d080;
  background: linear-gradient(160deg, #fffdf0 0%, #fff 60%);
}
.cce-topper-card--top:nth-child(1) { border-color: #FFD700; }
.cce-topper-card--top:nth-child(2) { border-color: #C0C0C0; }
.cce-topper-card--top:nth-child(3) { border-color: #CD7F32; }

/* Medal emoji above card */
.cce-topper-card__medal {
  position: absolute; top: -20px; left: 50%;
  transform: translateX(-50%);
  font-size: 28px; line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}

/* Rank number badge */
.cce-topper-card__rank {
  position: absolute; top: 8px; right: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  z-index: 1;
}

/* Photo */
.cce-topper-card__photo-wrap {
  position: relative; display: inline-block; margin-bottom: 4px;
}
.cce-topper-card__photo {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 3px solid #e8e3da;
  display: block;
}
.cce-topper-card__photo--init {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg,#0d2b4e,#1a3a5c);
  color: #c9a84c; font-size: 32px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #e8e3da;
}
.cce-topper-card--top .cce-topper-card__photo { border-color: #FFD700; }
.cce-topper-card--top:nth-child(2) .cce-topper-card__photo { border-color: #C0C0C0; }
.cce-topper-card--top:nth-child(3) .cce-topper-card__photo { border-color: #CD7F32; }

/* Certified tick on photo */
.cce-topper-card__cert-badge {
  position: absolute; bottom: 2px; right: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #16a34a; color: #fff;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* Text fields */
.cce-topper-card__name {
  font-size: 14px; font-weight: 800;
  color: #0f172a; text-transform: uppercase;
  letter-spacing: .04em; margin-top: 4px;
}
.cce-topper-card__profession {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #b33a28;
  background: #fff5f5; padding: 3px 10px; border-radius: 20px;
}
.cce-topper-card__college {
  font-size: 12px; color: #64748b; line-height: 1.4;
}
.cce-topper-card__score {
  font-size: 13px; font-weight: 800;
  color: #0d2b4e; background: #eff6ff;
  padding: 3px 12px; border-radius: 20px;
  margin-top: 2px; border: 1px solid #bfdbfe;
}

@media(max-width:1024px){ .cce-sem-toppers__grid{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:768px) { .cce-sem-toppers__grid{ grid-template-columns:repeat(2,1fr); gap:14px; } }
@media(max-width:480px) {
  .cce-sem-toppers__grid{ grid-template-columns:1fr 1fr; gap:12px; }
  .cce-sem-toppers__hd{ flex-direction:column; align-items:flex-start; }
  .cce-sem-selector__select{ min-width:0; width:100%; }
}

/* ── Semester Runs section — dark background text fixes ── */
.cce-section--enroll .cce-section__label   { color: #c9a84c !important; }
.cce-section--enroll .cce-section__title   { color: #ffffff !important; }
.cce-section--enroll .cce-section__rule    { background: #c9a84c !important; }
.cce-section--enroll .cce-semester-card    { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); }
.cce-section--enroll .cce-semester-card__label  { color: #fff !important; }
.cce-section--enroll .cce-semester-card__dates  { color: rgba(255,255,255,.6) !important; }
.cce-section--enroll .cce-semester-card__enrolled { color: rgba(255,255,255,.7) !important; }
.cce-section--enroll .cce-semester-card--current { border-color: #c9a84c !important; }
.cce-section--enroll .cce-semester-card__current-badge { background: #c9a84c; color: #071e36; }
.cce-section--enroll .cce-sem-selector__label { color: #fff; }
.cce-section--enroll .cce-sem-selector__select { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
/* Remove double dark bg from toppers sub-section */
.cce-section--enroll .cce-sem-toppers {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}

/* ── Semester info bar — no box, clean horizontal ─── */
.cce-sem-infobar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cce-sem-infobar__left {
  display: flex; flex-direction: column; gap: 6px;
}
.cce-sem-infobar__current {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase;
  background: #c9a84c; color: #071e36;
  padding: 3px 10px; border-radius: 20px;
  width: fit-content;
}
.cce-sem-infobar__label {
  font-size: 24px; font-weight: 700;
  color: #fff; line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, 'DM Sans', sans-serif;
}
.cce-sem-infobar__dates {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: rgba(255,255,255,.55);
}
.cce-sem-infobar__right {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.cce-sem-infobar__pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 6px 14px; border-radius: 20px;
}
.cce-sem-infobar__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px;
}
.cce-sem-infobar__status.st--closed  { background: rgba(107,114,128,.2); color: rgba(255,255,255,.6); }
.cce-sem-infobar__status.st--open    { background: rgba(16,185,129,.15); color: #6ee7b7; }
.cce-sem-infobar__status.st--ongoing { background: rgba(59,130,246,.15); color: #93c5fd; }
.cce-sem-infobar__status.st--upcoming{ background: rgba(201,168,76,.15);  color: #fbbf24; }
.cce-sem-infobar__status .cce-sem-dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block;
}
.cce-sem-infobar__btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #c9a84c; color: #071e36;
  padding: 8px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 800;
  text-decoration: none; transition: background .15s;
}
.cce-sem-infobar__btn:hover { background: #b8962a; }
@media(max-width:640px){
  .cce-sem-infobar { flex-direction: column; align-items: flex-start; }
  .cce-sem-infobar__label { font-size: 20px; }
}

/* ════════════════════════════════════════════════════════════
   MOBILE — Single course page
════════════════════════════════════════════════════════════ */
@media(max-width:768px){
  /* Hero */
  .cce-hero { padding: 40px 0 32px; }
  .cce-hero__inner { flex-direction: column; gap: 24px; padding: 0 16px; }
  .cce-hero__content { max-width: 100%; }
  .cce-hero__title { font-size: 26px; }
  .cce-hero__desc  { font-size: 14px; }
  .cce-course-card-sidebar { width: 100%; max-width: 100%; position: static; }

  /* Section inner padding */
  .cce-section__inner { padding: 0 16px; }
  .cce-section { padding: 40px 0; }
  .cce-section__title { font-size: 22px; }

  /* Instructor */
  .cce-instructor-card { flex-direction: column; padding: 20px; }
  .cce-instructor-card__photo { width: 80px; height: 96px; }
  .cce-instructor-card__video { min-width: 0; max-width: 100%; width: 100%; }

  /* Fee table */
  .cce-fee-table th, .cce-fee-table td { padding: 10px 8px; font-size: 13px; }

  /* Glance grid */
  .cce-glance-grid { grid-template-columns: repeat(2,1fr) !important; gap: 12px; }
  .cce-glance-item { padding: 14px 12px; }

  /* Eligibility */
  .cce-elig-grid { grid-template-columns: 1fr !important; gap: 14px; }

  /* CTA */
  .cce-cta-btns { flex-direction: column; align-items: center; }
  .cce-btn--cta-solid, .cce-btn--cta-outline-dark { width: 100%; max-width: 320px; }

  /* Sticky sidebar — hide on mobile */
  .cce-sticky-enroll { display: none !important; }

  /* Semester toppers */
  .cce-sem-toppers { padding: 20px 16px; }
  .cce-sem-infobar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cce-sem-infobar__label { font-size: 18px; }
  .cce-sem-infobar__right { flex-wrap: wrap; }

  /* Books */
  .cce-books-grid { grid-template-columns: 1fr !important; }

  /* Testimonials */
  .cce-tst-grid { grid-template-columns: 1fr !important; }
}

@media(max-width:480px){
  .cce-hero__title { font-size: 22px; }
  .cce-section__inner { padding: 0 12px; }
  .cce-glance-grid { grid-template-columns: 1fr 1fr !important; }
  .cce-sem-toppers__grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .cce-topper-card { padding: 26px 10px 14px; }
  .cce-topper-card__photo, .cce-topper-card__photo--init { width: 60px; height: 60px; }
  .cce-topper-card__medal { font-size: 22px; top: -16px; }
}
