/* CSS Reset & Variables */
:root {
  --primary: #00b4d8;
  --primary-hover: #0096c7;
  --primary-dark: #0077b6;
  --primary-light: #e0f7fa;
  --secondary: #1a2b49;
  --accent-gold: #ffb703;
  --accent-red: #ef476f;
  --accent-green: #06d6a0;
  --accent-purple: #7209b7;
  --accent-orange: #f77f00;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray-bg: #f8fafc;
  --gray-card: #ffffff;
  --gray-border: #e2e8f0;
  --gray-text: #64748b;
  --gray-heading: #1e293b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-hover: 0 14px 30px rgba(0, 180, 216, 0.15);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--gray-bg);
  color: var(--gray-text);
  line-height: 1.6;
  font-size: 15px;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Quick Navigation Top Bar */
.prototype-switcher {
  background: #0f172a;
  color: #fff;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  flex-wrap: wrap;
  gap: 10px;
}

.prototype-tag {
  background: rgba(0, 180, 216, 0.2);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid rgba(0, 180, 216, 0.4);
}

.view-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.view-tab-btn {
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-tab-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.view-tab-btn.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* Header & Navbar */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 900;
}

.header-top {
  border-bottom: 1px solid #f1f5f9;
  padding: 8px 0;
  font-size: 13px;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-bar-mini {
  position: relative;
  width: 320px;
}

.search-bar-mini input {
  width: 100%;
  padding: 6px 12px 6px 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-border);
  background: #f8fafc;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.search-bar-mini input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.search-bar-mini i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.header-top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-action-link {
  color: var(--gray-text);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  font-size: 13px;
}

.top-action-link:hover {
  color: var(--primary);
}

.badge-count {
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  position: absolute;
  top: -6px;
  right: -8px;
}

.header-main {
  padding: 12px 0;
}

.header-main-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.brand-logo-text {
  letter-spacing: -0.5px;
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.category-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  background: #f8fafc;
  color: var(--gray-heading);
  font-weight: 600;
  font-size: 14px;
}

.category-dropdown-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--gray-heading);
  font-weight: 600;
  font-size: 13.5px;
  padding: 6px 0;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.btn-start-learning {
  background: var(--primary);
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-start-learning:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 180, 216, 0.35);
}

/* Compact Language Selector Flags */
.lang-selector-compact {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-bg);
  padding: 2px 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-border);
}

.lang-flag-btn {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gray-text);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.lang-flag-btn:hover {
  color: var(--primary);
}

.lang-flag-btn.active {
  background: var(--primary);
  color: #ffffff;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gray-border);
  background: var(--gray-bg);
  color: var(--gray-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile Nav & Hamburger */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-hamburger-btn {
  display: none;
  font-size: 20px;
  color: var(--gray-heading);
  padding: 6px;
  cursor: pointer;
}

@media (max-width: 992px) {
  .mobile-hamburger-btn {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--gray-card);
    border-bottom: 1px solid var(--gray-border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
    box-shadow: var(--shadow-md);
    align-items: flex-start;
  }

  .main-nav.mobile-active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 8px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--gray-bg);
  }

  .nav-link.active::after {
    display: none;
  }

  .search-bar-mini {
    width: 180px;
  }
}

@media (max-width: 600px) {
  .search-bar-mini {
    display: none;
  }

  .btn-start-learning {
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* Dark Theme Global Overrides */
body.dark-theme {
  --gray-bg: #0f172a;
  --gray-card: #1e293b;
  --gray-border: #334155;
  --gray-text: #94a3b8;
  --gray-heading: #f8fafc;
  --primary-light: rgba(0, 180, 216, 0.15);
  background-color: var(--gray-bg);
  color: var(--gray-text);
}

body.dark-theme .site-header {
  background: #1e293b;
  border-color: #334155;
}

body.dark-theme .header-top {
  border-color: #334155;
}

body.dark-theme .brand-logo {
  color: #ffffff;
}

body.dark-theme .rocket-hero-stats-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-theme .value-prop-card,
body.dark-theme .plan-card,
body.dark-theme .masterclass-card-big,
body.dark-theme .category-tile-card,
body.dark-theme .mini-course-box {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-theme h1, 
body.dark-theme h2, 
body.dark-theme h3, 
body.dark-theme h4, 
body.dark-theme h5, 
body.dark-theme h6 {
  color: #f8fafc !important;
}

/* =========================================================================
   HERO SLIDER BANNER SECTION
   ========================================================================= */
.hero-slider-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.hero-slider-container {
  position: relative;
}

.hero-slide {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 216, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 180, 216, 0.3);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-title .highlight-text {
  color: var(--primary);
  background: linear-gradient(90deg, #00b4d8, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.btn-hero-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero-slide-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-slide-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.hero-floating-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* =========================================================================
   VALUE PROPOSITION / STRENGTHS SECTION
   ========================================================================= */
.value-props-section {
  padding: 45px 0 20px;
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-prop-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.value-prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.prop-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.value-prop-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.value-prop-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* =========================================================================
   PRICING SECTION & MODERN TOGGLE SWITCHER
   ========================================================================= */
.pricing-section-container {
  padding: 50px 0;
}

.pricing-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: var(--radius-full);
  margin-top: 16px;
  border: 1px solid var(--gray-border);
}

.billing-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.billing-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.save-badge {
  background: #10b981;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.pricing-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  align-items: stretch;
}

.plan-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plan-card-featured {
  background: #0f172a;
  color: #ffffff;
  border: 2px solid var(--primary);
  box-shadow: 0 12px 30px rgba(0, 180, 216, 0.25);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.plan-type-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.plan-price-box {
  margin: 14px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
}

.plan-period {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.plan-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  min-height: 38px;
}

.plan-features-list {
  list-style: none;
  font-size: 13px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.plan-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features-list i {
  color: #10b981;
}

.plan-features-dark li {
  color: #cbd5e1;
}

.plan-features-dark i {
  color: #38bdf8;
}

.btn-plan-action {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
}

.btn-plan-solid {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.25);
}

.btn-plan-solid:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-plan-solid-accent {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.btn-plan-solid-accent:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-plan-solid-purple {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.btn-plan-solid-purple:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}

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

  .value-props-grid,
  .pricing-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .value-props-grid,
  .pricing-plans-grid {
    grid-template-columns: 1fr;
  }
}

/* Page Views System */
.page-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   CATALOG TOP FILTER & VIEW MODES (GRID, MASONRY, LISTING)
   ========================================================================= */
.catalog-section {
  padding: 24px 0 60px;
}

.filter-top-bar {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 14px;
}

.top-bar-left-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 3 View Mode Buttons: Grid, Masonry, Listing */
.view-mode-buttons {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-border);
}

.view-btn {
  padding: 6px 10px;
  border-radius: 4px;
  color: #64748b;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  transition: var(--transition);
}

.view-btn:hover {
  color: #0f172a;
}

.view-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Level Quick Filter Dropdown in Top Bar */
.top-level-filter-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-filter-select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-border);
  background: #f8fafc;
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
}

.top-filter-select:focus {
  border-color: var(--primary);
  background: #fff;
}

.quick-toggles {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-heading);
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

.sort-select-box select {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-border);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-heading);
  outline: none;
}

/* =========================================================================
   CATALOG 2-COLUMN LAYOUT: MAIN COURSES (LEFT) & SIDEBAR (RIGHT)
   ========================================================================= */
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* Courses View Modes: Grid, Masonry, Listing */
.courses-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* MODE 1: GRID (Default 2 cols) */
.courses-container.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* MODE 2: MASONRY (Multi-column brick layout) */
.courses-container.mode-masonry {
  display: block;
  column-count: 2;
  column-gap: 24px;
}

.courses-container.mode-masonry .course-card {
  break-inside: avoid;
  margin-bottom: 24px;
}

/* MODE 3: LISTING (Horizontal cards) */
.courses-container.mode-listing {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Sidebar Styles */
.catalog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 130px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
}

.filter-checkbox-item:hover {
  color: var(--primary);
}

.filter-checkbox-item input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-filter-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 11px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-filter-submit:hover {
  background: var(--primary-hover);
}

/* =========================================================================
   COURSE CARD DESIGN & ASPECT RATIO (16:9 & 1:1 TIÊU CHUẨN ĐỒNG NHẤT)
   ========================================================================= */
.course-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* TỶ LỆ HÌNH ẢNH 16:9 CHUẨN TRÊN TOÀN HỆ THỐNG */
.course-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  background: #e2e8f0;
}

.course-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* TỶ LỆ CHO CHẾ ĐỘ LISTING: 16:9 HOẶC 1:1 CHUẨN KHÔNG BỊ CO GIÃN */
.courses-container.mode-listing .course-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: stretch;
}

.courses-container.mode-listing .course-thumbnail-wrapper {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  min-height: 190px;
}

/* TỶ LỆ CHO CHẾ ĐỘ MASONRY: GIỮ CHUẨN 16:9 ĐỂ BỐ CỤC ĐỀU ĐẶN */
.courses-container.mode-masonry .course-thumbnail-wrapper {
  aspect-ratio: 16 / 9;
}

.course-card:hover .course-thumbnail-wrapper img {
  transform: scale(1.05);
}

.course-badge-container {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 80%;
  z-index: 5;
}

.badge-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: #fff;
  text-transform: capitalize;
}

.badge-course { background: var(--primary); }
.badge-finished { background: #334155; }
.badge-bestseller { background: #0f172a; }
.badge-featured { background: var(--accent-gold); color: #000; }

/* Level Badges */
.badge-level-beginner { background: #10b981; }
.badge-level-starter { background: #0284c7; }
.badge-level-professional { background: #7c3aed; }
.badge-level-enterprise { background: #e11d48; }

/* Favorite Love Button */
.course-favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition);
  cursor: pointer;
  z-index: 10;
}

.course-favorite-btn:hover, .course-favorite-btn.favorited {
  background: #ffffff;
  color: #ef4444;
  transform: scale(1.1);
}

.course-progress-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.3);
}

.course-progress-bar {
  height: 100%;
  background: var(--primary);
  width: 65%;
}

.course-notification-bell {
  position: absolute;
  bottom: -18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  z-index: 10;
  border: 1px solid #f1f5f9;
}

.course-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-heading);
}

.course-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.4;
}

.course-category {
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 10px;
}

.course-category a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.course-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.stars {
  color: var(--accent-gold);
  font-size: 12px;
}

.rating-score {
  background: #e0f7fa;
  color: #0077b6;
  font-weight: 700;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
}

.rating-count-text {
  font-size: 11.5px;
  color: #94a3b8;
}

.course-meta-divider {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-box {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.price-box.free {
  color: #059669;
}

.price-box .old-price {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-right: 4px;
  font-weight: 500;
}

/* Sticky Floating Deal Bar */
.sticky-floating-deal-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-top: 2px solid #00c49f;
  color: #fff;
  padding: 10px 0;
  z-index: 1500;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.3);
}

.floating-deal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.floating-deal-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.floating-flash-badge {
  background: #ef4444;
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.floating-course-text h5 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.floating-course-text span {
  font-size: 12px;
  color: #94a3b8;
}

.floating-deal-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.floating-countdown {
  display: flex;
  gap: 6px;
  align-items: center;
}

.float-cd-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
}

.floating-deal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-float-groupon {
  background: #ea580c;
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-float-buy {
  background: #00c49f;
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================================
   DETAILS VIEW, STUDENT DASHBOARD, ENTERPRISE & OTHERS
   ========================================================================= */
.course-detail-hero {
  position: relative;
  background: linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.92)), url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 50px 0 100px;
}

.special-offer-banner {
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.special-offer-text h4 {
  font-size: 15px;
  color: #fff;
}

.discount-badge-large {
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 18px;
}

.countdown-timer-group {
  display: flex;
  gap: 8px;
}

.countdown-unit {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
}

.countdown-num {
  font-weight: 800;
  color: #38bdf8;
  display: block;
}

.countdown-lbl {
  font-size: 10px;
  color: #94a3b8;
}

.hero-course-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-course-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.course-detail-body {
  padding-bottom: 80px;
  margin-top: -60px;
  position: relative;
  z-index: 20;
}

.detail-layout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
}

.detail-content-area {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.detail-nav-tabs {
  background: #1e3a5f;
  display: flex;
}

.detail-tab-btn {
  padding: 16px 24px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 3px solid transparent;
}

.detail-tab-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.detail-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--primary);
  background: rgba(0, 180, 216, 0.15);
}

.tab-pane-content {
  padding: 30px;
}

.what-you-learn-card {
  background: #f8fafc;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
}

.what-you-learn-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}

.learn-points-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  list-style: none;
}

.learn-points-2col li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 500;
}

.learn-points-2col li i {
  color: var(--primary);
  font-size: 14px;
}

.trusted-companies-box {
  margin: 36px 0;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.trusted-companies-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.trusted-companies-sub {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}

.company-logos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  opacity: 0.7;
}

.company-logo-item {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #334155;
}

.content-block {
  margin-bottom: 36px;
}

.content-block-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.course-description-text {
  color: #475569;
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.requirements-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
}

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

.requirements-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.requirements-list li i {
  color: #0284c7;
  font-size: 15px;
}

.instructor-profile-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.instructor-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

.instructor-details h4 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.instructor-title-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.instructor-stats-pills {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.inst-pill {
  background: #f1f5f9;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-weight: 600;
}

.detail-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-preview-thumbnail {
  position: relative;
  height: 210px;
  overflow: hidden;
  cursor: pointer;
}

.video-preview-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-video-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.checkout-body {
  padding: 24px;
}

.checkout-pricing {
  text-align: center;
  margin-bottom: 16px;
}

.checkout-old-price {
  font-size: 16px;
  color: #94a3b8;
  text-decoration: line-through;
  display: block;
}

.checkout-main-price {
  font-size: 34px;
  font-weight: 800;
  color: #00c49f;
}

.groupon-box-widget {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.groupon-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.groupon-tag {
  background: #ea580c;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}

.groupon-progress-wrap {
  margin: 10px 0;
}

.groupon-progress-bar {
  width: 100%;
  height: 6px;
  background: #fed7aa;
  border-radius: 3px;
  overflow: hidden;
}

.groupon-progress-fill {
  height: 100%;
  background: #ea580c;
}

.groupon-stats-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9a3412;
  margin-top: 4px;
}

.btn-groupon-join {
  width: 100%;
  background: #ea580c;
  color: #fff;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
}

.checkout-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-checkout-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}

.btn-points-buy {
  background: #fff;
  border: 1px solid var(--accent-gold);
  color: #b45309;
  padding: 11px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
}

.btn-buy-now {
  background: #fff;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 11px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
}

.btn-subscribe-card {
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 11px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
}

.includes-widget {
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-bottom: 16px;
}

.includes-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.includes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}

.includes-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.btn-social-action {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.spec-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.spec-title {
  font-size: 15px;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 14px;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
  border-bottom: 1px dashed #f1f5f9;
  padding-bottom: 6px;
}

.spec-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-value {
  font-weight: 600;
  color: #0f172a;
}

.have-question-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.have-question-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.question-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.have-question-text h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.have-question-text span {
  font-size: 11.5px;
  color: #64748b;
}

.instructor-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.inst-side-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.inst-side-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.inst-side-role {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.inst-badges-mini-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 12px 0;
}

.inst-badge-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.btn-view-profile-inst {
  width: 100%;
  background: #1e3a8a;
  color: #fff;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
}

/* Modal Popup Preview */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #0f172a;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #334155;
}

.modal-header {
  padding: 16px 20px;
  background: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.modal-body {
  padding: 0;
  position: relative;
  padding-top: 56.25%;
}

.modal-body iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: none;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 50px 0 70px;
  border-top: 1px solid #1e293b;
  font-size: 13.5px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 12.5px;
}

/* =========================================================================
   ROCKET LMS LANDING PAGE (HERO STATS, 4 CARDS, MASTERCLASS, CATEGORIES, RIBBON)
   ========================================================================= */
.rocket-hero-stats-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 30px 0 50px;
  box-shadow: var(--shadow-sm);
}

.rocket-hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rocket-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rocket-stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.icon-blue-circle { background: #e0f2fe; color: #0284c7; }
.icon-green-circle { background: #dcfce7; color: #16a34a; }
.icon-red-circle { background: #ffe4e6; color: #e11d48; }
.icon-amber-circle { background: #fef3c7; color: #d97706; }

.rocket-stat-info h4 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.rocket-stat-info span {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

.rocket-features-section {
  padding: 30px 0 60px;
}

.rocket-features-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.feature-pill-badge {
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
}

.rocket-features-intro h2 {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 16px;
}

.rocket-features-intro p {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 24px;
}

.feature-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.feature-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  font-weight: 600;
}

.feature-check-list li i {
  color: #0284c7;
}

.rocket-4cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.rocket-feature-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.rocket-feature-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.rocket-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.badge-blue { background: #e0f2fe; color: #0284c7; }
.badge-rose { background: #ffe4e6; color: #e11d48; }
.badge-amber { background: #fef3c7; color: #d97706; }
.badge-emerald { background: #dcfce7; color: #16a34a; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }
.badge-cyan { background: #cffafe; color: #0891b2; }

.rocket-feature-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.rocket-feature-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* Masterclass Card */
.masterclass-card-big {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: var(--shadow-md);
  margin-bottom: 50px;
}

.masterclass-left-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.masterclass-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 16px;
}

.masterclass-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

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

.masterclass-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.6;
}

.masterclass-includes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.masterclass-includes-list li {
  font-size: 13px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.masterclass-includes-list li i {
  color: #0284c7;
}

.masterclass-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.masterclass-right-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trending Categories */
.categories-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-tile-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.category-tile-card:hover {
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.category-tile-info h5 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.category-tile-info span {
  font-size: 11.5px;
  color: #64748b;
}

/* Bestsellers Ribbon */
.bestsellers-ribbon-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  align-items: center;
  margin: 40px 0 60px;
}

.ribbon-intro h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.ribbon-intro p {
  font-size: 13.5px;
  color: #e0f2fe;
}

.ribbon-mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-course-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.mini-course-box:hover {
  transform: translateY(-3px);
}

.mini-course-box img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mini-course-body {
  padding: 10px 12px;
}

.mini-course-body h6 {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

/* =========================================================================
   INSTRUCTOR DIRECTORY & STUDENT DASHBOARD & ENTERPRISE TRAINING STYLES
   ========================================================================= */
.instructor-hero {
  background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  color: #fff;
  padding: 40px 0;
  margin-bottom: 30px;
}

.instructor-grid-view {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.instructor-full-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.instructor-card-banner {
  height: 90px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  position: relative;
}

.instructor-card-avatar {
  position: absolute;
  bottom: -35px;
  left: 20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  object-fit: cover;
}

.instructor-card-body {
  padding: 45px 20px 20px;
}

.instructor-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.instructor-card-specialty {
  font-size: 12px;
  color: #0284c7;
  font-weight: 600;
  margin-bottom: 8px;
}

.instructor-bio-snip {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
}

.instructor-stats-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.btn-book-slot {
  background: #e0f2fe;
  color: #0284c7;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
}

/* Student Dashboard */
.student-dashboard-header {
  background: #0f172a;
  color: #fff;
  padding: 30px 0;
}

.student-profile-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.student-main-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.student-avatar-wrap {
  position: relative;
}

.student-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 3px solid #38bdf8;
  object-fit: cover;
}

.level-badge-float {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #f59e0b;
  color: #000;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.student-name-box h2 {
  font-size: 22px;
  font-weight: 800;
}

.student-track-name {
  font-size: 13px;
  color: #94a3b8;
}

.student-gamify-bars {
  display: flex;
  gap: 16px;
}

.gamify-metric-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-width: 170px;
}

.metric-card-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 4px;
}

.metric-card-val {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.xp-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.xp-progress-fill {
  height: 100%;
  background: #38bdf8;
}

/* =========================================================================
   STUDENT ENROLLED COURSES (3 TABS, FILTER CONTROLS & GRID/LIST MODE)
   ========================================================================= */
.student-tabs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.student-courses-tab-group {
  display: flex;
  gap: 8px;
}

.course-status-tab-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.course-status-tab-btn:hover {
  background: #e2e8f0;
}

.course-status-tab-btn.active {
  background: var(--primary);
  color: #fff;
}

.tab-badge-num {
  background: rgba(0,0,0,0.15);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.course-status-tab-btn.active .tab-badge-num {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

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

.student-filter-select {
  padding: 6px 12px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  outline: none;
}

.student-view-toggle {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-sm);
}

.student-view-btn {
  padding: 5px 8px;
  border-radius: 4px;
  color: #64748b;
  font-size: 13px;
}

.student-view-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.enrolled-courses-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

/* Enrolled Card Box (List Mode) */
.enrolled-card-box {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.enrolled-card-box:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.enrolled-card-thumb {
  width: 140px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.enrolled-card-info {
  flex: 1;
}

.enrolled-card-info h5 {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.enrolled-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.enrolled-course-progress-bar {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.enrolled-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 120px;
}

.progress-number-tag {
  font-size: 12px;
  font-weight: 700;
}

.btn-resume-course {
  background: var(--primary);
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================================
   GAMIFICATION HUB: QUESTS, BADGES, REWARD POINTS & 3 VIEW MODES
   ========================================================================= */
.gamify-quest-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quest-item-box {
  background: #f8fafc;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.quest-info h6 {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.quest-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
}

.quest-prog-bar {
  width: 70px;
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.btn-claim-reward {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-claim-reward.claimed {
  background: #dcfce7;
  color: #16a34a;
  cursor: default;
}

.btn-claim-reward.active {
  background: #0284c7;
  color: #fff;
}

.quest-reward-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #d97706;
}

/* Badges Showcase */
.badges-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.badge-item-card {
  background: #f8fafc;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.badge-item-card span {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

.badge-item-card.locked {
  opacity: 0.5;
  filter: grayscale(1);
}

.badge-item-card .badge-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* Reward Shop */
.reward-shop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-reward-item {
  background: #f8fafc;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.shop-reward-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-reward-left h6 {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.shop-reward-left span {
  font-size: 11px;
  color: #64748b;
  display: block;
}

.btn-redeem-point {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.btn-redeem-point:hover {
  background: #fde68a;
}

.student-thumb-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* 3 View Modes for Student Enrolled Courses */
.enrolled-courses-container.mode-listing {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.enrolled-courses-container.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.enrolled-courses-container.mode-grid .enrolled-card-box {
  flex-direction: column;
  align-items: stretch;
}

.enrolled-courses-container.mode-grid .enrolled-card-thumb {
  width: 100%;
  height: 140px;
}

.enrolled-courses-container.mode-grid .enrolled-action-wrap {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: 10px;
}

.enrolled-courses-container.mode-masonry {
  display: block;
  column-count: 2;
  column-gap: 16px;
}

.enrolled-courses-container.mode-masonry .enrolled-card-box {
  break-inside: avoid;
  margin-bottom: 16px;
  flex-direction: column;
  align-items: stretch;
}

.enrolled-courses-container.mode-masonry .enrolled-card-thumb {
  width: 100%;
  height: 140px;
}

.enrolled-courses-container.mode-masonry .enrolled-action-wrap {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: 10px;
}


.pagination-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.btn-show-more-courses {
  color: #0284c7;
  font-size: 13px;
  font-weight: 700;
}

.page-numbers-list {
  display: flex;
  gap: 6px;
}

.page-num-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--gray-border);
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.page-num-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.student-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.dashboard-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}

/* Ranking Table List */
.ranking-table-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.ranking-row-item.highlight-me {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
}

.ranking-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-position-num {
  font-weight: 800;
  font-size: 14px;
  width: 22px;
}

.rank-top1 { color: #d97706; }
.rank-top2 { color: #64748b; }
.rank-top3 { color: #c2410c; }

.rank-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.rank-user-details h6 {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.rank-user-details span {
  font-size: 11px;
  color: #64748b;
}

.rank-xp-badge {
  font-size: 12px;
  font-weight: 800;
  background: #e0f2fe;
  color: #0284c7;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* Learning Path Timeline */
.learning-path-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-step-item {
  display: flex;
  gap: 14px;
}

.step-node-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  margin-top: 4px;
}

.timeline-step-item.current .step-node-icon {
  background: var(--primary);
}

.step-box-content {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.step-box-content h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

/* Enterprise Training Layout */
.enterprise-hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 50px 0 60px;
}

.enterprise-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.enterprise-hero-content h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.enterprise-hero-content p {
  color: #cbd5e1;
  font-size: 15px;
  margin-bottom: 24px;
}

.enterprise-quote-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #0f172a;
  box-shadow: var(--shadow-lg);
}

.enterprise-quote-form-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.form-group-enterprise {
  margin-bottom: 14px;
}

.form-group-enterprise label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.form-group-enterprise input, .form-group-enterprise select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}

.btn-submit-enterprise {
  width: 100%;
  background: #0284c7;
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
}

.enterprise-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.enterprise-feature-box {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.enterprise-feature-box i {
  font-size: 28px;
  color: #0284c7;
  margin-bottom: 12px;
}

.enterprise-feature-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.enterprise-feature-box p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* Mindmap Hero & Grid */
.mindmap-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.mindmap-hero h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.mindmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mindmap-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.mindmap-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.card-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.mindmap-card-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.feature-tag-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}

.feature-item-row i {
  color: #10b981;
}

.plugin-highlight {
  font-weight: 600;
}

.plugin-tag {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

