.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: -110px;
}

/* Background image handling */
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.heart-overlay {
  animation: pulse 4s ease-in-out infinite;
  background: radial-gradient(
    circle at center,
    #da291c 0,
    #f28a69 50%,
    #a3884f 100%
  );
  inset: 0;
  mask: url("../images/home/heart-01.svg") no-repeat center;
  mask-size: cover;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

/*  Mobile fix */
@media (width <= 768px) {
  .heart-overlay {
    height: 80vh;           /* make sure the heart fills most of the visible area */
    top: 110px;
    bottom: auto;
    mask-size: contain;     /* prevent distortion */
    opacity: 0.7;           /* slightly softer on small screens */
    background: radial-gradient(
      circle at center,
      rgb(218 41 28 / 0.9) 0%,
      rgb(242 138 105 / 0.6) 50%,
      rgb(163 136 79 / 0.4) 100%
    );
  }
}

/* Optional tiny-screen refinement */
@media (width <= 480px) {
  .heart-overlay {
    height: 70vh;
    mask-position: top center;
      top: 110px;
  }
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: #fff;
}

/* Heading styling */
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0;
}

.hero-content h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.4;
  color: #611427; /* SANBS burgundy tone */
}

/* Responsive text adjustments */
@media (width <= 768px) {
  .hero-content {
    justify-content: center;
    text-align: center;
  }

  .hero-content h1,
  .hero-content h3 {
    color: #fff;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

@media (width <= 768px) {
  body {
    overflow-x: hidden;
  }

  .hero-slider {
    height: auto !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
  }

  .hero-content {
    bottom: 0;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .glass-btn {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  html, body {
    max-height: 100vh;
  }
}

/* ===============================
   DESKTOP HERO SLIDER STYLES
   =============================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: -110px;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.heart-overlay {
  animation: pulse 4s ease-in-out infinite;
  background: radial-gradient(circle at center, #da291c 0, #f28a69 50%, #a3884f 100%);
  inset: 0;
  mask: url("../images/home/heart-01.svg") no-repeat center;
  mask-size: cover;
  opacity: 0.8;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero-content h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.4;
  color: #611427;
}

/* ===============================
   MOBILE HERO SPLIT LAYOUT
   =============================== */
.hero-mobile {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-mobile-image {
  position: relative;
  overflow: hidden;
}

.hero-mobile-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.heart-overlay-mobile {
  position: absolute;
  inset: 0;
  mask: url("../images/home/heart-01.svg") no-repeat center;
  mask-size: cover;
  background: radial-gradient(
    circle at center,
    rgb(218 41 28 / 0.9) 0%,
    rgb(242 138 105 / 0.6) 50%,
    rgb(163 136 79 / 0.4) 100%
  );
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
}

.hero-mobile-text {

  padding: 60px 20px;
  z-index: 3;
}

.hero-mobile-text h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #da291c;
}

.hero-mobile-text h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #611427;
  margin-bottom: 25px;
}

/* Optional: Glass button adjustments for mobile */
.glass-btn {
  display: inline-block;
  padding: 10px 25px;
  font-size: 1rem;
  border-radius: 30px;
}

/* Pulse animation used by heart overlay */
@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}
