/* Yacht Carousel Styles */
.news-carousel-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px auto;
}


.section-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  color: #0f1a3a;
  font-family: var(--secondary-font);
  font-size: 25px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%; /* 32.5px */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-buttons .left-btn svg {
  transform: rotate(180deg);
  color: #0f1a3a;
}

.section-buttons .disabled svg {
  color: rgba(15, 26, 58, 0.05);
}

.section-buttons {
  display: flex;
  align-items: center;
  gap: 32px;
}

.section-buttons span {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-carousel {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 26, 58, 0.05);
}

.news-carousel--no-border {
  border-bottom: 0;
}

.news-scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 4px 20px 4px;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.news-scroll-container::-webkit-scrollbar {
  display: none;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 220px;
  max-width: 220px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.news-card--thumbnail {
  width: 173px;
  min-width: 173px;
  max-width: 173px;
}

.news-image-container {
  position: relative;
  height: 153px;
  overflow: hidden;
  border-radius: 8px;
}

.size--medium {
  height: 293px;
}

.size--thumbnail {
  height: 116px;
}


@media (min-width: 1024px) {
  .news-scroll-container {
    padding-left: 0;
    gap: 16px;
  }
  .news-card--medium {
    min-width: 253px;
    max-width: 253px;
  }
  .size--medium  {
    height: 336px;
  }
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
  border-radius: 8px;
}

.news-card .news-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 8px;
  transition: background-color 0.3s ease-in-out;
  z-index: 1;
}

.news-card:hover .news-image-container img {
  transform: scale(1.05);
}

.news-card:hover .news-image-container::before {
  background-color: rgba(0, 0, 0, 0.2);
}

.news-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-category-badge {
  color: #26428b;
  font-family: var(--primary-font);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%; /* 19.6px */
}



.news-title {
  color: #0f1a3a;
  font-family: var(--secondary-font);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%; /* 26px */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-carousel-wrapper--small .news-title {
color:  #0F1A3A;
font-family: var(--primary-font);
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 140%; /* 19.6px */
}

.news-carousel-wrapper--small .section-title {
  font-weight: 500;
}

@media (min-width: 1024px) {
  .news-carousel-wrapper  {
    padding: 0;
    margin: 64px auto 48px auto;
  }

.news-carousel-wrapper--small  {
  display: grid;
}

    .news-carousel-wrapper--small .section-buttons {
      display: none;
    }

    .news-carousel-wrapper--small .news-card--extra {
      display: none;
    }
    .news-carousel-wrapper--small .news-card {
      flex-direction: row;
    }

    .news-carousel-wrapper--small .news-card .news-info {
      width: 100%;
      height: 100%;
      justify-content: center;
    }

      .news-carousel-wrapper--small .news-card--thumbnail {
        width: 100%;
        min-width: 100%;
      }

      .news-carousel-wrapper--small .news-title{
        font-size: 20px;
      }

    .news-carousel-wrapper--small .news-card .size--thumbnail {
      min-width: 249px;
      height: 166px;
      aspect-ratio: 3/2;
    }

    .news-carousel-wrapper--small .news-carousel .news-scroll-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(2, 166px);
      gap: 16px;
    }
  
}


  .news-carousel-wrapper--no-margin-bottom {
  margin-bottom: 0!important;
}
  .news-carousel-wrapper--no-margin-top {
  margin-top: 0!important;
}