.efcn-news,
.efcn-news * {
  box-sizing: border-box;
}

.efcn-news {
  --efcn-gap: 24px;
  --efcn-visible: 3;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 35px auto;
  padding: 0 44px;
}

.efcn-news__viewport {
  width: 100%;
  overflow: hidden;
  padding: 10px 2px 22px;
  touch-action: pan-y;
}

.efcn-news__track {
  display: flex;
  align-items: stretch;
  gap: var(--efcn-gap);
  transition: transform 0.45s ease;
  will-change: transform;
}

.efcn-news__card {
  flex: 0 0 calc((100% - (var(--efcn-gap) * (var(--efcn-visible) - 1))) / var(--efcn-visible));
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(20, 20, 20, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.efcn-news__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(20, 20, 20, 0.12);
}

.efcn-news__image-link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f4;
}

.efcn-news__image-link img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border: 0;
  transition: transform 0.35s ease;
}

.efcn-news__card:hover .efcn-news__image-link img {
  transform: scale(1.035);
}

.efcn-news__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px 20px;
}

.efcn-news__title {
  display: block;
  margin: 0 0 20px;
  color: #0b2540 !important;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.38;
  text-decoration: none !important;
}

.efcn-news__title:hover,
.efcn-news__title:focus-visible {
  color: #10aebd !important;
}

.efcn-news__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: auto;
  padding: 8px 16px;
  color: #fff !important;
  background: #10aebd;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.efcn-news__button:hover,
.efcn-news__button:focus-visible {
  color: #fff !important;
  background: #00204d;
  transform: translateY(-1px);
}

.efcn-news__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 36px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #00204d;
  font-size: 20px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.efcn-news__arrow:hover,
.efcn-news__arrow:focus-visible {
  color: #fff;
  background: #10aebd;
}

.efcn-news__arrow--prev { left: 0; }
.efcn-news__arrow--next { right: 0; }

.efcn-news__arrow[disabled] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.efcn-empty {
  margin: 24px 0;
  color: #0b2540;
  text-align: center;
}

@media (max-width: 900px) {
  .efcn-news { --efcn-visible: 2; }
}

@media (max-width: 600px) {
  .efcn-news {
    --efcn-visible: 1;
    --efcn-gap: 16px;
    margin: 24px auto;
    padding: 0 34px;
  }

  .efcn-news__viewport { padding-bottom: 18px; }
  .efcn-news__content { padding: 16px 17px 18px; }
  .efcn-news__title { font-size: 1rem; }

  .efcn-news__arrow {
    width: 29px;
    height: 42px;
    font-size: 17px;
    line-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .efcn-news__track,
  .efcn-news__card,
  .efcn-news__image-link img,
  .efcn-news__button {
    transition: none !important;
  }
}
