.es-page-hero {
  padding: 78px 0 48px;
  background: linear-gradient(180deg, #f5fbff 0%, #ffffff 80%);
}

.es-page-hero--alt {
  background: linear-gradient(180deg, #eff7ff 0%, #ffffff 80%);
}

.es-page-hero--image {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: #08233a;
  background-position: center;
  background-size: cover;
}

.es-page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 22, 38, 0.9) 0%, rgba(5, 22, 38, 0.72) 36%, rgba(5, 22, 38, 0.28) 72%, rgba(5, 22, 38, 0.18) 100%),
    linear-gradient(180deg, rgba(4, 16, 28, 0.16) 0%, rgba(4, 16, 28, 0.5) 100%);
  pointer-events: none;
}

.es-page-hero--image .es-container {
  position: relative;
  z-index: 1;
}

.es-page-hero--image .es-kicker,
.es-page-hero--image h1,
.es-page-hero--image .es-lead {
  color: #fff;
}

.es-page-hero--image .es-lead {
  max-width: 720px;
}

.es-support-hero {
  background-image: url("../images/proway-banner-service-support.png");
  padding-top: 0;
  padding-bottom: 0;
  align-items: center;
}

.es-support-hero h1 {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 12px;
}

.es-support-hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(52px, 26vw);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(10, 111, 174, 0.25));
}

.es-support-hero .es-lead {
  margin: 0;
}

.es-products-hero h1 {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 12px;
}

.es-products-hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(52px, 26vw);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(10, 111, 174, 0.25));
}

.es-products-hero .es-lead {
  margin: 0;
  max-width: 720px;
}

.es-about-hero,
.es-contact-hero {
  padding-top: 48px;
  padding-bottom: 36px;
}

.es-about-hero h1,
.es-contact-hero h1 {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 12px;
}

.es-about-hero h1::after,
.es-contact-hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(52px, 26vw);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(10, 111, 174, 0.25));
}

.es-contact-hero .es-lead {
  margin: 0;
  max-width: 720px;
}

.es-solution-consult-hero {
  background-image: url("../images/proway-banner-automation-solution.png");
}

.es-page-content {
  padding-top: 36px;
}

.es-about-intro {
  margin: 0 0 clamp(32px, 4vw, 48px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid #dfe8f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 14px 40px rgba(13, 42, 67, 0.06);
}

.es-about-intro p {
  margin: 0;
  max-width: 980px;
  color: #2f3d4c;
  font-size: 17px;
  line-height: 1.9;
}

.es-about-intro p:first-child {
  color: #0d2a43;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.45;
}

.es-about-intro p + p {
  margin-top: 18px;
}

.es-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.es-support-card {
  min-height: 100%;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid #dfe8f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(13, 42, 67, 0.05);
}

.es-support-card h2 {
  margin: 0 0 12px;
  color: #0d2a43;
  font-size: clamp(20px, 2.2vw, 26px);
}

.es-support-card p {
  margin: 0;
  color: #3f4d5c;
  font-size: 16px;
  line-height: 1.85;
}

.es-content-wrap {
  margin-top: 24px;
  border: 1px solid #e5ebf2;
  border-radius: 14px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 8px 28px rgba(13, 42, 67, 0.05);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.es-content > *:first-child {
  margin-top: 0;
}

.es-content > *:last-child {
  margin-bottom: 0;
}

.es-content h2,
.es-content h3 {
  color: #0d2a43;
}

.es-content p,
.es-content li {
  color: #4b5563;
}

.es-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.es-post-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.es-project-thumb img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin-bottom: 12px;
}

.es-project-card h2 {
  font-size: 20px;
}

.es-project-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.es-post-card h2 {
  font-size: 22px;
  margin-top: 4px;
  margin-bottom: 10px;
}

.es-post-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.es-post-readmore {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
}

.es-pagination {
  margin-top: 18px;
}

.es-page-cta {
  margin-top: 20px;
  border: 1px solid #d8e6f3;
  background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.es-page-cta p {
  margin: 0;
  color: #1f2937;
  max-width: 680px;
}

.es-page-cta__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.es-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.es-filter__item {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #d6e2ee;
  border-radius: 999px;
  background: #fff;
  color: #0d2a43;
  font-weight: 600;
  font-size: 13px;
}

.es-filter__item.is-active {
  background: #0a6fae;
  border-color: #0a6fae;
  color: #fff;
}

.es-faq--page details {
  border: 1px solid #dfe8f1;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
}

.es-faq--page details + details {
  margin-top: 10px;
}

.es-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}

.es-single-sidebar h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.es-side-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.es-side-posts li + li {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e6edf5;
}

@media (max-width: 640px) {
  .es-page-hero {
    padding: 60px 0 34px;
  }

  .es-content-wrap {
    padding: 16px;
  }
}

@media (max-width: 992px) {
  .es-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .es-support-grid {
    grid-template-columns: 1fr;
  }

  .es-single-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .es-post-grid {
    grid-template-columns: 1fr;
  }

  .es-page-cta {
    padding: 14px;
  }
}

/* Inner pages: reference-style polish + motion targets (see main.js + main.css) */
.es-page-hero .es-kicker {
  position: relative;
  padding-bottom: 12px;
}

.es-page-hero .es-kicker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(52px, 26vw);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(10, 111, 174, 0.25));
}

.es-page-hero h1 {
  letter-spacing: -0.025em;
}

.es-page-hero .es-lead {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.65;
}

.es-content-wrap:hover {
  border-color: #d6e4f0;
  box-shadow: 0 14px 40px rgba(13, 42, 67, 0.08);
}

.es-post-card,
.es-project-card {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .es-post-card:hover,
  .es-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(13, 42, 67, 0.11);
    border-color: #d0dce8;
  }

  .es-project-thumb img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .es-project-card:hover .es-project-thumb img {
    transform: scale(1.04);
  }
}

.es-project-thumb {
  overflow: hidden;
  border-radius: 12px;
}

.es-filter__item {
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .es-filter__item:hover {
    transform: translateY(-1px);
    border-color: #b9cce0;
    box-shadow: 0 8px 20px rgba(13, 42, 67, 0.08);
  }
}

.es-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  margin: 3px;
  border-radius: 10px;
  border: 1px solid #dbe6f1;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  color: #0d2a43;
  text-decoration: none;
}

.es-pagination a.page-numbers:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #f4faff;
}

.es-pagination span.page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .es-page-cta:hover {
    box-shadow: 0 16px 44px rgba(13, 42, 67, 0.1);
    border-color: #c9daf0;
  }
}

.es-faq--page details {
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.es-faq--page details:hover {
  border-color: #c5d7eb;
  box-shadow: 0 10px 26px rgba(13, 42, 67, 0.06);
}

.es-single-head h1 {
  letter-spacing: -0.03em;
}

.es-page-content .es-grid > .es-card:not(.es-card--link) {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .es-page-content .es-grid > .es-card:not(.es-card--link):hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13, 42, 67, 0.1);
    border-color: #d0dce8;
  }
}

/* Location map (About / Contact) */
.es-location-map {
  margin: clamp(32px, 4vw, 48px) 0;
  padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(180deg, #f6fafd 0%, #eef4f9 100%);
  border: 1px solid #e5eaf0;
  border-radius: 16px;
}

.es-location-map__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 28px);
  color: #0d2a43;
}

.es-location-map__address {
  margin: 0 0 18px;
  color: #5a6b7d;
  font-size: 15px;
}

.es-location-map__frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d8e2ec;
  background: #e8eef3;
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

.es-location-map__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.es-location-map__actions {
  margin: 16px 0 0;
  text-align: center;
}

/* Global offices (About / Contact) */
.es-global-offices {
  margin: clamp(32px, 4vw, 48px) 0;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid #e2ebf3;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbfe 0%, #fff 100%);
}

.es-global-offices__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  color: #0d2a43;
}

.es-global-offices__lead {
  margin: 0 0 clamp(20px, 3vw, 28px);
}

.es-global-offices__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 32px);
  align-items: start;
}

.es-global-offices__map-panel {
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(165deg, #0a1f33 0%, #061522 55%, #0d2a43 100%);
  border: 1px solid rgba(13, 42, 67, 0.12);
  box-shadow: inset 0 0 40px rgba(78, 184, 232, 0.08);
}

.es-global-map--compact {
  aspect-ratio: 1000 / 760;
  max-width: 100%;
  min-height: 240px;
}

.es-global-map--compact .es-global-map__world {
  opacity: 0.95;
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 20px rgba(78, 184, 232, 0.25));
}

.es-global-offices__map-panel .es-global-map--compact .es-global-map__pin-label--callout {
  font-size: 11px;
  padding: 4px 8px;
}

.es-global-offices__cards {
  display: grid;
  gap: 12px;
}

.es-global-offices__card {
  padding: 14px 16px;
  border: 1px solid #e2ebf3;
  border-radius: 12px;
  background: #fff;
}

.es-global-offices__card--hq {
  border-color: #b9d4eb;
  background: linear-gradient(180deg, #f4faff 0%, #fff 100%);
}

.es-global-offices__card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #0d2a43;
}

.es-global-offices__addr {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
}

.es-global-offices__addr-en {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.es-global-offices__hq-map {
  margin-top: clamp(24px, 3vw, 32px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid #e2ebf3;
}

@media (max-width: 900px) {
  .es-global-offices__layout {
    grid-template-columns: 1fr;
  }
}

/* About page: factory video + photo grid (ACF-driven) */
.es-about-factory {
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.es-about-factory__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  color: #0d2a43;
  text-align: center;
}

.es-about-factory__lead {
  margin: 0 auto clamp(24px, 3.5vw, 36px);
  max-width: min(720px, 100%);
  text-align: center;
}

.es-about-factory__video {
  display: flex;
  flex-direction: column;
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding: 0;
  max-width: min(960px, 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(13, 42, 67, 0.08);
  background: #0c1824;
  box-shadow:
    0 2px 6px rgba(13, 42, 67, 0.06),
    0 22px 48px rgba(13, 42, 67, 0.1);
}

.es-about-factory__video-shell {
  position: relative;
  min-width: 0;
  background: #061522;
}

.es-about-factory__video-shell--paused .es-about-factory__video-el {
  pointer-events: none;
}

.es-about-factory__video-shell--playing .es-about-factory__video-el {
  pointer-events: auto;
}

.es-about-factory__video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(6, 21, 34, 0.38);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.25s ease,
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.es-about-factory__video-play:hover {
  background: rgba(6, 21, 34, 0.48);
}

.es-about-factory__video-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.es-about-factory__video-shell--playing .es-about-factory__video-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.es-about-factory__video-play-icon {
  display: flex;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35));
}

.es-about-factory__video-el {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #061522;
  vertical-align: middle;
}

.es-about-factory__video-caption {
  flex-shrink: 0;
  margin: 0;
  padding: 15px 22px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #0d2a43;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-align: left;
  background: linear-gradient(180deg, #f6fafd 0%, #e8f2f9 100%);
  border-top: 1px solid rgba(13, 42, 67, 0.07);
}

.es-about-factory__video-link-wrap {
  margin: 0 auto clamp(20px, 3vw, 32px);
  max-width: min(960px, 100%);
  text-align: center;
}

.es-about-factory__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin-top: clamp(8px, 1.5vw, 16px);
}

.es-about-factory__photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e4ebf2;
  background: #fff;
  box-shadow: 0 8px 28px rgba(13, 42, 67, 0.06);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.28s ease;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .es-about-factory__photo:hover {
    transform: translateY(-3px);
    border-color: #d0dce8;
    box-shadow: 0 16px 40px rgba(13, 42, 67, 0.1);
  }
}

.es-about-factory__photo-link {
  display: block;
  line-height: 0;
  background: #f1f5f9;
}

.es-about-factory__photo-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.es-about-factory__photo-cap {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #4b5563;
  border-top: 1px solid #e8eff5;
}

/* News archive + single article (reference list/detail layout) */
.es-section.es-news-archive,
.es-page-content.es-news-archive {
  padding-top: 0;
  padding-bottom: clamp(48px, 6vw, 72px);
  background: #fff;
}

.es-section.es-news-article {
  padding-top: clamp(32px, 5vw, 48px);
  padding-bottom: clamp(56px, 7vw, 80px);
  background: #fff;
}

.es-news-archive-head {
  padding: clamp(28px, 4vw, 40px) 0 0;
  background: #fff;
}

.es-news-archive-head__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}

.es-news-archive .es-filter--news {
  margin: 20px 0 8px;
  gap: 8px 12px;
}

.es-news-archive .es-filter__item {
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #666;
  font-size: 14px;
  font-weight: 400;
}

.es-news-archive .es-filter__item.is-active,
.es-news-archive .es-filter__item:hover {
  color: var(--color-primary);
  background: transparent;
}

.es-news-archive-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  border-top: 1px solid #e5e5e5;
}

.es-news-archive-list > .es-news-row {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
}

.es-news-archive-list--compact {
  margin-top: 0;
}

.es-news-row {
  display: grid;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(18px, 2.5vw, 24px) 0;
  border-bottom: 1px solid #e5e5e5;
  text-decoration: none;
  color: inherit;
}

.es-news-row__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.es-news-row__title {
  display: block;
  width: 100%;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 400;
  line-height: 1.5;
  color: #1a1a1a;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.es-news-row__date {
  display: block;
  width: 100%;
  font-size: 13px;
  line-height: 1.4;
  color: #999;
}

.es-news-row__icon {
  flex-shrink: 0;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 300;
  line-height: 1;
  color: #1a1a1a;
  transition: color 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .es-news-row:hover .es-news-row__title,
  .es-news-row:hover .es-news-row__icon {
    color: var(--color-primary);
  }
}

.es-news-archive__pagination {
  margin-top: 28px;
}

.es-news-archive__cta {
  margin-top: 36px;
}

.es-news-article {
  background: #fff;
}

.es-news-article__inner {
  max-width: 900px;
}

.es-news-article__back {
  margin-bottom: 24px;
  font-size: 14px;
}

.es-news-article__back a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.es-news-article__back a:hover {
  color: var(--color-primary);
}

.es-news-article__title {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.45;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.es-news-article__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 0 0 clamp(28px, 4vw, 40px);
  font-size: 14px;
  line-height: 1.6;
  color: #999;
  text-align: center;
}

.es-news-article__content {
  color: #333;
  font-size: 16px;
  line-height: 1.9;
}

.es-news-article__content p,
.es-news-article__content li {
  color: #333;
}

.es-news-article__content p {
  margin: 0 0 1.2em;
  text-indent: 2em;
}

.es-news-article__content > :is(h2, h3, h4, ul, ol, blockquote, figure, .wp-block-image, .es-news-article__figure, .es-news-lead-figure) {
  text-indent: 0;
}

.es-news-article__content img,
.es-news-article__figure img {
  width: 100%;
  height: auto;
  display: block;
  margin: 28px 0;
}

.es-news-article__figure,
.es-news-article__content .es-news-lead-figure {
  width: 50%;
  max-width: 450px;
  margin: 0 auto 28px;
}

.es-news-article__figure img,
.es-news-article__content .es-news-lead-figure img {
  width: 100%;
  margin: 0;
}

.es-news-article__related {
  margin-top: clamp(36px, 5vw, 48px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid #e5e5e5;
}

.es-news-article__related-title {
  margin: 0 0 12px;
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 700;
  color: #1a1a1a;
}

.es-news-article__related .es-news-row {
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(14px, 2vw, 20px) 0;
}

.es-news-article__related .es-news-row__copy {
  gap: 4px;
}

.es-news-article__related .es-news-row__title {
  font-size: 15px;
  line-height: 1.45;
}

.es-news-article__related .es-news-row__date {
  font-size: 12px;
}

.es-news-article__related .es-news-row__icon {
  font-size: 18px;
}

@media (max-width: 640px) {
  .es-news-row {
    gap: 12px;
    padding: 16px 0;
  }

  .es-news-article__related .es-news-row {
    gap: 12px;
    padding: 14px 0;
  }

  .es-news-article__figure,
  .es-news-article__content .es-news-lead-figure {
    width: min(100%, 360px);
  }

  .es-news-row__icon {
    font-size: 22px;
  }

  .es-news-article__meta {
    flex-direction: column;
    gap: 4px;
  }
}
