.marquee {
  overflow: hidden;
  width: 100%;
  align-items: center;
  background: var(--rosella-marque-general-background-color);
  padding: var(--rosella-marque-general-padding);
  color: var(--rosella-marque-general-color);
  border-radius: var(--rosella-marque-general-border-radius);
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  width: var(--rosella-marque-side-bg-width);
}

.marquee::before {
  left: 0;
  background: linear-gradient(
    var(--rosella-marque-side-bg-angle),
    var(--rosella-marque-side-bg),
    transparent
  );
}
.marquee::after {
  right: 0;
  background: linear-gradient(
    calc(var(--rosella-marque-side-bg-angle)),
    var(--rosella-marque-side-bg),
    transparent
  );
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--rosella-marque-animation-speed, 30s) linear
    infinite;
  animation-play-state: var(--rosella-marque-animation-play-state, paused);
  gap: var(--rosella-marque-item-space-between);
}

.marquee__item {
  display: flex;
  align-items: center;
  font-size: var(--rosella-marque-general-font-size);
  font-weight: var(--rosella-marque-general-font-weight);
  letter-spacing: var(--rosella-marque-general-letter-spacing);
  text-transform: var(--rosella-marque-general-text-transform);
  white-space: nowrap;
}

.marquee__item-icon:last-child {
  display: none;
}

.marquee__item-icon {
  display: flex;
  align-items: center;
}

.marquee__item-icon svg,
.marquee__item-icon img,
.marquee__item-icon i {
  display: inline-block;
  width: var(--rosella-marque-item-icon-width);
  height: var(--rosella-marque-item-icon-width);
  font-size: var(--rosella-marque-item-icon-width);
  margin-left: var(--rosella-marque-item-icon-margin-left);
  color: var(--rosella-marque-item-icon-color);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(var(--marquee-distance, 100%) * -1));
  }
}

.vt-carousel {
  display: flex;
  align-items: stretch;
  gap: var(--rosella-vertical-testimonials-carousel-gap);
  width: 100%;
}

.vt-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.vt-track {
  display: grid;
  grid-auto-rows: auto;
  row-gap: 0;
  transition-property: transform;
  transition-timing-function: ease;
  grid-template-columns: repeat(
    var(--rosella-vertical-testimonials-cards-per-row),
    1fr
  );
}

.vt-card {
  position: relative;
  padding: var(--rosella-vertical-testimonials-card-padding);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--rosella-vertical-testimonials-card-background-color);
  border-radius: var(--rosella-vertical-testimonials-card-border-radius);
}

.vt-quote-icon {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: var(--rosella-vertical-testimonials-quote-icon-size);
  width: var(--rosella-vertical-testimonials-quote-icon-size);
  height: var(--rosella-vertical-testimonials-quote-icon-size);
  pointer-events: none;
  font-family: Georgia, serif;
  color: var(--rosella-vertical-testimonials-quote-icon-color);
}

.vt-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vt-name {
  margin-bottom: var(--rosella-vertical-testimonials-name-margin-bottom);
  color: var(--rosella-vertical-testimonials-name-color);
  text-align: var(--rosella-vertical-testimonials-name-text-align);
}

.vt-text {
  flex: 1;
  color: var(--rosella-vertical-testimonials-text-color);
  text-align: var(--rosella-vertical-testimonials-text-text-align);
}

.vt-stars {
  gap: var(--rosella-vertical-testimonials-stars-spacing);
  display: flex;
  align-items: center;
}

.vt-stars svg,
.vt-stars img,
.vt-stars i {
  color: var(--rosella-vertical-testimonials-stars-color);
  width: var(--rosella-vertical-testimonials-stars-width);
  height: var(--rosella-vertical-testimonials-stars-width);
  font-size: var(--rosella-vertical-testimonials-stars-width);
  fill: var(--rosella-vertical-testimonials-stars-color);
}

.vt-dots {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--rosella-vertical-testimonials-dots-spacing);
  flex-shrink: 0;
}

.vt-dots button {
  border: none;
  background: none;
  background-color: unset !important;
  border-color: unset !important;
  box-shadow: unset !important;
  outline: unset !important;
  padding: 0;
  cursor: pointer;
}

.vt-dot {
  border: none;
  background: none;
  background-color: unset !important;
  border-color: unset !important;
  box-shadow: unset !important;
  outline: unset !important;
  padding: 0;
  cursor: pointer;
}

.vt-dot:hover {
  transform: scale(1.15);
  background-color: unset !important;
  border-color: unset !important;
  box-shadow: unset !important;
  outline: unset !important;
}

.vt-dot-svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.vt-dot-center {
  transition: fill 0.3s ease;
}

/* Progress ring around the dot */
.vt-dot-ring {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke: transparent;
}

/* Progress ring fill animation */
@keyframes vtRingProgress {
  to {
    stroke-dashoffset: 0;
  }
}

.ist-wrapper {
  width: 100%;
}

.ist-main-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: var(--rosella-thumbnail-carousel-main-slider-margin-bottom);
  border-radius: var(--rosella-thumbnail-carousel-main-slider-border-radius);
}

.ist-main-slide {
  display: none;
}

.ist-main-slide.is-active {
  display: block;
  animation: istFadeIn 0.4s ease;
}

@keyframes istFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ist-main-image {
  width: 100%;
  display: block;
  object-fit: cover !important;
  object-position: center !important;
  height: var(--rosella-thumbnail-carousel-main-image-height) !important;
}

.ist-thumbs-container {
  display: flex;
  gap: var(--rosella-thumbnail-carousel-thumb-item-spacing);
}

/* Border and opacity WILL BE SETO USING ELEMENTOR */
.ist-thumb-item {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    opacity 0.3s ease;
  opacity: var(--rosella-thumbnail-carousel-thumb-item-normal-opacity);
  height: var(--rosella-thumbnail-carousel-thumb-item-height);
  border-radius: var(--rosella-thumbnail-carousel-thumb-item-border-radius);
}

.ist-thumb-item img {
  object-fit: cover !important;
  object-position: center !important;
  height: 100% !important;
}

.ist-thumb-item:hover {
  opacity: var(--rosella-thumbnail-carousel-thumb-item-active-opacity);
  border-color: var(
    --rosella-thumbnail-carousel-thumb-item-active-border-color
  );
}

.ist-thumb-item.is-active {
  opacity: var(--rosella-thumbnail-carousel-thumb-item-active-opacity);
  border-color: var(
    --rosella-thumbnail-carousel-thumb-item-active-border-color
  );
}

.ist-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rs-wrapper,
.rs-classic-wrapper {
  position: relative;
  padding: 10px 0 60px;
  overflow: hidden;
}

.rs-wrapper .swiper-wrapper,
.rs-classic-wrapper .swiper-wrapper {
  align-items: stretch;
}

.rs-wrapper .swiper-slide,
.rs-classic-wrapper .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}

.rs-slider {
  padding-bottom: 80px;
}

.rs-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 34px;
}

.rs-card::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -14px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top-width: 15px;
  border-top-style: solid;
  border-top-color: var(--rosella-card-after-normal);
}

.rs-classic-wrapper .swiper-slide:not(.swiper-slide-active) {
  opacity: 0.5;
  transition: opacity 0.3s ease !important;
}

.rs-card:hover::after {
  border-top-color: var(--rosella-card-after-hover);
}

.rs-card .rs-quote {
  line-height: 0;
  margin-bottom: 18px;
}

.rs-card .rs-quote .rs-quote-icon {
  display: block;
}

.rs-card .rs-text {
  margin-bottom: 18px;
}

.rs-card .rs-stars {
  letter-spacing: 3px;
}

.rs-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 4px;
}

.rs-user-logo {
  object-fit: contain;
  flex-shrink: 0;
}

.rs-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.rs-user-loc {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rs-user-flag {
  object-fit: cover;
  border-radius: 2px;
}

.rs-wrapper .swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.rs-classic-wrapper .swiper-slide {
  max-width: var(--rosella-classic-reviews-slider-max-width);
}

.rs-classic-wrapper .swiper-pagination.classic-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--rosella-classic-reviews-slider-pagination-gap);
}
.swiper-pagination.classic-pagination .swiper-pagination-bullet {
  width: var(--rosella-classic-reviews-slider-pagination-bullet-width);
  height: var(--rosella-classic-reviews-slider-pagination-bullet-height);
  border-radius: var(
    --rosella-classic-reviews-slider-pagination-bullet-border-radius
  );
  background: var(
    --rosella-classic-reviews-slider-pagination-bullet-background
  );
  opacity: var(--rosella-classic-reviews-slider-pagination-bullet-opacity);
}

.swiper-pagination.classic-pagination .swiper-pagination-bullet-active {
  width: var(--rosella-classic-reviews-slider-pagination-bullet-active-width);
  border-radius: var(
    --rosella-classic-reviews-slider-pagination-bullet-active-border-radius
  );
  position: relative;
  overflow: hidden;
  opacity: var(
    --rosella-classic-reviews-slider-pagination-bullet-active-opacity
  );
}

.swiper-pagination.classic-pagination .swiper-pagination-bullet-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(
    --rosella-classic-reviews-slider-pagination-bullet-active-background
  );
  border-radius: var(
    --rosella-classic-reviews-slider-pagination-bullet-active-border-radius
  );
  animation: rs-pagination-bullet-active-before 5s ease-in-out forwards;
}

@keyframes rs-pagination-bullet-active-before {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

.rs-wrapper .swiper-pagination-bullet.rs-bullet {
  position: relative;
  width: 11px;
  height: 11px;
  margin: 0;
  border-radius: 20px;
  background: #d6cce6;
  opacity: 1;
  overflow: hidden;
  transition:
    width 0.45s ease,
    background-color 0.45s ease;
}

.rs-wrapper .swiper-pagination-bullet-active.rs-bullet {
  width: 42px;
  background: #e3d9f0;
}

.rs-bullet-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #6a1b9a;
  transform: scaleX(0);
  transform-origin: left center;
}

.rs-wrapper
  .swiper-pagination-bullet:not(.swiper-pagination-bullet-active)
  .rs-bullet-fill {
  transform: scaleX(0) !important;
}

.pf-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pf-tabs {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pf-tab {
  position: relative;
  background: none;
  border: 0;
  padding: 0 0 10px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: #8b2fa0;
  transition: color 0.25s ease;
}

.pf-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: #16a34a;
  transform: scaleX(0);
  transform-origin: left center;
}

.pf-tab--active {
  color: #16a34a;
}

.pf-tab--active::after {
  animation: pf-underline-grow 0.35s ease forwards;
}

@keyframes pf-underline-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.pf-slider {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding-bottom: 25px !important;
}

.pf-slider .swiper-wrapper {
  align-items: stretch;
}

.pf-slider .swiper-slide {
  height: auto;
}

.pf-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 16px;
  padding: 14px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.pf-slide a {
  color: unset;
  border: unset;
  outline: unset;
}

.pf-slide a:hover,
.pf-slide a:active {
  color: unset;
  border: unset;
  outline: unset;
}

.pf-card:hover {
  border-color: #8b2fa0;
  box-shadow: 0 8px 24px rgba(74, 18, 89, 0.08);
}

.pf-thumb {
  display: block;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3eefb;
}

.pf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.pf-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6px 6px;
}

.pf-title {
  font-size: 22px;
  font-weight: 800;
  color: #4a1259;
  line-height: 1.2;
}

.pf-year {
  font-size: 15px;
  color: #9a9a9a;
  flex-shrink: 0;
  padding-left: 12px;
}

.pf-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
  margin-inline: auto;
}

.pf-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 26px;
  cursor: pointer;
  transition: all 0.3s ease-in-out !important;
}

.pf-arrow:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2);
}

.pf-arrow.swiper-button-disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 768px) {
  .pf-tabs {
    gap: 22px;
  }
  .pf-title {
    font-size: 18px;
  }
  .pf-thumb {
    height: 220px;
  }
}

.rosella-peek-carousel {
  --rpc-border-color: #8b5cf6;
  --rpc-border-width: 0px;
  --rpc-border-radius: 0px;
  --rpc-slide-width: 66%;
  --rpc-side-scale: 0.5;
  --rpc-slide-radius: 12px;
  --rpc-active-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  --rpc-transition-speed: 0.6s;
  --rpc-aspect-ratio: 2.5 / 1;
  --rpc-arrow-size: 40px;
  --rpc-arrow-bg: rgba(0, 0, 0, 0.45);
  --rpc-arrow-bg-hover: rgba(0, 0, 0, 0.7);
  --rpc-arrow-color: #fff;
  --rpc-dot-color: #ccc;
  --rpc-dot-active: #8b5cf6;

  position: relative;
  width: 100%;
  border: var(--rpc-border-width) solid var(--rpc-border-color);
  border-radius: var(--rpc-border-radius);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ── Viewport ─────────────────────────────────────────── */
.rosella-peek-carousel__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: var(--rpc-aspect-ratio);
  overflow: hidden;
  background: transparent;
}

/* ── Slides ───────────────────────────────────────────── */
.rosella-peek-carousel__slide {
  position: absolute;
  top: 0;
  width: var(--rpc-slide-width);
  height: 100%;
  border-radius: var(--rpc-slide-radius);
  overflow: hidden;
  transition:
    left var(--rpc-transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
    transform var(--rpc-transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
    filter var(--rpc-transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow var(--rpc-transition-speed) cubic-bezier(0.4, 0, 0.2, 1),
    opacity var(--rpc-transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  will-change: left, transform, filter, opacity;
}

.rosella-peek-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* State: active (centre, full colour, on top, full scale) */
.rosella-peek-carousel__slide.--active {
  left: calc((100% - var(--rpc-slide-width)) / 2);
  z-index: 3;
  filter: none;
  opacity: 1;
  transform: scale(1);
  box-shadow: var(--rpc-active-shadow);
}

/* State: previous (peeks from left, grayscale, behind, scaled down) */
.rosella-peek-carousel__slide.--prev {
  left: calc(-1 * var(--rpc-slide-width) + (100% - var(--rpc-slide-width)));
  z-index: 2;
  filter: grayscale(100%);
  opacity: 1;
  transform: scale(var(--rpc-side-scale));
  box-shadow: none;
}

/* State: next (peeks from right, grayscale, behind, scaled down) */
.rosella-peek-carousel__slide.--next {
  left: calc(100% - (100% - var(--rpc-slide-width)));
  z-index: 2;
  filter: grayscale(100%);
  opacity: 1;
  transform: scale(var(--rpc-side-scale));
  box-shadow: none;
}

/* State: hidden (stacked behind active, invisible) */
.rosella-peek-carousel__slide.--hidden {
  left: calc((100% - var(--rpc-slide-width)) / 2);
  z-index: 1;
  filter: grayscale(100%);
  opacity: 0;
  transform: scale(var(--rpc-side-scale));
  box-shadow: none;
  pointer-events: none;
}

/* ── Navigation Arrows ────────────────────────────────── */
.rosella-peek-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--rpc-arrow-size);
  height: var(--rpc-arrow-size);
  border: none;
  border-radius: 50%;
  background: var(--rpc-arrow-bg);
  color: var(--rpc-arrow-color);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  padding: 0;
}

.rosella-peek-carousel__arrow:hover {
  background: var(--rpc-arrow-bg-hover);
  transform: translateY(-50%) scale(1.1);
}

.rosella-peek-carousel__arrow.--prev {
  left: 12px;
}

.rosella-peek-carousel__arrow.--next {
  right: 12px;
}

.rosella-peek-carousel__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Dots ─────────────────────────────────────────────── */
.rosella-peek-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  background: transparent;
}

.rosella-peek-carousel__dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: var(--rpc-dot-color);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.25s,
    transform 0.25s;
}

.rosella-peek-carousel__dot.--active {
  background: var(--rpc-dot-active);
  transform: scale(1.25);
}

.rosella-peek-carousel__dot:hover {
  background: var(--rpc-dot-active);
}

/* ── Touch / grab cursor ──────────────────────────────── */
.rosella-peek-carousel__viewport.--grabbing {
  cursor: grabbing;
}

.rosella-peek-carousel__viewport:not(.--grabbing) {
  cursor: grab;
}
