/**
 * InternEzy — Modern Minimalist Design System
 * Theme tokens, typography, layout, and component styling.
 */

:root {
  /* Color Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.15);
  
  --navy: #0a1f44;
  --navy-dark: #061840;
  --navy-light: #162a56;

  /* InternEzy Logo Emerald Green & Gradients */
  --green: #0bb89c;
  --green-hover: #089780;
  --green-light: #ecfdf5;
  --green-border: rgba(11, 184, 156, 0.25);
  --green-glow: rgba(11, 184, 156, 0.2);
  --gradient-logo: linear-gradient(135deg, #0bb89c 0%, #168ab2 55%, #2563eb 100%);

  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  
  --border-light: rgba(226, 232, 240, 0.9);
  --border-focus: rgba(37, 99, 235, 0.4);
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px -4px rgba(10, 31, 68, 0.06);
  --shadow-lg: 0 16px 32px -8px rgba(10, 31, 68, 0.09);
  --shadow-glow: 0 0 24px -4px rgba(37, 99, 235, 0.25);
  
  /* Spacing & Transitions */
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Chatbot Positioning */
#tidio-chat-iframe {
  inset: auto 16px 20px auto !important;
  z-index: 9999 !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--navy) !important;
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-subtle);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-green {
  background-color: var(--green-light);
  color: #047857;
  border: 1px solid var(--green-border);
}

.pulse-green {
  width: 8px;
  height: 8px;
  background-color: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(11, 184, 156, 0.25);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(11, 184, 156, 0.25);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(11, 184, 156, 0.08);
  }
}

.text-gradient-green {
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-brand img {
  height: 42px;
  width: auto;
  transition: transform 0.2s ease;
}

.nav-brand:hover img {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -20px;
  width: 320px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1010;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateX(3px);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

/* Hero Section */
.hero-section {
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin: 18px 0 16px;
}

.hero-title span {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.stat-item h4 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2px;
}

.stat-item p {
  font-size: 13px;
  color: var(--text-subtle);
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 20px 40px -15px rgba(37, 99, 235, 0.18);
  border: 1px solid var(--border-light);
  background: #ffffff;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.hero-img-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 24px 48px -12px rgba(37, 99, 235, 0.25);
}

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hero-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-md);
}

.hero-floating-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Feature Showcase Split */
.feature-showcase-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 48px;
  margin-top: 64px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.feature-showcase-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.feature-showcase-content h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}

.feature-showcase-content p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Sections Common Header */
.section {
  padding: 88px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Course Filters */
.courses-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--bg-subtle);
  color: var(--navy);
  border-color: var(--text-subtle);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.course-meta-tags {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-subtle);
  font-weight: 500;
  margin-bottom: 12px;
}

.course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
}

.course-thumb-wrap {
  width: 100%;
  height: 195px;
  background: var(--bg-subtle);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.35);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .course-thumb {
  transform: scale(1.45);
}

.course-level-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--border-light);
  z-index: 2;
}

.course-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.course-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.course-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 8px;
}

.course-summary {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}

.course-card:hover .course-footer {
  color: var(--primary-hover);
}

/* Background Ambient Elements for Sections */
.section-with-bg-elements {
  position: relative;
  overflow: hidden;
}

.bg-elements-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-flight-trail, .bg-trust-elements {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes float-glider {
  0% {
    transform: translate(1140px, 40px) rotate(-22deg);
  }
  50% {
    transform: translate(1146px, 32px) rotate(-17deg);
  }
  100% {
    transform: translate(1140px, 40px) rotate(-22deg);
  }
}

.glider-anim {
  animation: float-glider 4.5s ease-in-out infinite;
}

/* Connecting Dashed Line for Workflow Steps (Desktop) */
@media (min-width: 1025px) {
  .workflow-grid::before {
    content: "";
    position: absolute;
    top: 54px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: repeating-linear-gradient(
      to right,
      rgba(11, 184, 156, 0.45) 0,
      rgba(11, 184, 156, 0.45) 8px,
      transparent 8px,
      transparent 16px
    );
    z-index: 0;
    pointer-events: none;
  }
}

/* How It Works Section */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: var(--transition);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-light);
  color: #047857;
  border: 1px solid var(--green-border);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Why Candidates Love Us (Features) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  transition: var(--transition);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-box h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CTA Banner */
.cta-section {
  padding: 60px 0;
}

.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #ffffff;
}

.cta-text h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.cta-text p {
  font-size: 16px;
  color: #94a3b8;
  max-width: 580px;
}

/* Footer */
.footer {
  background-color: var(--navy-dark);
  color: #94a3b8;
  padding: 72px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: #94a3b8;
  transition: var(--transition);
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.social-link:hover {
  color: #ffffff;
  background: var(--primary);
  transform: translateY(-2px);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-actions, .hero-stats {
    justify-content: center;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-showcase-split {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 14px;
    width: 100%;
  }
  .hero-title {
    font-size: 34px;
  }
  .section-title {
    font-size: 28px;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Course Detail Page Styles
   ========================================================================== */
.breadcrumb-nav {
  padding: 14px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-main);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-item a {
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--text-subtle);
}

.course-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 54px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.course-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  min-width: 480px;
  max-width: 820px;
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  z-index: 1;
}

.course-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-subtle) 0%, rgba(248, 250, 252, 0.85) 25%, rgba(248, 250, 252, 0.2) 65%, transparent 100%),
              linear-gradient(to top, var(--bg-subtle) 0%, transparent 20%),
              linear-gradient(to bottom, var(--bg-subtle) 0%, transparent 20%);
}

.course-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  padding: 56px 0;
}

/* Sticky Enrollment Sidebar */
.course-sidebar-card {
  position: sticky;
  top: 96px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.sidebar-thumb-wrap {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  background: var(--bg-subtle);
}

.sidebar-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.35);
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.price-current {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
}

.price-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sidebar-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 13.5px;
  color: var(--text-main);
}

.sidebar-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Syllabus Accordions */
.syllabus-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.module-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  transition: var(--transition);
}

.module-card summary {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  user-select: none;
  list-style: none;
  transition: background-color 0.2s ease;
}

.module-card summary::-webkit-details-marker {
  display: none;
}

.module-card summary:hover {
  background: var(--bg-subtle);
}

.module-card[open] summary {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
}

.module-header-left {
  display: flex;
  align-items: center;
}

.module-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  color: #047857;
  font-size: 13px;
  font-weight: 800;
  margin-right: 12px;
  flex-shrink: 0;
}

.module-chevron {
  font-size: 14px;
  color: var(--text-subtle);
  transition: transform 0.2s ease;
}

.module-card[open] .module-chevron {
  transform: rotate(180deg);
}

.module-content {
  padding: 16px 20px 20px 60px;
  background: var(--bg-subtle);
}

.module-topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-topic-item {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-topic-item::before {
  content: "•";
  color: var(--green);
  font-weight: bold;
}

/* Course FAQ Accordions */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border-light);
  color: var(--primary);
  background: #f8fafc;
}

.faq-item-body {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  background: var(--bg-subtle);
}

@media (max-width: 1024px) {
  .course-detail-layout {
    grid-template-columns: 1fr;
  }
  .course-sidebar-card {
    position: static;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }
  .course-hero-bg {
    width: 60%;
    opacity: 0.55;
  }
  .module-content {
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .course-detail-hero {
    padding: 44px 0 36px;
  }
  .course-hero-bg {
    width: 100%;
    min-width: 0;
    opacity: 0.15;
  }
}
