@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');

.cdv-carousel {
  position: relative;
  width: 100%;
  max-width: 640px;
  color: #f5f2ee;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 20px;
}

.cdv-carousel__viewport {
  overflow: hidden;
  border-radius: 22px;
}

.cdv-carousel__track {
  display: flex;
  transition: transform 0.55s ease;
  will-change: transform;
}

.cdv-carousel__slide {
  min-width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

.cdv-carousel__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas:
    "media content";
  gap: 16px 20px;
  align-items: center;
  border-radius: 22px;
  background: transparent;
}

.cdv-carousel__media {
  grid-area: media;
  width: 100%;
  height: 180px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

.cdv-carousel__content {
  grid-area: content;
  height: 100%;
}

.cdv-carousel__content h3 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-family: "Playfair Display", "Times New Roman", serif;
}

.cdv-carousel__content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245, 242, 238, 0.82);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

.cdv-carousel__controls {
  position: absolute;
  left: calc(50% + 6px);
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cdv-carousel__arrows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cdv-carousel__arrow {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(20, 18, 17, 0.85) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.cdv-carousel__arrow:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
}

.cdv-carousel__arrow:focus {
  outline: none;
  box-shadow: none;
}

.cdv-carousel__lines {
  display: flex;
  gap: 6px !important;
  align-items: center;
  max-width: 150px;
  overflow: hidden;
}

.cdv-carousel__line {
  padding: 0 !important;
  width: 20px !important;
  height: 3px !important;
  border-radius: 999px !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.35) !important;
  cursor: pointer !important;
  transition: width 0.3s ease, background 0.3s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.cdv-carousel__line.is-active {
  width: 32px;
  background: #ffffff !important;
}

.cdv-carousel__line:focus {
  outline: none;
  box-shadow: none;
}

.cdv-carousel button,
.cdv-carousel button:visited {
  color: #ffffff;
}

@media (max-width: 700px) {
  .cdv-carousel {
    max-width: 100%;
  }

  .cdv-carousel__card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
  }

  .cdv-carousel__controls {
    position: static;
    margin-top: 12px;
  }

  .cdv-carousel__media {
    height: 160px;
  }
}

@media (max-width: 1024px) and (min-width: 701px) {
  .cdv-carousel__content{
        padding-bottom: 40px;
  }
  .cdv-carousel__controls {
    left: 22px;
    right: 22px;
    bottom: -8px;
    gap: 10px;
  }

  .cdv-carousel__arrows {
    gap: 6px;
    margin-left: 0;
    transform: translateX(0);
  }

  .cdv-carousel__arrow {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .cdv-carousel__lines {
    gap: 12px !important;
    padding-top: 40px;
    padding-right: 80px;
    justify-content: center;
    flex: 1;
  }

  .cdv-carousel__line {
    width: 16px;
  }

  .cdv-carousel__line.is-active {
    width: 26px;
  }
}
