/* ==========================================================================
   Prathibha Institute — Navy Blue Modern Educational Theme
   ========================================================================== */

:root {
  /* Rich Navy Palette */
  --navy-950: #040d1a;
  --navy-900: #0a192f;
  --navy-850: #0e2240;
  --navy-800: #102a4c;
  --navy-700: #163a6b;
  --navy-600: #1d4ed8;
  --navy-500: #2563eb;
  --navy-400: #3b82f6;
  --navy-300: #60a5fa;
  --navy-100: #dbeafe;
  --navy-50:  #f0f7ff;

  /* Gold Highlights */
  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-100: #fef3c7;
  --gold-50:  #fffbeb;

  /* Neutrals */
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;

  /* Gradients */
  --grad-navy: linear-gradient(135deg, #071527 0%, #0a192f 40%, #102a4c 75%, #163a6b 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --grad-card-overlay: linear-gradient(to bottom, rgba(10, 25, 47, 0), rgba(10, 25, 47, 0.04));

  /* Shadows & Radius */
  --shadow-sm: 0 2px 8px rgba(10, 25, 47, 0.05);
  --shadow-md: 0 12px 28px rgba(10, 25, 47, 0.09);
  --shadow-lg: 0 24px 48px rgba(10, 25, 47, 0.16);
  --shadow-navy-glow: 0 12px 32px rgba(29, 78, 216, 0.25);
  --shadow-gold-glow: 0 8px 24px rgba(245, 158, 11, 0.35);

  --radius-sm: 0.5rem;
  --radius: 0.85rem;
  --radius-lg: 1.25rem;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ------------- Base & Reset ------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
.hero-slide-img { height: 100% !important; }
a { text-decoration: none; color: var(--navy-600); transition: all 0.2s ease; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: var(--navy-900); font-weight: 700; }
.fw-extrabold { font-weight: 800; }

::selection { background: var(--navy-100); color: var(--navy-900); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--gold-500); color: var(--navy-950); padding: 0.5rem 1rem;
  border-radius: 0 0 0.5rem 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.section-py { padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (max-width: 768px) { .section-py { padding-top: 3rem; padding-bottom: 3rem; } }

.text-navy { color: var(--navy-900) !important; }
.text-gold { color: var(--gold-400) !important; }
.bg-navy { background-color: var(--navy-900) !important; }
.bg-navy-50 { background-color: var(--navy-50) !important; }

/* ------------- Top Bar ------------- */
.top-bar {
  background: var(--navy-950);
  color: var(--navy-100);
  font-size: 0.84rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-bar a { color: var(--navy-100); opacity: 0.9; }
.top-bar a:hover { color: var(--gold-400); opacity: 1; }
.top-bar .sep { color: rgba(255, 255, 255, 0.2); margin: 0 0.5rem; }

/* ------------- Header & Navbar ------------- */
.site-header {
  background: var(--grad-navy);
  position: sticky; top: 0; z-index: 1020;
  box-shadow: 0 4px 20px rgba(4, 13, 26, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.navbar-brand:hover .nav-logo-img { transform: scale(1.08) rotate(-2deg); }

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.brand-tagline {
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold-400);
  margin-top: 1px;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--radius-sm);
  position: relative;
  transition: all 0.2s ease;
}
.navbar-nav .nav-link::after {
  content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.15rem;
  height: 2.5px; border-radius: 2px; background: var(--gold-400);
  transform: scaleX(0); transform-origin: center; transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: #ffffff !important; }

.nav-account { display: flex; align-items: center; gap: 0.5rem; }
.account-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-gold); color: var(--navy-950);
  font-weight: 800; font-size: 0.85rem; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.account-avatar.large { width: 64px; height: 64px; font-size: 1.6rem; }
.nav-logout { color: var(--navy-100) !important; opacity: 0.85; }
.nav-logout:hover { opacity: 1; color: #ff6b6b !important; }

/* ------------- Buttons ------------- */
.btn {
  font-weight: 600;
  border-radius: 0.65rem;
  padding: 0.6rem 1.4rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
  background: var(--navy-600);
  border: 1px solid var(--navy-500);
  color: #ffffff;
  box-shadow: var(--shadow-navy-glow);
}
.btn-primary:hover {
  background: var(--navy-700);
  border-color: var(--navy-600);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.35);
}
.btn-gold {
  background: var(--grad-gold);
  border: none;
  color: var(--navy-950) !important;
  font-weight: 700;
  box-shadow: var(--shadow-gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45);
  filter: brightness(1.05);
}
.btn-outline-primary {
  color: var(--navy-700);
  border-color: var(--navy-300);
}
.btn-outline-primary:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #ffffff;
  transform: translateY(-2px);
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ------------- Section Labels ------------- */
.section-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--navy-600);
}
.section-label.has-line { display: inline-flex; align-items: center; gap: 0.55rem; }
.section-label.has-line::before,
.section-label.has-line::after { content: ''; height: 2px; width: 24px; border-radius: 2px; background: var(--gold-500); }

/* ------------- Hero Section & Carousel (FIXED CAROUSEL HEIGHT) ------------- */
.hero-section {
  background: var(--grad-navy);
  position: relative; overflow: hidden;
  padding: 64px 0 88px;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(245, 158, 11, 0.14), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(37, 99, 235, 0.3), transparent 50%);
  pointer-events: none;
}
.hero-section::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 72px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* Education Floating Ambient Symbols */
.edu-float {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.18;
  filter: blur(0.5px);
  user-select: none;
  pointer-events: none;
  animation: floatSlow 8s ease-in-out infinite alternate;
}
.edu-float-1 { top: 15%; left: 5%; animation-delay: 0s; }
.edu-float-2 { top: 25%; right: 6%; animation-delay: 2s; }
.edu-float-3 { bottom: 25%; left: 8%; animation-delay: 4s; }
.edu-float-4 { bottom: 20%; right: 10%; animation-delay: 1s; }

@keyframes floatSlow {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
  100% { transform: translateY(5px) rotate(-3deg); }
}

/* ===== CAROUSEL: ABSOLUTE FIXED HEIGHT — cannot change with image size ===== */
.hero-carousel-fixed {
  height: 480px;          /* fixed total carousel height — never changes */
  overflow: hidden;       /* belt-and-suspenders: clips any overflow */
}

/* carousel-inner and every carousel-item must be the same fixed height */
.hero-carousel-fixed .carousel-inner,
.hero-carousel-fixed .carousel-item {
  height: 100% !important;  /* force — prevents Bootstrap from resetting */
  overflow: hidden;
}

.hero-slide-row {
  height: 100%;
  min-height: unset;
  align-items: center;
  flex-wrap: nowrap;      /* prevent row from growing on large images */
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge-wrapper {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
}
.hero-badge-icon {
  height: 20px;
  width: auto;
}
.hero-badge {
  color: var(--gold-400);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hero-title {
  color: #ffffff;
  font-size: 2.75rem;
  line-height: 1.15;
  background: linear-gradient(120deg, #ffffff 0%, #dbeafe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  max-width: 580px;
}

/* ===== FIXED CAROUSEL IMAGE BOX — always 360px tall, never affected by image dimensions ===== */
.hero-slide-img-box {
  height: 360px;          /* fixed — cannot grow, cannot shrink */
  min-height: 360px;      /* extra guard */
  max-height: 360px;      /* extra guard */
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;       /* clips anything that exceeds the box */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(4, 13, 26, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.hero-slide-img {
  width: 100%;
  height: 100% !important;  /* override global img { height: auto } */
  min-height: 100%;
  object-fit: cover;         /* fills the box, crops excess — no size leaking out */
  object-position: center;
  transition: transform 0.6s ease;
  display: block;
  flex-shrink: 0;
}
.hero-slide-img.fit-contain {
  object-fit: contain;
  padding: 1.5rem;
}
.hero-slide-img-box:hover .hero-slide-img {
  transform: scale(1.03);
}

.hero-slide-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background: radial-gradient(circle, rgba(37,99,235,0.2), rgba(10,25,47,0.8));
}
.hero-fallback-logo {
  height: 160px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

.carousel-indicators [data-bs-target] {
  width: 12px; height: 12px; border-radius: 100px; border: 0;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.carousel-indicators [data-bs-target]:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.2);
}
.carousel-indicators .active { width: 30px; background: var(--gold-500); }

/* ------------- Stats Section ------------- */
.stats-section { margin-top: -50px; position: relative; z-index: 3; }
.stats-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-navy-glow);
}
.stat-icon-wrapper { font-size: 1.6rem; line-height: 1; }
.stats-card h3 {
  font-size: 2.1rem; font-weight: 800; margin-bottom: 0.1rem;
  background: var(--grad-navy); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stats-card p { color: var(--muted); font-weight: 600; font-size: 0.9rem; margin: 0; }

/* Stats Band */
.stats-band {
  background: var(--grad-navy);
  position: relative; overflow: hidden;
}
.stat-num {
  font-size: 2.6rem; font-weight: 800; line-height: 1.1;
  color: var(--gold-400); margin-bottom: 0.35rem;
}

/* ------------- Page Hero ------------- */
.page-hero {
  background: var(--grad-navy); position: relative; overflow: hidden;
  padding: 36px 0 40px;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.12), transparent 40%),
    radial-gradient(circle at 85% 88%, rgba(37, 99, 235, 0.35), transparent 55%);
}
.page-hero .section-label { color: var(--gold-400); }
.lead-soft { color: rgba(255, 255, 255, 0.88); font-size: 1.12rem; }

/* Clean compact page header — replaces the old navy hero block */
.page-header {
  background: linear-gradient(180deg, var(--bg), #ffffff);
  border-bottom: 1px solid var(--line);
  padding: 30px 0 32px;
}
.page-header .page-header-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 0.5rem;
}
.page-header .page-header-eyebrow::before {
  content: ''; height: 2px; width: 22px; border-radius: 2px; background: var(--gold-500);
}
.page-header-title {
  font-weight: 800; color: var(--navy-900);
  font-size: 1.85rem; line-height: 1.2; margin: 0;
}
.page-header-sub {
  color: var(--muted); font-size: 1rem; margin-top: 0.45rem; max-width: 640px;
}
.page-header-center { text-align: center; }
.page-header-center .page-header-eyebrow::before { display: none; }
.page-header-center .page-header-eyebrow::after {
  content: ''; height: 2px; width: 22px; border-radius: 2px; background: var(--gold-500);
}

/* Course Badges & Tags */
.course-tag {
  display: inline-block; padding: 0.3rem 0.85rem; border-radius: 100px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff; font-size: 0.78rem; font-weight: 600;
}
.course-tag.tag-gold {
  background: rgba(245, 158, 11, 0.2); border-color: rgba(245, 158, 11, 0.4); color: var(--gold-400);
}

.course-meta-card {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius); padding: 1.3rem; backdrop-filter: blur(8px);
  display: flex; gap: 1rem; align-items: center;
}
.course-meta-icon {
  width: 56px; height: 56px; border-radius: 0.9rem; flex: 0 0 auto;
  background: var(--grad-gold); color: var(--navy-950); font-weight: 900; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold-glow);
}
.course-meta-stats { display: flex; flex-direction: column; gap: 0.4rem; width: 100%; }
.course-meta-stats > div { display: flex; justify-content: space-between; gap: 0.75rem; }
.meta-label { color: rgba(255, 255, 255, 0.7); font-size: 0.84rem; }
.meta-value { color: #ffffff; font-weight: 600; font-size: 0.9rem; }

/* ------------- Cards & Containers ------------- */
.course-card, .include-card, .feature-row, .testimonial-card, .gallery-card,
.sidebar-card, .auth-card, .content-block, .lesson-card, .success-card,
.announce-card, .course-mini {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* Course Card */
.course-card {
  display: flex; flex-direction: column; height: 100%;
  overflow: hidden; padding: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 25, 47, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
}
.course-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1.4rem 1.5rem 0; position: relative;
}
.course-card-icon {
  width: 52px; height: 52px; border-radius: 0.9rem;
  background: var(--grad-navy); color: #ffffff; font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(10, 25, 47, 0.25);
}
.course-flag {
  font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 100px;
}
.flag-new { background: var(--gold-100); color: var(--gold-600); border: 1px solid var(--gold-400); }
.flag-trend { background: var(--navy-50); color: var(--navy-600); border: 1px solid var(--navy-100); }

.course-card-body { padding: 1.1rem 1.5rem; flex-grow: 1; }
.course-category { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; color: var(--navy-600); text-transform: uppercase; }
.course-title { font-size: 1.25rem; font-weight: 700; margin: 0.3rem 0 0.5rem; color: var(--navy-900); }
.course-summary { color: var(--muted); font-size: 0.94rem; margin: 0; }
.course-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; border-top: 1px solid var(--line); font-size: 0.9rem;
  background: rgba(248, 250, 252, 0.6);
}
.course-students { color: var(--muted); font-size: 0.88rem; }
.course-arrow { color: var(--navy-600); font-weight: 700; transition: transform 0.2s ease; }
.course-card:hover .arrow-symbol { transform: translateX(3px); }

/* Course Category Filters */
.course-filters {
  row-gap: 0.6rem;
  position: relative;
}
.course-filter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--navy-700);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
.course-filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.5rem;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 100px;
  background: var(--navy-50);
  color: var(--navy-700);
  border: 1px solid var(--navy-100);
  transition: all 0.25s ease;
}
.course-filter-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-400);
  color: var(--gold-600);
  box-shadow: var(--shadow-gold-glow);
}
.course-filter-btn:hover .filter-count {
  background: var(--gold-50);
  border-color: var(--gold-400);
  color: var(--gold-600);
}
.course-filter-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4);
}
.course-filter-btn.active {
  background: var(--grad-gold);
  border-color: var(--gold-400);
  color: var(--navy-950);
  font-weight: 700;
  box-shadow: var(--shadow-gold-glow);
}
.course-filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(7, 21, 39, 0.15);
  color: var(--navy-900);
}
.course-filter-btn.active::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.course-col { transition: opacity 0.3s ease, transform 0.3s ease; }
.course-col.hidden { display: none; }

/* Categorical course groups */
.course-group.hidden { display: none; }
.course-group-title { font-size: 1.4rem; font-weight: 700; color: var(--navy, #0b1f3a); }
.course-group-count {
  font-size: 0.85rem; font-weight: 600; color: var(--gold, #b4883a);
  background: rgba(180, 136, 58, 0.12); border: 1px solid rgba(180, 136, 58, 0.3);
  border-radius: 100px; padding: 0.3rem 0.9rem;
}

/* Mini Course Card */
.course-mini {
  display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.1rem; height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.course-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, 0.3); }
.course-mini-icon {
  width: 46px; height: 46px; border-radius: 0.8rem; flex: 0 0 auto;
  background: var(--navy-50); color: var(--navy-700); font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.course-mini-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.course-mini-title { font-weight: 700; color: var(--navy-900); line-height: 1.3; }
.course-mini-meta { color: var(--muted); font-size: 0.84rem; }
.course-mini-arrow { color: var(--navy-500); font-weight: 700; }

/* Includes & Feature rows */
.include-card { display: flex; gap: 1.1rem; padding: 1.5rem; transition: transform 0.25s ease; }
.include-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.include-icon, .feature-icon {
  width: 52px; height: 52px; border-radius: 0.9rem; flex: 0 0 auto;
  background: var(--navy-50); color: var(--navy-700); font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.06);
}
.include-icon.gold, .feature-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.feature-row { display: flex; gap: 1.1rem; padding: 1.5rem; transition: transform 0.25s ease; }
.feature-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Testimonial Cards */
.testimonial-card { padding: 1.6rem; position: relative; display: flex; flex-direction: column; }
.testimonial-stars { color: var(--gold-500); font-size: 1.1rem; margin-bottom: 0.7rem; letter-spacing: 0.1em; }
.testimonial-stars .star { color: var(--line); }
.testimonial-stars .star.on { color: var(--gold-500); }
.testimonial-text { color: var(--text-soft); font-style: italic; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: var(--grad-navy); color: #ffffff; font-weight: 800; font-size: 1.1rem;
}
.testimonial-name { font-weight: 700; font-size: 1rem; color: var(--navy-900); }
.testimonial-role { color: var(--muted); font-size: 0.84rem; }

/* Gallery Card */
.gallery-card { overflow: hidden; padding: 0; display: block; border-radius: var(--radius); transition: transform 0.3s ease; cursor: pointer; }
.gallery-card img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s ease; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-caption { padding: 0.6rem; background: var(--card); display: flex; align-items: center; justify-content: center; }
.gallery-icon-zoom { opacity: 0.6; transition: opacity 0.2s ease; font-size: 1.1rem; line-height: 1; }
.gallery-card:hover .gallery-icon-zoom { opacity: 1; }

/* Gallery category filters */
.gallery-filters .gallery-filter-btn {
  border: 1.5px solid var(--line); background: var(--card); color: var(--navy-700);
  padding: 0.45rem 1.1rem; border-radius: 100px; font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s ease;
}
.gallery-filters .gallery-filter-btn:hover { border-color: var(--gold-500); color: var(--gold-600); }
.gallery-filters .gallery-filter-btn.active {
  background: var(--gold-500); border-color: var(--gold-500); color: #fff;
}

/* Gallery lightbox */
/* Make the lightbox content a positioning context so the close button anchors
   to the image area instead of floating to the page corner. */
#galleryLightbox .modal-content { position: relative; }
.lightbox-close {
  position: absolute; top: -6px; right: -6px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.75); border: 2px solid rgba(255,255,255,0.6);
  color: #fff; font-size: 1.15rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.lightbox-close:hover { background: rgba(0,0,0,0.9); color: #fff; }
.bg-gold { background: var(--gold-500) !important; color: #fff !important; }

/* Sidebar & Auth Cards */
.sidebar-card, .auth-card, .lesson-card, .success-card { padding: 1.8rem; }
.auth-card { max-width: 480px; margin: 0 auto; }

/* Certificate lookup card + stylish input */
.cert-lookup-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); }
.cert-lookup-card::before {
  content: ''; display: block; height: 5px; border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, var(--gold-500), var(--navy-600)); margin: -2rem -2rem 1.5rem;
}
.cert-lookup-head { display: flex; align-items: center; gap: 1rem; }
.cert-input-group { position: relative; }
.cert-input-group .form-control { padding-left: 3rem; }
.cert-input-icon {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  color: var(--navy-500); font-weight: 700; font-size: 1.1rem; z-index: 2; pointer-events: none;
}
.auth-head { display: flex; align-items: center; gap: 1rem; }
.auth-icon {
  width: 50px; height: 50px; border-radius: 0.9rem; flex: 0 0 auto;
  background: var(--navy-50); color: var(--navy-700); font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.auth-icon.gold { background: var(--gold-100); color: var(--gold-600); }
.status-active { color: #16a34a; font-weight: 700; font-size: 0.9rem; }

/* Contact Items */
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 0.85rem; flex: 0 0 auto;
  background: var(--navy-50); color: var(--navy-700); font-weight: 800; font-size: 1.2rem;
  margin-right: 0.9rem;
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.05);
}

.contact-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-link:hover .fw-semibold { color: var(--navy-600); text-decoration: underline; text-underline-offset: 3px; }
.contact-link p { margin: 0; }
.contact-link:hover { border-bottom-color: var(--gold-400); }

/* Syllabus Accordion */
.syllabus-accordion .accordion-item {
  border: 1px solid var(--line); border-radius: var(--radius) !important;
  overflow: hidden; margin-bottom: 0.85rem;
}
.chapter-item .accordion-button {
  background: var(--card); color: var(--navy-900); font-weight: 700; padding: 1.15rem 1.3rem;
  display: flex; align-items: center; gap: 1rem; box-shadow: none;
}
.chapter-item .accordion-button:not(.collapsed) {
  color: var(--navy-900); background: var(--navy-50); box-shadow: none;
}
.chapter-index {
  width: 38px; height: 38px; border-radius: 0.7rem; flex: 0 0 auto;
  background: var(--grad-navy); color: #ffffff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.chapter-title { display: block; font-size: 1.05rem; }
.chapter-context { display: block; color: var(--muted); font-size: 0.86rem; font-weight: 400; }

.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li { border-top: 1px solid var(--line); }
.lesson-link {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 0.5rem;
  color: var(--text); transition: color 0.2s ease;
}
.lesson-link:hover { color: var(--navy-600); }
.lesson-play {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  background: var(--navy-50); color: var(--navy-700); font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s ease;
}
.lesson-link:hover .lesson-play { background: var(--grad-gold); color: var(--navy-950); transform: scale(1.1); }
.lesson-title { flex: 1; font-weight: 600; font-size: 0.98rem; }

/* Certificate Seal & Result */
.cert-result-card {
  border: 2px solid var(--navy-300);
  background: linear-gradient(180deg, #ffffff 0%, var(--navy-50) 100%);
}

/* Sticky Sidebar */
.sticky-sidebar { position: sticky; top: 6rem; }
.benefit-list li { padding: 0.4rem 0; color: var(--text-soft); font-weight: 500; }

/* Announcements */
.announce-card { padding: 1.6rem 1.8rem; background: var(--card); }
.announce-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.announce-pulse {
  width: 12px; height: 12px; border-radius: 50%; background: var(--gold-500);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.announce-item { padding: 0.9rem 0; border-bottom: 1px dashed var(--line); }
.announce-item:last-child { border-bottom: 0; }
.announce-title { font-weight: 700; color: var(--navy-900); }
.announce-message { color: var(--muted); font-size: 0.95rem; }

/* CTA Section */
.cta-section { background: var(--grad-navy); position: relative; overflow: hidden; }
.cta-logo-glow { filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.5)); }

/* Animations */
.animate-float { animation: floatLogo 4s ease-in-out infinite; }
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Image Frames */
.img-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.img-frame-badge {
  position: absolute; bottom: 1.25rem; left: 1.25rem;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,0.6);
}
.badge-emoji { font-size: 1.1rem; line-height: 1; }

/* Programs / Why-Choose sections */
.programs-section, .choose-section { scroll-margin-top: 90px; }
.choose-section { background: linear-gradient(to bottom, transparent, rgba(10, 25, 47, 0.03)); }
.choose-section .feature-row { height: 100%; }

/* ------------- Footer ------------- */
.footer { background: var(--navy-950); color: var(--navy-100); border-top: 1px solid rgba(255,255,255,0.08); }
.footer h6 { color: #ffffff; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-logo-img { height: 46px; width: auto; object-fit: contain; }
.footer-brand-tagline { font-size: 0.65rem; letter-spacing: 0.2em; color: var(--gold-400); font-weight: 700; display: block; }
.footer .footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer a { color: rgba(219, 234, 254, 0.8); transition: color 0.2s ease; }
.footer a:hover { color: var(--gold-400); }
.footer-blurb { color: rgba(219, 234, 254, 0.7); }
.footer .divider { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer .copyright { color: rgba(219, 234, 254, 0.55); font-size: 0.88rem; }

/* ------------- Forms & Input ------------- */
.form-control {
  border-radius: 0.6rem; border: 1px solid #cbd5e1; padding: 0.68rem 1rem;
  font-size: 0.97rem; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus { border-color: var(--navy-500); box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15); }
.form-label { font-weight: 600; color: var(--navy-900); font-size: 0.9rem; }

.subject-badge { background: var(--navy-50); color: var(--navy-700); font-weight: 600; font-size: 0.85rem; border: 1px solid var(--navy-100); }

/* ------------- Notices Bell & Dropdown ------------- */
.notices-nav { position: relative; }

.notices-bell {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--navy-100);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.notices-bell:hover { background: rgba(255, 255, 255, 0.2); }
.notices-bell-icon { font-size: 1.15rem; line-height: 1; }
.notices-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px;
  background: var(--gold-500); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Bell wiggles while there are unopened notifications */
.notices-bell.wiggle { animation: bellWiggle 2.4s ease-in-out infinite; transform-origin: top center; }
@keyframes bellWiggle {
  0%, 20%, 40%, 60%, 80%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  35% { transform: rotate(12deg); }
  45% { transform: rotate(-10deg); }
  55% { transform: rotate(10deg); }
}

.notices-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 360px; max-width: calc(100vw - 2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1200; overflow: hidden;
}
.notices-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }

.notices-panel-head {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(90deg, var(--navy-700), var(--navy-600));
  color: #fff;
}
.notices-panel-title { font-weight: 700; font-size: 1rem; }
.notices-count {
  background: var(--gold-500); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 0.1rem 0.5rem; border-radius: 999px;
}
.notices-panel-close {
  margin-left: auto; background: none; border: none; color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.notices-panel-body { max-height: 420px; overflow-y: auto; }

.notices-item {
  display: flex; gap: 0.9rem; padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.notices-item:last-child { border-bottom: none; }
.notices-item:hover { background: var(--bg); }
.notices-item-media {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 0.6rem;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.notices-item-media img { width: 100%; height: 100%; object-fit: cover; }
.notices-item-emoji { font-size: 1.5rem; }
.notices-item-body { min-width: 0; }
.notices-item-title { font-weight: 700; color: var(--navy-900); margin-bottom: 0.15rem; }
.notices-item-msg { color: var(--text-soft); font-size: 0.9rem; line-height: 1.4; margin-bottom: 0.35rem; }
.notices-item-date {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  color: var(--gold-600); background: rgba(212, 160, 23, 0.12);
  padding: 0.15rem 0.55rem; border-radius: 999px;
}
.notices-empty { padding: 2rem 1.2rem; text-align: center; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 991.98px) {
  .notices-panel {
    position: fixed; top: 60px; left: 50%; transform: translateX(-50%) translateY(-8px);
    width: calc(100vw - 2rem);
  }
  .notices-panel.open { transform: translateX(-50%) translateY(0); }
  .notices-bell { width: 44px; height: 44px; }
}

/* ------------- Responsive ------------- */
@media (max-width: 992px) {
  .navbar.container { padding-left: 1rem; padding-right: 1rem; }
  .navbar-brand, .navbar-toggler { margin: 0; }
  .navbar-nav { padding-top: 0.5rem; }
  .navbar-nav .nav-link::after { display: none; }
  .hero-section { padding: 56px 0 76px; }
  .hero-title { font-size: 2.2rem; }
  /* On tablet, reduce the carousel fixed height */
  .hero-carousel-fixed { height: 420px; }
  .hero-slide-img-box { height: 300px; min-height: 300px; max-height: 300px; max-width: 100%; }
  .stats-section { margin-top: -1rem; }
  .sticky-sidebar { position: static; }
}

@media (max-width: 768px) {
  .page-hero { padding: 26px 0 30px; }
  .hero-section { padding: 48px 0 64px; }
  .hero-title { font-size: 1.85rem !important; }
  /* On mobile, carousel allows stacking — image box stays fixed height */
  .hero-carousel-fixed { height: auto; min-height: 0; }
  .hero-carousel-fixed .carousel-inner,
  .hero-carousel-fixed .carousel-item { height: auto !important; }
  .hero-slide-img-box { height: 240px; min-height: 240px; max-height: 240px; }
  .hero-slide-row { height: auto; flex-wrap: wrap; padding: 1rem 0; }
  .hero-text-col, .hero-img-col { width: 100%; max-width: 100%; }
  .hero-text-col { padding-bottom: 1.25rem; }
  .stats-card h3 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ------------- Course Detail (compact hero + w3schools syllabus) ------------- */
.course-hero-compact { padding: 26px 0 30px; }
.course-hero-compact .course-hero-title { font-size: 1.9rem; }
.course-hero-compact .course-hero-sub { font-size: 1.05rem; color: rgba(255, 255, 255, 0.85); }
.course-hero-compact .course-meta-card {
  padding: 0.9rem 1rem; gap: 0.8rem;
}
.course-hero-compact .course-meta-icon { width: 44px; height: 44px; font-size: 1.25rem; }
.course-hero-compact .course-meta-stats { gap: 0.3rem; }
.course-hero-compact .meta-value { font-size: 0.85rem; }

/* Syllabus sidebar (w3schools-style left nav) */
.syllabus-sidebar {
  position: sticky; top: 90px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 0; max-height: calc(100vh - 120px); overflow-y: auto;
}
.syllabus-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.15rem 0.55rem; border-bottom: 1px solid var(--line);
}
.syllabus-close {
  width: 34px; height: 34px; border: 1px solid var(--line); background: var(--card);
  border-radius: 50%; color: var(--navy-800); font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all 0.2s ease;
}
.syllabus-close:hover { background: var(--navy-50); border-color: var(--gold-400); color: var(--navy-900); }
/* Floating hamburger toggle (mobile only) */
.syllabus-menu-toggle {
  position: fixed; left: 14px; top: 50%; transform: translateY(-50%); z-index: 1030;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--grad-navy); color: #fff; font-weight: 800; font-size: 0.85rem;
  border: 0; border-radius: 50px; padding: 0.6rem 0.9rem; cursor: pointer;
  box-shadow: var(--shadow-md); transition: all 0.2s ease;
}
.syllabus-menu-toggle:hover { transform: translateY(-50%) scale(1.05); }
.syllabus-hamburger {
  position: relative; width: 16px; height: 12px; display: inline-block;
}
.syllabus-hamburger::before,
.syllabus-hamburger::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
  background: #fff; border-radius: 2px;
}
.syllabus-hamburger::before { top: 0; box-shadow: 0 5px 0 #fff; }
.syllabus-hamburger::after { top: 10px; }
/* Overlay behind the mobile drawer */
.syllabus-overlay {
  position: fixed; inset: 0; z-index: 1028; background: rgba(10, 20, 40, 0.55);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.syllabus-overlay.show { opacity: 1; visibility: visible; }
.syllabus-sidebar-title {
  padding: 0.4rem 1.15rem 0.7rem; margin: 0 0 0.4rem; border-bottom: 1px solid var(--line);
  font-weight: 800; color: var(--navy-900); font-size: 1rem; letter-spacing: 0.02em;
  gap: 0.5rem;
}
.syllabus-tag { flex: 0 0 auto; }
.syllabus-course-name {
  font-size: 0.85rem; font-weight: 800; color: var(--gold-600);
  text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.syllabus-chapter { margin-bottom: 0.25rem; }
.syllabus-chapter-head {
  width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1.15rem; font-weight: 700; color: var(--navy-800); font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.syllabus-chapter-head:hover { background: var(--navy-50); color: var(--navy-700); }
.syllabus-chapter-head .chapter-index {
  font-size: 0.7rem; font-weight: 800; color: var(--gold-600);
  letter-spacing: 0.04em; flex: 0 0 auto;
}
.syllabus-nav-list { list-style: none; margin: 0; padding: 0; }
.syllabus-nav-item {
  width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  display: block; padding: 0.55rem 1.35rem; font-size: 0.9rem; color: var(--muted);
  border-left: 3px solid transparent; transition: all 0.2s ease;
}
.syllabus-nav-item:hover { color: var(--navy-700); background: var(--navy-50); }
.syllabus-nav-item.active {
  color: var(--navy-900); font-weight: 700; background: var(--navy-50);
  border-left-color: var(--gold-400);
}

/* Main content pane (w3schools-style) */
.content-pane-wrap { min-width: 0; }
.syllabus-pane { display: none; }
.syllabus-pane.active { display: block; animation: paneIn 0.3s ease both; }
@keyframes paneIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.syllabus-body {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  font-size: 1.02rem; line-height: 1.7; color: var(--text-soft);
}
.lesson-definition {
  font-size: 1.08rem; color: var(--navy-800); line-height: 1.6;
}
.lesson-points { list-style: disc; }
.lesson-points li { margin-bottom: 0.45rem; }
.lesson-code, .lesson-output {
  background: #0f172a; color: #e2e8f0; border-radius: 0.7rem; padding: 1.1rem 1.25rem;
  font-family: 'Consolas', 'Menlo', monospace; font-size: 0.92rem; line-height: 1.6;
  overflow-x: auto; white-space: pre; margin: 0; tab-size: 4;
}
.lesson-output {
  background: #052e16; color: #bbf7d0; border: 1px solid #14532d;
}
.pane-lesson-group { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.pane-lesson-card {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 0.7rem;
  padding: 0.9rem 1.1rem; color: var(--navy-800); font-weight: 600; transition: all 0.2s ease;
}
.pane-lesson-card:hover {
  border-color: var(--gold-400); color: var(--navy-900);
  box-shadow: var(--shadow-md); transform: translateX(3px);
}
.pane-lesson-icon {
  width: 34px; height: 34px; border-radius: 0.6rem; flex: 0 0 auto;
  background: var(--gold-100); color: var(--gold-600); display: flex; align-items: center;
  justify-content: center; font-size: 0.8rem;
}

/* Previous / Next nav (w3schools-style) */
.w3s-navbar { display: flex; gap: 0.6rem; }
.w3s-navbar button {
  border: 1px solid var(--line); background: var(--card); color: var(--navy-700);
  font-weight: 700; font-size: 0.9rem; padding: 0.6rem 1.15rem; border-radius: 100px;
  cursor: pointer; transition: all 0.2s ease; box-shadow: var(--shadow-sm);
}
.w3s-navbar button:hover { background: var(--grad-navy); color: #ffffff; border-color: var(--navy-800); }
.w3s-navbar .w3s-next { margin-left: auto; }

@media (max-width: 991px) {
  .syllabus-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 84vw); z-index: 1035;
    border-radius: 0; border: 0; border-right: 1px solid var(--line);
    margin: 0; max-height: 100vh; overflow-y: auto; padding: 0 0 1rem;
    transform: translateX(-105%); transition: transform 0.28s ease; box-shadow: var(--shadow-lg);
  }
  .syllabus-sidebar.open { transform: translateX(0); }
}

/* ================================================================
   Course Detail page (cd-) — rich navy hero + styled content blocks
   ================================================================ */
.cd-hero {
  position: relative; overflow: hidden;
  background: var(--grad-navy);
  padding: 40px 0 30px;
}
.cd-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 84% 18%, rgba(245, 158, 11, 0.16), transparent 45%),
    radial-gradient(circle at 12% 82%, rgba(37, 99, 235, 0.32), transparent 55%);
  pointer-events: none;
}
.cd-hero-glow { display: none; }

.cd-breadcrumb { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.82rem; }
.cd-breadcrumb a { color: rgba(255, 255, 255, 0.72); transition: color 0.2s ease; }
.cd-breadcrumb a:hover { color: #ffffff; }
.cd-sep { color: rgba(255, 255, 255, 0.35); }
.cd-current { color: var(--gold-400); font-weight: 600; }

.cd-hero-inner {
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
  margin-top: 2.5rem;
}
.cd-hero-icon {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: 1.3rem;
  background: var(--grad-gold); color: var(--navy-950); font-weight: 900; font-size: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold-glow), 0 0 0 1px rgba(245, 158, 11, 0.6);
  transform: rotate(-6deg);
}
.cd-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-400);
}
.cd-hero-eyebrow::before { content: ''; height: 2px; width: 22px; border-radius: 2px; background: var(--gold-500); }
.cd-hero-title {
  font-size: 2.6rem; font-weight: 800; line-height: 1.12; margin: 0.3rem 0 0.4rem;
  background: linear-gradient(120deg, #ffffff 0%, #dbeafe 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cd-hero-tagline { color: rgba(255, 255, 255, 0.88); font-size: 1.15rem; max-width: 640px; }
.cd-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 0.4rem; }
.cd-hero-link { color: #ffffff; font-weight: 600; font-size: 0.95rem; text-underline-offset: 3px; }
.cd-hero-link:hover { color: var(--gold-400); }
.cd-hero-link:hover span { transform: translateX(3px); }

/* Body — cool blue-ish tone behind the white boxes */
.cd-body {
  padding: 3.5rem 0 4.5rem;
  background:
    radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.06), transparent 45%),
    radial-gradient(circle at 10% 92%, rgba(37, 99, 235, 0.04), transparent 50%),
    var(--bg);
}

/* 2-column grid of info boxes */
.cd-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2rem; align-items: stretch;
}

.cd-box {
  display: flex; flex-direction: column;
  border: 1px solid var(--navy-100);
  border-left: 5px solid var(--navy-500);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cd-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-navy-glow); }
.cd-box--highlight { background: linear-gradient(180deg, #ffffff 0%, var(--navy-50) 100%); }

.cd-box-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.15rem; }
.cd-box-kicker {
  display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy-600);
}
.cd-box-title { font-size: 1.4rem; font-weight: 800; color: var(--navy-900); margin: 0.35rem 0 0; }
.cd-box-icon {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 0.95rem;
  background: var(--navy-50); color: var(--navy-700); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.cd-box-icon--gold { background: var(--gold-100); color: var(--gold-600); }
.cd-box-text { font-size: 1.02rem; line-height: 1.7; color: var(--text-soft); }

.cd-check-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.cd-check-item { display: flex; align-items: flex-start; gap: 0.7rem; }
.cd-check-item > span:last-child { color: var(--text-soft); line-height: 1.5; }
.cd-check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-gold); color: var(--navy-950); font-weight: 900; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-gold-glow);
  margin-top: 0.15rem;
}

.cd-highlight-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.cd-highlight-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.cd-highlight-item > span:last-child { color: var(--text-soft); line-height: 1.5; }

/* Highlighted syllabus section */
.cd-syllabus-wrap {
  margin-top: 2.75rem;
  border: 1px solid var(--navy-100);
  border-top: 5px solid var(--navy-500);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--navy-50) 0%, #ffffff 60%, var(--navy-50) 100%);
  box-shadow: var(--shadow-md);
  padding: 2.25rem 2rem;
}
.cd-syllabus-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.cd-syllabus-icon {
  flex: 0 0 auto; width: 60px; height: 60px; border-radius: 1rem;
  background: var(--grad-navy); color: #ffffff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-navy-glow);
}
.cd-syllabus-title { font-size: 1.7rem; font-weight: 800; color: var(--navy-900); margin: 0.35rem 0 0; }

.cd-syllabus { display: grid; gap: 1.25rem; }
.cd-chapter {
  border: 1px solid var(--navy-100); border-left: 4px solid var(--gold-500);
  border-radius: var(--radius); background: var(--card); padding: 1.4rem 1.3rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cd-chapter:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cd-chapter-head { display: flex; align-items: center; gap: 0.9rem; }
.cd-chapter-num {
  flex: 0 0 auto; min-width: 44px; height: 44px; border-radius: 0.8rem;
  background: var(--grad-navy); color: #ffffff; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.cd-chapter-title { font-size: 1.22rem; font-weight: 700; color: var(--navy-900); margin: 0; }
.cd-chapter-context { color: var(--muted); font-style: italic; margin-top: 0.75rem; font-size: 0.95rem; }
.cd-chapter-topics { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.cd-chapter-topics .cd-topic { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.45rem 0.75rem; border-radius: 0.6rem; }
.cd-chapter-topics .cd-topic:hover { background: var(--navy-50); }
.cd-topic-dot {
  flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-500); margin-top: 0.22rem;
}
.cd-topic > span:last-child { color: var(--text-soft); }

.cd-syllabus-note {
  margin-top: 1.4rem; padding: 0.9rem 1rem; border-radius: 0.6rem;
  background: var(--navy-50); border: 1px solid var(--navy-100);
  color: var(--navy-700); font-size: 0.95rem; display: flex; align-items: center; gap: 0.6rem;
}

@media (max-width: 991px) {
  .cd-hero-title { font-size: 2rem; }
  .cd-hero-icon { width: 68px; height: 68px; font-size: 1.9rem; }
  .cd-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .cd-body { padding: 2.5rem 0 3rem; }
}

/* ==========================================================================
   Search Autocomplete
   ========================================================================== */

.search-nav { position: relative; }
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.search-icon {
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
  flex-shrink: 0;
}
.search-input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  padding: 0.38rem 0.85rem;
  width: 180px;
  outline: none;
  transition: width 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.search-input::placeholder { color: rgba(255,255,255,0.55); }
.search-input:focus {
  width: 280px;
  background: rgba(255,255,255,0.95);
  border-color: var(--navy-400);
  color: var(--navy-900);
}
.search-input:focus::placeholder { color: var(--navy-300); }

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 380px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(4,13,26,0.28);
  z-index: 1050;
  padding: 0.35rem 0;
}
.search-results.open { display: block; }

.search-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--navy-900);
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.search-item:hover,
.search-item.active {
  background: var(--navy-50);
  border-left-color: var(--gold-500);
}
.search-item-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-500);
}
.search-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.3;
}
.search-item-summary {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-empty {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .search-nav { width: 100%; order: 10; }
  .search-wrap { width: 100%; }
  .search-input { width: 100%; }
  .search-input:focus { width: 100%; }
  .search-results {
    position: static;
    width: 100%;
    box-shadow: 0 4px 16px rgba(4,13,26,0.12);
    margin-top: 0.4rem;
  }
}

/* Contact: Social Media Chips */
.social-links { margin-top: 0.25rem; }
.social-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  color: #ffffff; border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.social-chip:hover {
  color: #ffffff; transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(10, 25, 47, 0.18); filter: brightness(1.06);
}
.social-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.social-facebook { background-color: #1877f2; }
.social-instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.social-youtube { background-color: #ff0000; }
.social-linkedin { background-color: #0a66c2; }

/* Contact: Map Embed */
.map-embed { border: 1px solid var(--navy-100); border-radius: 1rem; }
.map-embed iframe { display: block; }
