.articles {
  position: relative;
  background: var(--color-accent);
  content-visibility: auto;
  contain-intrinsic-size: 1000px 1000px;
}

.articles__inner {
  display: flex;
  align-items: center;
}

.articles__board {
  width: min(1400px, 96vw);
  height: min(82vh, 860px);
  margin: 0 auto;
  background: #ffffff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.4rem, 4vw, 3.6rem);
  box-shadow: 0 24px 60px rgba(8, 26, 40, 0.22);
  color: #0b1b2b;
  display: flex;
  flex-direction: column;
}

.articles__prev {
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(96px, 10vw, 140px);
  height: clamp(96px, 10vw, 140px);
  background: #ffffff;
  border-bottom-left-radius: 999px;
  display: block;
  text-decoration: none;
  z-index: 30;
  pointer-events: auto;
  transform-origin: top right;
  transform: scale(0.45);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.articles__prev-text {
  position: absolute;
  left: 58%;
  top: 42%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  text-align: center;
  max-width: 90px;
  line-height: 1.2;
  transition: transform 0.5s ease, text-shadow 0.5s ease, opacity 0.3s ease;
}

.articles__prev:hover,
.articles__prev:focus-visible,
.articles__prev:active {
  transform: scale(1);
  box-shadow: 0 18px 34px rgba(8, 26, 40, 0.2);
}

.articles__prev:hover .articles__prev-text,
.articles__prev:focus-visible .articles__prev-text,
.articles__prev:active .articles__prev-text {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
  text-shadow: 0 10px 24px rgba(15, 169, 218, 0.25);
}

.articles__next {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(96px, 10vw, 140px);
  height: clamp(96px, 10vw, 140px);
  background: #ffffff;
  border-top-left-radius: 999px;
  display: block;
  text-decoration: none;
  z-index: 6;
  pointer-events: auto;
  transform-origin: bottom right;
  transform: scale(0.45);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.articles__next-text {
  position: absolute;
  left: 58%;
  top: 58%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  text-align: center;
  max-width: 90px;
  line-height: 1.2;
  transition: transform 0.5s ease, text-shadow 0.5s ease, opacity 0.3s ease;
}

.articles__next:hover,
.articles__next:focus-visible,
.articles__next:active {
  transform: scale(1);
  box-shadow: 0 18px 34px rgba(8, 26, 40, 0.2);
}

.articles__next:hover .articles__next-text,
.articles__next:focus-visible .articles__next-text,
.articles__next:active .articles__next-text {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
  text-shadow: 0 10px 24px rgba(15, 169, 218, 0.25);
}

.articles__header {
  max-width: 540px;
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.articles__title {
  font-size: var(--fs-section-title);
  font-weight: 700;
  color: var(--color-accent);
}

.articles__lead {
  margin-top: 0.6rem;
  color: #4a5f73;
}

.articles__content {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(1.6rem, 3vw, 2.6rem);
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.articles__featured {
  position: relative;
  height: 100%;
  min-height: 0;
}

.articles__featured-card {
  position: relative;
  height: 100%;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 18px 40px rgba(8, 26, 40, 0.18);
  background: #0b1b2b;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.articles__featured-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.articles__featured-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(0);
  transition: transform 0.75s ease;
}

.articles__featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 20, 31, 0.1) 0%,
    rgba(6, 20, 31, 0.65) 70%,
    rgba(6, 20, 31, 0.85) 100%
  );
  z-index: 1;
}

.articles__featured-slide.is-entering {
  transform: translateX(100%);
}

.articles__featured-slide.is-exiting {
  transform: translateX(-100%);
}


.articles__featured-body {
  position: relative;
  z-index: 2;
  padding: clamp(1.4rem, 3vw, 2rem);
  color: #ffffff;
  max-width: 620px;
}

.articles__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 169, 218, 0.22);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.articles__pill.is-highlight {
  background: rgba(249, 132, 42, 0.9);
}

.articles__featured-title {
  margin-top: 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
}

.articles__featured-excerpt {
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.55;
}

.articles__featured-dots {
  position: absolute;
  right: clamp(1rem, 2vw, 1.6rem);
  bottom: clamp(1rem, 2vw, 1.6rem);
  z-index: 3;
  display: flex;
  gap: 0.45rem;
}

.articles__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.articles__dot.is-active {
  background: #ffffff;
  transform: scale(1.05);
}

.articles__list {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  height: 100%;
  min-height: 0;
}

.article-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem;
  border-radius: calc(var(--radius) - 4px);
  background: #f7fbff;
  border: 1px solid rgba(15, 169, 218, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
  height: 100%;
  opacity: 0;
  transform: translateY(18px);
  text-decoration: none;
  color: inherit;
}

.article-card img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.article-card__title {
  font-weight: 600;
  color: #0b1b2b;
  font-size: 1.05rem;
  line-height: 1.3;
}

.article-card__meta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #7b8fa4;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(15, 169, 218, 0.18);
}

.article-card:hover,
.article-card:focus-visible {
  transition-delay: 0s;
}

.articles.is-visible .articles__header {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.articles.is-visible .articles__featured-card {
  opacity: 1;
  transition-delay: 0.2s;
}

.articles.is-visible .articles__featured-card:hover,
.articles.is-visible .articles__featured-card:focus-visible {
  transition-delay: 0s;
}

.articles.is-visible .article-card {
  animation: article-card-in 0.5s ease forwards;
}

.articles.is-visible .article-card:nth-child(1) {
  animation-delay: 0.45s;
}

.articles.is-visible .article-card:nth-child(2) {
  animation-delay: 0.6s;
}

.articles.is-visible .article-card:nth-child(3) {
  animation-delay: 0.75s;
}

@keyframes article-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .articles__content {
    grid-template-columns: 1fr;
  }

  .articles__list {
    gap: 1rem;
  }
}
