/* ===========================
   Training Incubator - Design System CSS
   Bootstrap 5.3.3 | Sora + Inter fonts
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #5C27FE;
  --primary-light: #7B4FFF;
  --primary-dark: #4A1FD4;
  --accent: #00BFFF;
  --dark: #0D1117;
  --dark-nav: #111827;
  --dark-footer: #0A0E1A;
  --text-main: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --card-bg: #FFFFFF;
  --section-bg: #F8F9FF;
  --star: #FACC15;
  --success: #10B981;
  --discount-bar: #2D1B69;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(92,39,254,0.12);
  --shadow-lg: 0 8px 32px rgba(92,39,254,0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-main);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
}

/* =====================
   DISCOUNT BAR
   ===================== */
.discount-bar {
  background: linear-gradient(90deg, #5f3cb9 0%, #1c8de8 100%);
  color: #ffffff;
  font-size: 11px;
  padding: 5px 0;
  font-family: 'Inter', sans-serif;
}
.discount-bar .discount-bar-inner {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.discount-bar .discount-msg {
  margin: 0;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
}
.discount-bar span.code {
  color: #f6ab2f;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.discount-bar .bar-actions {
  margin-left: auto;
}
.discount-bar .bar-action-link {
  color: rgba(255,255,255,0.92);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-left: 1px solid rgba(255,255,255,0.3);
  line-height: 1;
  transition: color var(--transition);
  text-decoration: none;
}
.discount-bar .bar-action-link:first-child {
  border-left: 0;
  padding-left: 0;
}
.discount-bar .bar-action-link i {
  font-size: 10px;
}
.discount-bar .bar-action-link:hover { color: #fff; }

/* =====================
   NAVBAR
   ===================== */
.navbar-main {
  background: var(--white);
  border-bottom: 0;
  padding: 20px 0;
  position: relative;
  z-index: 1000;
  box-shadow: none;
}
.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-brand-custom .brand-logo {
  height: 34px;
  width: auto;
  display: block;
}
.navbar-brand-custom .brand-text {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #5f2dbf;
  line-height: 1;
}
.header-nav-links {
  gap: 2px;
}
.nav-link-custom {
  color: #263042 !important;
  font-weight: 400;
  font-size: 14px;
  padding: 9px 14px !important;
  border-radius: 22px;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link-custom:hover {
  color: #146db7 !important;
}
.nav-link-custom.active {
  color: #1a3d66 !important;
  background: #ffffff;
  border-color: #4b7ec9;
  min-width: 74px;
  text-align: center;
}
.btn-nav-login {
  background: #118fdd;
  border: 1px solid #118fdd;
  color: #ffffff !important;
  font-weight: 500;
  border-radius: 2px;
  padding: 9px 26px !important;
  font-size: 14px;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-nav-login:hover {
  background: #0f82ca;
  border-color: #0f82ca;
  color: #ffffff !important;
}
.avatar-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f3f7fc;
  border: 1px solid #c5d9ee;
  color: #215483;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch-btn:hover {
  background: #146db7;
  border-color: #146db7;
  color: white;
}
.mobile-nav-toggle i {
  color: #263042;
}

/* =====================
   HERO
   ===================== */
.hero-section {
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center center;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 74px 0 66px;
  isolation: isolate;
}
.hero-section .hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 16, 42, 0.9) 0%, rgba(6, 29, 71, 0.78) 48%, rgba(4, 24, 62, 0.46) 100%);
  z-index: -1;
}
.hero-content-wrap {
  max-width: 560px;
}
.hero-section h1 {
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  color: white;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 8px;
}
.hero-section .subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}
.hero-search-wrap {
  margin-top: 14px;
  max-width: 420px;
}
.hero-search-wrap .search-box {
  background: #f1f1f1;
  border-radius: 7px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6px 6px 6px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.hero-search-wrap input {
  border: none;
  outline: none;
  flex: 1;
  padding: 7px 10px 7px 0;
  font-size: 16px;
  color: #8a8a8a;
  background: transparent;
}
.hero-search-wrap input::placeholder {
  color: #a8a8a8;
}
.hero-search-wrap button {
  background: #1596df;
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: white;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.hero-search-wrap button:hover { background: #0f82ca; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.hero-stats .avatars { display: flex; }
.hero-stats .avatars img {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #1da0ea;
  margin-left: -8px;
  object-fit: cover;
  background: #0e2e64;
}
.hero-stats .avatars img:first-child { margin-left: 0; }
.hero-stats .stat-text {
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stats .stat-text strong {
  color: white;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.2px;
}
.hero-stats .hero-reviews {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.88);
  font-size: 10px;
}
.hero-stats .hero-reviews i {
  color: #ffc83d;
  font-size: 10px;
}

/* =====================
   SECTION COMMON
   ===================== */
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}
.section-muted {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 8px;
  line-height: 1.6;
}

/* =====================
   CATEGORY TABS
   ===================== */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.cat-tab {
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}
.cat-tab:hover, .cat-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =====================
   COURSE CARD
   ===================== */
.course-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.course-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.course-card .card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.course-card:hover .card-img-wrap img { transform: scale(1.05); }
.course-card .card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(92,39,254,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.course-card:hover .card-overlay { opacity: 1; }
.btn-view-details {
  background: white;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-view-details:hover {
  background: var(--primary);
  color: white;
}
.course-card .card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-card .course-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
}
.course-card .course-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.course-card .course-meta .rating {
  color: var(--star);
  font-weight: 600;
}
.price-tag {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  margin-top: auto;
}
.course-card .course-stats {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.course-card .stat-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-light);
  background: var(--section-bg);
  padding: 3px 8px;
  border-radius: 50px;
}

/* =====================
   BUTTONS
   ===================== */
.btn-primary-custom {
  background: var(--primary);
  color: white !important;
  border: none;
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(92,39,254,0.35);
  text-decoration: none;
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92,39,254,0.45);
  color: white !important;
}
.btn-outline-custom {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 10px 28px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-outline-custom:hover {
  background: var(--primary);
  color: white !important;
  transform: translateY(-2px);
}

/* =====================
   FEATURED SECTION
   ===================== */
.featured-section {
  padding: 74px 0 62px;
  background: #f8f8f8;
}
.featured-section .featured-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1890e5;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 16px;
}
.featured-section .featured-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: #1890e5;
}
.featured-section .featured-title {
  max-width: 520px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.14;
  font-weight: 700;
  color: #0e2239;
  margin-bottom: 36px;
}
.featured-section .featured-tabs-wrap {
  border-bottom: 1px solid #d8d8d8;
  margin-bottom: 20px;
}
.featured-section .featured-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: -1px;
}
.featured-section .featured-category-tabs .cat-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #667085;
  font-size: 16px;
  font-weight: 400;
  padding: 0 0 12px;
}
.featured-section .featured-category-tabs .cat-tab.active,
.featured-section .featured-category-tabs .cat-tab:hover {
  background: transparent;
  color: #1890e5;
  border-bottom-color: #1890e5;
}
.featured-section .course-row { margin-top: 0; }
.featured-section .course-card {
  border: 1px solid #d7d7d7;
  border-radius: 18px;
  box-shadow: none;
}
.featured-section .course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.featured-section .course-card .card-img-wrap {
  border-radius: 18px 18px 0 0;
  aspect-ratio: 16 / 9.5;
}
.featured-section .course-card .card-body {
  padding: 16px 16px 14px;
}
.featured-section .course-title {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
  color: #101828;
}
.featured-section .featured-meta-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.featured-section .course-meta {
  margin-bottom: 0;
  font-size: 12px;
  color: #77818d;
}
.featured-section .course-meta .rating {
  font-weight: 400;
  color: #f59f00;
}
.featured-section .price-tag {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #172b4d;
  line-height: 1;
  white-space: nowrap;
}
.featured-section .course-stats {
  gap: 8px;
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid #ebedf0;
}
.featured-section .stat-badge {
  background: transparent;
  padding: 0;
  color: #7b8794;
  font-size: 11px;
}
.featured-section .stat-badge i {
  color: #8d99a6;
}
.featured-section .featured-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  border: 1.5px solid #1890e5;
  color: #1890e5;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}
.featured-section .featured-more-btn:hover {
  background: #1890e5;
  color: #fff;
}

/* =====================
   CATEGORY SECTION
   ===================== */
.category-showcase-section {
  background: #eaf2f8;
  padding: 78px 0;
}
.category-showcase-intro {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.category-showcase-title {
  margin: 8px 0 18px;
  padding-left: 18px;
  border-left: 4px solid #142f45;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: #11283d;
  max-width: 320px;
}
.category-showcase-text {
  max-width: 350px;
  color: #677381;
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
}
.category-showcase-dots {
  margin-top: auto;
  padding-top: 38px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.category-showcase-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9fd7ff;
  border: 0;
  padding: 0;
  display: inline-block;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}
.category-showcase-dots .dot.active {
  width: 62px;
  border-radius: 999px;
  background: #1595de;
  transform: translateY(0);
}
.category-showcase-slider {
  overflow: hidden;
}
.category-showcase-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.45s ease;
  will-change: transform;
}
.category-showcase-slide {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 6px;
  box-sizing: border-box;
}
.category-showcase-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  min-height: 416px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(12, 32, 58, 0.16);
}
.category-showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.category-showcase-card:hover img {
  transform: scale(1.04);
}
.category-showcase-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: #f5f7f9;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #142a3f;
  font-size: 18px;
  font-weight: 500;
}
.category-showcase-label i {
  font-size: 22px;
  color: #273f56;
}

/* =====================
   FREE SKILLS SECTION
   ===================== */
.free-skills-section { padding: 80px 0; }
.skills-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.skills-tab {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}
.skills-tab.active, .skills-tab:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =====================
   BECOME TRAINER CTA
   ===================== */
.trainer-cta-section {
  position: relative;
  padding: 110px 0 95px;
  background: radial-gradient(circle at 74% 24%, rgba(0, 150, 190, 0.22) 0%, rgba(0, 150, 190, 0.06) 24%, transparent 48%),
              radial-gradient(circle at 40% 18%, rgba(10, 80, 130, 0.25) 0%, transparent 42%),
              #021627;
  overflow: hidden;
}
.trainer-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 18, 0.1) 0%, rgba(1, 7, 14, 0.68) 70%, rgba(1, 6, 12, 0.88) 100%);
  pointer-events: none;
}
.trainer-cta-section .container {
  position: relative;
  z-index: 1;
}
.trainer-cta-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 46px;
}
.trainer-cta-copy {
  max-width: 760px;
}
.trainer-cta-copy h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 18px;
}
.trainer-cta-copy p {
  margin: 0;
  max-width: 760px;
  color: rgba(232, 242, 255, 0.46);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.66;
}
.trainer-cta-btn {
  background: #00a5ff;
  color: #ffffff;
  border-radius: 999px;
  padding: 16px 34px;
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.trainer-cta-btn:hover {
  color: #ffffff;
  background: #0393e2;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 165, 255, 0.25);
}
.trainer-cta-bottom {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: stretch;
}
.trainer-cta-media {
  border-radius: 24px;
  overflow: hidden;
  min-height: 444px;
}
.trainer-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  display: block;
}
.trainer-cta-stats {
  border-radius: 32px;
  padding: 34px 34px 30px;
  background: linear-gradient(180deg, rgba(12, 40, 72, 0.92) 0%, rgba(9, 30, 57, 0.96) 100%);
  border: 1px solid rgba(0, 165, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.trainer-cta-stats hr {
  border: 0;
  border-top: 1px solid rgba(0, 165, 255, 0.35);
  margin: 22px 0;
}
.trainer-stat-block h5 {
  margin: 0 0 14px;
  color: #f8b133;
  font-size: 36px;
  font-weight: 600;
}
.trainer-stat-num {
  font-family: 'Sora', sans-serif;
  color: #ffffff;
  font-size: clamp(42px, 4.5vw, 88px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.trainer-stat-block p {
  margin: 0;
  font-size: 32px;
  line-height: 1.45;
  color: rgba(218, 230, 244, 0.5);
}

@media (max-width: 1199.98px) {
  .trainer-cta-top {
    margin-bottom: 30px;
  }
  .trainer-cta-btn {
    font-size: 16px;
    padding: 14px 28px;
  }
  .trainer-cta-bottom {
    grid-template-columns: 1.6fr 1fr;
  }
  .trainer-cta-media {
    min-height: 360px;
  }
  .trainer-stat-block h5 {
    font-size: 24px;
  }
  .trainer-stat-num {
    font-size: clamp(34px, 3.6vw, 64px);
  }
  .trainer-stat-block p {
    font-size: 20px;
  }
}

@media (max-width: 991.98px) {
  .trainer-cta-section {
    padding: 85px 0 75px;
  }
  .trainer-cta-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .trainer-cta-bottom {
    grid-template-columns: 1fr;
  }
  .trainer-cta-media {
    min-height: 320px;
  }
  .trainer-cta-stats {
    padding: 26px;
    border-radius: 26px;
  }
}

@media (max-width: 575.98px) {
  .trainer-cta-copy h2 {
    margin-bottom: 12px;
  }
  .trainer-cta-copy p {
    font-size: 14px;
  }
  .trainer-cta-btn {
    padding: 12px 22px;
  }
  .trainer-cta-media {
    min-height: 250px;
    border-radius: 18px;
  }
  .trainer-cta-stats {
    padding: 20px;
  }
  .trainer-stat-block h5 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .trainer-stat-num {
    font-size: 36px;
    margin-bottom: 6px;
  }
  .trainer-stat-block p {
    font-size: 15px;
  }
}
/* =====================
   HOW IT WORKS
   ===================== */
.how-it-works { padding: 80px 0; background: var(--section-bg); }
.how-card {
  text-align: center;
  padding: 32px 20px;
}
.how-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(92,39,254,0.12), rgba(0,191,255,0.12));
  color: var(--primary);
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.how-card h5 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.how-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* =====================
   TOP TRAINERS
   ===================== */
.trainers-section { padding: 80px 0; background: white; }
.trainers-section .section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}
.trainers-section .section-header-row .left { flex: 1; min-width: 200px; }
.trainers-section .section-header-row .section-title { margin-bottom: 6px; }
.trainer-card {
  text-align: center;
  padding: 32px 20px 24px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.trainer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.trainer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(92,39,254,0.2);
}
.trainer-card:hover::before { opacity: 1; }
.trainer-img-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}
.trainer-img-wrap img {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  display: block;
}
.trainer-img-wrap .trainer-badge {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 22px; height: 22px;
  background: var(--success);
  border: 2px solid white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.trainer-img-wrap .trainer-badge i { font-size: 10px; color: white; }
.trainer-card .trainer-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--text-main);
  margin-bottom: 4px;
}
.trainer-card .trainer-role {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.trainer-card .trainer-stats {
  display: flex; justify-content: center; gap: 20px;
  font-size: 12px; color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}
.trainer-card .trainer-stats span {
  display: flex; align-items: center; gap: 4px;
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonials-section { padding: 80px 0; background: var(--section-bg); }
.testimonials-section .section-header { text-align: center; margin-bottom: 48px; }
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  height: 100%;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(92,39,254,0.15);
}
.testimonial-card .quote-icon {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 48px;
  color: rgba(92,39,254,0.08);
  line-height: 1;
  font-family: Georgia, serif;
  font-weight: 900;
  pointer-events: none;
  user-select: none;
}
.testimonial-card .stars {
  color: var(--star);
  font-size: 13px;
  margin-bottom: 14px;
  display: flex; gap: 2px;
}
.testimonial-card .review-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  flex: 1;
}
.testimonial-card .reviewer {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-card .reviewer img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}
.testimonial-card .reviewer-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 14px;
  color: var(--text-main);
  margin: 0;
}
.testimonial-card .reviewer-role {
  font-size: 12px;
  color: var(--text-light);
  margin: 2px 0 0;
}

/* =====================
   FOOTER
   ===================== */
.footer-main {
  background: var(--dark-footer);
  padding: 60px 0 0;
  color: rgba(255,255,255,0.6);
}
.footer-brand { color: white; font-size: 18px; font-weight: 800; margin-bottom: 14px; font-family: 'Sora', sans-serif; }
.footer-brand span { color: var(--primary); }
.footer-desc { font-size: 13.5px; line-height: 1.7; max-width: 240px; }
.footer-title {
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-links a:hover { color: var(--primary); }
.newsletter-form-footer {
  display: flex;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 14px;
}
.newsletter-form-footer input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  padding: 12px 16px;
  flex: 1;
  font-size: 13px;
}
.newsletter-form-footer input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form-footer button {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.newsletter-form-footer button:hover { background: var(--primary-dark); }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--primary); color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  margin-top: 48px;
}
.footer-bottom-text {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-text a { color: var(--primary); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  font-size: 12.5px;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--primary); }

/* =====================
   SEARCH PAGE
   ===================== */
.search-page-hero {
  background: var(--section-bg);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.search-hero-input-wrap {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 500px;
}
.search-hero-input-wrap input {
  border: none;
  outline: none;
  flex: 1;
  padding: 12px 18px;
  font-size: 14px;
  background: transparent;
}
.search-hero-input-wrap button {
  background: var(--primary);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: white;
  margin: 4px;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.search-hero-input-wrap button:hover { background: var(--primary-dark); }
.sidebar-filter { position: sticky; top: 80px; }
.filter-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 24px; }
.filter-group-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 12px;
}
.filter-check .form-check { margin-bottom: 8px; }
.filter-check .form-check-label {
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
}
.filter-check .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-header h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}
.tabs-switch {
  display: flex;
  background: var(--section-bg);
  border-radius: 50px;
  padding: 3px;
}
.tab-switch-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-switch-btn.active {
  background: white;
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.sort-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--primary); }
.pagination-custom { display: flex; gap: 6px; margin-top: 40px; justify-content: center; }
.page-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn.active, .page-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =====================
   COURSE DETAIL PAGE
   ===================== */
.breadcrumb-wrap {
  background: var(--section-bg);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-wrap .breadcrumb { margin: 0; font-size: 13px; }
.breadcrumb-wrap .breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-wrap .breadcrumb-item.active { color: var(--primary); }
.breadcrumb-wrap .breadcrumb-item + .breadcrumb-item::before { color: var(--text-light); }

.video-player {
  background: #000;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.video-player img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.play-btn {
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform var(--transition);
}
.video-player:hover .play-btn { transform: scale(1.1); }

.course-detail-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-top: 20px;
}
.by-line { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin: 32px 0 24px;
  overflow-x: auto;
}
.detail-tab {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}
.detail-tab.active, .detail-tab:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-content-panel { display: none; }
.tab-content-panel.active { display: block; }

.price-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow-md);
}
.price-card .price-num {
  font-family: 'Sora', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
}
.price-card .price-old {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 8px;
}
.price-divider { border-top: 1px solid var(--border); margin: 18px 0; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 13.5px;
}
.detail-row .d-label {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted);
}
.detail-row .d-label i { color: var(--primary); font-size: 15px; width: 18px; text-align: center; }
.detail-row .d-value { font-weight: 600; color: var(--text-main); }

.btn-enroll-full {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 18px;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(92,39,254,0.35);
  text-decoration: none;
  display: block;
  text-align: center;
}
.btn-enroll-full:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92,39,254,0.45);
}

.instructor-sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.instructor-sidebar-card img {
  width: 60px; height: 60px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--primary);
}
.instructor-sidebar-card .instructor-name { font-weight: 700; font-size: 15px; }
.instructor-sidebar-card .instructor-role { color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
.instructor-stats { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.instructor-stats .ist { font-size: 12px; color: var(--text-muted); }

.module-list { list-style: none; padding: 0; margin: 0; }
.module-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: all var(--transition);
  cursor: pointer;
  font-size: 14px;
}
.module-item:hover { border-color: var(--primary); background: rgba(92,39,254,0.03); }
.module-item .module-left { display: flex; align-items: center; gap: 12px; }
.module-item .play-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(92,39,254,0.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.module-item .module-name { font-weight: 500; color: var(--text-main); }
.module-item .module-right { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13px; }
.module-item .lock-icon { color: var(--text-light); font-size: 14px; }

/* Reviews */
.review-aggregate { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.review-big-num { font-family: 'Sora', sans-serif; font-size: 3.5rem; font-weight: 800; color: var(--text-main); line-height: 1; }
.review-stars-big { color: var(--star); font-size: 18px; }
.review-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.review-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.review-bar-fill { height: 100%; background: var(--star); border-radius: 3px; }
.review-card {
  background: var(--section-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.review-card .reviewer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-card .reviewer-name { font-weight: 600; font-size: 14px; }
.review-card .review-date { font-size: 12px; color: var(--text-light); }
.review-card .review-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-top: 10px; }

/* =====================
   SEARCH RESULTS - SECTION PADDING
   ===================== */
.search-results-section { padding: 48px 0; }

/* =====================
   FADE ANIMATIONS
   ===================== */
.fade-in-el {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-el.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 991.98px) {
  .sidebar-filter { position: static; margin-bottom: 28px; }
  .price-card { position: static; }
  .navbar-main {
    padding: 14px 0;
  }
  .hero-section {
    min-height: 390px;
    padding: 48px 0;
  }
  .hero-section .subtitle {
    font-size: 17px;
  }
  .hero-search-wrap input {
    font-size: 15px;
  }
  .hero-stats .stat-text strong {
    font-size: 17px;
  }
  .featured-section .featured-kicker {
    font-size: 20px;
  }
  .featured-section .featured-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    margin-bottom: 24px;
  }
  .featured-section .featured-category-tabs {
    gap: 14px;
  }
  .featured-section .featured-category-tabs .cat-tab {
    font-size: 14px;
  }
  .category-showcase-section {
    padding: 60px 0;
  }
  .category-showcase-title {
    font-size: 2.25rem;
  }
  .category-showcase-card {
    min-height: 360px;
  }
  .category-showcase-slide {
    flex-basis: 50%;
    max-width: 50%;
  }
}
@media (max-width: 767.98px) {
  .hero-section {
    padding: 44px 0;
    min-height: auto;
    background-position: center right;
  }
  .hero-section .subtitle {
    font-size: 16px;
  }
  .hero-search-wrap {
    margin-top: 16px;
  }
  .hero-search-wrap .search-box {
    padding: 5px 5px 5px 10px;
  }
  .hero-search-wrap input {
    font-size: 14px;
    padding: 6px 10px 6px 0;
  }
  .hero-search-wrap button {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .hero-stats {
    margin-top: 20px;
    gap: 8px;
  }
  .hero-stats .avatars img {
    width: 30px;
    height: 30px;
    margin-left: -7px;
  }
  .hero-stats .stat-text strong {
    font-size: 16px;
  }
  .hero-stats .hero-reviews {
    font-size: 10px;
  }
  .featured-section {
    padding: 54px 0 46px;
  }
  .featured-section .featured-kicker {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .featured-section .featured-title {
    font-size: 1.95rem;
    margin-bottom: 18px;
  }
  .featured-section .featured-category-tabs {
    gap: 12px;
  }
  .featured-section .featured-category-tabs .cat-tab {
    font-size: 13px;
    padding-bottom: 9px;
  }
  .featured-section .course-title {
    font-size: 17px;
  }
  .featured-section .price-tag {
    font-size: 16px;
  }
  .category-showcase-section {
    padding: 48px 0;
  }
  .category-showcase-title {
    font-size: 1.9rem;
    margin-bottom: 12px;
  }
  .category-showcase-text {
    max-width: 100%;
    font-size: 15px;
  }
  .category-showcase-dots {
    margin-top: 22px;
    padding-top: 0;
  }
  .category-showcase-slide {
    flex-basis: 100%;
    max-width: 100%;
    padding: 0;
  }
  .category-showcase-card {
    min-height: 300px;
  }
  .category-showcase-label {
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .category-showcase-label i {
    font-size: 18px;
  }
  .discount-bar .bar-actions { display: none !important; }
  .discount-bar .discount-bar-inner {
    justify-content: center;
    min-height: 18px;
  }
  .discount-bar .discount-msg {
    position: static;
    transform: none;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .footer-bottom { text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .featured-section, .free-skills-section, .trainers-section { padding: 50px 0; }
  .trainer-cta-section, .how-it-works, .testimonials-section { padding: 50px 0; }
}
@media (max-width: 575.98px) {
  .hero-section h1 { font-size: 1.55rem; }
  .hero-section .subtitle { font-size: 14px; }
  .hero-search-wrap input { font-size: 13px; }
  .hero-stats .stat-text strong { font-size: 14px; }
  .featured-section .featured-title {
    font-size: 1.7rem;
    line-height: 1.2;
  }
  .featured-section .featured-kicker {
    font-size: 15px;
  }
  .featured-section .featured-category-tabs {
    gap: 10px;
  }
  .featured-section .featured-category-tabs .cat-tab {
    font-size: 12px;
  }
  .category-showcase-title {
    font-size: 1.7rem;
    padding-left: 12px;
    border-left-width: 3px;
  }
  .category-showcase-dots {
    gap: 10px;
  }
  .category-showcase-dots .dot.active {
    width: 50px;
  }
  .category-showcase-card {
    min-height: 250px;
  }
  .category-showcase-label {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 14px;
  }
  .results-header { flex-direction: column; align-items: flex-start; }
  .review-aggregate { flex-direction: column; align-items: flex-start; gap: 12px; }
}

