

:root {
  --navy: #1a3366;
  --blue: #1d5cdb;
  --blue-light: #4d8ef5;
  --blue-pale: #eef2fc;
  --blue-mid: #d5e3f8;
  --text: #1a1a2e;
  --text-mid: #444;
  --text-muted: #888;
  --border: #e0e8f5;
  --bg: #f5f8fe;
  --white: #fff;
  --card-radius: 14px;
  --shadow-sm: 0 2px 12px rgba(29,92,219,0.07);
  --shadow-md: 0 8px 32px rgba(29,92,219,0.12);
  --shadow-lg: 0 20px 60px rgba(26,51,102,0.14);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f0f5fd;
  color: var(--text);
  min-height: 100vh;
}

/* ======== HERO BANNER ======== */
.courses-hero {
  background: linear-gradient(135deg, #0f2554 0%, #1a3366 45%, #1d5cdb 100%);
  padding: 60px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.courses-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -200px; left: -100px;
}
.courses-hero::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(77,142,245,0.12);
  bottom: -150px; right: -80px;
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}

.courses-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}
.hero-eyebrow span {
  width: 7px; height: 7px;
  background: #70e0a0;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.8s infinite;
}
@keyframes blink {
  0%,100%{opacity:1;} 50%{opacity:0.3;}
}

.courses-hero h1 {
  font-size: 46px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.courses-hero h1 em {
  font-style: normal;
  color: #7ec8f8;
}

.courses-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* floating stat chips in hero */
.hero-chips {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-chip {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-chip svg {
  width:15px; height:15px;
  stroke: #7ec8f8; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ======== STATS STRIP ======== */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
}
.stats-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--border);
}
.stat-item {
  padding: 22px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-num span { color: var(--blue); }
.stat-lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ======== FILTER / SEARCH BAR ======== */
.filter-section {
  background: var(--white);
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  position: sticky;
  top: 70px;
  z-index: 100;
}
.filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.search-box svg {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  stroke: var(--text-muted); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.search-box input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s;
}
.search-box input:focus { border-color: var(--blue); background: #fff; }
.search-box input::placeholder { color: var(--text-muted); }

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ftab {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all .22s;
  white-space: nowrap;
}
.ftab:hover { border-color: var(--blue); color: var(--blue); }
.ftab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.sort-select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--bg);
  outline: none;
  cursor: pointer;
  min-width: 150px;
}

/* ======== MAIN CONTENT ======== */
.main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 60px;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.section-label h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.section-label span {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ======== COURSE CARDS GRID ======== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.course-card {
  background: var(--white);
  border-radius: var(--card-radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  position: relative;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #b8ccf5;
}

/* Card image / illustration area */
.card-thumb {
  height: 148px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Unique gradient per card via data-color */
.card-thumb[data-color="blue"]    { background: linear-gradient(135deg, #1a3366 0%, #1d5cdb 100%); }
.card-thumb[data-color="teal"]    { background: linear-gradient(135deg, #0f5e6e 0%, #12b3c9 100%); }
.card-thumb[data-color="violet"]  { background: linear-gradient(135deg, #3a1a7e 0%, #7c4ddb 100%); }
.card-thumb[data-color="green"]   { background: linear-gradient(135deg, #0a5c36 0%, #22b97a 100%); }
.card-thumb[data-color="orange"]  { background: linear-gradient(135deg, #7a2e00 0%, #e87a30 100%); }
.card-thumb[data-color="rose"]    { background: linear-gradient(135deg, #6e0a2a 0%, #e83e6c 100%); }
.card-thumb[data-color="indigo"]  { background: linear-gradient(135deg, #1e1a5e 0%, #5b52db 100%); }
.card-thumb[data-color="amber"]   { background: linear-gradient(135deg, #5c3800 0%, #f0a500 100%); }
.card-thumb[data-color="cyan"]    { background: linear-gradient(135deg, #083055 0%, #0ea5d8 100%); }
.card-thumb[data-color="pink"]    { background: linear-gradient(135deg, #5c0a40 0%, #d63aa0 100%); }
.card-thumb[data-color="lime"]    { background: linear-gradient(135deg, #2a4a00 0%, #7cb81e 100%); }
.card-thumb[data-color="red"]     { background: linear-gradient(135deg, #5c0a0a 0%, #e03a3a 100%); }

.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.14) 0%, transparent 60%);
}

.card-thumb-icon {
  width: 100%; 
  height: auto;
  /* background: rgba(255,255,255,0.15); */
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
}
.card-thumb-icon svg {
  width: 30px; height: 30px;
  stroke: #fff; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Badge on thumb */
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 2;
  letter-spacing: 0.3px;
}

/* Level badge top right */
.card-level {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 100px;
  z-index: 2;
}
.level-beg { background: #dcfce7; color: #166534; }
.level-int { background: #fef9c3; color: #854d0e; }
.level-adv { background: #fee2e2; color: #991b1b; }

/* Card Body */
.card-body {
  padding: 18px 18px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
  font-family: 'Inter', sans-serif;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.card-meta-item svg {
  width: 13px; height: 13px;
  stroke: var(--text-muted); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Stars */
.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.stars {
  display: flex;
  gap: 2px;
}
.star {
  font-size: 12px;
  color: #f0a500;
}
.rating-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
}
.rating-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* Divider */
.card-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 14px;
}

/* Price row */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
}
.card-price small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}

.btn-view {
  padding: 9px 18px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-view:hover {
  background: #1548c0;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29,92,219,0.28);
}
.btn-view svg {
  width: 13px; height: 13px;
  stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ======== PROMO BANNER ======== */
.promo-banner {
  margin: 50px 0 0;
  background: linear-gradient(120deg, #0f2554 0%, #1a3366 60%, #1d5cdb 100%);
  border-radius: 20px;
  padding: 48px 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -160px; right: -80px;
}
.promo-banner::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(77,142,245,0.15);
  bottom: -80px; left: 40%;
}

.promo-text { position: relative; z-index: 1; }
.promo-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.promo-text h3 {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}
.promo-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.promo-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.btn-promo-white {
  padding: 14px 28px;
  background: #fff;
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.btn-promo-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.btn-promo-outline {
  padding: 14px 28px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  text-align: center;
}
.btn-promo-outline:hover { background: rgba(255,255,255,0.08); }

/* ======== TOPICS SECTION ======== */
.topics-section {
  margin-top: 60px;
}
.topics-section h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.topic-pill {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .22s;
}
.topic-pill:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.topic-pill-icon {
  font-size: 24px;
  margin-bottom: 6px;
}
.topic-pill span {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
}

/* ======== TESTIMONIAL STRIP ======== */
.testi-strip {
  margin-top: 60px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 40px 44px;
}
.testi-strip-head {
  text-align: center;
  margin-bottom: 28px;
}
.testi-strip-head h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.testi-strip-head p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
}
.testi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-mini {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.testi-mini-quote {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}
.testi-mini-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testi-mini-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.av-blue   { background: var(--blue); }
.av-teal   { background: #12b3c9; }
.av-violet { background: #7c4ddb; }

.testi-mini-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.testi-mini-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* ======== CTA BOTTOM ======== */
.bottom-cta {
  margin-top: 60px;
  text-align: center;
  padding: 52px 32px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
}
.bottom-cta h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
}
.bottom-cta p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.bottom-cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-cta-primary {
  padding: 14px 32px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all .22s;
}
.btn-cta-primary:hover {
  background: #1548c0;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(29,92,219,0.28);
}
.btn-cta-secondary {
  padding: 14px 32px;
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .22s;
}
.btn-cta-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ======== RESPONSIVE ======== */
@media(max-width:1100px){
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .topics-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

@media(max-width:900px){
  .courses-hero h1 { font-size: 36px; }
  .promo-banner { grid-template-columns: 1fr; text-align: center; padding: 36px 28px; }
  .promo-btns { flex-direction: row; justify-content: center; }
  .testi-row { grid-template-columns: 1fr 1fr; }
}

@media(max-width:768px){
  .courses-hero { padding: 44px 20px 60px; }
  .courses-hero h1 { font-size: 30px; }
  .filter-section { padding: 14px 16px; }
  .filter-tabs { gap: 6px; }
  .ftab { padding: 7px 14px; font-size: 12px; }
  .main-wrap { padding: 28px 16px 48px; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .topics-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-row { grid-template-columns: 1fr; }
  .promo-btns { flex-direction: column; }
  .testi-strip { padding: 28px 20px; }
}

@media(max-width:480px){
  .courses-hero h1 { font-size: 24px; letter-spacing: -0.5px; }
  .courses-hero p { font-size: 14px; }
  .hero-chips { gap: 8px; }
  .hero-chip { font-size: 11.5px; padding: 7px 13px; }
  .courses-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-inner { flex-direction: column; align-items: stretch; }
  .search-box { min-width: unset; }
  .sort-select { width: 100%; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .promo-banner { padding: 28px 20px; }
  .promo-text h3 { font-size: 20px; }
  .bottom-cta h2 { font-size: 20px; }
  .bottom-cta-btns { flex-direction: column; }
  .btn-cta-primary, .btn-cta-secondary { width: 100%; }
}