/**
 * Velora News Carousel widget — uses tokens from variables.css (cnvp-variables).
 */
.velora-news-section {
  font-family: var(--cnvp-font-sans);
  overflow: hidden;
}

.velora-news-inner {
  max-width: var(--cnvp-container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.velora-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.velora-news-title {
  color: var(--cnvp-color-navy);
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  font-size: 2rem;
}

.velora-see-more {
  background: var(--cnvp-color-cta);
  color: var(--cnvp-color-navy);
  padding: 10px 20px;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.velora-see-more:hover {
  opacity: 0.92;
  color: white;
  background: var(--cnvp-color-accent);
}

.velora-news-header .velora-see-more svg {
  width: 20px;
  height: 20px;
}

.velora-news-header .velora-see-more:hover svg path {
  fill: white;
}

.velora-news-header .velora-see-more {
  display: flex;
  align-items: center;
  gap: 10px;
}

.velora-news-right {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.velora-news-slider-wrap {
  position: relative;
  width: 100%;
}

.velora-news-swiper {
  width: 100%;
  overflow: hidden;
}

.velora-news-swiper .swiper-wrapper {
  display: flex;
}

.velora-news-right .velora-news-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

.velora-navigation {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  pointer-events: none;
}

.velora-navigation svg {
  color: var(--cnvp-color-white);
  width: 24px;
  height: 24px;
}

.velora-arrow {
  width: 50px !important;
  height: 50px !important;
  background-color: var(--cnvp-color-accent) !important;
  border: none;
  border-radius: 50%;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--cnvp-color-white);
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition:
    background-color 0.2s ease,
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.velora-news-slider-wrap:hover .velora-arrow,
.velora-news-slider-wrap:focus-within .velora-arrow {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.velora-arrow:hover {
  background-color: var(--cnvp-color-accent-deep) !important;
}

.velora-arrow::after {
  display: none;
}

.velora-arrow.swiper-button-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed;
}

.velora-news-right .velora-dots {
  position: static !important;
  width: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.velora-news-right .velora-dots .swiper-pagination-bullet {
  background: var(--cnvp-color-border);
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 5px !important;
  transition: all 0.3s;
}

.velora-news-right .velora-dots .swiper-pagination-bullet-active {
  background: var(--cnvp-color-accent) !important;
  width: 50px !important;
  height: 15px !important;
  border-radius: 30px !important;
}

/* .velora-news-section .swiper-pagination.velora-dots span.swiper-pagination-bullet:not(:nth-child(2)) {
  width: 10px;
  height: 10px;
} */

.velora-news-card {
  background: var(--cnvp-color-white);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--cnvp-shadow-search);
  border: 1px solid var(--cnvp-color-border);
}

.velora-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cnvp-shadow-header);
}

.velora-card-image {
  height: 280px;
  background-size: cover;
  background-position: center;
}

.velora-card-content {
  padding: 20px;
}

.velora-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.velora-badge {
  background: var(--cnvp-color-cta);
  padding: 5px 15px;
  border-radius: 4px;
  color: var(--cnvp-color-navy);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.velora-card-meta .post-date {
  margin-left: auto;
  font-size: 12px;
  color: var(--cnvp-color-muted);
  font-weight: 500;
  white-space: nowrap;
}

.velora-card-title {
  font-size: 20px;
  line-height: 30px;
  margin: 0 0 16px;
  font-weight: 600;
}

.velora-card-title a {
  color: var(--cnvp-color-navy);
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.velora-card-title a:hover {
  color: var(--cnvp-color-accent-deep);
}
.velora-card-footer a.velora-read-more {
  display: flex;
  gap: 10px;
  align-items: center;
}

.velora-card-footer a.velora-read-more span.arrow {
  display: flex;
  align-items: center;
}

.velora-read-more {
  color: var(--cnvp-color-accent-deep);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.velora-read-more:hover {
  color: var(--cnvp-color-navy);
}

.velora-post-link {
  display: block;
  text-decoration: none;
}

@media (max-width: 992px) {
  .velora-news-title {
    font-size: 30px;
  }

  .velora-news-header {
    flex-direction: row;
    align-items: center;
  }

  .velora-news-swiper {
    overflow: visible !important;
  }

  .velora-navigation {
    padding: 0;
  }

  .velora-arrow {
    width: 42px !important;
    height: 42px !important;
  }

  .velora-news-header .velora-see-more {
    font-size: 14px;
    padding: 8px 20px !important;
  }

  .velora-news-header .velora-see-more svg {
      width: 15px;
      height: 15px;
  }
  
  .velora-card-image {
    height: 190px;
  }

}
