/* Feature Carousel Widget Styles */

.ib-feature-carousel-wrapper {
  display: flex;
  max-width: var(--Width-Content-Wrapper, 1220px);
  width: 100%;
  margin: 0 auto;
  flex-direction: column;
  gap: 48px;
  padding: 120px 32px;
  background-color: transparent;
  position: relative;
}

.ib-feature-carousel-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background-color: #F4F5F6;
  z-index: -1;
}

.ib-fc-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 100%;
  margin: 0 auto;
}

/* Tabs Navigation */
.ib-fc-tabs {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

.ib-fc-tab-navigation {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ib-fc-tab-button {
  padding: 10px 24px;
  background-color: transparent;
  border: 2px solid #1D2C38;
  border-radius: 200px;
  font-family: SuisseIntl, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #1D2C38;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ib-fc-tab-button:hover {
  background-color: rgba(29, 44, 56, 0.1);
}

.ib-fc-tab-button.active {
  background-color: #1D2C38;
  color: #FFFFFF;
}

/* Tab Content */
.ib-fc-tab-content {
  position: relative;
  min-height: 400px;
}

.ib-fc-tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.ib-fc-tab-pane.active {
  display: block;
}

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

/* Product Card */
.ib-fc-product-card {
  display: flex;
  flex-direction: row;
  gap: 48px;
  background-color: #FFFFFF;
  border-radius: 32px;
  padding: 32px;
}

.ib-fc-product-image {
  flex: 1;
  min-width: 0;
}

.ib-fc-product-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.ib-fc-product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Feature List */
.ib-fc-feature-list {
  list-style: none;
  padding: 0;
  padding-left: 0;
  margin: 0;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ib-fc-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #243746;
  padding-left: 0;
  margin-left: 0;
}

.ib-fc-feature-list li i {
  color: #243746;
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.ib-fc-feature-list li span {
  flex: 1;
}

.ib-fc-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #243746;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Button */
.ib-fc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: none;
  color: #1D2C38 !important;
  border: 2px solid #1D2C38;
  border-radius: 200px;
  text-decoration: none;
  font-family: SuisseIntl, sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
  cursor: pointer;
}

.ib-fc-button:hover {
  background-color: #1D2C38;
  color: #ffffff !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .ib-feature-carousel-wrapper {
    padding: 80px 24px;
    gap: 32px;
  }

  .ib-fc-product-card {
    gap: 32px;
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .ib-feature-carousel-wrapper {
    padding: 60px 16px;
    gap: 24px;
  }

  .ib-fc-tab-navigation {
    gap: 12px;
  }

  .ib-fc-tab-button {
    padding: 8px 16px;
    font-size: 16px;
  }

  .ib-fc-product-card {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  .ib-fc-product-content {
    gap: 16px;
  }

  .ib-fc-feature-list {
    gap: 12px;
  }
}

/* Dark Mode Styles */
.ib-feature-carousel-wrapper.ib-fc-dark::before {
  background-color: #1D2C38;
}

.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-header h1,
.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-header h2,
.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-header h3,
.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-header h4,
.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-header h5,
.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-header h6,
.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-header p {
  color: #FFFFFF;
}

.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-tab-button {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-tab-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-tab-button.active {
  background-color: #FFFFFF;
  color: #1D2C38;
}

/* Product cards stay light with dark text in dark mode */
.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-product-card {
  background-color: #FFFFFF;
}

.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-product-content h1,
.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-product-content h2,
.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-product-content h3,
.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-product-content h4,
.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-product-content h5,
.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-product-content h6,
.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-product-content p {
  color: #1D2C38;
}

.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-feature-list li {
  color: #1D2C38;
}

.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-feature-list li i {
  color: #1D2C38;
}

.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-button {
  border-color: #1D2C38;
  color: #1D2C38 !important;
}

.ib-feature-carousel-wrapper.ib-fc-dark .ib-fc-button:hover {
  background-color: #1D2C38;
  color: #FFFFFF !important;
}

/* Elementor Editor Specific */
.elementor-editor-active .ib-fc-tab-pane {
  display: block !important;
  margin-bottom: 20px;
  border: 1px dashed #ccc;
  padding: 10px;
}

.elementor-editor-active .ib-fc-tab-pane::before {
  content: "Tab " attr(data-tab);
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  color: #666;
}
