.image-carousel {
  width: 100%;
  height: 700px;
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: 1s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  margin: 8rem 1vw 6rem 10vw;
  justify-content: space-evenly;
  gap: 20px;
  padding: 40px;
}

a {
  text-decoration: none;
}
.card {
  background-color: #fefefe;
  border-radius: 10px;
  overflow: hidden;
  flex: 1 1 calc(50% - 40px);
  max-width: 500px;
  margin: 10px;
  transition: 1s ease-in-out;
  position: relative;
  width: 280px;
  cursor: pointer;
  text-align: left;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
 
 
}

.card img {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  object-fit: cover;
}

.card h3 {
  font-size: 2rem;
  color: orange;
  margin: 20px;
}

.card p {
  margin: 20px;
  color: #666;
  line-height: 1.4rem;
}

.card:hover {
  box-shadow: 5px 10px 10px #212121;
  background: linear-gradient(135deg, white, #e9e6e6);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .image-carousel {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
  }
  .cards {
    gap: 3rem;
    margin: 20px;
    margin-top: 4rem;
    padding: 5px;
  }
  .card {
    flex: 1 1 100%;
  }
  .card p {
    font-size: 0.9rem;
    margin: 10px;
    color: #666;
    line-height: 1.3rem;
  }
  .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  .card h3 {
    margin: 10px;
  }
}




.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  border-radius: 8px;
  text-align: left;
  width: 70%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  padding: 30px 30px;
}

.popup img {
  padding: 20px;
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 30px;
}

#popup-title {
  color: black;
  display: inline-block;
  font-size: 3rem;
  font-weight: bold;
  padding-top: 20px;
  margin-bottom: 40px;
}

.close-btn {
  height: 10px;
  width: 10px;
  position: sticky;
  top: 0;
  left: 100%;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  color: black;
}

@media screen and (max-width: 768px) {
  .popup-content {
    width: 90%;
  }
  .card {
    width: 90%;
  }
}

@media screen and (max-width: 480px) {
  .popup-content {
    width: 90%;
    padding: 0px
  }
  .card {
    width: 100%;
  }
  #popup-title {
    color: black;
    display: inline-block;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;
  }
}



.info-text {
  position: absolute;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 3px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
}

.card:hover .info-text {
  opacity: 1;
}