@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.hs-zigy-slider,
.hs-zigy-slider * {
  font-family: 'Poppins', Arial, sans-serif;
  box-sizing: border-box;
}

/* Module background */
.zigy-slider {
  position: relative;
  padding: 80px 0 70px;
  background-color: #202322;
}

/* Full-width semi-circle orange gradient */
.zigy-slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 260px;
  background: linear-gradient(30deg, #EB6712 0%, #FEDF30 100%);
  border-radius: 0 0 50% 50%;
  z-index: 0;
}

/* Main heading in orange area */
.zigy-main-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 24px;
}

.zigy-title {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

/* Inner layout */
.zigy-slider-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* White card */
.zigy-slider-card {
  flex: 1;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 40px 36px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  /*height: 680px; /* desktop height */
  border-bottom: 5px solid #EB6712;
}

/* Per-slide subheading */
.zigy-subtitle {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #333333;
}

/* Divider between subheading and image */
.zigy-divider {
  width: 100%;
  height: 1px;
  background: #DBD7D7;
  margin: 10px 0 8px;
}

/* Slides / track area inside the card */
.zigy-slider-track {
  position: relative;
  width: 100%;
  height: 520px;
}

/* Each slide */
.zigy-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zigy-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Image (desktop) */
.zigy-slide-image {
  width: 457px;
  height: 532px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 32px;
}

/* Arrows */
.zigy-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.zigy-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.zigy-arrow span {
  font-size: 26px;
  line-height: 1;
}

/* Dots row below the entire card */
.zigy-dots {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Dots (small circles) */
.zigy-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d8d8d8;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
}

/* Selected dot: orange pill 48px */
.zigy-dot.is-active {
  background: #F66733;
  width: 48px;
  border-radius: 999px;
}

/* =========================
   MOBILE FIXES
   ========================= */
@media (max-width: 768px) {
  .zigy-slider {
    padding: 70px 0 60px;
  }

  .zigy-slider-inner {
    max-width: 100%;
    padding: 0 16px;
    gap: 12px;
  }

  .zigy-title {
    font-size: 26px;
  }

  .zigy-subtitle {
    font-size: 18px;
    margin: 0 0 12px;
  }

  .zigy-slider-card {
    padding: 24px 18px 26px;
    height: auto;              /* let card expand */
  }

  .zigy-slider-track {
    height: auto;              /* no fixed height */
  }

  /* Let slides flow inside the card instead of absolute overlay */
  .zigy-slide {
    position: relative;
    opacity: 0;
    pointer-events: none;
    display: none;             /* hide by default */
  }

  .zigy-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    display: flex;             /* only active slide shown */
  }

  /* Make image smaller / responsive on mobile */
  .zigy-slide-image {
    width: 100%;
    max-width: 360px;
    height: auto;
    margin-bottom: 20px;
  }

  /* Keep arrows visible on small screens */
  .zigy-arrow {
    width: 38px;
    height: 38px;
  }
}
