.module-showcase,
.module-news,
.learning-module__tabs,
.learning-module__grid {
  width: min(100%, 1100px);
  margin-inline: auto;
}

.learning-module--wide .module-showcase,
.learning-module--wide .module-news,
.learning-module--wide .learning-module__tabs,
.learning-module--wide .learning-module__grid {
  width: min(100%, 1320px);
}

.module-showcase {
  --module-showcase-panel-color: #1854a5;
  --module-showcase-label-color: #3478c1;
  --module-showcase-panel-overlay: rgba(24, 84, 165, 0.88);
  --module-showcase-panel-hover: #004a6a;
  --module-showcase-surface-color: #eff0f1;
  --module-showcase-text-color: #0b1724;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  align-items: end;
  min-height: 172px;
  margin-top: 28px;
}

.module-showcase--red {
  --module-showcase-panel-color: #b50f1f;
  --module-showcase-label-color: #910f18;
  --module-showcase-panel-overlay: rgba(181, 15, 31, 0.88);
  --module-showcase-panel-hover: #7f0c16;
}

.module-showcase--blue {
  --module-showcase-panel-color: #1854a5;
  --module-showcase-label-color: #3478c1;
  --module-showcase-panel-overlay: rgba(24, 84, 165, 0.88);
  --module-showcase-panel-hover: #004a6a;
}

.module-showcase--teal {
  --module-showcase-panel-color: #0092bf;
  --module-showcase-label-color: #0c6d84;
  --module-showcase-panel-overlay: rgba(0, 146, 191, 0.88);
  --module-showcase-panel-hover: #004a6a;
}

.module-showcase--brown {
  --module-showcase-panel-color: #6f4a12;
  --module-showcase-label-color: #9a6a1f;
  --module-showcase-panel-overlay: rgba(111, 74, 18, 0.88);
  --module-showcase-panel-hover: #51350c;
}

.module-showcase--green {
  --module-showcase-panel-color: #1f6f4a;
  --module-showcase-label-color: #2f8f62;
  --module-showcase-panel-overlay: rgba(31, 111, 74, 0.88);
  --module-showcase-panel-hover: #155237;
}

.module-showcase--purple {
  --module-showcase-panel-color: #5d3b8c;
  --module-showcase-label-color: #7754a6;
  --module-showcase-panel-overlay: rgba(93, 59, 140, 0.88);
  --module-showcase-panel-hover: #43286d;
}

.module-showcase--slate {
  --module-showcase-panel-color: #31465f;
  --module-showcase-label-color: #536f8e;
  --module-showcase-panel-overlay: rgba(49, 70, 95, 0.88);
  --module-showcase-panel-hover: #243346;
}

.module-showcase__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-self: stretch;
  min-height: 90px;
  margin-top: auto;
  border: 0;
  border-right: 0;
}

.module-showcase__stat {
  display: grid;
  grid-template-rows: 28px 1fr;
  align-content: stretch;
  gap: 0;
  min-width: 0;
  padding: 0;
  background: var(--module-showcase-surface-color);
  text-align: center;
}

.module-showcase__stat + .module-showcase__stat {
  border-left: 1px solid #ffffff;
}

.module-showcase__stat-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  color: #ffffff;
  background: var(--module-showcase-label-color);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}

.module-showcase__stat-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--module-showcase-text-color);
  font-family: "Noto Sans", system-ui, sans-serif;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.module-showcase__highlight {
  position: relative;
  display: grid;
  /*grid-template-rows: minmax(0, 1fr) 40px;*/
  min-width: 0;
  color: #ffffff;
  background: transparent;
}

.module-showcase__highlight::before {
  position: absolute;
  top: 18px;
  left: -26px;
  width: 54px;
  height: 54px;
  background: var(--module-showcase-label-color);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  content: "";
}

.module-showcase__highlight-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  min-height: 160px;
  padding: 14px 18px 12px 18px;
  background: var(--module-showcase-panel-color);
}

.module-showcase__highlight-text {
  margin: 0;
  color: #ffffff;
  font-size: 0.90rem;
  font-weight: 500;
  line-height: 1.18;
}

.module-showcase__highlight-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 40px;
  padding-left: 4px;
  background: var(--module-showcase-surface-color);
}

.module-showcase__highlight-title {
  margin: 0;
  color: #0b0b0b;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1;
  text-align: left;
}

.module-showcase__highlight-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 18px;
  color: #ffffff;
  background: var(--module-showcase-label-color);
  border: 1px solid var(--module-showcase-label-color);
  border-radius: 0 0 8px 0;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
}

.module-showcase__highlight-action:hover,
.module-showcase__highlight-action:focus-visible {
  color: #ffffff;
  background: var(--module-showcase-panel-hover);
  border-color: var(--module-showcase-panel-hover);
}

.module-showcase__highlight-action:focus-visible {
  outline: 3px solid #f6c343;
  outline-offset: 2px;
}

.module-news {
  --module-news-color: var(--module-showcase-panel-color, #1854a5);
  --module-news-label-color: var(--module-showcase-label-color, #3478c1);
  --module-news-gap: 18px;
  --module-news-per-view: 3;
  margin-top: 18px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(20, 35, 58, 0.08);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(25, 53, 82, 0.08);
}

.module-news--red {
  --module-news-color: #b50f1f;
  --module-news-label-color: #910f18;
}

.module-news--blue {
  --module-news-color: #1854a5;
  --module-news-label-color: #3478c1;
}

.module-news--teal {
  --module-news-color: #0092bf;
  --module-news-label-color: #0c6d84;
}

.module-news--brown {
  --module-news-color: #6f4a12;
  --module-news-label-color: #9a6a1f;
}

.module-news--green {
  --module-news-color: #1f6f4a;
  --module-news-label-color: #2f8f62;
}

.module-news--purple {
  --module-news-color: #5d3b8c;
  --module-news-label-color: #7754a6;
}

.module-news--slate {
  --module-news-color: #31465f;
  --module-news-label-color: #536f8e;
}

.module-news__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 35, 58, 0.08);
}

.module-news__eyebrow,
.module-news__title {
  margin: 0;
}

.module-news__eyebrow {
  color: var(--module-news-label-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.module-news__title {
  margin-top: 4px;
  color: #14233a;
  font-size: clamp(1.28rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.16;
}

.module-news__all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 8px 14px;
  color: #ffffff;
  background: var(--module-news-color);
  border: 1px solid var(--module-news-color);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.module-news__all-link:hover,
.module-news__all-link:focus-visible {
  color: #ffffff;
  background: #004a6a;
  border-color: #004a6a;
}

.module-news__all-link:focus-visible,
.module-news__control:focus-visible,
.module-news__link:focus-visible {
  outline: 3px solid #f6c343;
  outline-offset: 3px;
}

.module-news__carousel {
  overflow: hidden;
}

.module-news__viewport {
  overflow: hidden;
  padding: 2px;
}

.module-news__track {
  display: flex;
  gap: var(--module-news-gap);
  transition: transform 260ms ease;
  will-change: transform;
}

.module-news__card {
  flex: 0 0 calc((100% - (var(--module-news-gap) * (var(--module-news-per-view) - 1))) / var(--module-news-per-view));
  min-width: 0;
}

.module-news__link {
  display: flex;
  height: 100%;
  min-height: 292px;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  background: #ffffff;
  border: 1px solid rgba(20, 35, 58, 0.1);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(20, 35, 58, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.module-news__link:hover,
.module-news__link:focus-visible {
  border-color: rgba(24, 84, 165, 0.26);
  box-shadow: 0 18px 34px rgba(20, 35, 58, 0.1);
}

.module-news__image {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  transition: transform 280ms ease, filter 280ms ease;
}

.module-news__link:hover .module-news__image,
.module-news__link:focus-visible .module-news__image {
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.02);
}

.module-news__body {
  display: flex;
  min-height: 132px;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 13px;
}

.module-news__body h3 {
  display: -webkit-box;
  min-height: 3.75em;
  margin: 0;
  overflow: hidden;
  color: #14233a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.module-news__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(20, 35, 58, 0.1);
}

.module-news__meta time {
  color: #14233a;
  font-family: "Noto Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.module-news__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 48%;
  padding: 0 8px;
  color: #526173;
  background: #f8f9f9;
  border: 1px solid #d8e0e8;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.module-news__footer {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.module-news__controls {
  display: inline-flex;
  gap: 8px;
}

.module-news__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--module-news-color);
  background: #f4f8fb;
  border: 1px solid rgba(24, 84, 165, 0.14);
  border-radius: 10px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.module-news__control:hover,
.module-news__control:focus-visible {
  color: #ffffff;
  background: var(--module-news-color);
  border-color: var(--module-news-color);
}

.module-news__control:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.module-news__control svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.learning-module__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}

.learning-module__tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  color: #ffffff;
  background: #9da9b4;
  border: 0;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.learning-module__tabs button:hover,
.learning-module__tabs button:focus-visible,
.learning-module__tabs button[aria-selected="true"] {
  background: #004a6a;
}

.learning-module__tabs button:focus-visible {
  outline: 3px solid #f6c343;
  outline-offset: 2px;
}

.learning-module__grid {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.learning-module__card {
  position: relative;
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  background: #123e7a;
}

.learning-module__card[hidden] {
  display: none;
}

.learning-module__card img {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 250px;
}

.learning-module__summary {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 28px 34px;
  color: #ffffff;
  background: #5aa3ea;
  text-align: center;
}

.learning-module__summary--deep {
  background: #4898dc;
}

.learning-module__summary-title,
.learning-module__summary-links,
.learning-module__numbers-title,
.learning-module__numbers-text {
  margin: 0;
}

.learning-module__summary-title {
  color: #ffffff;
  font-size: clamp(1.48rem, 3vw, 2.05rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.learning-module__summary-title span {
  display: block;
  font-size: 0.78em;
  letter-spacing: 0.02em;
}

.learning-module__summary-value {
  display: grid;
  justify-items: center;
  align-content: center;
  width: min(100%, 235px);
  min-height: 88px;
  margin-inline: auto;
  padding: 10px 14px;
  background: rgba(19, 96, 164, 0.36);
}

.learning-module__summary--deep .learning-module__summary-value {
  background: rgba(0, 74, 106, 0.48);
}

.learning-module__summary-value strong {
  display: block;
  color: #ffffff;
  font-family: "Noto Sans", system-ui, sans-serif;
  font-size: clamp(3rem, 6vw, 4.65rem);
  font-weight: 800;
  line-height: 0.9;
}

.learning-module__summary-value small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.1;
}

.learning-module__summary-links {
  display: grid;
  width: min(100%, 235px);
  margin-inline: auto;
  color: #ffffff;
  font-size: clamp(1.25rem, 2.4vw, 1.82rem);
  font-weight: 500;
  line-height: 1.18;
}

.learning-module__summary-links span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.learning-module__summary-links span:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.learning-module__numbers-card {
  align-content: start;
  gap: 18px;
  padding: 40px 38px;
  background: #1f5ba8;
  text-align: left;
}

.learning-module__numbers-title {
  display: grid;
  gap: 2px;
  color: #ffffff;
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.98;
  text-transform: uppercase;
}

.learning-module__numbers-text {
  max-width: 285px;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.98rem, 1.7vw, 1.17rem);
  font-weight: 500;
  line-height: 1.18;
}

.learning-module__numbers-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  margin-top: 4px;
  padding: 9px 24px;
  color: #ffffff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.learning-module__numbers-action span {
  margin-left: 10px;
  font-size: 1.55rem;
  line-height: 0.7;
}

.learning-module__numbers-action:hover,
.learning-module__numbers-action:focus-visible {
  color: #1f5ba8;
  background: #ffffff;
  border-color: #ffffff;
}

.learning-module__numbers-action:focus-visible {
  outline: 3px solid #f6c343;
  outline-offset: 3px;
}

.learning-module__overlay {
  position: absolute;
  inset: 0 0 0 34%;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 32px 48px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(0, 74, 106, 0.9), rgba(0, 22, 34, 0.76));
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.learning-module__card:hover .learning-module__overlay,
.learning-module__card:focus-within .learning-module__overlay,
.learning-module__card.is-active .learning-module__overlay {
  opacity: 1;
  transform: translateX(0);
}

.learning-module__overlay h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.learning-module__overlay a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
}

.learning-module__overlay a::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.learning-module__overlay a:hover,
.learning-module__overlay a:focus-visible {
  color: #b7eef0;
}

@media (max-width: 991.98px) {
  .module-showcase {
    grid-template-columns: 1fr;
  }

  .module-showcase__stats {
    border-right: 1px solid rgba(0, 74, 106, 0.1);
    border-bottom: 0;
  }

  .module-showcase__highlight::before {
    display: none;
  }

  .module-showcase__highlight-content {
    min-height: auto;
    padding: 18px;
  }

  .module-news {
    --module-news-per-view: 2;
  }

  .learning-module__card {
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .learning-module__overlay {
    inset: 0 0 0 42%;
  }
}

@media (max-width: 767.98px) {
  .module-showcase__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-showcase__stat {
    min-height: 112px;
  }

  .module-showcase__stat:nth-child(3) {
    border-left: 0;
  }

  .module-showcase__stat:nth-child(n + 3) {
    border-top: 1px solid rgba(0, 74, 106, 0.16);
  }

  .module-news {
    padding: 15px;
  }

  .module-news__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-news__all-link {
    width: 100%;
  }

  .learning-module__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-module__card {
    grid-template-columns: 1fr;
  }

  .learning-module__card img,
  .learning-module__summary {
    grid-column: 1;
  }

  .learning-module__card img {
    grid-row: 1;
    min-height: 320px;
  }

  .learning-module__summary {
    grid-row: 1;
    background: rgba(90, 163, 234, 0.94);
  }

  .learning-module__summary--deep {
    background: rgba(72, 152, 220, 0.94);
  }

  .learning-module__numbers-card {
    background: rgba(31, 91, 168, 0.96);
  }

  .learning-module__overlay {
    inset: auto 0 0;
    align-content: end;
    min-height: 62%;
    padding: 24px;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .module-showcase__stats {
    grid-template-columns: 1fr;
  }

  .module-showcase__stat,
  .module-showcase__stat:nth-child(3) {
    border-left: 0;
  }

  .module-showcase__stat + .module-showcase__stat,
  .module-showcase__stat:nth-child(n + 3) {
    border-top: 1px solid rgba(0, 74, 106, 0.16);
  }

  .module-showcase__highlight::before {
    display: none;
  }

  .module-showcase__highlight-content {
    padding: 18px;
  }

  .module-news {
    --module-news-per-view: 1;
  }

  .module-news__body {
    min-height: 124px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .module-news__track,
  .module-news__image,
  .module-news__link,
  .module-news__control {
    transition-duration: 0.01ms;
  }
}
