/* Hero Slider Styles - Split Layout Redesign */

:root {
  --hero-height-desktop: 550px;
  --hero-nav-color: #2d6a4f;
  --hero-nav-bg: rgba(255, 255, 255, 0.8);
  --hero-text-color: #1f2937;
  --hero-accent: #2d6a4f;
  --hero-blob-color: #40916c;
  /* Brand green accent */
}

#hero-slider-container {
  position: relative;
  width: 100%;
  height: var(--hero-height-desktop);
  overflow: hidden;
  background-color: #f4f8f6;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 40px;
}

#hero-slider-container img {
  max-width: 100%;
  display: block;
}

.hs-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f8f6;
}

.hs-fallback img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hs-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hs-slide {
  min-width: 100%;
  width: 100%;
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* --- Content Side (Text) --- */
.hs-content {
  flex: 1;
  padding: 0 4% 0 8%;
  /* Left padding larger for centering */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 5;
  max-width: 50%;
  min-width: 0;
}

.hs-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(45, 106, 79, 0.28);
  background: rgba(45, 106, 79, 0.08);
  color: #1b4332;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hs-title {
  font-family: 'Lora', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--hero-text-color);
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: none; opacity: 1; transform: none;
}

.hs-description {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 90%;
  opacity: 0;
  transform: translateY(20px);
  animation: none; opacity: 1; transform: none;
}

.hs-cta-btn {
  display: inline-block;
  background-color: var(--hero-accent);
  color: white;
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(45, 106, 79, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: none; opacity: 1; transform: none;
  border: 2px solid transparent;
}

.hs-cta-btn:hover {
  background-color: #1b4332;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(45, 106, 79, 0.3);
}

/* --- Image Side --- */
.hs-image-side {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

/* Decorative background blob/shape behind image */
.hs-blob {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(45, 106, 79, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
  border-radius: 50%;
}

  width: 80%;
  height: 80%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

  width: min(100%, 760px);
  height: auto;
  aspect-ratio: 1375 / 767;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
}

.hs-slide:not(.hs-women) .hs-image-side {
  padding: 8px 0 0 0;
}

.hs-slide:not(.hs-women) .hs-blob {
  display: none;
}

  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  transform: scale(0.95);
  transition: transform 0.5s ease;
  border-radius: 30px;
}

  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 24px;
  filter: none;
  transform: translateZ(0);
}

  transform: scale(1);
}

  transform: translateZ(0) scale(1.01);
}

/* Women-led first slide premium frame */
.hs-slide.hs-women .hs-content {
  max-width: 54%;
}

  width: auto;
  aspect-ratio: 1760 / 2432;
  height: min(90%, 480px);
  padding: 10px;
  border-radius: 26px;
  position: relative;
  background: transparent;
  box-shadow: 0 20px 36px rgba(27, 67, 50, 0.26);
}

.hs-slide.hs-women .hs-img-container::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  border-radius: 16px;
  background: transparent;
  filter: none;
  transform: scale(1);
}

  transform: scale(1.015);
}

/* --- Navigation Arrows --- */
.hs-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--hero-nav-bg);
  color: var(--hero-nav-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.hs-nav-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hs-prev {
  left: 20px;
}

.hs-next {
  right: 20px;
}

/* --- Dots Navigation --- */
.hs-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  /* Hidden as per request */
  gap: 10px;
  z-index: 20;
}

.hs-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(45, 106, 79, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hs-dot.active {
  background: var(--hero-accent);
  width: 30px;
  border-radius: 10px;
}

/* --- Animations --- */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  :root {
    --hero-height-desktop: auto;
  }

  #hero-slider-container {
    height: auto;
    min-height: auto;
    aspect-ratio: auto;
    padding-bottom: 20px;
  }

  .hs-slide {
    flex-direction: column-reverse;
    /* Image top, Text bottom */
    padding: 0;
    text-align: center;
    height: auto;
    display: flex;
    /* CRITICAL FIX: Prevent flexing/shrinking */
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .hs-slide.hs-women {
    padding: 20px 0 40px 0;
  }

  /* --- Image Side Mobile --- */
  .hs-image-side {
    height: auto;
    width: 100%;
    margin-bottom: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  .hs-slide.hs-women .hs-image-side {
    padding: 20px 0;
    margin-bottom: 10px;
  }

  .hs-img-container { border-radius: 20px; overflow: hidden;
    width: 90%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hs-slide:not(.hs-women) .hs-img-container { border-radius: 0; overflow: hidden;
    width: 100%;
    aspect-ratio: 1375 / 767;
    border-radius: 0;
  }

  .hs-slide:not(.hs-women) .hs-image-side {
    padding: 0;
    margin-bottom: 0;
  }

  .hs-image { border-radius: 20px; overflow: hidden;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    transform: none;
  }

  .hs-slide:not(.hs-women) .hs-image { border-radius: 20px; overflow: hidden;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 22px;
    overflow: hidden;
  }

  .hs-blob {
    width: 80%;
    padding-bottom: 80%;
    /* Square aspect ratio based on width */
    height: auto;
    right: 50%;
    top: 50%;
    transform: translate(50%, -50%);
  }

  /* --- Content Side Mobile --- */
  .hs-content {
    max-width: 100%;
    padding: 0 20px;
    align-items: center;
    margin-top: 0;
  }

  .hs-badge {
    margin-bottom: 10px;
    font-size: 0.72rem;
    padding: 7px 12px;
  }

  .hs-slide.hs-women .hs-content {
    max-width: 100%;
  }

  .hs-slide.hs-women .hs-img-container { border-radius: 24px; overflow: hidden; background: linear-gradient(145deg, #c9a84c 0%, #f5d079 30%, #a67c2e 55%, #f0c040 75%, #c9a84c 100%);
    width: min(82%, 320px);
    aspect-ratio: 1760 / 2432;
    height: auto;
    padding: 8px;
  }

  .hs-slide.hs-women .hs-image { border-radius: 20px; overflow: hidden;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }

  .hs-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .hs-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hs-cta-btn {
    padding: 12px 30px;
    font-size: 0.95rem;
  }

  .hs-nav-btn {
    display: none;
  }

  .hs-dots {
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .hs-image { border-radius: 20px; overflow: hidden;
    max-height: 280px;
    /* Smaller cap for very small screens */
  }

  .hs-slide:not(.hs-women) .hs-img-container,
  .hs-slide:not(.hs-women) .hs-image { border-radius: 20px; overflow: hidden;
    border-radius: 18px;
  }

  .hs-title {
    font-size: 1.7rem;
  }
}

/* Women slide - all fixes */
.hs-slide.hs-women .hs-blob { display: none !important; }
.hs-slide.hs-women .hs-image-side {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@media (min-width: 769px) {
  .hs-slide.hs-women .hs-img-container {
    height: 420px !important;
    width: 290px !important;
    max-width: none !important;
    padding: 8px !important;
    border-radius: 28px !important;
    background: linear-gradient(145deg, #c9a84c 0%, #f5d079 30%, #a67c2e 55%, #f0c040 75%, #c9a84c 100%) !important;
    box-shadow: 0 8px 32px rgba(166, 124, 46, 0.5) !important;
  }
  .hs-slide.hs-women .hs-image {
    border-radius: 22px !important;
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
  }
  .hs-slide.hs-women .hs-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem) !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
  }
}

@media (max-width: 768px) {
  .hs-slide.hs-women .hs-img-container {
    padding: 8px !important;
    border-radius: 24px !important;
    background: linear-gradient(145deg, #c9a84c 0%, #f5d079 30%, #a67c2e 55%, #f0c040 75%, #c9a84c 100%) !important;
    box-shadow: 0 6px 20px rgba(166, 124, 46, 0.4) !important;
  }
  .hs-slide.hs-women .hs-image {
    border-radius: 18px !important;
  }
}

/* === Indian site mobile founder image full gold border fix === */
@media (max-width: 992px) {
  .hs-slide.hs-women .hs-img-container {
    width: min(82%, 320px) !important;
    aspect-ratio: 1760 / 2432 !important;
    height: auto !important;
    padding: 8px !important;
    border-radius: 24px !important;
    background: linear-gradient(145deg, #c9a84c 0%, #f5d079 30%, #a67c2e 55%, #f0c040 75%, #c9a84c 100%) !important;
    box-shadow: 0 6px 20px rgba(166, 124, 46, 0.4) !important;
    overflow: hidden !important;
  }
  .hs-slide.hs-women .hs-image {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 18px !important;
    margin: 0 !important;
  }
}
