.front-homevision-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.front-page-homevision-section {
  margin-top: 100px;
}

.front-page-homevision-title-group h2 {
  font-weight: 700;
  font-size: 50px;
  line-height: 150%;
  text-transform: uppercase;
}

.homevision-container {
  /* width: 1135px; */
  max-width: 1200px;
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  height: 440px;
  height: auto;
}

.homevision {
  position: relative;
  width: 584px;
  height: 440px;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.homevision img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(100%);
  transition: transform 0.6s ease, filter 0.3s ease;
}

.homevision:hover img {
  transform: scale(1.1);
  filter: brightness(70%);
}

/* Overlay container */
.homevision .overlay {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  color: #fff;
  gap: 40px;
  z-index: 2;
  /* sits above image */
  padding: 64px 0 0 64px;
}

.homevision .overlay-item-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Overlay background */
.homevision .overlay-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.homevision:hover .overlay-background {
  opacity: 1;
}

/* Section title (always visible) */
.homevision h3 {
  margin: 0;
  font-size: 40px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 120%;
}

/* Each overlay item block */
.homevision .overlay-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 149px;
  border-bottom: none;
  padding-bottom: 12px;
}

/* Links inside overlay items */
.homevision .overlay-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  text-decoration: none;
  width: 100%;
  flex: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  font-weight: 600;
  font-size: 20px;
  line-height: 100%;
}

.homevision .overlay-item .overlay-item-icon {
  opacity: 0;
  padding: 4px 3px;
  width: 24px;
  height: 24px;
  transition: opacity 0.3s ease;
}

.homevision:hover .overlay-item a {
  opacity: 1;
  pointer-events: auto;
}

.homevision:hover .overlay-item .overlay-item-icon {
  opacity: 1;
}

/* Add arrow automatically */
/* .homevision .overlay-item a::after {
  content: "→";
  transition: transform 0.3s ease;
} */

/* Hover effects */
.homevision:hover .overlay-item a {
  opacity: 1;
}

.homevision:hover .overlay-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

/* .homevision .overlay-item a:hover::after {
  transform: translateX(4px);
} */

.front-page-homevision-title-group h2 {
  opacity: 0;
  transform: translateX(-60px);
  /* move right initially */
  transition: all 1s ease-out;
}

.homevision {
  opacity: 0;
  transform: translateY(50px);
  /* move up from bottom */
  transition: all 0.6s ease-out;
}

/* Optional: visible class triggers the animation */
.front-page-homevision-title-group h2.visible-h2 {
  opacity: 1;
  transform: translateX(0);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.visible-homevision {
  opacity: 1;
  transform: translateY(0);
}



@media (max-width: 1439px) and (min-width: 1024px) {
  .front-homevision-container {
    max-width: 896px;
  }

  .front-page-homevision-title-group h2 {
    font-size: 32px;
  }

  .homevision {
    width: 432px;
    height: 325px;
  }

  .homevision-container {
    height: 325px;
  }

  .homevision h3 {
    font-weight: 700;
    font-size: 32px;
  }

  .homevision .overlay {
    padding: 32px 0 0 32px;
  }

  .homevision .overlay-item a {
    font-size: 20px;
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .front-homevision-container {
    max-width: 688px;
  }

  .front-page-homevision-title-group h2 {
    font-size: 32px;
    font-weight: 700;
  }

  .homevision h3 {
    font-weight: 700;
    font-size: 28px;
  }

  .homevision-container {
    height: 254px;
    gap: 12px;
  }

  .homevision {
    height: 254px;
    width: 338px;
  }

  .homevision .overlay {
    padding: 24px 0 0 24px;
  }

  .homevision .overlay-item a {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .front-page-homevision-section {
    margin-top: 0px;
    width: 100%;

  }

  .front-page-homevision-title-group h2 {
    font-size: 26px;
  }

  .front-homevision-container {
    width: 100%;
    gap: 16px;
  }

  .homevision-container {
    flex-direction: column;
    padding: 0 16px;
    gap: 16px;
    width: 100%;
  }

  .homevision .overlay {
    padding: 48px 0 0 32px;
  }

  .homevision {
    width: 100%;
    border-radius: 4px;
    height: 343px;
  }

  .homevision h3 {
    top: 48px;
    left: 32px;

    font-weight: 700;
    font-size: 26px;
    line-height: 120%;
    letter-spacing: 0%;
  }

  .homevision .overlay-item a {
    font-size: 16px;
  }

  .homevision .overlay-item-container .overlay-item {
    font-weight: 600;
    font-size: 15px;

  }
  
  .homevision .overlay-item-container {
    max-width: 149px;
  }
}