/* Unique World Holidays — Home page "Testimonials" section.
   Design replicated from the Testimonials page's (post 511) ElementsKit
   testimonial widget — colors/sizes below were read from that widget's
   LIVE computed styles (not its settings JSON, which turned out to hold
   stale/inapplicable values for an unused style variant — confirmed by
   comparing against the actual rendered page). Badge/heading match the
   same pattern as every other home-page section. */

.uwh-testimonials {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 0;
  overflow: hidden;
}

.uwh-testimonials-heading {
  text-align: center;
  margin: 0 0 56px;
  padding: 0 24px;
}

.uwh-testimonials-badge {
  display: inline-block;
  width: fit-content;
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(120deg, #13294b, #43597a);
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 0 7px 0.3px rgba(0, 0, 0, 0.5);
  margin: 0 0 18px;
}

.uwh-testimonials-title {
  margin: 0;
  max-width: 100%;
  margin-inline: auto;
  font-family: Poppins, sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  color: #13294b;
}

/* ---- Carousel shell: arrows flank the row (plain chevrons, no button
   background — this design is plainer than Team/Seasonal Favorites'
   circular nav, matching the source widget). ---- */
.uwh-testimonials-carousel {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 56px;
}

.uwh-testimonials-track {
  position: relative;
  min-height: 400px;
}

.uwh-testimonials-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: #13294b;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.uwh-testimonials-nav:hover,
.uwh-testimonials-nav:focus {
  opacity: 0.7;
  background: none;
  border: none;
  outline: none;
}
.uwh-testimonials-nav:focus-visible {
  outline: 2px solid #13294b;
  outline-offset: 2px;
}
.uwh-testimonials-nav-prev {
  left: 0;
}
.uwh-testimonials-nav-next {
  right: 0;
}

/* ---- Slides: absolutely stacked, only .is-active shown. JS
   crossfades between them (opacity + slight y), not a sliding
   window — this is a single-item carousel, unlike Team/Seasonal
   Favorites' 3-card window. ---- */
.uwh-testimonials-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.uwh-testimonials-slide.is-active {
  display: grid;
}

.uwh-testimonials-content {
  text-align: left;
}

.uwh-testimonials-quote {
  margin: 0 0 35px;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: #333333;
}
.uwh-testimonials-readmore {
  display: inline;
  margin-left: 5px;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: #13294b;
  text-decoration: none;
  cursor: pointer;
}
.uwh-testimonials-readmore:hover,
.uwh-testimonials-readmore:focus {
  text-decoration: underline;
}

.uwh-testimonials-divider {
  display: block;
  width: 40px;
  height: 2px;
  background-color: #13294b;
  margin: 0 0 20px;
}

.uwh-testimonials-tour {
  margin: 0 0 4px;
  font-family: Poppins, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #13294b;
}

.uwh-testimonials-date {
  display: block;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #13294b;
}

.uwh-testimonials-media {
  position: relative;
}

.uwh-testimonials-photo {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.uwh-testimonials-play {
  /* padding/min-width/min-height explicitly zeroed — without them the
	   theme's global button padding (~15px/28px) leaks in and, combined
	   with the browser's automatic-minimum-size sizing for <button>,
	   squeezes the flexed SVG down to a few px wide (invisible icon)
	   instead of just adding unwanted internal space. Confirmed live via
	   getComputedStyle before this fix. */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: 72px;
  height: 72px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(19, 41, 75, 0.85);
  border: 3px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}
.uwh-testimonials-play svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-left: 4px; /* optically center the play triangle */
}
.uwh-testimonials-play:hover,
.uwh-testimonials-play:focus {
  background: #13294b;
  transform: translate(-50%, -50%) scale(1.08);
  outline: none;
  color: #ffffff;
}
.uwh-testimonials-play:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ---- Lightbox ---- */
.uwh-testimonials-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999; /* must clear #wpadminbar's z-index:99999 now that this is a direct <body> child */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.uwh-testimonials-lightbox.is-open {
  display: flex;
}
.uwh-testimonials-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 34, 69, 0.9);
}
.uwh-testimonials-lightbox-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
}
.uwh-testimonials-lightbox-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000000;
}
.uwh-testimonials-lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.uwh-testimonials-lightbox-close {
  /* Positioned INSIDE the frame (not floated above it on a negative
	   offset) — the site header is position:fixed with its own z-index,
	   and a close button floating above the lightbox frame landed behind
	   that header (confirmed via elementFromPoint: the header, not the
	   button, was the topmost element at those coordinates) — unclickable
	   no matter how high the lightbox's own z-index went, since the
	   header isn't a descendant of the lightbox to begin with. */
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  /* Same theme-button-padding leak as .uwh-testimonials-play — here it
	   was worse: with padding still in place, Chrome's automatic-minimum
	   -size algorithm for <button> pinned the rendered width to the
	   padding total (56px) and no author width — not even an inline
	   !important — could override it until padding was zeroed. Confirmed
	   live via getComputedStyle before this fix. */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 34, 69, 0.7);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.uwh-testimonials-lightbox-close:hover,
.uwh-testimonials-lightbox-close:focus {
  background: rgba(1, 34, 69, 0.95);
  outline: none;
  color: #ffffff;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .uwh-testimonials-title {
    font-size: 32px;
  }
  .uwh-testimonials-carousel {
    padding: 0 48px;
  }
  .uwh-testimonials-slide {
    gap: 36px;
  }
  .uwh-testimonials-photo {
    height: 320px;
  }
}

@media (max-width: 782px) {
  .uwh-testimonials {
    padding: 56px 0;
  }
  .uwh-testimonials-heading {
    margin-bottom: 36px;
  }
  .uwh-testimonials-title {
    font-size: 24px;
  }
  .uwh-testimonials-carousel {
    padding: 0 40px;
  }
  .uwh-testimonials-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .uwh-testimonials-media {
    order: -1;
  }
  .uwh-testimonials-photo {
    height: 260px;
  }
  .uwh-testimonials-content {
    text-align: center;
  }
  .uwh-testimonials-divider {
    margin-inline: auto;
  }
}
