/* The three courses are the whole decision surface of the student landing. */
.eurekers-student-library-page .site {
  background-color: var(--eur-design-page-bg, #f7fafb);
}

.eurekers-area-v2.eurekers-course-library {
  width: min(1180px, calc(100% - 48px));
  padding: 36px 0 76px;
}

.eurekers-area-v2.eurekers-course-library h1 {
  margin: 0 0 14px;
  color: var(--eur-design-text, #0e2a3a);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.eurekers-course-library .eurekers-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.eurekers-course-library .eurekers-library-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--eur-design-border, #d7e4ea);
  border-radius: 9px;
  background: var(--eur-design-surface, #fff);
  box-shadow: 0 5px 20px rgba(16, 50, 69, .06);
}

.eurekers-course-library .eurekers-library-photo {
  position: relative;
  height: clamp(188px, 20vw, 238px);
  overflow: hidden;
  flex: 0 0 auto;
  background: #173c50;
}

.eurekers-course-library .eurekers-library-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.eurekers-course-library [data-area-course-card="advanced"] .eurekers-library-photo img {
  object-position: center 34%;
}

.eurekers-course-library .eurekers-library-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 70px;
  background: linear-gradient(transparent, #0d354b);
  content: '';
  pointer-events: none;
}

.eurekers-course-library .eurekers-library-title-band {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 10px 20px 12px;
  background: #0d354b;
  color: #fff;
}

.eurekers-course-library .eurekers-library-title-band > span {
  display: block;
  margin-bottom: 4px;
  color: #e5f2f8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .045em;
  line-height: 1.25;
  text-transform: uppercase;
}

.eurekers-area-v2.eurekers-course-library .eurekers-library-title-band h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 1.65vw, 21px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.eurekers-course-library .eurekers-library-footer {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 196px;
  padding: 22px 20px 18px;
  color: var(--eur-design-text, #0e2a3a);
}

.eurekers-course-library .eurekers-library-progress {
  min-width: 0;
  margin-bottom: 12px;
}

.eurekers-course-library .eurekers-library-progress:has(+ .eurekers-library-access) { margin-bottom: 0; }
.eurekers-course-library .eurekers-library-access { margin-bottom: 12px; }

.eurekers-course-library .eurekers-library-progress-main {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 29px;
}

.eurekers-course-library .eurekers-library-progress-main > strong {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.eurekers-course-library .eurekers-library-progress-track {
  height: 11px;
  flex: 1 1 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #dce9ef;
}

.eurekers-course-library .eurekers-library-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #00add9;
}

.eurekers-course-library .eurekers-library-progress > small,
.eurekers-course-library .eurekers-library-access {
  display: block;
  margin-top: 3px;
  color: var(--eur-design-subtle, #617784);
  font-size: 12px;
  line-height: 1.4;
}

.eurekers-course-library .eurekers-library-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-height: 38px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.eurekers-course-library .eurekers-library-price del {
  color: var(--eur-design-subtle, #617784);
  font-size: 15px;
  white-space: nowrap;
}

.eurekers-course-library .eurekers-library-price strong {
  color: var(--eur-design-text, #0e2a3a);
  font-size: clamp(25px, 2.3vw, 30px);
  white-space: nowrap;
}

.eurekers-course-library .eurekers-library-price > span,
.eurekers-course-library .eurekers-library-price small {
  color: var(--eur-design-copy, #405562);
  font-size: 14px;
  white-space: nowrap;
}

.eurekers-course-library .eurekers-library-price .eurekers-library-repeat-note {
  flex-basis: 100%;
  color: var(--eur-design-subtle, #617784);
  font-size: 12px;
  white-space: normal;
}

.eurekers-course-library .eurekers-library-requirement {
  margin: 0;
  color: var(--eur-design-copy, #405562);
  font-size: 15px;
  line-height: 1.4;
}

.eurekers-area-v2.eurekers-course-library .eurekers-library-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid #1c4561;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.eurekers-area-v2.eurekers-course-library .eurekers-library-action--primary {
  border-color: #00add9;
  background: #00add9;
  color: #fff;
}

.eurekers-area-v2.eurekers-course-library .eurekers-library-action--primary:hover {
  border-color: #009ac2;
  background: #009ac2;
  color: #fff;
}

.eurekers-area-v2.eurekers-course-library .eurekers-library-action--outline {
  background: transparent;
  color: var(--eur-design-text, #0e2a3a);
}

.eurekers-area-v2.eurekers-course-library .eurekers-library-action--outline:hover {
  border-color: #00add9;
  color: var(--eur-design-text, #0e2a3a);
  background: var(--eur-design-soft-bg, #eef7fa);
}

.eurekers-area-v2.eurekers-course-library .eurekers-library-action--repeat {
  border-color: #b7dce9;
  background: #e9f6fb;
  color: #0d354b;
}

.eurekers-area-v2.eurekers-course-library .eurekers-library-action--repeat:hover {
  border-color: #80bbd1;
  background: #d9eff8;
  color: #0d354b;
}

.eurekers-area-v2.eurekers-course-library .eurekers-library-details {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 3px;
  color: #161616;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.eurekers-course-library .eurekers-library-footer:not(:has(.eurekers-library-action)) .eurekers-library-details {
  margin-top: auto;
}

.eurekers-course-library .eurekers-library-details svg {
  width: 18px;
  height: 18px;
}

.eurekers-area-v2.eurekers-course-library .eurekers-library-certificate:hover {
  color: #0089ad;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Reserve the certificate row across desktop cards only when one exists. */
@media (min-width: 701px) {
  .eurekers-course-library .eurekers-library-grid:has(.eurekers-library-certificate) .eurekers-library-footer:not(:has(.eurekers-library-certificate))::after {
    content: "";
    flex: 0 0 44px;
  }
}

.eurekers-area-v2.eurekers-course-library .eurekers-library-certificate {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  min-height: 44px;
  padding: 5px 0;
  color: var(--eur-design-copy, #405562);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.eurekers-area-v2.eurekers-course-library :is(a):focus-visible {
  outline: 3px solid #00add9;
  outline-offset: 3px;
}

html[data-eurekers-theme="dark"] .eurekers-course-library .eurekers-library-card {
  box-shadow: none;
}

html[data-eurekers-theme="dark"] .eurekers-course-library .eurekers-library-progress-track {
  background: #315060;
}

html[data-eurekers-theme="dark"] .eurekers-area-v2.eurekers-course-library .eurekers-library-action--outline {
  border-color: #a4c3d1;
}

html[data-eurekers-theme="dark"] .eurekers-area-v2.eurekers-course-library .eurekers-library-action--repeat {
  border-color: #7096aa;
  background: #21465a;
  color: #f0f9fc;
}

html[data-eurekers-theme="dark"] .eurekers-area-v2.eurekers-course-library .eurekers-library-action--repeat:hover {
  border-color: #9bc5d8;
  background: #2c566b;
  color: #fff;
}

@media (max-width: 900px) {
  .eurekers-course-library .eurekers-library-grid { gap: 12px; }
  .eurekers-course-library .eurekers-library-title-band { padding-inline: 15px; }
  .eurekers-course-library .eurekers-library-footer { padding-inline: 15px; }
  .eurekers-course-library .eurekers-library-price { gap: 3px 7px; }
  .eurekers-course-library .eurekers-library-price strong { font-size: 23px; }
}

@media (max-width: 700px) {
  .eurekers-area-v2.eurekers-course-library {
    width: min(100% - 40px, 470px);
    padding: 26px 0 52px;
  }

  .eurekers-area-v2.eurekers-course-library h1 {
    margin-bottom: 14px;
    font-size: 30px;
  }

  .eurekers-course-library .eurekers-library-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .eurekers-course-library .eurekers-library-photo {
    height: clamp(112px, 32vw, 150px);
  }

  .eurekers-course-library [data-area-course-card="initial"] .eurekers-library-photo img,
  .eurekers-course-library [data-area-course-card="advanced"] .eurekers-library-photo img {
    object-position: center 18%;
  }

  .eurekers-course-library .eurekers-library-title-band {
    min-height: 64px;
    padding: 10px 16px 11px;
  }

  .eurekers-area-v2.eurekers-course-library .eurekers-library-title-band h2 {
    font-size: 18px;
  }

  .eurekers-course-library .eurekers-library-footer {
    min-height: 152px;
    padding: 14px 16px 10px;
  }

  .eurekers-course-library .eurekers-library-price { min-height: 34px; }
  .eurekers-course-library .eurekers-library-price strong { font-size: 24px; }
  .eurekers-area-v2.eurekers-course-library .eurekers-library-action { min-height: 44px; }
}

html[data-eurekers-theme="dark"] .eurekers-area-v2.eurekers-course-library .eurekers-library-details {
  color: var(--eur-design-text, #edf7fa);
}
