.ea-courses-page {
  min-height: 100vh;
  background: #f6f8fb;
  color: #081527;
}

.ea-courses-shell {
  width: calc(100% - 240px);
  max-width: 1420px;
  margin: 0 auto;
  padding: 42px 0 56px;
}

.ea-courses-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.ea-courses-heading h1 {
  margin: 0 0 6px;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  color: #0b1d33;
}

.ea-courses-heading p {
  margin: 0;
  color: #657185;
  font-size: 17px;
}

.ea-courses-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 330px;
  overflow: hidden;
  border: 1px solid #cad3df;
  border-radius: 22px;
  background: #fff;
}

.ea-courses-switch a {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 0 24px;
  color: #142033;
  font-weight: 700;
  text-decoration: none;
}

.ea-courses-switch a:hover,
.ea-courses-switch a:focus {
  color: #035b69;
}

.ea-courses-switch .is-active {
  color: #fff;
  background: linear-gradient(135deg, #006879, #024b58);
}

.ea-courses-featured {
  position: relative;
  display: block;
  min-height: 285px;
  overflow: hidden;
  padding: 30px 34px;
  margin-bottom: 28px;
  border-radius: 18px;
  background-color: #04172e;
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  box-shadow: 0 22px 45px rgba(4, 23, 46, .18);
}

.ea-courses-featured:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 25, 45, 0.97) 0%, rgba(2, 29, 48, 0.88) 35%, rgba(2, 30, 48, 0.25) 68%, rgba(2, 30, 48, 0.05) 100%);
  pointer-events: none;
}

.ea-courses-featured-copy {
  position: relative;
  z-index: 2;
  max-width: 45%;
}

.ea-courses-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ea-courses-badge-featured {
  color: #ff8a00;
  background: rgba(255, 138, 0, .08);
}

.ea-courses-featured h2 {
  margin: 20px 0 8px;
  font-size: 30px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: 0;
}

.ea-courses-featured p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 16px;
  line-height: 1.6;
}

.ea-courses-feature-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
}

.ea-courses-feature-points li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ea-courses-feature-points li:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff8a00;
}

.ea-courses-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ea-courses-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ea-courses-btn-primary {
  color: #fff;
  background: #ff8200;
  box-shadow: 0 14px 30px rgba(255, 130, 0, .28);
}

.ea-courses-btn-primary:hover,
.ea-courses-btn-primary:focus {
  color: #fff;
  background: #f17800;
}

.ea-courses-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .65);
  background: rgba(255, 255, 255, .04);
}

.ea-courses-section {
  margin-top: 28px;
}

.ea-courses-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.ea-courses-section-head span {
  display: block;
  margin-bottom: 3px;
  color: #007080;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ea-courses-section-head h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.ea-courses-section-head a {
  color: #006879;
  font-weight: 800;
  text-decoration: none;
}

.ea-courses-catalog-toolbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 420px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.ea-courses-catalog-toolbar h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.ea-courses-icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #006879;
}

.ea-courses-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: 420px;
  min-height: 42px;
  padding: 0 6px 0 14px;
  margin-bottom: 0;
  border: 1px solid #d3dce7;
  border-radius: 10px;
  background: #fff;
}

.ea-courses-search i {
  color: #6b788b;
}

.ea-courses-search input {
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  color: #142033;
  background: transparent;
}

.ea-courses-search button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  background: #006879;
}

.ea-courses-filters {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  overflow-x: auto;
  min-width: 0;
  padding: 2px 0;
  scrollbar-width: thin;
}

.ea-courses-filters a,
.ea-courses-filter-disabled {
  flex: 0 0 auto;
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  border: 1px solid #c8d2de;
  border-radius: 10px;
  color: #1b2a3c;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

.ea-courses-filter-disabled {
  color: #8b96a6;
  background: #f4f7fa;
  cursor: not-allowed;
}

.ea-courses-filters .is-active {
  color: #fff;
  border-color: #006879;
  background: #006879;
}

.ea-courses-grid,
.ea-courses-rail {
  display: grid;
  gap: 22px;
}

.ea-courses-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ea-courses-rail {
  grid-template-columns: repeat(4, minmax(250px, 1fr));
}

.ea-courses-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(10, 31, 55, .08);
}

.ea-courses-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d9e2ec;
}

.ea-courses-card-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .2s ease;
}

.ea-courses-card:hover .ea-courses-card-cover img {
  transform: scale(1.035);
}

.ea-courses-card-tag,
.ea-courses-card-state {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
  border-radius: 8px;
  color: #fff;
  background: #007080;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ea-courses-card-state {
  left: auto;
  right: 10px;
  background: #5b6473;
}

.ea-courses-card-body {
  min-height: 142px;
  padding: 14px 16px 8px;
}

.ea-courses-card h3 {
  min-height: 46px;
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}

.ea-courses-card h3 a {
  color: #111d2e;
  text-decoration: none;
}

.ea-courses-card p {
  min-height: 44px;
  margin: 0;
  color: #667386;
  font-size: 14px;
  line-height: 1.45;
}

.ea-courses-progress {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eaf1;
}

.ea-courses-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #007080, #ff8200);
}

.ea-courses-progress-text {
  margin-top: 5px;
  color: #007080;
  font-size: 12px;
  font-weight: 800;
}

.ea-courses-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  padding: 12px 16px 16px;
}

.ea-courses-card-footer strong,
.ea-courses-card-footer span {
  display: block;
}

.ea-courses-card-footer strong {
  color: #0f1e31;
  font-size: 16px;
}

.ea-courses-card-footer span {
  color: #6c7788;
  font-size: 12px;
}

.ea-courses-card-action {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #ff8200;
  border-radius: 7px;
  color: #ff8200;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ea-courses-card-action-primary {
  color: #fff;
  background: #ff8200;
}

.ea-courses-pagination {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.ea-courses-pagination a,
.ea-courses-pagination span,
.ea-courses-pagination strong {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 700;
}

.ea-courses-pagination a {
  color: #006879;
  border: 1px solid #c9d3df;
  background: #fff;
  text-decoration: none;
}

.ea-courses-pagination span {
  color: #9aa5b5;
  border: 1px solid #e0e6ee;
}

.ea-courses-pagination strong {
  color: #18283b;
}

.ea-courses-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 24px;
  border: 1px solid #dfe6ee;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.ea-courses-empty-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #006879;
  background: #e4f6f8;
  font-size: 24px;
}

.ea-courses-empty h3 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 800;
}

.ea-courses-empty p {
  max-width: 460px;
  margin: 0 0 8px;
  color: #697587;
}

.ea-courses-extra-section {
  padding-top: 4px;
}

@media (max-width: 1180px) {
  .ea-courses-grid,
  .ea-courses-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 900px) {
  .ea-courses-shell {
    width: min(100% - 24px, 720px);
    padding-top: 28px;
  }

  .ea-courses-heading {
    grid-template-columns: 1fr;
  }

  .ea-courses-featured {
    background-position: 65% center;
  }

  .ea-courses-featured:before {
    background: linear-gradient(90deg, rgba(2, 25, 45, .98) 0%, rgba(2, 29, 48, .9) 52%, rgba(2, 30, 48, .56) 100%);
  }

  .ea-courses-featured-copy {
    max-width: 62%;
  }

  .ea-courses-switch {
    min-width: 0;
    width: 100%;
  }

  .ea-courses-catalog-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ea-courses-catalog-toolbar h2 {
    white-space: normal;
  }

  .ea-courses-filters {
    justify-content: flex-start;
    max-width: 100%;
  }

  .ea-courses-grid,
  .ea-courses-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .ea-courses-shell {
    width: min(100% - 18px, 420px);
  }

  .ea-courses-heading h1 {
    font-size: 34px;
  }

  .ea-courses-heading p {
    font-size: 15px;
  }

  .ea-courses-featured {
    padding: 22px 18px;
    border-radius: 14px;
    background-position: 65% center;
  }

  .ea-courses-featured:before {
    background: linear-gradient(90deg, rgba(2, 25, 45, .99) 0%, rgba(2, 29, 48, .94) 58%, rgba(2, 30, 48, .72) 100%);
  }

  .ea-courses-featured-copy {
    max-width: 100%;
  }

  .ea-courses-feature-actions,
  .ea-courses-card-footer,
  .ea-courses-pagination,
  .ea-courses-section-head {
    align-items: stretch;
  }

  .ea-courses-feature-actions,
  .ea-courses-card-footer,
  .ea-courses-pagination {
    flex-direction: column;
  }

  .ea-courses-btn,
  .ea-courses-card-action,
  .ea-courses-pagination a,
  .ea-courses-pagination span,
  .ea-courses-pagination strong {
    width: 100%;
  }

  .ea-courses-grid,
  .ea-courses-rail {
    grid-template-columns: 1fr;
  }

  .ea-courses-search {
    max-width: none;
  }
}
