/* ==========================================================================
   Hartron Ambala City — Main Stylesheet
   style.css
   --------------------------------------------------------------------------
   Contents:
     1.  Design tokens (custom properties)
     2.  Reset & base typography
     3.  Layout helpers (container, grid, section)
     4.  Buttons & utility links
     5.  Info bar (mi-bar)
     6.  Navbar + mobile nav
     7.  Hero (homepage)
     8.  Page hero (interior pages) + breadcrumb
     9.  Section header / eyebrow
     10. Course grid & course cards
     11. Category filter buttons + search box
     12. Features / why-us blocks
     13. Stats band
     14. CTA band
     15. Leadership grid & leader cards (team)
     16. Gallery grid & gallery items
     17. Placements grid & placement cards
     18. Reviews / testimonials
     19. Footer + back-to-top
     20. Responsive breakpoints
   ========================================================================== */

/* 1. Design tokens -------------------------------------------------------- */
:root {
  /* Brand colours */
  --primary:          #2a5298;
  --primary-color:    #2a5298;
  --secondary:        #d17345;
  --white:            #ffffff;

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
  --brand-gradient:   linear-gradient(135deg, #2a5298 0%, #d17345 100%);
  --sunset-gradient:  linear-gradient(135deg, #d17345 0%, #e9a06b 100%);

  /* Text */
  --text-main:   #0b1729;
  --text-sub:    #334155;
  --text-muted:  #64748b;
  --text-light:  #cbd5e1;

  /* Backgrounds */
  --light-bg:     #f8fafc;
  --dark-bg:      #0b1729;
  --border-light: #e2e8f0;

  /* Radius */
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  30px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(11,23,41,0.08), 0 1px 2px rgba(11,23,41,0.04);
  --shadow-md:    0 4px 16px rgba(11,23,41,0.08), 0 2px 6px rgba(11,23,41,0.05);
  --shadow-lg:    0 12px 32px rgba(11,23,41,0.12), 0 4px 12px rgba(11,23,41,0.08);
  --shadow-xl:    0 24px 64px rgba(11,23,41,0.16), 0 8px 24px rgba(11,23,41,0.10);
  --shadow-brand: 0 8px 24px rgba(42,82,152,0.30);

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 2. Reset & base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: var(--primary); text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--secondary); }
ul  { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: var(--text-main); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p  { color: var(--text-sub); }

.material-icons,
.material-symbols-outlined {
  vertical-align: middle;
  user-select: none;
}

/* 3. Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 4. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-out), background .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--white); }
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--border-light);
}
.btn-secondary:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--primary); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: var(--white); }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-out);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary); }

.grad-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 5. Info bar (mi-bar) ---------------------------------------------------- */
.mi-bar {
  background: var(--dark-bg);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 0.5rem 0;
  overflow: hidden;
}
.mi-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}
.mi-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.mi-item .material-icons { font-size: 1rem; color: var(--secondary); }
.mi-item a { color: var(--white); }
.mi-item a:hover { color: var(--secondary); }

/* 6. Navbar --------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow .3s var(--ease-out);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.nav-logo { height: 44px; width: auto; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-text strong { font-size: 1.15rem; color: var(--primary); }
.nav-brand-text small { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.5px; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-sub);
  text-decoration: none;
  transition: background .2s, color .2s;
  position: relative;
}
.nav-link:hover { color: var(--primary); background: rgba(42,82,152,0.06); }
.nav-link.is-active { color: var(--primary); font-weight: 600; }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  background: var(--primary-gradient);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-brand);
  transition: transform .25s var(--ease-spring);
}
.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: transform .3s var(--ease-spring), opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 7. Hero (homepage) ------------------------------------------------------ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #f0f5ff 0%, #faf7f2 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  overflow: hidden;
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(42,82,152,0.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.hero-left h1 { margin-bottom: 1.25rem; }
.hero-left h1 span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-left > p { color: var(--text-muted); font-size: 1.08rem; max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stats > div h3 { font-size: 1.8rem; color: var(--primary); }
.hero-stats > div h3 span { color: var(--primary); }
.hero-stats > div p { font-size: 0.85rem; color: var(--text-muted); }

.hero-right { position: relative; }
.image-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
}
.image-container img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-card {
  position: absolute;
  bottom: -1.5rem; left: -1.5rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 280px;
}
.hfc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hfc-icon .material-icons { color: var(--white); font-size: 1.4rem; }
.hfc-text strong { display: block; font-size: 0.92rem; }
.hfc-text span { font-size: 0.78rem; color: var(--text-muted); }

/* 8. Page hero (interior) + breadcrumb ------------------------------------ */
.page-hero {
  background: linear-gradient(135deg, #f0f5ff 0%, #faf7f2 100%);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(42,82,152,0.06) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}
.page-hero .container { position: relative; max-width: 760px; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero h1 span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero > .container > p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* About-specific hero layout */
.about-hero .container {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  text-align: left;
}
.about-hero-text h1 { margin-bottom: 1.25rem; }
.about-hero-text > p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.98rem; line-height: 1.8; }
.about-hero-visual { position: relative; }
.about-hero-visual img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); aspect-ratio: 4/3; object-fit: cover; }
.about-hero-visual .hero-float-card { bottom: -1.25rem; left: -1.25rem; }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-light); }
.breadcrumb .current { color: var(--primary); font-weight: 600; }

/* 9. Section header / eyebrow -------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header h2 span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-header p { color: var(--text-muted); }

/* 10. Course grid & cards ------------------------------------------------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}
.course-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--light-bg); }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.course-card:hover .course-img img { transform: scale(1.05); }
.course-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(11,23,41,0.75);
  color: var(--white);
  font-size: 0.7rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.course-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.course-content h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.course-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; flex: 1; }
.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: gap .2s var(--ease-spring);
}
.learn-more-link:hover { gap: 0.6rem; color: var(--primary); }

/* Course meta (used on courses.php) */
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.course-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.course-meta .material-icons { font-size: 1rem; color: var(--primary); }
.course-fee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.course-fee .price { font-size: 1.25rem; font-weight: 700; color: var(--primary); }

/* 11. Category filter buttons + search ----------------------------------- */
.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-sub);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease-out);
  white-space: nowrap;
}
.category-btn:hover { border-color: var(--primary); color: var(--primary); }
.category-btn.active,
.category-btn.is-active {
  background: var(--primary-gradient);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}
.gallery-filter .material-icons { font-size: 1.05rem; }

.course-search {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.course-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(42,82,152,0.10); }
.course-search .material-icons { color: var(--text-muted); }
.course-search input {
  flex: 1; border: none; outline: none;
  font-size: 0.9rem; background: transparent;
  font-family: inherit;
}

/* 12. Features / why-us --------------------------------------------------- */
.features-text h2 { margin-bottom: 2rem; }
.features-text h2 span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.feature-item h4 { margin-bottom: 0.5rem; }
.features-image {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

/* 13. Stats band ---------------------------------------------------------- */
.stats-band {
  background: var(--dark-bg);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  position: relative;
  overflow: hidden;
}
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.stats-band::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: var(--primary-gradient); opacity: 0.08;
}
.stat { position: relative; z-index: 1; }
.stat h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--white); margin-bottom: 0.25rem; }
.stat h3 span { color: var(--white); }
.stat p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* 14. CTA band ------------------------------------------------------------ */
.cta-band {
  background: var(--primary-gradient);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; }

/* 15. Leadership grid & leader cards (team) ------------------------------ */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.leader-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
  text-align: center;
}
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.leader-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--light-bg);
}
.leader-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s var(--ease-out); }
.leader-card:hover .leader-img img { transform: scale(1.05); }
.leader-img.image-error {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f5ff 0%, #faf7f2 100%);
}
.leader-img.image-error::after {
  content: 'person';
  font-family: 'Material Icons';
  font-size: 4rem;
  color: var(--text-light);
}
.leader-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f0f5ff 0%, #faf7f2 100%);
}
.leader-img-placeholder .material-icons { font-size: 4rem; color: var(--text-light); }
.leader-info { padding: 1.5rem; }
.leader-info h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.leader-info .designation {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

/* 16. Gallery grid & items ----------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--light-bg);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,23,41,0.8) 100%);
  display: flex; align-items: flex-end; padding: 1.25rem;
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: var(--white); font-size: 1rem; }
.gallery-overlay p { color: rgba(255,255,255,0.8); font-size: 0.8rem; }
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.gallery-empty .material-icons { font-size: 3.5rem; color: var(--text-light); }

/* Gallery filter row reuse .category-btn */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* 17. Placements grid & cards -------------------------------------------- */
.placement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}
.placement-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.placement-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.placement-image {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f5ff 0%, #faf7f2 100%);
}
.placement-image img { width: 100%; height: 100%; object-fit: cover; }
.placement-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.placement-placeholder .material-icons { font-size: 3.5rem; color: var(--text-light); }
.placement-content { padding: 1.25rem; text-align: center; flex: 1; }
.placement-content h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.placement-designation { color: var(--primary); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; }
.placement-company {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--light-bg);
  color: var(--text-sub);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.placement-company .material-icons { font-size: 0.95rem; color: var(--secondary); }
.placement-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.placement-empty .material-icons { font-size: 3.5rem; color: var(--text-light); }

/* 18. Reviews / testimonials --------------------------------------------- */
.reviews-section { background: var(--white); }
.reviews-tabs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.review-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-sub);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease-out);
}
.review-tab:hover { border-color: var(--primary); color: var(--primary); }
.review-tab.is-active { background: var(--primary-gradient); color: var(--white); border-color: transparent; box-shadow: var(--shadow-brand); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review-card.hidden { display: none; }
.review-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.review-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ig-avatar { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.student-avatar { background: var(--primary-gradient); }
.review-avatar .material-icons { color: var(--white); font-size: 1.5rem; }
.review-author { flex: 1; }
.review-name { font-weight: 700; font-size: 0.95rem; }
.review-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-muted); flex-wrap: wrap; }
.review-source { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 600; }
.ig-source { color: #dc2743; }
.student-source { color: var(--primary); }
.review-date { color: var(--text-muted); }
.review-stars { color: #fbbf24; letter-spacing: 1px; font-size: 0.9rem; flex-shrink: 0; }
.review-text { color: var(--text-sub); font-size: 0.92rem; line-height: 1.7; flex: 1; margin-bottom: 1rem; }
.review-footer { display: flex; gap: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.review-like { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; color: var(--text-muted); }
.review-like .material-icons { font-size: 1rem; }

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.reviews-summary-score { display: flex; flex-direction: column; gap: 0.25rem; }
.summary-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.summary-stars { color: #fbbf24; font-size: 1.2rem; letter-spacing: 2px; }
.summary-based-on { font-size: 0.85rem; color: var(--text-muted); }
.reviews-summary-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* 19. Footer + back-to-top ----------------------------------------------- */
.footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,0.7);
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem;
}
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1.25rem; }
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem;
  color: var(--white); text-decoration: none;
}
.footer-logo img { height: 40px; width: auto; }
.footer-logo span strong { display: block; font-size: 1.1rem; color: var(--white); }
.footer-logo span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.footer-about { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background .2s, transform .2s var(--ease-spring);
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); color: var(--white); }
.footer-links li, .footer-contact li { margin-bottom: 0.65rem; font-size: 0.88rem; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--secondary); }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact .material-icons { color: var(--secondary); font-size: 1.15rem; flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom p { color: rgba(255,255,255,0.5); }

.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary-gradient);
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease-spring);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* 20. Responsive --------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-container,
  .about-hero .container { grid-template-columns: 1fr; }
  .hero-right { order: -1; max-width: 500px; }
  .about-hero-visual { max-width: 500px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-120%);
    transition: transform .3s var(--ease-out);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 0.85rem 1rem; border-radius: 8px; }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: rgba(42,82,152,0.06); }
  .nav-cta { margin: 0.5rem 0 0; justify-content: center; }
  .nav-toggle { display: flex; }

  .mi-bar-inner { gap: 1rem; font-size: 0.75rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .hero-float-card { bottom: -1rem; left: 0; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .reviews-summary { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { justify-content: center; }
  .hero-stats { gap: 1.25rem; }
  .hero-stats > div h3 { font-size: 1.4rem; }
  .back-to-top { bottom: 1rem; right: 1rem; width: 42px; height: 42px; }
}


        /*
         * Branded fallback shown when a course image from the
         * API fails to load
         */

        .course-img-fallback {
            height: 100%;
            min-height: 190px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: .4rem;
            background: linear-gradient(135deg, #0b1729 0%, #1d4ed8 100%);
        }

        .course-img-fallback .initials {
            font-size: 2.4rem;
            font-weight: 800;
            color: #fff;
            letter-spacing: .14em;
            line-height: 1;
        }

        .course-img-fallback .material-icons {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, .85);
        }

        /*
         * =====================================================
         *  Course Detail styles (cd- namespace so nothing
         *  conflicts with the main theme stylesheet)
         * =====================================================
         */

        html {
            scroll-behavior: smooth;
        }


        /* ---------- Hero ---------- */

        .cd-hero {
            position: relative;
            overflow: hidden;
            background:
                radial-gradient(circle at 85% 15%, rgba(59, 130, 246, .25), transparent 45%),
                linear-gradient(135deg, #0b1729 0%, #16264a 55%, #1d4ed8 140%);
            color: #fff;
            text-align: center;
            padding: 4.5rem 0 3.6rem;
        }

        .cd-hero .eyebrow {
            display: inline-flex;
            align-items: center;
            justify-content: center !important;
            gap: .5rem;
            background: rgba(29, 78, 216, .25);
            border: 1px solid rgba(147, 197, 253, .4);
            color: #bfdbfe;
            padding: .45rem 1.1rem;
            border-radius: 999px;
            font-size: .78rem;
            font-weight: 700;
            letter-spacing: .12em;
            text-transform: uppercase;
        }

        .cd-hero h1 {
            color: #fff;
            margin: 1.1rem auto .8rem;
            max-width: 820px;
            line-height: 1.25;
            font-size: clamp(1.7rem, 4vw, 2.6rem);
            font-weight: 800;
        }

        .cd-hero h1 span {
            color: #fbbf24;
        }

        .cd-hero p.cd-hero-sub {
            color: #cbd5e1;
            max-width: 640px;
            margin: 0 auto;
            line-height: 1.7;
            font-size: .98rem;
        }

        .cd-hero .breadcrumb {
            justify-content: center;
            color: #94a3b8;
            margin-top: 1.1rem;
            flex-wrap: wrap;
        }

        .cd-hero .breadcrumb a {
            color: #bfdbfe;
        }

        .cd-hero .breadcrumb .current {
            color: #fff;
        }

        .cd-hero .breadcrumb .sep {
            color: #475569;
        }


        /* ---------- Hero pills ---------- */

        .cd-pills {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: .6rem;
            margin-top: 1.4rem;
        }

        .cd-pill {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            background: rgba(255, 255, 255, .1);
            border: 1px solid rgba(255, 255, 255, .25);
            color: #e2e8f0;
            padding: .5rem 1.05rem;
            border-radius: 999px;
            font-size: .84rem;
            font-weight: 600;
            backdrop-filter: blur(6px);
        }

        .cd-pill .material-icons {
            font-size: 1rem;
            color: #93c5fd;
        }


        /* ---------- Hero actions ---------- */

        .cd-hero-actions {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: .9rem;
            margin-top: 1.6rem;
        }

        .cd-btn-outline {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            padding: .8rem 1.6rem;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, .45);
            color: #fff;
            font-weight: 600;
            font-size: .92rem;
            background: transparent;
            transition: background .25s ease, transform .25s ease;
            text-decoration: none;
        }

        .cd-btn-outline:hover {
            background: rgba(255, 255, 255, .14);
            transform: translateY(-2px);
            color: #fff;
        }


        /* ---------- Back link ---------- */

        .cd-back {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            color: #1d4ed8;
            font-weight: 600;
            font-size: .9rem;
            margin: 1.5rem 0 0;
            text-decoration: none;
        }

        .cd-back:hover {
            text-decoration: underline;
        }


        /* ---------- Layout ---------- */

        .cd-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 350px;
            gap: 1.8rem;
            align-items: start;
        }

        @media (max-width: 992px) {
            .cd-layout {
                grid-template-columns: 1fr;
            }
        }


        /* ---------- Banner ---------- */

        .cd-banner {
            position: relative;
            border-radius: 18px;
            overflow: hidden;
            height: 300px;
            background: linear-gradient(135deg, #0b1729 0%, #1d4ed8 100%);
            box-shadow: 0 12px 30px rgba(11, 23, 41, .16);
        }

        .cd-banner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .cd-banner-fallback {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: .5rem;
            background:
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, .4), transparent 50%),
                linear-gradient(135deg, #0b1729 0%, #16264a 60%, #1d4ed8 140%);
        }

        .cd-banner-fallback .initials {
            font-size: 4rem;
            font-weight: 800;
            color: #fff;
            letter-spacing: .18em;
            line-height: 1;
        }

        .cd-banner-fallback .material-icons {
            color: rgba(255, 255, 255, .75);
            font-size: 1.3rem;
        }

        .cd-banner-badge {
            position: absolute;
            top: 14px;
            right: 14px;
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            background: #16a34a;
            color: #fff;
            padding: .45rem .95rem;
            border-radius: 999px;
            font-size: .78rem;
            font-weight: 700;
            box-shadow: 0 6px 16px rgba(22, 163, 74, .4);
        }

        .cd-banner-tag {
            position: absolute;
            bottom: 14px;
            left: 14px;
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            background: rgba(11, 23, 41, .88);
            border: 1px solid rgba(255, 255, 255, .25);
            color: #fff;
            padding: .45rem 1rem;
            border-radius: 999px;
            font-size: .8rem;
            font-weight: 600;
            backdrop-filter: blur(6px);
        }

        .cd-banner-tag .material-icons {
            font-size: .95rem;
            color: #4ade80;
        }


        /* ---------- Key facts strip ---------- */

        .cd-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            margin-top: 1.4rem;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
        }

        .cd-stat {
            padding: 1.15rem .9rem;
            text-align: center;
            border-right: 1px solid #eef2f7;
        }

        .cd-stat:last-child {
            border-right: none;
        }

        .cd-stat .material-icons {
            font-size: 1.4rem;
            color: #1d4ed8;
        }

        .cd-stat-value {
            font-size: 1rem;
            font-weight: 800;
            color: #0b1729;
            margin: .4rem 0 .15rem;
            line-height: 1.3;
        }

        .cd-stat-label {
            font-size: .72rem;
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: #64748b;
        }


        /* ---------- Cards ---------- */

        .cd-card {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 1.8rem;
            margin-top: 1.8rem;
            box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
        }

        .cd-card-title {
            display: flex;
            align-items: center;
            gap: .65rem;
            font-size: 1.25rem;
            font-weight: 800;
            color: #0b1729;
            margin: 0 0 1.1rem;
        }

        .cd-card-title .material-icons {
            color: #1d4ed8;
            background: #eff6ff;
            border: 1px solid #dbeafe;
            padding: .5rem;
            border-radius: 10px;
            font-size: 1.25rem;
        }


        /* ---------- Overview ---------- */

        .cd-overview p {
            color: #475569;
            line-height: 1.85;
            margin: 0 0 1rem;
            font-size: .97rem;
        }

        .cd-overview-highlight {
            background: #f0f7ff;
            border-left: 4px solid #1d4ed8;
            padding: 1rem 1.2rem;
            border-radius: 0 10px 10px 0;
            margin-top: 1.1rem;
            color: #1e3a8a;
            font-weight: 600;
            font-size: .93rem;
            line-height: 1.7;
        }


        /* ---------- Why choose ---------- */

        .cd-why-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
        }

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

        @media (max-width: 600px) {
            .cd-why-grid {
                grid-template-columns: 1fr;
            }
        }

        .cd-why {
            display: flex;
            gap: .9rem;
            padding: 1rem;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
        }

        .cd-why-icon {
            flex: none;
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: linear-gradient(135deg, #1d4ed8, #3b82f6);
            color: #fff;
            display: grid;
            place-items: center;
        }

        .cd-why-icon .material-icons {
            font-size: 1.25rem;
        }

        .cd-why h4 {
            font-size: .95rem;
            font-weight: 700;
            color: #0b1729;
            margin: 0 0 .3rem;
        }

        .cd-why p {
            font-size: .84rem;
            color: #64748b;
            line-height: 1.55;
            margin: 0;
        }


        /* ---------- Curriculum ---------- */

        .cd-module {
            display: flex;
            gap: 1rem;
            padding: 1.05rem 1.1rem;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            margin-bottom: .75rem;
            background: #fff;
            transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
        }

        .cd-module:hover {
            border-color: #93c5fd;
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(29, 78, 216, .08);
        }

        .cd-module-num {
            flex: none;
            width: 42px;
            height: 42px;
            border-radius: 10px;
            background: #eff6ff;
            border: 1px solid #dbeafe;
            color: #1d4ed8;
            font-weight: 800;
            font-size: .88rem;
            display: grid;
            place-items: center;
        }

        .cd-module h4 {
            font-size: .97rem;
            font-weight: 700;
            color: #0b1729;
            margin: .2rem 0 .3rem;
        }

        .cd-module-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            font-size: .78rem;
            color: #64748b;
        }

        .cd-module-meta span {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
        }

        .cd-module-meta .material-icons {
            font-size: .95rem;
            color: #1d4ed8;
        }

        .cd-syllabus-note {
            display: flex;
            align-items: flex-start;
            gap: .55rem;
            background: #fffbeb;
            border: 1px solid #fde68a;
            color: #92400e;
            padding: .9rem 1.1rem;
            border-radius: 10px;
            font-size: .85rem;
            line-height: 1.6;
            margin-top: 1.1rem;
        }

        .cd-syllabus-note .material-icons {
            font-size: 1.1rem;
            flex: none;
        }


        /* ---------- Careers ---------- */

        .cd-career-tags {
            display: flex;
            flex-wrap: wrap;
            gap: .6rem;
        }

        .cd-career-tag {
            display: inline-flex;
            align-items: center;
            gap: .4rem;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            color: #166534;
            padding: .5rem 1.05rem;
            border-radius: 999px;
            font-size: .85rem;
            font-weight: 600;
        }

        .cd-career-tag .material-icons {
            font-size: .95rem;
        }

        .cd-career-note {
            display: flex;
            align-items: flex-start;
            gap: .55rem;
            background: #eff6ff;
            border: 1px solid #bfdbfe;
            color: #1e40af;
            padding: .9rem 1.1rem;
            border-radius: 10px;
            font-size: .85rem;
            line-height: 1.6;
            margin-top: 1.1rem;
        }

        .cd-career-note .material-icons {
            font-size: 1.1rem;
            flex: none;
        }


        /* ---------- Sidebar ---------- */

        .cd-sidebar {
            position: sticky;
            top: 100px;
        }

        @media (max-width: 992px) {
            .cd-sidebar {
                position: static;
            }
        }

        .cd-btn-light {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: .45rem;
            width: 100%;
            background: rgba(255, 255, 255, .12);
            border: 1px solid rgba(255, 255, 255, .38);
            color: #fff;
            padding: .78rem 1rem;
            border-radius: 10px;
            font-weight: 600;
            font-size: .9rem;
            text-decoration: none;
            transition: background .25s ease;
        }

        .cd-btn-light:hover {
            background: rgba(255, 255, 255, .22);
            color: #fff;
        }

        /* ---------- Enquiry Card ---------- */

.cd-enquiry-card {
    background:
        linear-gradient(
            160deg,
            #0b1729 0%,
            #16264a 60%,
            #1d4ed8 140%
        );

    border-radius: 16px;
    padding: 1.7rem 1.5rem;
    color: #fff;
    text-align: center;
    box-shadow: 0 14px 30px rgba(11, 23, 41, .18);
}

.cd-enquiry-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.cd-enquiry-icon .material-icons {
    font-size: 1.6rem;
    color: #93c5fd;
}

.cd-enquiry-card h3 {
    margin: 0 0 .65rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.cd-enquiry-card p {
    margin: 0;
    color: #cbd5e1;
    font-size: .88rem;
    line-height: 1.65;
}

.cd-enquiry-actions {
    margin-top: 1.25rem;
    display: grid;
    gap: .7rem;
}

.cd-enquiry-actions .btn,
.cd-enquiry-actions .btn-primary {
    width: 100%;
    justify-content: center;
}
        .cd-facts {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 1.5rem;
            margin-top: 1.4rem;
            box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
        }

        .cd-facts h3 {
            display: flex;
            align-items: center;
            gap: .5rem;
            font-size: 1.05rem;
            font-weight: 800;
            color: #0b1729;
            margin: 0 0 .9rem;
        }

        .cd-facts h3 .material-icons {
            color: #1d4ed8;
            font-size: 1.2rem;
        }

        .cd-fact-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .cd-fact {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            padding: .68rem 0;
            border-bottom: 1px dashed #e2e8f0;
            font-size: .88rem;
        }

        .cd-fact:last-child {
            border-bottom: none;
        }

        .cd-fact .k {
            color: #64748b;
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            flex: none;
        }

        .cd-fact .k .material-icons {
            font-size: 1rem;
            color: #1d4ed8;
        }

        .cd-fact .v {
            color: #0b1729;
            font-weight: 600;
            text-align: right;
        }


        /* ---------- Related courses ---------- */

        .cd-related-wrap {
            margin-top: 2.6rem;
        }

        .cd-related-heading {
            display: flex;
            align-items: center;
            gap: .65rem;
            font-size: 1.35rem;
            font-weight: 800;
            color: #0b1729;
        }

        .cd-related-heading .material-icons {
            color: #1d4ed8;
            background: #eff6ff;
            border: 1px solid #dbeafe;
            padding: .5rem;
            border-radius: 10px;
            font-size: 1.25rem;
        }

        .cd-related-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.2rem;
            margin-top: 1.2rem;
        }

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

        @media (max-width: 600px) {
            .cd-related-grid {
                grid-template-columns: 1fr;
            }
        }

        .cd-related-card {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            overflow: hidden;
            text-decoration: none;
            display: block;
            transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
        }

        .cd-related-card:hover {
            transform: translateY(-4px);
            border-color: #93c5fd;
            box-shadow: 0 16px 30px rgba(29, 78, 216, .12);
        }

        .cd-related-img {
            height: 130px;
            position: relative;
            background: linear-gradient(135deg, #0b1729 0%, #1d4ed8 100%);
            display: block;
        }

        .cd-related-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .cd-related-fallback {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background:
                radial-gradient(circle at 80% 25%, rgba(59, 130, 246, .4), transparent 55%),
                linear-gradient(135deg, #0b1729 0%, #16264a 60%, #1d4ed8 140%);
        }

        .cd-related-fallback .initials {
            font-size: 1.9rem;
            font-weight: 800;
            color: #fff;
            letter-spacing: .15em;
        }

        .cd-related-dur {
            position: absolute;
            bottom: 10px;
            left: 10px;
            display: inline-flex;
            align-items: center;
            gap: .3rem;
            background: rgba(11, 23, 41, .88);
            color: #fff;
            font-size: .72rem;
            font-weight: 600;
            padding: .3rem .7rem;
            border-radius: 999px;
            backdrop-filter: blur(4px);
        }

        .cd-related-dur .material-icons {
            font-size: .85rem;
        }

        .cd-related-body {
            padding: 1rem 1.1rem 1.15rem;
        }

        .cd-related-body h4 {
            font-size: .95rem;
            font-weight: 700;
            color: #0b1729;
            margin: 0 0 .45rem;
            line-height: 1.45;
            min-height: 2.7em;
            
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .cd-related-meta {
            display: flex;
            flex-wrap: wrap;
            gap: .8rem;
            font-size: .78rem;
            color: #64748b;
            margin: 0 0 .8rem;
        }

        .cd-related-meta span {
            display: inline-flex;
            align-items: center;
            gap: .3rem;
        }

        .cd-related-meta .material-icons {
            font-size: .95rem;
            color: #1d4ed8;
        }

        .cd-related-link {
            color: #1d4ed8;
            font-weight: 700;
            font-size: .88rem;
            display: inline-flex;
            align-items: center;
            gap: .35rem;
        }


        /* ---------- CTA ---------- */

        .cd-cta {
            margin-top: 2.4rem;
            background:
                radial-gradient(circle at 12% 15%, rgba(59, 130, 246, .35), transparent 45%),
                radial-gradient(circle at 90% 85%, rgba(251, 191, 36, .18), transparent 45%),
                linear-gradient(135deg, #0b1729 0%, #16264a 55%, #1d4ed8 140%);
            border-radius: 20px;
            padding: 2.6rem 2rem;
            text-align: center;
            color: #fff;
            position: relative;
            overflow: hidden;
        }

        .cd-cta h2 {
            font-size: 1.55rem;
            font-weight: 800;
            margin: 0 0 .6rem;
            color: #fff;
        }

        .cd-cta p {
            color: #cbd5e1;
            max-width: 560px;
            margin: 0 auto;
            line-height: 1.7;
            font-size: .95rem;
        }

        .cd-cta-actions {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: .9rem;
            margin-top: 1.5rem;
        }


        /* ---------- Not found / API error ---------- */

        .cd-error-card {
            max-width: 640px;
            margin: 2.5rem auto 3.5rem;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 18px;
            padding: 3rem 2rem;
            text-align: center;
            box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
        }

        .cd-error-icon {
            width: 68px;
            height: 68px;
            border-radius: 50%;
            background: #fef2f2;
            color: #dc2626;
            display: grid;
            place-items: center;
            margin: 0 auto 1.2rem;
        }

        .cd-error-icon .material-icons {
            font-size: 2rem;
        }

        .cd-error-card.api .cd-error-icon {
            background: #eff6ff;
            color: #1d4ed8;
        }

        .cd-error-card h2 {
            font-size: 1.45rem;
            font-weight: 800;
            color: #0b1729;
            margin: 0 0 .7rem;
        }

        .cd-error-card p {
            color: #64748b;
            line-height: 1.75;
            font-size: .95rem;
            margin: 0 0 1.6rem;
        }

        .cd-error-actions {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: .9rem;
        }
  
/* =========================================================
   HOME PAGE COURSE FALLBACK
   Blue branded box when course image is unavailable
   ========================================================= */

.home-course-fallback {
    width: 100%;
    height: 100%;
    min-height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #0d6efd 0%,
        #1557c0 55%,
        #083b8f 100%
    );

    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.home-course-fallback::before {
    content: "";
    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    top: -70px;
    right: -50px;
}

.home-course-fallback::after {
    content: "";
    position: absolute;

    width: 140px;
    height: 140px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);

    bottom: -60px;
    left: -40px;
}

.home-course-fallback span {
    position: relative;
    z-index: 2;

    width: 110px;
    height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.35);

    color: #ffffff;

    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

/* Mobile */
@media (max-width: 600px) {
    .home-course-fallback {
        min-height: 190px;
    }

    .home-course-fallback span {
        width: 90px;
        height: 90px;
        font-size: 1.8rem;
    }
}

