/**
 * Theme Name:     MTI 2025
 * Author:         Anastasia Berg
 * Text Domain:    mti-2025
 * Description:    MTI Relaunch 2025 - Testimonials
 */

/* ========================
 Main Page Testimonials Slider Styles
======================== */

.straight-testimonial-section {
  overflow: visible;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.straight-testimonial-slider-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  overflow: visible;
}

.straight-testimonial-slider {
  display: flex;
  overflow-x: scroll;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  margin: 0 -15px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: relative;
}

.straight-testimonial-slider::-webkit-scrollbar {
  display: none;
}

.straight-testimonial-card {
  flex: 0 0 calc(50% - 30px); 
  scroll-snap-align: center;
  position: relative;
  padding: 30px;
  z-index: 1;
  margin: 15px;
  background-color: #f7f7f7;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  will-change: transform, box-shadow;
  box-shadow: 0 10px 10px rgba(0,0,0,0.1);
}

.straight-testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.straight-testimonial-card:nth-child(even),
.straight-testimonial-card.dark-card {
  background-color: #35404a;
  color: #f7fafc;
}

.straight-quote-text {
  line-height: 1.6;
  margin-bottom: 30px;
  position: relative;
  flex-grow: 1;
  margin-bottom: 50px;
  font-family: 'Arial Narrow', Arial, sans-serif;
}

.straight-quote-author {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  width: 100%;
}

.straight-author-info {
  display: flex;
  flex-direction: column;
}

.straight-author-name {
  font-weight: 400;
  font-size: 1.2rem;
  font-family: 'Abel', sans-serif;
  line-height: 1.2;
}

.straight-author-position {
  font-size: 1.05rem;
  font-family: 'Arial Narrow', Arial, sans-serif;
  line-height: 1.6;
}

.straight-company-logo {
  max-width: 120px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.straight-company-logo:hover {
  filter: grayscale(0%);
}

.straight-testimonial-card:nth-child(even) .straight-company-logo,
.straight-testimonial-card.dark-card .straight-company-logo {
  filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
  padding: 5px;
}

.straight-testimonial-card:nth-child(even) .straight-company-logo:hover,
.straight-testimonial-card.dark-card .straight-company-logo:hover {
  filter: grayscale(0%);
  background-color: white;
}

.straight-card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.straight-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: transparent !important; 
  color: white;
  border: none !important; 
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease, color 0.3s ease;
  box-shadow: none !important; 
  outline: none !important; 
}

.straight-slider-arrow:hover,
.straight-slider-arrow:focus,
.straight-slider-arrow:active {
  transform: translateY(-50%) scale(1.3); 
  color: rgba(53, 64, 74, 1);
  background: transparent !important; 
  background-color: transparent !important; 
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.straight-slider-arrow.disabled {
  opacity: 0.2;
  cursor: not-allowed;
  background-color: transparent !important;
}

.straight-slider-arrow.disabled:hover {
  transform: translateY(-50%); 
  background-color: transparent !important;
}

.straight-slider-arrow-left {
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.straight-slider-arrow-left.visible {
  opacity: 1;
  visibility: visible;
}

.straight-slider-arrow-right {
  right: 0;
}

.straight-end-indicator {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(26, 32, 44, 0.7); 
  color: white;
  padding: 12px 20px;
  border-radius: 0;
  font-size: 1.05rem;
  font-weight: 400;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  font-family: 'Arial Narrow', Arial, sans-serif;
  line-height: 1.6;
}

.straight-end-indicator.visible {
  opacity: 1;
  pointer-events: all;
  animation: straightPulse 2s infinite;
}

.straight-back-to-start {
  background-color: transparent !important;
  color: white;
  border: 1px solid white;
  padding: 6px 10px;
  border-radius: 0;
  cursor: pointer;
  font-weight: 400;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: none !important;
  outline: none !important;
  font-family: 'Abel', sans-serif;
  line-height: 1.2;
}

.straight-back-to-start:hover,
.straight-back-to-start:focus,
.straight-back-to-start:active {
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px);
  box-shadow: none !important;
  outline: none !important;
}

@keyframes straightPulse {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(26, 32, 44, 0.4);
  }
  70% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 0 0 12px rgba(26, 32, 44, 0);
  }
  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(26, 32, 44, 0);
  }
}

.straight-pagination {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  gap: 8px;
}

.straight-pagination-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #cbd5e0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.straight-pagination-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: inherit;
}

.straight-pagination-dot.active::after {
  background-color: #1a202c;
  transform: scale(1.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .straight-testimonial-card {
    flex: 0 0 calc(100% - 30px);
  }
  
  .straight-end-indicator {
    right: 20px;
    font-size: 0.9rem;
    padding: 8px 15px;
  }
}

@media (max-width: 480px) {
  .straight-testimonial-slider-container {
    padding: 10px 0;
  }
  
  .straight-testimonial-card {
    padding: 20px;
    margin: 10px;
  }
  
  .straight-author-name {
    font-size: 1.1rem;
  }
  
  .straight-author-position {
    font-size: 1rem;
  }
}