/* ========================================
   TESTIMONIAL SECTION FIXES
   Enhanced for New Color Scheme
   ======================================== */

/* ========================================
   MAIN TESTIMONIAL SECTION
   ======================================== */

.ul-testimonial {
  background: linear-gradient(135deg, var(--fg-primary) 0%, var(--fg-primary-light) 100%) !important;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.ul-testimonial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--fg-primary) 0%, var(--fg-primary-light) 100%);
  opacity: 0.95;
}

/* ========================================
   TESTIMONIAL TEXT CONTENT
   ======================================== */

.ul-testimonial .ul-section-title {
  color: var(--fg-text-white) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ul-testimonial .ul-section-sub-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  opacity: 0.95;
}

.ul-testimonial .ul-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .ul-testimonial .ul-section-title {
    font-size: 2rem;
  }
}

/* ========================================
   TESTIMONIAL SLIDER
   ======================================== */

.ul-testimonial-slider {
  border-top: 2px solid rgba(255, 255, 255, 0.3) !important;
  padding-top: 30px !important;
  margin-top: 20px;
}

.ul-testimony {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  margin-bottom: 20px;
}

.ul-testimony::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(244, 208, 111, 0.1) 100%);
  border-radius: 15px;
  z-index: -1;
}

.ul-testimony .icon {
  color: var(--fg-secondary-light) !important;
  font-size: 2rem;
  margin-bottom: 15px;
  display: block;
}

.ul-testimony-txt {
  color: var(--fg-text-white) !important;
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin: 0;
  opacity: 0.98;
}

/* ========================================
   TESTIMONIAL META INFORMATION
   ======================================== */

.testimonial-meta {
  margin-top: 20px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.reviewer-info {
  margin-bottom: 10px !important;
}

.reviewer-info strong {
  color: var(--fg-text-white) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  display: block !important;
  margin-bottom: 5px !important;
}

.item-name {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 14px !important;
  font-style: italic !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  opacity: 0.95 !important;
}

.rating {
  margin-top: 8px !important;
}

.rating i {
  font-size: 16px !important;
  margin-right: 4px !important;
  color: #FFD700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5)) !important;
}

.rating i.text-muted {
  color: rgba(255, 255, 255, 0.4) !important;
  filter: none !important;
}

/* ========================================
   TESTIMONIAL NAVIGATION
   ======================================== */

.ul-testimonial .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ul-testimonial-slider-nav {
  display: flex;
  gap: 10px;
}

.ul-testimonial-slider-nav button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--fg-text-white) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ul-testimonial-slider-nav button:hover {
  background: var(--fg-secondary) !important;
  border-color: var(--fg-secondary) !important;
  color: var(--fg-text-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.ul-testimonial-slider-nav button:active {
  transform: translateY(0);
}

/* ========================================
   REVIEWER SLIDER
   ======================================== */

.ul-testimonial-reviewer-slider {
  max-width: 200px;
  flex-shrink: 0;
}

.ul-testimonial-reviewer-slider .swiper-slide {
  /* width: 53.3px!important; */
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 15px;
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
/* @media (max-width: 429px){
  .ul-testimonial-reviewer-slider .swiper-slide {
    width: 26.6667px!important;
  }
} */

.ul-testimonial-reviewer-slider .swiper-slide-thumb-active {
  border-color: var(--fg-secondary) !important;
  background: var(--fg-secondary) !important;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(var(--fg-secondary));
}

.ul-testimonial-reviewer-slider img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* ========================================
   STROKE SEPARATOR
   ======================================== */

.ul-testimonial .stroke {
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  width: 100%;
  flex-shrink: 1;
  margin: 0 20px;
}

/* ========================================
   TESTIMONIAL IMAGES
   ======================================== */

.ul-testimonial-img {
  position: relative;
  z-index: 2;
}

.ul-testimonial-img .main-img {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.ul-testimonial-img .main-img:hover {
  transform: scale(1.02);
}

.ul-testimonial-img .sm-img {
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.ul-testimonial-img .sm-img:hover {
  transform: scale(1.1);
}

/* ========================================
   DECORATIVE VECTORS
   ======================================== */

.ul-testimonial-vectors {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.ul-testimonial-vectors img {
  opacity: 0.1;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.ul-testimonial-vectors .vector-1 {
  top: 10%;
  left: 5%;
  max-width: 200px;
}

.ul-testimonial-vectors .vector-2 {
  top: 20%;
  right: 10%;
  max-width: 150px;
}

.ul-testimonial-vectors .vector-3 {
  bottom: 20%;
  left: 10%;
  max-width: 180px;
}

.ul-testimonial-vectors .vector-4 {
  bottom: 10%;
  right: 5%;
  max-width: 160px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
  .ul-testimonial-vectors .vector-2,
  .ul-testimonial-vectors .vector-3 {
    display: none;
  }
  
  .ul-testimonial .bottom {
    flex-direction: column;
    gap: 15px;
  }
  
  .ul-testimonial .stroke {
    display: none;
  }
  
  .ul-testimonial-reviewer-slider {
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .ul-testimonial {
    padding: 40px 0;
  }
  
  .ul-testimony {
    padding: 20px;
  }
  
  .ul-testimony-txt {
    font-size: 1rem;
  }
  
  .ul-testimonial-slider-nav button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 479px) {
  .ul-testimonial .bottom {
    flex-direction: column;
    gap: 10px;
  }
  
  .ul-testimonial-reviewer-slider {
    max-width: 120px;
  }
  
  .ul-testimonial-slider-nav {
    justify-content: center;
  }
}

/* ========================================
   ANIMATION ENHANCEMENTS
   ======================================== */

.ul-testimonial .wow {
  animation-duration: 0.8s;
}

.ul-testimony {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   SWIPER CUSTOMIZATION
   ======================================== */

.ul-testimonial-slider .swiper-slide {
  height: auto;
}

.ul-testimonial-reviewer-slider .swiper-slide {
  cursor: pointer;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

.ul-testimonial-slider-nav button:focus {
  outline: 3px solid var(--fg-secondary-light);
  outline-offset: 2px;
}

.ul-testimonial-reviewer-slider .swiper-slide:focus {
  outline: 3px solid var(--fg-secondary-light);
  outline-offset: 2px;
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */

@media (prefers-contrast: high) {
  .ul-testimony {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--fg-text-white);
  }
  
  .ul-testimony-txt {
    text-shadow: 0 0 0 transparent;
  }
}
