/* Courses & LMS Page Design System */
:root {
  --lms-primary: #c51d24;
  --lms-primary-hover: #991b1b;
  --lms-primary-light: #fff1f2;
  --lms-secondary: #0b1c2d;
  --lms-accent: #f59e0b;
  --lms-accent-green: #10b981;
  --lms-dark: #0b1c2d;
  --lms-card-bg: #ffffff;
  --lms-border: #e2e8f0;
  --lms-text: #1e293b;
  --lms-text-muted: #64748b;
  --lms-radius: 16px;
  --lms-shadow: 0 10px 25px -5px rgba(11, 28, 45, 0.08), 0 8px 10px -6px rgba(11, 28, 45, 0.04);
  --lms-shadow-hover: 0 20px 35px -10px rgba(197, 29, 36, 0.25), 0 10px 15px -5px rgba(11, 28, 45, 0.06);
}

/* 0. Dynamic Courses Hero Section */
.courses-hero-section {
  background: linear-gradient(135deg, #0b1c2d 0%, #152738 50%, #1c354e 100%);
  color: #ffffff;
  padding: 40px 0 36px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #c51d24;
}

.courses-hero-section::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 29, 36, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.courses-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 2;
}

.courses-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
}

.courses-hero-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.courses-hero-breadcrumb a:hover {
  color: #ffffff;
}

.courses-hero-content {
  max-width: 820px;
}

.courses-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 29, 36, 0.22);
  border: 1px solid rgba(197, 29, 36, 0.5);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.courses-hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.28;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.courses-hero-subtitle {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 0;
}

.courses-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 29, 36, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

.hero-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(197, 29, 36, 0.25);
  color: #fca5a5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.hero-stat-info b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.hero-stat-info span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 3px;
}

@media (max-width: 991px) {
  .courses-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .courses-hero-title {
    font-size: 26px;
  }
}

@media (max-width: 576px) {
  .courses-hero-stats {
    grid-template-columns: 1fr;
  }
}

/* 1. Courses Breadcrumb Bar */
.courses-breadcrumb-wrap {
  background: #f8fafc;
  border-bottom: 1px solid var(--lms-border, #e2e8f0);
  padding: 12px 0;
}

.courses-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.courses-breadcrumb a {
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.courses-breadcrumb a:hover {
  color: var(--lms-primary, #4f46e5);
}

.courses-breadcrumb .breadcrumb-sep {
  font-size: 9px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
}

.courses-breadcrumb .current {
  color: #0f172a;
  font-weight: 600;
}

@media (max-width: 768px) {
  .courses-breadcrumb-wrap {
    padding: 10px 0;
  }
  .courses-breadcrumb {
    font-size: 12px;
  }
}

/* 2. Filter & Category Bar */
.courses-filter-section {
  background: #ffffff;
  border-bottom: 1px solid var(--lms-border);
  padding: 14px 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

@media (min-width: 992px) {
  .courses-filter-section {
    position: sticky;
    top: 100px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  }
}

.courses-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.courses-category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.category-tab-btn {
  background: #f1f5f9;
  border: 1px solid transparent;
  color: var(--lms-text);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-tab-btn:hover {
  background: #e2e8f0;
  color: var(--lms-primary);
}

.category-tab-btn.active {
  background: var(--lms-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.courses-filter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.courses-filter-search {
  margin: 0;
  display: flex;
  align-items: center;
}

.courses-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--lms-border);
  border-radius: 9999px;
  padding: 0 10px;
  height: 38px;
  width: 220px;
  transition: all 0.2s ease;
}

.courses-search-input-wrap:focus-within {
  background: #ffffff;
  border-color: var(--lms-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  width: 260px;
}

.search-submit-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px 0 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.courses-search-input-wrap:focus-within .search-submit-btn,
.search-submit-btn:hover {
  color: var(--lms-primary);
}

.courses-search-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--lms-text);
  font-family: inherit;
}

.courses-search-input-wrap input::placeholder {
  color: #94a3b8;
}

.clear-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 11px;
  margin-left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.clear-search-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.filter-select {
  background: #ffffff;
  border: 1px solid var(--lms-border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--lms-text);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.filter-select:focus {
  border-color: var(--lms-primary);
}

@media (max-width: 991px) {
  .courses-filter-controls {
    width: 100%;
  }
  .courses-filter-search {
    flex: 1 1 100%;
  }
  .courses-search-input-wrap {
    width: 100%;
  }
  .courses-search-input-wrap:focus-within {
    width: 100%;
  }
}

/* 3. Main Course Cards Grid */
.courses-container-section {
  padding: 48px 0 64px;
  background: #f8fafc;
}

.section-head-title {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head-title h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--lms-text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.section-head-title p {
  color: var(--lms-text-muted);
  font-size: 14px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Course Card Item */
.course-card {
  background: var(--lms-card-bg);
  border: 1px solid var(--lms-border);
  border-radius: var(--lms-radius);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--lms-shadow);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lms-shadow-hover);
  border-color: #c7d2fe;
}

/* Thumbnail Wrap */
.course-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.course-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-thumb-wrap img {
  transform: scale(1.05);
}

.course-badge-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.4);
  z-index: 2;
}

.course-badge-pill.trending {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.course-badge-pill.hot {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

.course-badge-pill.top-rated {
  background: linear-gradient(135deg, #059669, #10b981);
}

.course-level-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  z-index: 2;
}

/* Card Body */
.course-body {
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.course-cat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--lms-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #d97706;
}

.course-rating i {
  color: #f59e0b;
}

.course-rating span.review-count {
  color: var(--lms-text-muted);
  font-weight: 500;
}

.course-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--lms-text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 44px;
}

.course-desc {
  font-size: 13px;
  color: var(--lms-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Instructor row */
.course-instructor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.instructor-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.instructor-info b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--lms-text);
  line-height: 1.2;
}

.instructor-info span {
  display: block;
  font-size: 11px;
  color: var(--lms-text-muted);
}

/* Highlights / Stats line */
.course-perks-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--lms-text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.course-perk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.course-perk i {
  color: var(--lms-primary);
}

/* Price & CTA row */
/* Price & CTA row */
.course-bottom-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.course-pricing-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.price-main-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.price-discounted {
  font-size: 21px;
  font-weight: 800;
  color: var(--lms-text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-regular {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.price-off-pill {
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1.2;
}

/* Action Buttons Grid - 3 proportional columns fitting 100% of card width */
.course-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.25fr;
  gap: 6px;
  width: 100%;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1;
  border: none;
  box-sizing: border-box;
}

.btn-card-class {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.btn-card-class i {
  color: #c51d24;
  font-size: 10px;
}

.btn-card-class:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-card-syllabus {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.btn-card-syllabus i {
  color: #64748b;
  font-size: 11px;
}

.btn-card-syllabus:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-card-enroll {
  background: linear-gradient(135deg, #c51d24, #e11d48);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(197, 29, 36, 0.28);
}

.btn-card-enroll i {
  font-size: 11px;
  color: #ffffff;
}

.btn-card-enroll:hover {
  background: linear-gradient(135deg, #a3161c, #be123c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 29, 36, 0.38);
  color: #ffffff;
}

.btn-details {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--lms-text);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-details:hover {
  background: #e2e8f0;
  color: var(--lms-primary);
}

.btn-enroll-now {
  background: linear-gradient(135deg, #c51d24, #e11d48);
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(197, 29, 36, 0.35);
}

.btn-enroll-now:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(197, 29, 36, 0.45);
}

/* 4. Why Choose Us Section */
.courses-why-section {
  padding: 64px 0;
  background: #ffffff;
  border-top: 1px solid var(--lms-border);
}

.section-centered-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-centered-title span.badge-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--lms-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-centered-title h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--lms-text);
  margin-bottom: 12px;
}

.section-centered-title p {
  color: var(--lms-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.why-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.why-feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.why-feature-card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.08);
}

.feature-ic-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: var(--lms-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.why-feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--lms-text);
  margin-bottom: 10px;
}

.why-feature-card p {
  font-size: 14px;
  color: var(--lms-text-muted);
  line-height: 1.6;
}

/* 5. How It Works (Roadmap) */
.courses-roadmap-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--lms-border);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}

.roadmap-step {
  background: #ffffff;
  border: 1px solid var(--lms-border);
  border-radius: 16px;
  padding: 26px 20px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lms-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.roadmap-step h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--lms-text);
  margin-bottom: 8px;
}

.roadmap-step p {
  font-size: 13px;
  color: var(--lms-text-muted);
  line-height: 1.5;
}

/* 6. Testimonials Section */
.courses-testimonials-section {
  padding: 64px 0;
  background: #ffffff;
  border-top: 1px solid var(--lms-border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--lms-text);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 18px;
  flex: 1;
}

.student-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-profile img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.student-meta b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--lms-text);
}

.student-meta span {
  display: block;
  font-size: 12px;
  color: var(--lms-primary);
  font-weight: 600;
}

/* 7. FAQ Section */
.courses-faq-section {
  padding: 64px 0;
  background: #f8fafc;
  border-top: 1px solid var(--lms-border);
}

.faq-accordion-wrap {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--lms-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: var(--lms-primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.faq-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: transparent;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--lms-text);
}

.faq-header i {
  color: var(--lms-text-muted);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-header i {
  transform: rotate(180deg);
  color: var(--lms-primary);
}

.faq-content {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--lms-text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-content {
  display: block;
}

/* 8. Bottom CTA */
.courses-bottom-cta {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
  color: #ffffff;
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.courses-bottom-cta h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
}

.courses-bottom-cta p {
  font-size: 16px;
  color: #c7d2fe;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.cta-action-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: #ffffff;
  color: var(--lms-primary);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  background: #f8fafc;
}

.btn-cta-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: transform 0.15s ease;
}

.btn-cta-whatsapp:hover {
  transform: translateY(-2px);
  background: #20ba59;
}

/* 9. Modal Windows (Curriculum & Enrollment) */
.lms-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lms-modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.lms-modal-box {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header-lms {
  padding: 20px 24px;
  border-bottom: 1px solid var(--lms-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.modal-header-lms h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--lms-text);
}

.modal-close-btn {
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--lms-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.modal-body-lms {
  padding: 24px;
  flex: 1;
}

/* Enrollment Form Inside Modal */
.course-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-summary-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--lms-text);
  margin-bottom: 4px;
}

.course-summary-info span {
  font-size: 12px;
  color: var(--lms-text-muted);
}

.course-summary-price b {
  font-size: 18px;
  font-weight: 800;
  color: var(--lms-primary);
}

.form-group-lms {
  margin-bottom: 16px;
}

.form-group-lms label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--lms-text);
  margin-bottom: 6px;
}

.form-group-lms input,
.form-group-lms select,
.form-group-lms textarea {
  width: 100%;
  border: 1px solid var(--lms-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--lms-text);
  outline: none;
  transition: border-color 0.2s;
  background: #ffffff;
}

.form-group-lms input:focus,
.form-group-lms select:focus,
.form-group-lms textarea:focus {
  border-color: var(--lms-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.payment-method-radios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.payment-radio-label {
  border: 1px solid var(--lms-border);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-radio-label input {
  display: none;
}

.payment-radio-label:has(input:checked) {
  border-color: var(--lms-primary);
  background: #e0e7ff;
  font-weight: 700;
  color: var(--lms-primary);
}

.payment-instructions-box {
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.5;
}

.btn-submit-enroll {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border: none;
  color: #ffffff;
  padding: 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-submit-enroll:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}

/* Curriculum Syllabus in Modal */
.module-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.curriculum-module-card {
  border: 1px solid var(--lms-border);
  border-radius: 10px;
  overflow: hidden;
}

.curriculum-module-header {
  background: #f8fafc;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lms-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.curriculum-module-lessons {
  padding: 10px 16px;
  background: #ffffff;
}

.curriculum-lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: var(--lms-text);
}

.curriculum-lesson-item:last-child {
  border-bottom: none;
}

.curriculum-lesson-item span.duration {
  font-size: 12px;
  color: var(--lms-text-muted);
}

/* Success State in Modal */
.enroll-success-wrap {
  text-align: center;
  padding: 30px 10px;
}

.enroll-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
}

.enroll-success-wrap h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--lms-text);
  margin-bottom: 8px;
}

.enroll-success-wrap p {
  font-size: 14px;
  color: var(--lms-text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .courses-hero-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .courses-hero p {
    margin: 0 auto 28px;
  }
  .courses-hero-search {
    margin: 0 auto;
  }
  .courses-hero-visual {
    display: none;
  }
  .courses-filter-section {
    position: relative;
    top: 0;
    z-index: 10;
  }
}

@media (max-width: 768px) {
  .courses-hero-section {
    padding: 28px 0 24px;
  }
  .courses-hero-title {
    font-size: 22px;
    line-height: 1.35;
  }
  .courses-hero-subtitle {
    font-size: 13.5px;
  }
  .section-centered-title h2 {
    font-size: 22px;
  }
  .section-centered-title p {
    font-size: 13.5px;
  }
  .courses-filter-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .courses-filter-search {
    width: 100%;
  }
  .courses-search-input-wrap {
    width: 100%;
  }
  .courses-search-input-wrap:focus-within {
    width: 100%;
  }
  .filter-select {
    width: 100%;
  }
  .courses-bottom-cta {
    padding: 40px 16px;
  }
  .courses-bottom-cta h2 {
    font-size: 22px;
  }
  .courses-bottom-cta p {
    font-size: 14px;
  }
  .cta-action-btns {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .btn-cta-primary,
  .btn-cta-whatsapp {
    width: 100%;
    justify-content: center;
  }
  .lms-modal-backdrop {
    padding: 10px;
  }
  .lms-modal-box {
    border-radius: 14px;
    max-height: 94vh;
  }
  .modal-header-lms {
    padding: 14px 16px;
  }
  .modal-body-lms {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .courses-hero h1 {
    font-size: 24px;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .payment-method-radios {
    grid-template-columns: 1fr;
  }
  .course-bottom-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .course-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .btn-enroll-quick {
    grid-column: span 2;
  }
  .why-feature-card,
  .roadmap-step,
  .testimonial-card {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .courses-hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-stat-card {
    padding: 12px 14px;
  }
  .hero-stat-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .hero-stat-info b {
    font-size: 18px;
  }
  .course-actions {
    grid-template-columns: 1fr;
  }
  .btn-enroll-quick {
    grid-column: span 1;
  }
}

/* Courses in Catalog Layout */
.courses-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1200px) {
  .courses-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .courses-catalog-grid {
    grid-template-columns: 1fr;
  }
}

.course-sidebar-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.course-sidebar-search input {
  width: 100%;
  padding: 9px 32px 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.course-sidebar-search input:focus {
  border-color: #c51d24;
  background: #ffffff;
}

.course-sidebar-search .clear-search-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px;
}

.catalog-subcategory-pills button.sub-pill {
  cursor: pointer;
  border: 1px solid #e2e8f0;
  font-family: inherit;
}

.catalog-subcategory-pills button.sub-pill:focus {
  outline: none;
}
