/* QA-016: clean editor preview — avoids all slides stacking in Site Editor */
.testimonials-carousel-wrap.tc-editor-preview {
   padding: 40px;
   color: var(--wp--preset--color--background);
}

.testimonials-carousel-wrap.tc-editor-preview .tc-title {
   color: var(--wp--preset--color--background);
   margin: 0 0 10px;
}

.testimonials-carousel-wrap.tc-editor-preview .tc-intro {
   margin: 0;
   opacity: 0.85;
}

/* QA-007: remove WordPress block gap above this full-width block */
.wp-block-acf-testimonials-carousel {
   margin-block-start: 0 !important;
}

.testimonials-carousel-wrap {
   /* Matches .media-block / .home-courses alignment formula. */
   --tc-gutter: calc(40px + max(0px, (100vw - 1320px) / 2));
   position: relative;
   max-width: none !important;
   margin: 0 !important;
   background-color: #0d1f2d;
   background-image: url("../../images/waves.jpg");
   background-size: cover;
   background-attachment: fixed;
   background-position: 50%;
}

.testimonials-carousel-wrap::before {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0) 60%);
   pointer-events: none;
   z-index: 0;
}

.testimonials-carousel-wrap>* {
   position: relative;
   z-index: 1;
}

@media only screen and (max-width: 1023px) {
   .testimonials-carousel-wrap {
      background-size: auto;
   }
}

.testimonials-carousel-wrap .swiper-container {
   padding: 100px var(--tc-gutter);
}

/* QA-007: reduce top padding when filter pills are present above */
.testimonials-carousel-wrap .tc-filters~.swiper-container {
   padding-top: 40px;
}

.testimonials-carousel-wrap .swiper-slide {
   color: var(--wp--preset--color--background);
}

/* QA-004: clamp long testimonials */
.testimonials-carousel-wrap .swiper-slide .testimonial-block-body {
   font-family: var(--wp--preset--font-family--quaternary);
   font-size: 26px;
   font-weight: normal;
   line-height: 35px;
   font-style: normal;
   display: -webkit-box;
   -webkit-line-clamp: 5;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.testimonials-carousel-wrap .swiper-slide .testimonial-block-meta {
   font-size: 14px;
   margin-top: 20px;
}

/* QA-002: override testimonial-card.css !important rule for dark carousel context */
.testimonials-carousel-wrap .swiper-slide .testimonial-block .testimonial-block-meta a {
   color: var(--wp--preset--color--background) !important;
   text-decoration: underline !important;
   text-underline-offset: 3px;
   opacity: 0.75;
}

.testimonials-carousel-wrap .swiper-slide .testimonial-block .testimonial-block-meta a:hover {
   opacity: 1;
}

/* QA-012: optional title + intro header */
.testimonials-carousel-wrap .tc-header {
   padding: 60px var(--tc-gutter) 0;
   color: var(--wp--preset--color--background);
}

.testimonials-carousel-wrap .tc-header .tc-title {
   font-size: 36px;
   line-height: 1.2;
   font-weight: normal;
   margin: 0 0 20px;
   color: var(--wp--preset--color--background);
}

.testimonials-carousel-wrap .tc-header .tc-intro {
   font-size: 16px;
   margin: 0;
   opacity: 0.85;
}

/* When header is present, reduce top padding on subsequent elements */
.testimonials-carousel-wrap .tc-header~.tc-filters {
   padding-top: 30px;
}

.testimonials-carousel-wrap .tc-header~.swiper-container {
   padding-top: 40px;
}

/* Filter pills */

.testimonials-carousel-wrap .tc-filters-mobile {
   display: none;
}

@media only screen and (max-width: 767px) {
   .testimonials-carousel-wrap .tc-filters {
      display: none !important;
   }

   .testimonials-carousel-wrap .tc-filters-mobile {
      display: block;
      padding: 40px var(--tc-gutter) 0;
   }
}

.testimonials-carousel-wrap .tc-filter-select {
   appearance: none;
   -webkit-appearance: none;
   background-color: transparent;
   border: 1px solid var(--wp--preset--color--background);
   color: var(--wp--preset--color--background);
   padding: 8px 40px 8px 20px;
   border-radius: 100px;
   font-size: 13px;
   letter-spacing: 0.05em;
   cursor: pointer;
   width: 100%;
   max-width: 300px;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
   background-repeat: no-repeat;
   background-position: right 16px center;
}

.testimonials-carousel-wrap .tc-filter-select option {
   background-color: #0d1f2d;
   color: #fff;
}

.testimonials-carousel-wrap .tc-filters {
   display: flex;
   gap: 12px;
   flex-wrap: wrap;
   padding: 60px var(--tc-gutter) 0;
}

.testimonials-carousel-wrap .tc-filter-pill {
   background: transparent;
   border: 1px solid var(--wp--preset--color--background);
   color: var(--wp--preset--color--background);
   padding: 6px 20px;
   border-radius: 100px;
   font-size: 13px;
   letter-spacing: 0.05em;
   cursor: pointer;
   transition: background 0.2s, color 0.2s;
}

/* QA-005: active state uses brand green */
.testimonials-carousel-wrap .tc-filter-pill.is-active,
.testimonials-carousel-wrap .tc-filter-pill:hover {
   background: #489861;
   border-color: #489861;
   color: #fff;
}

/* Nav row — CTA left, arrows right */

.testimonials-carousel-wrap .swiper-nav-wrap {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-top: 70px;
}

@media only screen and (max-width: 767px) {
   .testimonials-carousel-wrap .swiper-nav-wrap {
      flex-wrap: nowrap;
      align-items: center;
   }
}

.testimonials-carousel-wrap .swiper-nav-wrap .tc-cta-btn {
   text-transform: uppercase;
   font-weight: bold;
   background-color: #489861;
   padding: 10px 30px;
   border-radius: 100px;
   font-size: 14px;
   color: white;
   text-decoration: none;
   transition: opacity 0.3s;
}

.testimonials-carousel-wrap .swiper-nav-wrap .tc-cta-btn:hover {
   opacity: 0.6;
}

.testimonials-carousel-wrap .swiper-nav-wrap .swiper-nav {
   position: relative;
   display: flex;
   gap: 20px;
}

@media only screen and (max-width: 767px) {
   .testimonials-carousel-wrap .swiper-nav-wrap .swiper-nav {
      padding-bottom: 0;
   }
}

/* QA-003: arrow buttons need explicit size and corrected image path */
/* QA-013: override Swiper absolute positioning so flex align-items:center works */
.testimonials-carousel-wrap .swiper-nav-wrap .swiper-nav div {
   position: relative;
   top: auto;
   right: auto;
   left: auto;
   transform: none;
   margin-top: 0;
   width: 44px;
   height: 44px;
   background-size: contain;
   background-repeat: no-repeat;
   z-index: 5;
   background-image: url("/wp-content/themes/nore-theme/images/white-arrow.svg");
   background-position: center;
   cursor: pointer;
}

/* QA-008: suppress Swiper default arrow icon on both pseudo-elements */
.testimonials-carousel-wrap .swiper-nav-wrap .swiper-nav div:after,
.testimonials-carousel-wrap .swiper-nav-wrap .swiper-nav div:before {
   content: none;
   display: none;
}

.testimonials-carousel-wrap .swiper-nav-wrap .swiper-nav div.swiper-button-prev {
   transform: scaleX(-1) !important;
}