/* Features Carousel Section */
.features-carousel-section {
  background-color: #2a1404;
  opacity: 1;
  background-image: linear-gradient(180deg, var(--color-brown-gradient-light) 0%, var(--color-brown-gradient-dark) 100%);
  padding: 20px 0;
  margin-bottom: 20px;
  opacity: 1;
}

.features-carousel-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Features Header */
.features-header {
  text-align: left;
  margin-bottom: 16px;
}

.features-subtitle {
  display: block;
  font-family: var(--font-family);
  font-size: var(--fluid-16-20);
  font-weight: 500;
  color: #b1a9a3;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.features-title {
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

/* Features Carousel */
.features-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.features-track {
  display: flex;
  gap: 24px;
  transition: transform 0.3s ease;
}

/* Embla Carousel Styles */
#features-carousel {
  margin-bottom: 16px;
  position: relative;
}

#features-carousel .embla__viewport {
  overflow: hidden;
  margin: 0 -8px;
}

#features-carousel .embla__container {
  display: flex;
  gap: 0;
}

#features-carousel .embla__slide {
  flex: 0 0 24%;
  min-width: 0;
  padding: 0 8px;
}

/* Feature Cards */
.feature-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px 18px;
  width: 100%;
  min-height: 230px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: #F2EEEB;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: #6b3305;
}

.feature-title {
  font-size: 17px !important;
  font-family: var(--font-family);
  font-weight: 600;
  color: #1f2225;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.feature-description {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 13px;
  color: #666;
  line-height: 1.45;
  margin: 0;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 58px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  color: #6b3305;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
}

.feature-link svg {
  margin-left: 4px;
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.feature-link:hover {
  color: #D13D14;
}

.feature-link:hover svg {
  transform: translateX(2px);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* Carousel Navigation */
.carousel-navigation {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.nav-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.nav-button:hover svg {
  color: #fff;
}

.nav-button svg {
  width: 20px;
  height: 20px;
  color: #fff;
  transition: color 0.2s ease;
}

.nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-button:disabled:hover svg {
  color: #fff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  #features-carousel .embla__slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .feature-card {
    min-width: auto;
    max-width: 100%;
    min-height: 200px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .features-carousel-section {
    padding: 16px 0;
    margin: 0;
  }

  .features-header {
    margin-bottom: 12px;
  }
  
  #features-carousel .embla__slide {
    flex: 0 0 85%;
    max-width: 85%;
  }
  
  #features-carousel .embla__container {
    gap: 12px;
  }

  .feature-card {
    min-width: auto;
    max-width: 100%;
    min-height: 180px;
    padding: 18px;
  }

  .feature-description {
    font-size: 14px;
  }

  .nav-button {
    width: 32px;
    height: 32px;
  }

  .nav-button i {
    width: 16px;
    height: 16px;
  }

  .carousel-navigation {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  #features-carousel .embla__slide {
    flex: 0 0 90%;
    max-width: 90%;
  }
  
  #features-carousel .embla__container {
    gap: 10px;
  }
  
  .feature-card {
    padding: 16px;
    max-width: 100%;
    min-height: 160px;
  }

  .feature-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
  }

  .feature-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .feature-title {
    font-size: 15px !important;
  }
  
  .feature-description {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
  
  .feature-link {
    font-size: 11px;
  }

  .carousel-navigation {
    margin-top: 12px;
  }
}
