.hero-section {
  width: 100%;
  min-height: calc(100vh - 90px); /* adjust based on navbar height */
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero-text-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #0C150C;
  font-family: "Figtree", sans-serif;
  height: 100%;
}

.hero-text-section .container {
  max-width: 1280px; /* match your site layout */
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.hero-text-section {
  padding-left: calc((100vw - 1280px) / 2 - 18px); /* slightly closer to edge */
  padding-right: 3rem;
}

@media (max-width: 1400px) {
  .hero-text-section {
    padding-left: calc((100vw - 1100px) / 2 - 5px);
  }
}

@media (max-width: 1200px) {
  .hero-text-section {
    padding-left: calc((100vw - 960px) / 2 - 5px);
  }
}

@media (max-width: 992px) {
  .hero-text-section {
    padding-left: calc((100vw - 720px) / 2 - 3px);
    padding-right: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* .hero-text-section {
    padding-left: 30px !important;
    padding-right: 30px !important;
  } */
}



.toggler-icon {
  background-color: #FFFFF7;
}



.text-wrapper {
  position: relative;
  min-height: 260px; /* keeps 'Our Story' steady */
}

.para-block {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;

  pointer-events: none;
}

.para-block.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}




#reveal-arrow {
  transition: opacity 0.4s ease;
}


.scroll-arrow {
  position: absolute;
  right: 0;          /* stick to right of active block */
  bottom: -85px;         /* stick to bottom */
  cursor: pointer;
  z-index: 5;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.scroll-arrow:hover {
  transform: translateY(4px);
}



/* ---- IMAGE SIDE ---- */
.hero-image-section {
  position: relative;
  padding: 0;
  margin: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ensures full coverage without distortion */
  object-position: center right; /* keeps focus towards the right side */
  display: block;
}

@media (max-width: 992px) {
  .hero-section {
    flex-direction: column;
    min-height: auto;
  }

 

  .hero-image {
    height: auto;
    width: 100%;
    object-position: center;
  }
}


.scroll-div {
  padding-left: 80px;
}
.team-section {
  background: #FFFFF7;
  width: 100%;
  overflow: hidden;
}

/* Full-width flex scroll area */
.team-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 4rem 1rem calc((100vw - 1320px) / 2);
  cursor: grab;
  scroll-padding: 0 4rem;
  -webkit-overflow-scrolling: touch; /* adds momentum scroll on iOS */
  scrollbar-width: none;
  transition: transform 0.3s ease;
}

.team-scroll:active {
  cursor: grabbing;
}


/* Hide scrollbar */
.team-scroll::-webkit-scrollbar {
  display: none;
}

.team-card {
  flex: 0 0 calc((100% / 4.3) - 1rem); /* show 4.3 cards */
  min-width: 250px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}



.team-card:hover {
  transform: scale(1.03);
}

.team-img img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

/* ✅ No extra gap on right edge */
.team-scroll::after {
  content: "";
  flex: 0 0 0;
}

/* Overlay content on each card */
.overlay {
  position: absolute;
  bottom: 0;
  width: calc(100% - 40px);
  background: #FFFFF7;
  color: #0C150C;
  border-radius: 10px;
  text-align: left;
  padding: 10px 16px;
  margin: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overlay h5 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.overlay p {
  margin: 0;
  font-size: 15px !important;
}

.overlay a {
  color: #0C150C;
  font-size: 24px;
  transition: color 0.3s ease;
}

.overlay a:hover {
  color: #FF5757;
}

/* Responsive tweaks */
@media (max-width: 1400px) {
  .team-scroll {
    padding-left: calc((100vw - 1140px) / 2); /* Bootstrap lg container width */
  }
}
@media (max-width: 1200px) {
  .team-card {
    flex: 0 0 calc((100% / 3.3) - 1rem);
  }
  .team-scroll {
    padding-left: calc((100vw - 960px) / 2);
  }
}
@media (max-width: 992px) {
  .team-card {
    flex: 0 0 calc((100% / 2.3) - 1rem);
  }
  .team-scroll {
    padding-left: calc((100vw - 720px) / 2);
  }
  .toggler-icon {
    background-color: #0C150C ;
  }
}
@media (max-width: 768px) {
  .team-card {
    flex: 0 0 calc(80% - 1rem);
  }
  .team-scroll {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}


.form-success {
  font-size: 16px;
  padding-top: 10px;
}
