.learning-page { color: #111827; background: #f9fafb; }

.learning-hero {
  position: relative;
  height: 639px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #1ea69e 16%, #0c403d 125%);
}
.learning-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .1;
  background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.55), transparent 45%);
}
.learning-hero-copy { position: relative; z-index: 2; width: min(820px, calc(100% - 40px)); margin: 0 auto; padding-top: 93px; text-align: center; }
.learning-eyebrow {
    display: inline-block;
    background-color: rgb(59 130 246 / 30%);
    margin: 0 0 25px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    padding: 5px 12px;
    border-radius: 19px;
}
.learning-hero h1 { margin: 0; font-size: 48px; font-weight: 900; line-height: 1.08; letter-spacing: -1.25px; }
.learning-intro { margin: 23px 0 32px; color: rgba(255,255,255,.92); font-size: 16px; line-height: 25px; }
.learning-search {
  position: relative;
  display: flex;
  width: 768px;
  max-width: 100%;
  height: 65px;
  align-items: center;
  margin: 0 auto;
  padding: 5px 5px 5px 21px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(6, 53, 51, .18);
}
.learning-search > i { flex: 0 0 auto; color: #9ca3af; font-size: 17px; }
.learning-search input { min-width: 0; height: 100%; flex: 1; margin-left: 12px; border: 0; outline: 0; color: #374151; background: transparent; font-size: 14px; }
.learning-search input::placeholder { color: #9ca3af; }
.learning-search button { height: 53px; flex: 0 0 auto; padding: 0 31px; border: 0; border-radius: 10px; color: #fff; background: #f5b900; font-size: 14px; font-weight: 800; }
.learning-hero-mark { position: absolute; z-index: 1; right: calc(2.33% - 2px); bottom: -2px; width: 368px; height: 368px; object-fit: contain; }

.learning-stats {color: #fff;background: #1ea69e;}
.learning-stats .container { height: 100%; }
.learning-stat-grid {display: grid;grid-template-columns: repeat(3, 1fr);padding: 24px 0;text-align: center;}
.learning-stat-grid > div {display: flex;flex-direction: column;align-items: center;padding-top: 7px;border-left: 1px solid rgba(255,255,255,.3);}
.learning-stat-grid > div:first-child { border-left: 0; }
.learning-stat-grid strong { font-size: 30px; font-weight: 900; line-height: 36px; }
.learning-stat-grid span { font-size: 14px; font-weight: 500; line-height: 20px; }

.learning-catalog {padding-top: 72px;padding-bottom: 30px;background: #f9fafb;}
.course-toolbar {
  display: flex;
  min-height: 104px;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.025);
}
.course-filter-grid { display: grid; min-width: 0; flex: 1; grid-template-columns: repeat(4,minmax(125px,1fr)); gap: 12px; }
.course-filter-grid label { min-width: 0; }
.course-filter-grid span { display: block; color: #475569; font-size: 11px; font-weight: 800; }
.course-filter-grid select,
.course-filter-grid input { width: 100%; height: 40px; line-height: 40px; padding: 0 11px; border: 1px solid #dfe5e9; border-radius: 8px; outline: 0; color: #334155; background: #fff; font-size: 12px; }
.course-filter-grid select:focus,
.course-filter-grid input:focus { border-color: #69c9c2; box-shadow: 0 0 0 3px rgba(30,166,158,.1); }
.course-filter-grid .portal-select-wrap { width: 100%; }
.course-sort { display: flex; flex: 0 0 auto; flex-direction: column; margin: 0; color: #475569; font-size: 11px; font-weight: 800; }
.course-sort select { width: 190px; height: 40px; line-height: 40px; margin-top: 6px; padding: 0 11px; border: 1px solid #dfe5e9; border-radius: 8px; outline: 0; color: #111827; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.course-sort select:focus { border-color: #69c9c2; box-shadow: 0 0 0 3px rgba(30,166,158,.1); }
.course-catalog-search { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 7px 8px 7px 14px; border: 1px solid #e2e8f0; border-radius: 11px; background: #fff; }
.course-catalog-search > i { color: #94a3b8; }
.course-catalog-search input { min-width: 0; height: 38px; flex: 1; border: 0; outline: 0; color: #334155; background: transparent; font-size: 13px; }
.course-catalog-search a { display: inline-flex; height: 36px; align-items: center; gap: 5px; padding: 0 13px; border: 0; border-radius: 7px; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.course-filter-reset { color: #1d4ed8; background: #eff6ff; }
.course-result-count { margin: 13px 0 -45px; color: #64748b; font-size: 13px; }
.course-result-count strong { color: #0f172a; }
.course-empty { margin-top: 60px; padding: 55px 20px; border: 1px dashed #cbd5e1; border-radius: 14px; color: #64748b; text-align: center; }
.course-empty i { font-size: 36px; }
.course-empty h2 { margin: 10px 0 5px; color: #0f172a; font-size: 20px; font-weight: 800; }

.learning-course-grid {display: grid;grid-template-columns: repeat(4, minmax(0, 1fr));gap: 32px;margin-top: 72px;}.learning-card{cursor:pointer}.learning-card:focus-visible{outline:3px solid rgba(37,99,235,.28);outline-offset:3px}
.learning-card { display: block; height: 407.2px; overflow: hidden; border: 1px solid #f3f4f6; border-radius: 16px; color: inherit; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); text-decoration: none; transition: transform .3s, box-shadow .3s; }
.learning-card:hover { box-shadow: 0 18px 35px rgba(15,23,42,.12); transform: translateY(-4px); }
.learning-card-image { position: relative; height: 192px; overflow: hidden; }
.learning-card-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.learning-card:hover .learning-card-image > img { transform: scale(1.05); }
.course-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; }
.course-tags span { height: 24px; padding: 4px 10px; border-radius: 999px; color: #111827; background: rgba(255,255,255,.9); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-size: 12px; font-weight: 700; line-height: 16px; backdrop-filter: blur(2px); }
.course-tags .tag-blue { color: #fff; background: #2563eb; }
.course-tags .tag-green { color: #fff; background: #059669; }
.course-tags .tag-amber { color: #fff; background: #d97706; }
.course-tags .tag-cyan { color: #fff; background: #0891b2; }
.course-tags .tag-pink { color: #fff; background: #db2777; }
.course-tags .tag-violet { color: #fff; background: #7c3aed; }
.learning-card-body { display: flex; height: 213.2px; flex-direction: column; padding: 20px; }
.course-rating { display: flex; height: 20px; align-items: center; margin-bottom: 8px; color: #f59e0b; font-size: 14px; line-height: 20px; }
.course-rating i { margin-right: 5px; font-size: 14px; }
.course-rating strong { font-weight: 700; }
.course-rating span { margin-left: 4px; color: #9ca3af; font-weight: 400; }
.course-rating.no-rating strong { font-size: 13px; }
.learning-card h2 { display: -webkit-box; height: 56px; overflow: hidden; margin: 0 0 8px; color: #111827; font-size: 18px; font-weight: 700; line-height: 28px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; transition: color .2s; }
.learning-card:hover h2 { color: #2563eb; }
.course-author { display: flex; height: 24px; align-items: center; overflow: hidden; margin: 0 0 16px; color: #6b7280; font-size: 14px; line-height: 20px; white-space: nowrap; }
.course-author img { width: 24px; height: 24px; flex: 0 0 24px; margin-right: 8px; border-radius: 50%; object-fit: cover; }
.learning-card-foot { display: flex; min-height: 41px; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid #f3f4f6; color: #6b7280; font-size: 14px; line-height: 24px; }
.learning-card-foot > span { font-weight: 500; }
.learning-card-foot > span i { margin-right: 5px; font-size: 14px; }
.course-price { color: #2563eb; font-size: 16px; font-weight: 900; }
.course-price.paid { color: #ea580c; }

.course-pagination {
  display: flex;
  min-height: 40px;
  height: auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 48px;
  margin-bottom: 24px;
  padding-bottom: 8px;
}
.course-pagination button, .course-pagination span { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #e5e7eb; border-radius: 50%; color: #6b7280; background: #fff; font-size: 12px; }
.course-pagination span { border-color: transparent; background: transparent; }
.course-pagination button.active { color: #fff; border-color: #2563eb; background: #2563eb; }

.learning-news {padding-top: 64px;padding-bottom: 64px;background: #f9fafb;}
.learning-news-heading { margin-bottom: 32px; }
.learning-news-heading h2 { margin: 0 0 10px; color: #111827; font-size: 30px; font-weight: 800; line-height: 36px; }
.learning-news-heading p { margin: 0; color: #6b7280; font-size: 14px; line-height: 20px; }
.learning-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
.learning-news-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  min-width: 0;
}
.learning-news-media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #e5e7eb;
}
.learning-news-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.learning-news-media-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  color: #94a3b8;
  background: #e5e7eb;
  font-size: 40px;
}
.learning-news-media-fallback.is-visible,
.learning-news-media-fallback:only-child {
  display: grid;
}
.learning-news-meta { display: flex; align-items: center; gap: 16px; margin-top: 18px; color: #9ca3af; font-size: 11px; line-height: 16px; }
.learning-news-meta span { color: #2563eb; font-weight: 700; text-transform: capitalize; }
.learning-news-card h3 {
  display: -webkit-box;
  flex: 0 0 auto;
  height: 56px;
  overflow: hidden;
  margin: 9px 0 8px;
  color: #111827;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.learning-news-card p {
  display: -webkit-box;
  flex: 0 0 auto;
  height: 40px;
  overflow: hidden;
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.learning-news-card > a {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.learning-news-card > a i { margin-left: 3px; }

@media (max-width: 1199.98px) {
  .learning-hero { height: 600px; }
  .learning-hero-mark { right: 5%; width: 310px; height: 310px; }
  .learning-catalog, .learning-news { height: auto; padding-bottom: 72px; }
  .learning-course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; }
  .course-toolbar { align-items: stretch; flex-direction: column; }
  .course-sort { align-self: flex-end; }
  .ebook-learning-page .course-filter-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 991.98px) {
  .learning-hero-copy { padding-top: 78px; }
  .learning-hero-mark { right: -45px; width: 280px; height: 280px; opacity: .65; }
  .learning-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-news-grid { grid-template-columns: 1fr; }
  .learning-news-card { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: auto auto auto auto; column-gap: 24px; height: auto; }
  .learning-news-media { grid-row: 1 / -1; align-self: stretch; height: 100%; aspect-ratio: auto; min-height: 140px; }
  .learning-news-meta { margin-top: 0; }
  .learning-news-card > a { margin-top: 0; padding-top: 8px; }
}

@media (max-width: 767.98px) {
  .learning-hero {height: 448px;}
  .learning-hero-copy { padding-top: 52px; }
  .learning-eyebrow { margin-bottom: 20px; font-size: 10px; }
  .learning-hero h1 { font-size: 37px; }
  .learning-intro { margin: 18px 0 25px; font-size: 14px; line-height: 22px; }
  .learning-search { height: 58px; padding-left: 15px; }
  .learning-search input { font-size: 12px; }
  .learning-search button { height: 48px; padding: 0 18px; font-size: 12px; }
  .learning-hero-mark { width: 220px; height: 220px; opacity: .4; }
  .learning-stats { height: auto; }
  .learning-stat-grid { height: auto; grid-template-columns: 1fr; padding: 0; }
  .learning-stat-grid > div { height: 82px; justify-content: center; padding: 0; border-top: 1px solid rgba(255,255,255,.25); border-left: 0; }
  .learning-stat-grid > div:first-child { border-top: 0; }
  .learning-stat-grid strong { font-size: 25px; line-height: 31px; }
  .learning-catalog {padding-top: 48px;padding-bottom: 12px;}
  .course-toolbar { height: auto; align-items: stretch; flex-direction: column; gap: 17px; padding: 18px; }
  .course-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .course-sort { align-self: flex-end; }
  .learning-course-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .course-pagination { margin-top: 38px; }
  .learning-news {padding: 52px 0 48px;}
  .learning-news-heading h2 { font-size: 25px; line-height: 32px; }
  .learning-news-card { display: flex; flex-direction: column; height: 100%; }
  .learning-news-card + .learning-news-card { margin-top: 0; }
  .learning-news-media { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .learning-news-card h3 { height: 52px; font-size: 18px; line-height: 26px; }
  .learning-news-card > a { margin-top: auto; padding-top: 12px; }
}

.course-pagination a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  color: #6b7280;
  background: #fff;
  font-size: 12px;
  text-decoration: none;
}
.course-pagination a.active {
  color: #fff;
  border-color: #2563eb;
  background: #2563eb;
}
.course-pagination a:hover:not(.active) {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}
.learning-card-image-placeholder {
  display: grid;
  width: 100%;
/*  height: 100%;*/
  place-items: center;
  color: #94a3b8;
  background: #e5e7eb;
  font-size: 40px;
}
.course-toolbar-form { width: 100%; }

@media (max-width: 399.98px) {
  .learning-search button { padding: 0 13px; }
  .learning-search input::placeholder { color: transparent; }
  .course-filter-grid { grid-template-columns: 1fr; }
  .course-sort, .course-sort select { width: 100%; }
  .course-catalog-search { align-items: stretch; flex-wrap: wrap; }
  .course-catalog-search input { width: calc(100% - 28px); }
  .course-catalog-search a { width: 100%; justify-content: center; }
}

.ebook-learning-page .course-filter-grid { grid-template-columns: repeat(5,minmax(115px,1fr)); }

@media (max-width: 1199.98px) {
  .ebook-learning-page .course-filter-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 767.98px) {
  .ebook-learning-page .course-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 399.98px) {
  .ebook-learning-page .course-filter-grid { grid-template-columns: 1fr; }
}
