/* AdriaSee Widgets Styles */

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* Container and section styles */
.container {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem;
}

.section {
  margin: 4rem 0;
}

/* Featured Section */
.section-feature {
  margin: 80px 0;
}

.feature-card {
  position: relative;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  max-width: 1500px;
  margin: 0 auto;
}

.feature-card img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.feature-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 48px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3), rgba(0,0,0,0));
  color: white;
}

.feature-badge {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 2px 12px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.feature-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.feature-content p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  margin-bottom: 24px;
  opacity: 0.9;
  max-width: 1300px;
}

.feature-btn {
  display: inline-block;
  background: white;
  color: #333;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.feature-btn:hover {
  background: #28a745;
  color: white;
  transform: translateY(-2px);
}

.feature-card:hover img {
  transform: scale(1.03);
}

/* Features Slider Section */
.section-features-slider {
    margin: 50px 0;
}

.slider-box {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.slider-multi {
  display: flex;
  width: 100%;
  position: relative;
  justify-content: space-between;
  align-items: center;
}

.slider-images {
  position: relative;
  width: 40%;
  height: 400px;
  overflow: hidden;
  border-radius: 17px;
  margin-left: 0;
}

.slider-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  border-radius: 17px;
  transition: opacity 1s ease-in-out, transform 0.5s ease;
}

.slider-image.active {
  opacity: 1;
}

/* Hover effect */
.slider-images:hover .slider-image.active {
  transform: translate(-50%, -50%) scale(1.03);
}

.slider-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 50%;
  min-height: 0; /* Remove min-height for desktop/laptop */
  height: auto;
  text-align: left;
  opacity: 1;
  transition: none;
  pointer-events: auto;
  position: relative;
}

.slider-text p {
  font-size: 16px;
  color: #665;
  font-weight: 400;
  max-width: 800px;
  margin-bottom: 25px;
  flex-shrink: 0;
  min-height: 0; /* Remove min-height for desktop/laptop */
  line-height: 1.6;
  display: block;
}

@media (max-width: 992px) {
  .slider-text {
    min-height: 190px; /* Only reserve space for the text+indicators on mobile/tablet */
  }
  .slider-text p {
    min-height: 120px; /* Only reserve space for the longest paragraph on mobile/tablet */
  }
}

.slider-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin-top: 0;
  margin-bottom: 0;
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  transform: none;
  padding-top: 32px; /* Use padding instead of margin for spacing above indicators */
}

@media (max-width: 992px) {
  .slider-controls {
    flex-direction: row;
    align-items: center; /* Center vertically only, not horizontally */
    justify-content: center;
    position: absolute;
    left: 0;
    right: 0;
    transform: none;
  }
}

@media (min-width: 993px) {
  .slider-controls {
    align-items: flex-start !important; /* Remove center alignment on laptops/desktops */
  }
}

.slider-text {
  position: relative;
}

.slider-text h2, .slider-text p {
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
  opacity: 1;
  transform: translateY(0);
}

.slider-text p {
  font-size: 16px;
  color: #665;
  font-weight: 400;
  max-width: 800px;
  margin-bottom: 25px;
  flex-shrink: 0;
  min-height: 0; /* Remove min-height for desktop/laptop */
  line-height: 1.6;
  display: block;
}

.slider-controls {
  flex-direction: column;
  align-items: center; /* Center the controls horizontally */
  gap: 0;
  margin-top: 0;
  margin-bottom: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

@media (max-width: 1200px) {
  .feature-content {
    padding: 32px;
  }
  .feature-content h2 {
    font-size: 28px;
  }
  .slider-box {
    max-width: 1000px;
  }
  .slider-indicator, .slider-bubble {
    width: 20px;
    height: 4px;
    border-radius: 4px;
  }
  .slider-indicators {
    gap: 8px;
    margin-top: 8px;
  }
  .slider-images {
    height: 450px;
  }
  .slider-image {
    height: 450px;
  }
  .slider-text h2 {
    font-size: 48px;
  }
}

@media (max-width: 992px) {
  .slider-box {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  .slider-multi {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  .slider-images {
    width: 100%;
    height: 375px;
    margin: 0 0 20px 0;
  }
  .slider-image {
    width: 100%;
    height: 375px;
    max-width: none;
  }
  .slider-text {
    width: 100%;
    margin-top: 10px;
    padding: 0;
    text-align: center;
    align-items: center;
  }
  .slider-text h2 {
    font-size: 36px;
  }
  .slider-text p {
    min-height: 0;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .slider-indicators {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 16px 25px 0 25px !important;
  }
  .section-feature {
    margin: 40px 0;
  }
  .feature-content {
    padding: 24px;
  }
  .feature-content h2 {
    font-size: 24px;
  }
  .feature-content p {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .feature-btn {
    padding: 10px 20px;
  }
  .section-features-slider {
    margin: 40px 0;
  }
  .slider-box {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  .slider-multi {
    flex-direction: column;
    padding-left: 0;
    width: 100%;
    align-items: center;
  }
  .slider-images {
    width: 100%;
    height: 270px;
    margin: 0 0 16px 0;
    overflow: hidden;
  }
  .slider-image {
    width: 100%;
    height: 270px;
    max-width: none;
    transform-origin: center;
  }
  .slider-text {
    width: 100%;
    margin-top: 10px;
    padding: 0;
    text-align: center;
    align-items: center;
  }
  .slider-text h2 {
    font-size: 24px;
  }
  .slider-text p {
    min-height: 0;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
  }
  .slider-indicator, .slider-bubble {
    width: 25px;
    height: 4px;
    border-radius: 4px;
  }
  .slider-indicators {
    gap: 6px;
    margin-top: 6px;
    justify-content: center;
  }
}

/* --- Slider Indicators (Premium Lines) --- */
.slider-indicators {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 0;
  position: relative;
}

/* All indicators: green, rounded, always visible */
.slider-indicator {
  width: 32px;
  height: 4px;
  border-radius: 4px;
  background: #e0e0e0; /* light gray for inactive */
  opacity: 1;
  border: none;
  outline: none;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  min-width: 0;
  min-height: 0;
  background-clip: padding-box;
  margin: 0;
  box-shadow: none;
  transition: none;
}

.slider-indicator.active {
  background: #28a745;
}

/* Bubble overlay for active indicator */
.slider-bubble {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 4px;
  border-radius: 4px;
  background: #28a745;
  z-index: 2;
  transition: left 0.5s cubic-bezier(0.4,0,0.2,1), width 0.5s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}

/* --- UNIVERSAL OVERRIDES FOR SLIDER INDICATOR BUTTONS (ASTRA, IOS, BROWSERS) --- */
.slider-indicator,
.slider-indicator:focus,
.slider-indicator:active,
.slider-indicator:focus-visible,
.slider-indicator:focus-within,
.slider-indicator:visited,
.slider-indicator:target {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  color: inherit !important;
  filter: none !important;
  background-image: none !important;
  background-color: #e0e0e0 !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.slider-indicator.active {
  background: #28a745 !important;
  background-color: #28a745 !important;
}

.slider-indicator::after,
.slider-indicator::before {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Remove Astra theme's button color on pressed/focus for all states */
.slider-indicator:not(.active) {
  background: #e0e0e0 !important;
  background-color: #e0e0e0 !important;
}

/* Remove iOS Safari tap highlight and button overlay */
.slider-indicator {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  background-image: none !important;
}

/* Remove forced color for ::after/::before pseudo-elements */
.slider-indicator::after,
.slider-indicator::before {
  background: none !important;
  box-shadow: none !important;
}

/* Remove forced color for button inner border (Firefox) */
.slider-indicator::-moz-focus-inner {
  border: 0 !important;
}

.slider-controls {
  flex-direction: column;
  align-items: center; /* Center the controls horizontally */
  gap: 0;
  margin-top: 0;
  margin-bottom: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}