:root {
  --edu-ink: #071735;
  --edu-muted: #5f6f8b;
  --edu-blue: #2563eb;
  --edu-violet: #7c3aed;
  --edu-line: #dde6f7;
  --edu-soft: #f7faff;
  --edu-shadow: none;
}

* {
  box-sizing: border-box;
}

body.education-body {
  margin: 0;
  color: var(--edu-ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, .08), transparent 24rem),
    radial-gradient(circle at 90% 12%, rgba(124, 58, 237, .10), transparent 26rem),
    #fff;
}

.education-page {
  overflow: hidden;
}

.education-hero {
  position: relative;
  min-height: 600px;
  display: grid;
  align-items: center;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 70px);
  background-image: url("Education.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
}

.education-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 28%, rgba(255,255,255,.35) 52%, rgba(255,255,255,0) 74%);
  pointer-events: none;
}

.education-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

.education-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(124, 58, 237, .24);
  border-radius: 999px;
  padding: 8px 13px;
  color: #4f38d8;
  background: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.education-hero h1 {
  max-width: 590px;
  margin: 18px 0 14px;
  color: #06142e;
  font-size: clamp(46px, 5.7vw, 82px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.045em;
}

.education-hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  background-clip: text;
  -webkit-background-clip: text;
}

.education-hero p {
  max-width: 560px;
  margin: 0 0 26px;
  color: #253455;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.6;
}

.education-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.education-actions a {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 28px;
  text-decoration: none;
  font-weight: 900;
}

.education-actions .primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.education-actions .secondary {
  color: #4f38d8;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(124, 58, 237, .30);
}

.education-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 650px;
}

.education-trust div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  color: #071735;
  font-size: 13px;
  font-weight: 800;
}

.education-trust i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #4f38d8;
  background: #eef2ff;
}

.edu-section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 0;
}

.edu-heading {
  margin-bottom: 26px;
  text-align: center;
}

.edu-heading span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #4f38d8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.edu-heading h2 {
  margin: 8px 0 6px;
  color: #071735;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 900;
}

.edu-heading p {
  margin: 0;
  color: var(--edu-muted);
  font-size: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.course-catalog-heading {
  margin-bottom: 22px;
}

.course-catalog-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(89, 93, 224, .16);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 45px rgba(31, 45, 98, .08);
}

.course-search {
  position: relative;
  display: block;
}

.course-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6d70bd;
}

.course-search input,
.course-select-filters select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8e0f0;
  border-radius: 13px;
  color: #071735;
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.course-search input {
  padding: 0 16px 0 46px;
}

.course-search input:focus,
.course-select-filters select:focus {
  border-color: #6d5ce7;
  box-shadow: 0 0 0 4px rgba(109, 92, 231, .1);
}

.course-select-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}

.course-select-filters label {
  position: relative;
}

.course-select-filters label > span {
  position: absolute;
  z-index: 1;
  left: 13px;
  top: 6px;
  color: #6b7891;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.course-select-filters select {
  min-width: 160px;
  padding: 17px 34px 3px 12px;
  font-size: 13px;
  font-weight: 750;
}

.course-category-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-category-filters button,
.course-results-bar button,
.course-catalog-state button {
  min-height: 36px;
  border: 1px solid #dce3f2;
  border-radius: 999px;
  padding: 0 14px;
  color: #41506b;
  background: #f9faff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.course-category-filters button:hover,
.course-category-filters button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  transform: translateY(-1px);
}

.course-results-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  color: #63708a;
  font-size: 12px;
}

.course-results-bar button {
  min-height: 28px;
  color: #4f38d8;
  background: transparent;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.course-card {
  min-height: 445px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(75, 91, 145, .15);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 12px 35px rgba(32, 46, 95, .08);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(105, 73, 220, .35);
  box-shadow: 0 22px 45px rgba(39, 51, 107, .14);
}

.course-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.course-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 10px 25px rgba(89, 76, 218, .25);
  font-size: 24px;
}

.course-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.course-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.course-level {
  color: #5b21b6;
  background: #f3e8ff;
}

.course-badges .course-duration {
  color: #1d4ed8;
  background: #eaf2ff;
}

.course-badges .course-self-learning {
  color: #047857;
  background: #e9fbf3;
}

.course-card-copy {
  margin-top: 18px;
}

.course-category {
  color: #6150cf;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.course-card h3 {
  margin: 7px 0 9px;
  color: #071735;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.course-card p {
  margin: 0;
  color: #43526d;
  font-size: 13px;
  line-height: 1.6;
}

.course-skills {
  margin: 17px 0 20px;
  padding-top: 15px;
  border-top: 1px solid #edf0f7;
}

.course-skills strong {
  color: #172342;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.course-skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.course-skills li {
  border: 1px solid #e1e7f5;
  border-radius: 999px;
  padding: 5px 8px;
  color: #485673;
  background: #f8faff;
  font-size: 10px;
  font-weight: 750;
}

.course-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.course-card .course-button {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd7ef;
  border-radius: 11px;
  padding: 0 10px;
  color: #4052ad;
  background: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}

.course-card .course-button.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.course-card .course-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(48, 60, 135, .14);
}

.course-catalog-state {
  grid-column: 1 / -1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  border: 1px solid var(--edu-line);
  border-radius: 18px;
  color: #64748b;
  background: #fff;
  text-align: center;
}

.course-catalog-state > i {
  color: #7765df;
  font-size: 26px;
}

.course-catalog-state > strong {
  color: #15223f;
  font-size: 18px;
}

.course-catalog-state button {
  margin-top: 5px;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.course-catalog-state.error { color: #be123c; background: #fff1f2; }

.why-learn {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--edu-line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.why-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.why-item i,
.benefit-card i,
.process-step .process-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #4f38d8;
  background: linear-gradient(135deg, #eef2ff, #f7f0ff);
  font-size: 24px;
}

.why-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 900;
}

.why-item p {
  margin: 0;
  color: var(--edu-muted);
  font-size: 12px;
  line-height: 1.4;
}

.process-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.process-step {
  position: relative;
  text-align: center;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(50% + 52px);
  top: 42px;
  width: calc(100% - 84px);
  border-top: 2px dashed rgba(91, 104, 145, .38);
}

.process-step .process-icon {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, .25);
  font-size: 34px;
}

.process-step b {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(16px);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  font-size: 13px;
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
}

.process-step p {
  max-width: 210px;
  margin: 0 auto;
  color: var(--edu-muted);
  font-size: 13px;
  line-height: 1.5;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid rgba(124, 58, 237, .18);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,250,255,.96));
}

.benefit-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 15px;
  border: 1px solid rgba(221, 230, 247, .88);
  padding: 12px;
  background: #fff;
}

.benefit-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 900;
}

.benefit-card p {
  margin: 0;
  color: var(--edu-muted);
  font-size: 12px;
  line-height: 1.4;
}

.edu-stats {
  width: min(1160px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.edu-stats div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 18px 28px;
  border-right: 1px solid rgba(255,255,255,.22);
}

.edu-stats div:last-child {
  border-right: 0;
}

.edu-stats i {
  font-size: 34px;
  opacity: .9;
}

.edu-stats b {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.edu-stats span {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
}

.education-cta {
  width: min(1160px, calc(100% - 40px));
  min-height: 150px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 28px auto 48px;
  border-radius: 18px;
  padding: 26px 40px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 50%, rgba(124, 58, 237, .55), transparent 14rem),
    linear-gradient(135deg, #06142e, #0b1e5e 48%, #060b24);
}

.education-cta .cap {
  width: 140px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, .38), rgba(124, 58, 237, .58));
  font-size: 58px;
}

.education-cta h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.06;
  font-weight: 900;
}

.education-cta h2 span {
  color: #55a4ff;
}

.education-cta p {
  margin: 7px 0 0;
  color: #cddcff;
}

.education-cta a {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 28px;
  color: #4f38d8;
  background: #fff;
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 980px) {
  .education-hero {
    min-height: 580px;
    align-items: start;
    padding-top: 48px;
    background-position: 62% bottom;
  }

  .education-hero::before {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.90) 42%, rgba(255,255,255,.15) 72%, rgba(255,255,255,0) 100%);
  }

  .education-hero-copy {
    max-width: 100%;
    text-align: center;
  }

  .education-actions,
  .education-trust {
    justify-content: center;
  }

  .education-trust,
  .course-grid,
  .why-learn,
  .benefits-grid,
  .edu-stats,
  .education-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }

  .process-step::after {
    display: none;
  }

  .education-cta {
    text-align: center;
  }

  .education-cta .cap {
    margin: auto;
  }

  .education-cta a {
    justify-content: center;
  }

  .course-catalog-controls {
    grid-template-columns: 1fr;
  }

  .course-select-filters,
  .course-category-filters,
  .course-results-bar {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .education-hero {
    min-height: 620px;
    padding: 28px 18px;
    background-size: auto 68%;
    background-position: 68% bottom;
  }

  .education-hero h1 {
    font-size: 40px;
  }

  .education-hero p {
    font-size: 15px;
  }

  .education-actions a {
    width: 100%;
    justify-content: center;
  }

  .education-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .course-grid,
  .why-learn,
  .process-row,
  .benefits-grid,
  .edu-stats,
  .education-cta {
    grid-template-columns: 1fr;
  }

  .edu-section,
  .edu-stats,
  .education-cta {
    width: calc(100% - 24px);
  }

  .course-card {
    min-height: 0;
    padding: 18px;
  }

  .course-catalog-controls {
    gap: 12px;
    padding: 13px;
    border-radius: 16px;
  }

  .course-select-filters {
    grid-template-columns: 1fr;
  }

  .course-category-filters {
    flex-wrap: nowrap;
    margin: 0 -13px;
    padding: 1px 13px 5px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .course-category-filters button {
    flex: 0 0 auto;
  }

  .course-card-actions {
    grid-template-columns: 1fr 1fr;
  }

  .edu-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.22);
  }

  .edu-stats div:last-child {
    border-bottom: 0;
  }

  .education-cta {
    padding: 24px;
  }
}
