.hover-effect {
  position: relative;
  overflow: hidden;
}

.hover-effect::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0;
  border-radius: 10px;
  background-color: rgba(229, 231, 235, 0.4);
  z-index: 1; /* Lower z-index */
  transform: translateY(-50%);
}

.hover-effect:hover::before {
  height: 40px;
}

.hover-effect * {
  position: relative;
  z-index: 2; /* Higher z-index */
}


.dot {
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: gray;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Hide/Show dots/buttons on hover */
.carousel:hover .dot, .carousel:hover .control-prev, .carousel:hover .control-next {
    opacity: 1;
}

nav ul li a.active {
  background-color: rgba(229, 231, 235, 1); /* Change this to the color you want */
  padding: 10px 35px;
  border-radius: 20px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); }
}

.slider .slide-track {
    animation: scroll 40s linear infinite;
}

.slider .slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
