/* General */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #fff;
}

/* Section Background */
.moments-section {
  position: relative;
  background: url('../../assets/hero.jpg') center/cover no-repeat;
  height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  /* LEFT ALIGN */
  text-align: left;
  /* LEFT ALIGN */
  padding: 50px 20px;
  overflow: hidden;
  /* Removed box-shadow to prevent overlap outside the section */
}

/* White line under content */
.moments-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  /* Place the line just below the main content but above the feature boxes and above the gradient */
  bottom: 160px;
  height: 2px;
  background: #fff;
  opacity: 1;
  z-index: 5;
  width: 15%;
  margin: 0 auto;
  border-radius: 1px;
  pointer-events: none;
}

.moments-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 250px;
  pointer-events: none;
  z-index: 2;
  /* Soft black shadow from bottom fading up */
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.7) 30%,
      rgba(0, 0, 0, 0.4) 60%,
      rgba(0, 0, 0, 0) 100%);
}

.moments-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Heading and Text */
.section-title {
  font-size: 2.3rem;
  font-family: "Great Vibes", cursive;
  position: relative;
  z-index: 3;
  margin-bottom: 20px;
  color: #ffffff;
  display: inline-block;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(0, 0, 0, 0.46), 0 1.5px 6px 0 rgba(192, 138, 0, 0.18);
  padding: 10px 32px 10px 32px;
  font-weight: 400;
  /* Reduced from default or bolder value */
}

.section-text {
  max-width: 1000px;
  margin: 0 auto 80px;
  font-size: 1.1rem;
  line-height: 1.6;
  position: relative;
  z-index: 3;
  color: #fffbe7;
}

/* Feature Boxes */
.features {
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 3;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-box {
  border: 1px solid #C08A00;
  padding: 10px 15px;
  /* Reduced padding */
  min-width: 280px;
  max-width: 380px;
  /* Increased max-width */
  border-radius: 6px;
  color: #fff;
  transition: 0.3s;
  background: rgba(0, 0, 0, 0.35);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  /* Space between icon and content */
}

.feature-box i {
  font-size: 1.6rem;
  background: #C08A00;
  color: #ffffff;
  border-top-left-radius: 8px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  margin-right: 0;
  transition: background 0.2s;
  flex-shrink: 0;
}

.feature-box p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  padding: 0;
  overflow: hidden;
}

.arrow.left {
  left: 50px;
}

.arrow.right {
  right: 50px;
}

.arrow:hover {
  background: #C08A00;
  color: #000;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  /* Makes icon white */
  transition: filter 0.3s;
}

.arrow:hover .arrow-icon {
  filter: brightness(0) invert(0);
  /* Makes icon black on hover */
}

/* ===================== */
/* RESPONSIVE DESIGN */
/* ===================== */

/* Large Tablets */
@media (max-width: 1024px) {
  .moments-section {
    min-height: 600px;
    /* Increased height for the whole section */
    padding-top: 60px;
    /* Add extra top padding */
    padding-bottom: 60px;
    /* Add extra bottom padding */
  }

  .moments-section::before {
    bottom: 160px;
    width: 90%;
  }

  .section-title {
    font-size: 2rem;
    padding: 28px 32px 28px 32px;
    /* Further increased vertical and horizontal padding for more banner space */
    border-radius: 14px;
  }

  .section-text {
    font-size: 0.98rem;
    max-width: 740px;
    margin-bottom: 34px;
    /* Extra space below text */
  }

  .feature-box {
    min-width: 300px;
    padding: 12px 18px;
    /* More vertical padding */
    gap: 18px;
  }

  .moments-section::after {
    height: 145px;
    /* Increased height for the decorative element */
  }

  .feature-box i {
    font-size: 1.6rem;
    width: 50px;
    height: 50px;
    padding: 0;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .moments-section {
    height: auto;
    padding: 130px 15px;
  }

  .moments-section::before {
    bottom: 180px;
    width: 96%;
    height: 1.5px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    padding: 7px 12px 7px 12px;
    border-radius: 10px;
  }

  .section-text {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .features {
    gap: 15px;
  }

  .feature-box {
    min-width: 220px;
    flex: 1 1 40%;
    gap: 10px;
  }

  .arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .arrow-icon {
    width: 18px;
    height: 18px;
  }

  .moments-section::after {
    height: 90px;
  }

  .feature-box i {
    font-size: 1.3rem;
    width: 45px;
    height: 45px;
    padding: 0;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .moments-section::before {
    bottom: 225px;
    width: 98%;
    height: 1px;
  }

  .section-title {
    font-size: 1.8rem;
    line-height: 1.3;
    padding: 5px 6px 5px 6px;
    border-radius: 7px;
  }

  .section-text {
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 95%;
  }

  .feature-box {
    min-width: 100%;
    padding: 15px;
    gap: 8px;
  }

  .feature-box i {
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .feature-box p {
    font-size: 0.85rem;
  }

  .arrow {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    margin-top: -90px;
    margin-bottom: -100px;
    margin-left: 2px;
    margin-right: 2px;
  }

  .arrow-icon {
    width: 15px;
    height: 15px;
  }

  .moments-section::after {
    height: 60px;
  }
}