/* Custom Elementor Widgets — Latest News & Update
   Image-topped card with a category pill, title, date and a "Read More"
   link. Shows a plain 3-column grid by default; a Swiper 11 carousel takes
   over once more than 3 items are present. */

.cew-nu {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* ── Grid layout (3 / 2 / 1 columns) ── */
.cew-nu--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .cew-nu--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .cew-nu--grid {
    grid-template-columns: 1fr;
  }
}

/* ── Carousel slides: equal height so cards line up ── */
.cew-nu--carousel .swiper-slide {
  height: auto;
  display: flex;
}

/* ── Card ── */
.cew-nu__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(13, 27, 42, 0.06);
}

/* ── Image ── */
.cew-nu__image {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  background-color: #F1F5F9;
  overflow: hidden;
}

.cew-nu__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Body ── */
.cew-nu__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 auto;
  padding: 20px;
  gap: 8px;
}

/* ── Badge ── */
.cew-nu__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: #F1F5F9;
  color: #64748B;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Title ── */
.cew-nu__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 24px;
  color: #0D1B2A;
  word-break: break-word;
}

/* ── Date ── */
.cew-nu__date {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: #64748B;
}

/* ── Read More link ── */
.cew-nu__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #1654C0;
  text-decoration: none;
}

.cew-nu__link:hover {
  text-decoration: underline;
}

.cew-nu__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Arrows ── */
.cew-nu__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: #0D1B2A;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.cew-nu__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.cew-nu__arrow svg {
  width: 20px;
  height: 20px;
}

.cew-nu__arrow--prev {
  left: -8px;
}

.cew-nu__arrow--next {
  right: -8px;
}

/* ── Pagination dots ── */
.cew-nu--carousel .swiper-pagination {
  position: static;
  margin-top: 24px;
}

.cew-nu--carousel .swiper-pagination-bullet {
  background: rgba(13, 27, 42, 0.3);
  opacity: 1;
}

.cew-nu--carousel .swiper-pagination-bullet-active {
  background: #1654C0;
}

/* ── Editor empty-state ── */
.cew-nu__empty {
  padding: 28px 20px;
  border: 1px dashed #c3c4c7;
  border-radius: 8px;
  text-align: center;
  color: #50575e;
  font-size: 14px;
}
