/**
 * Product Features Slider Styles - Using Testimonial Style-1 Layout
 * Card-based design matching testimonial appearance
 */

/* Product Features Item Base Styles */
.feature-item { padding: 0.5rem; }

/* Feature Card - Style 1: Image Card with Hover Overlay */
.feature-card--style1 { 
  position: relative; 
  border-radius: 15px; 
  overflow: hidden; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: white;
}
.feature-card--style1:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.feature-image { 
  width: 100%; 
  height: 300px; 
  overflow: hidden; 
  position: relative;
}
.feature-card--style1 .feature-avatar { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.3s ease;
}
.feature-card--style1:hover .feature-avatar { 
  transform: scale(1.1); 
}
.feature-card--style1 .feature-placeholder { 
  width: 100%; 
  height: 100%; 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: white; 
  font-size: 4rem; 
}

.feature-title-bar { 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  background: rgba(255, 255, 255, 0.95); 
  color: var(--taevas-blue); 
  padding: 1.5rem 1rem; 
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  min-height: 90px;
}
.feature-title-bar h5 { 
  margin: 0; 
  font-size: 1rem; 
  font-weight: 500; 
  color: var(--taevas-blue);
  font-family: 'Archivo';
  line-height: 1.3;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.feature-icon-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--taevas-blue);
  color: white;
  border-radius: 50%;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: all 0.3s ease;
}
.feature-card--style1:hover .feature-icon-toggle {
  background: var(--taevas-purple);
  transform: rotate(180deg);
}

.feature-overlay { 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background: var(--taevas-blue); 
  color: #333; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  opacity: 0; 
  transition: opacity 0.3s ease; 
  padding: 1rem;
}
.feature-card--style1:hover .feature-overlay { 
  opacity: 1; 
}

.feature-overlay-content { 
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.25rem;
}

.feature-overlay-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgb(255 255 255);
  padding-bottom: 0.5rem;
}
.feature-overlay-title h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  font-family: 'Archivo';
  flex: 1;
  text-align: left;
}

.feature-description-text { 
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}
.feature-description-text p,
.feature-description-text {
  font-size: 0.8rem; 
  line-height: 1.5; 
  margin: 0; 
  color: #FFF;
  font-family: 'Archivo', sans-serif;
}

/* Product Features Slider Section Styles */
.product-features-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Features Title Section */
.features-title-section {
  text-align: left;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.features-main-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--taevas-black);
  margin: 0;
  position: relative;
}

.features-slider-wrapper {
  position: relative;
}

.features-slider-wrapper .swiper {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

.features-slider-wrapper > .swiper .swiper-wrapper {
  align-items: stretch;
  padding-bottom: 0;
}

.features-slider-wrapper > .swiper .swiper-slide {
  height: auto;
  display: flex;
  flex-shrink: 0;
}

.product-features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(85, 25, 230, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.features-slider-wrapper {
  position: relative;
  z-index: 1;
}

.features-slider-wrapper .swiper {
  position: relative;
  overflow: visible;
  padding-bottom: 60px;
}

.features-slider-wrapper > .swiper .swiper-wrapper {
  align-items: stretch;
  padding-bottom: 0;
}

.features-slider-wrapper > .swiper .swiper-slide {
  height: auto;
  display: flex;
  flex-shrink: 0;
}

/* Product Feature Card Styles */
.features-slider-wrapper .paragraph--type--product-features {
  width: 100%;
  height: 100%;
}

/* Individual Feature Card Base Styles */

.product-features-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(85, 25, 230, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.features-slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

/* Feature Card Styles */
.feature-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(85, 25, 230, 0.1);
  position: relative;
}

.feature-card--testimonial-style:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(85, 25, 230, 0.25);
  border-color: rgba(85, 25, 230, 0.3);
}

/* Feature Image/Icon Section */
.feature-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #5519e4 0%, #7c3aed 50%, #9333ea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='grid' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)' /%3E%3C/svg%3E") center center;
  opacity: 0.3;
}

.feature-icon,
.feature-icon-placeholder {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 2;
}

.feature-icon::before,
.feature-icon-placeholder::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent, rgba(255,255,255,0.1));
  z-index: -1;
  transition: all 0.4s ease;
}

.feature-card--testimonial-style:hover .feature-icon,
.feature-card--testimonial-style:hover .feature-icon-placeholder {
  transform: scale(1.15) rotate(15deg);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Feature Title Overlay at Bottom */
.feature-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #5519e4;
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(85, 25, 230, 0.1);
}

.feature-title-overlay h5 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--taevas-blue);
  font-family: 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hover Overlay */
.feature-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 30px;
  backdrop-filter: blur(10px);
}

.feature-card--testimonial-style:hover .feature-hover-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  max-width: 100%;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card--testimonial-style:hover .overlay-content {
  transform: translateY(0);
}

.overlay-icon {
  margin-bottom: 20px;
  position: relative;
}

.overlay-icon i {
  font-size: 3rem;
  color: var(--taevas-blue);
  display: block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.feature-details {
  border-top: 2px solid rgba(85, 25, 230, 0.1);
  padding-top: 20px;
  position: relative;
}

.feature-details::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #5519e4, #7c3aed);
  border-radius: 1px;
}

.feature-details .feature-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--taevas-blue);
  font-family: 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-details .feature-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: #64748b;
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Swiper Slider Customization */
.features-swiper {
  padding: 20px 0 60px;
  overflow: visible;
  position: relative;
}

.features-swiper .swiper-wrapper {
  align-items: stretch;
}

.features-swiper .swiper-slide {
  height: auto;
}

/* Navigation Buttons */
.features-next,
.features-prev {
  color: white !important;
  background: linear-gradient(135deg, var(--taevas-blue) 0%, var(--taevas-purple) 100%) !important;
  width: 55px !important;
  height: 55px !important;
  border-radius: 50% !important;
  box-shadow: 0 6px 20px rgba(85, 25, 228, 0.4) !important;
  top: 50% !important;
  margin-top: -27px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 3px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px) !important;
}

.features-next:hover,
.features-prev:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 10px 30px rgba(85, 25, 228, 0.5) !important;
}

.features-next {
  right: -30px !important;
}

.features-prev {
  left: -30px !important;
}

.features-next:after,
.features-prev:after {
  font-size: 1.2rem !important;
  font-weight: bold !important;
}

/* Pagination */
.features-pagination {
  bottom: 10px !important;
  text-align: center !important;
  position: relative !important;
}

.features-pagination .swiper-pagination-bullet {
  background: #cbd5e1 !important;
  opacity: 1 !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 6px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 50% !important;
}

.features-pagination .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, var(--taevas-blue) 0%, var(--taevas-purple) 100%) !important;
  transform: scale(1.3) !important;
  box-shadow: 0 2px 8px rgba(85, 25, 230, 0.4) !important;
}

/* Loading Animation */
.features-swiper:not(.swiper-initialized) {
  opacity: 0.5;
}

.features-swiper.swiper-initialized {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .features-next {
    right: -20px !important;
  }
  
  .features-prev {
    left: -20px !important;
  }
  
  .features-next,
  .features-prev {
    width: 50px !important;
    height: 50px !important;
    margin-top: -25px !important;
  }
}

@media (max-width: 768px) {
  .product-features-slider {
    padding: 40px 0;
  }
  
  .features-main-title {
    font-size: 2rem;
  }
  
  .features-title-section {
    margin-bottom: 30px;
  }
  
  .feature-card--testimonial-style {
    height: 320px;
    margin: 0 5px;
    border-radius: 15px;
  }
  
  .feature-image {
    height: 250px;
  }
  
  .feature-icon,
  .feature-icon-placeholder {
    width: 90px;
    height: 90px;
    font-size: 2.8rem;
  }
  
  .feature-title-overlay {
    padding: 15px;
  }
  
  .feature-title-overlay h5 {
    font-size: 1.1rem;
  }
  
  .features-next,
  .features-prev {
    width: 45px !important;
    height: 45px !important;
    margin-top: -22px !important;
    right: -15px !important;
  }
  
  .features-prev {
    left: -15px !important;
  }
  
  .features-next:after,
  .features-prev:after {
    font-size: 1rem !important;
  }
  
  .overlay-icon i {
    font-size: 2.2rem;
  }
  
  .feature-details .feature-name {
    font-size: 1.2rem;
  }
  
  .feature-details .feature-description {
    font-size: 0.85rem;
  }
  
  .feature-hover-overlay {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .features-next,
  .features-prev {
    display: none !important;
  }
  
  .features-main-title {
    font-size: 1.8rem;
  }
  
  .features-title-section {
    margin-bottom: 25px;
  }
  
  .feature-card--testimonial-style {
    margin: 0 2px;
    height: 300px;
  }
  
  .feature-image {
    height: 220px;
  }
  
  .feature-icon,
  .feature-icon-placeholder {
    width: 70px;
    height: 70px;
    font-size: 2.2rem;
  }
  
  .feature-title-overlay h5 {
    font-size: 1rem;
  }
  
  .features-slider-wrapper {
    margin: 0 -10px;
  }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .feature-card--testimonial-style {
    border-width: 0.5px;
  }
  
  .feature-details::before {
    height: 1px;
  }
}

/* Accessibility Improvements */
.feature-card--testimonial-style:focus {
  outline: 3px solid rgba(85, 25, 230, 0.5);
  outline-offset: 2px;
}

.features-next:focus,
.features-prev:focus {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* Feature Content Styles */
.feature-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--taevas-blue);
  margin-bottom: 10px;
  font-family: 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.3;
}

.feature-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #64748b;
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  flex: 1;
}

.feature-image-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.feature-image-placeholder {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-image-img,
.feature-card:hover .feature-image-placeholder {
  transform: scale(1.1) rotate(5deg);
}

/* Slider Navigation and Controls */
.features-scrollbar {
  position: absolute;
  bottom: 60px !important;
  left: 20px;
  right: 20px;
  height: 8px;
  background: rgba(85, 25, 230, 0.15);
  border-radius: 6px;
  z-index: 10;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.features-scrollbar .swiper-scrollbar-drag {
  background: linear-gradient(90deg, #5519e4 0%, #7c3aed 50%, #5519e4 100%);
  border-radius: 6px;
  height: 100%;
  position: relative;
  cursor: grab;
  min-width: 50%;
  max-width: 70%;
  box-shadow: 0 2px 8px rgba(85, 25, 230, 0.4);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.features-scrollbar .swiper-scrollbar-drag:hover {
  background: linear-gradient(90deg, #7c3aed 0%, #9333ea 50%, #7c3aed 100%);
  box-shadow: 0 3px 12px rgba(85, 25, 230, 0.5);
  transform: scaleY(1.2);
}

.features-scrollbar .swiper-scrollbar-drag:active {
  cursor: grabbing;
}

/* Navigation Container */
.features-navigation {
  position: absolute;
  bottom: 0;
  left: 20px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

/* Navigation Arrows */
.features-nav-prev,
.features-nav-next {
  position: relative;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #5519e4 0%, #7c3aed 100%);
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
  box-shadow: 0 4px 15px rgba(85, 25, 230, 0.3);
}

.features-nav-prev:hover,
.features-nav-next:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(85, 25, 230, 0.4);
}

.features-nav-prev:after,
.features-nav-next:after {
  display: none;
}

.features-nav-prev i,
.features-nav-next i {
  font-size: 1.1rem;
  font-weight: bold;
}