/* Slider Container */
.slider-container {
  position: relative;
  width: 80%;
  max-width: 1200px;
  height: auto;
  margin: 20px auto;
  padding: 55px 50px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .slider-container {
    width: 95%;
    padding: 40px 30px;
  }
  .slider-btn.next-btn {
    display: none;
  }
  .slider-btn.prev-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .slider-container {
    width: 90%;
    padding: 30px 20px;
  }

  .card {
    flex: 0 0 calc(50% - 10PX); /* Two cards per row with spacing */
    max-width: calc(50% - 10px); /* Ensure two cards fit */
    height: auto;
    padding: 22px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  .card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  .card p {
    font-size: 1em;
    margin: 0 0 10px;
    color: #666;
  }

  h2 {
    font-size: 1.5em;
  }


}
/* Responsive Design for 480px Screen Size */
@media (max-width: 480px) {
  .slider-container {
    width: 100%;
    padding: 20px;
    overflow: hidden; /* Ensures content outside the container is hidden */
  }

  .card-slider {
    display: flex;
    flex-wrap: nowrap; /* Prevents wrapping of cards */
    overflow: hidden; /* Hides extra cards outside the visible area */
    width: 100%; /* Takes up full width of the container */
  }

  .slider {
    display: flex;
    transition: transform 0.5s ease; /* Smooth transition for sliding */
    width: 100%; /* Ensures the slider takes full width */
  }

  .card {
    flex: 0 0 100%; /* Forces each card to take up 100% of the width */
    max-width: 100%; /* Ensures the card fills the width */
    height: auto;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  .card p {
    font-size: 1em;
    margin: 0 0 10px;
    color: #666;
  }
}






/* Initial Animation State */
.intro-animate {
  opacity: 0;
  transform: translateX(-50px);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.intro-animate.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slider */
.card-slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  align-items: center;
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
  width: fit-content;
}

.card {
  flex: 0 0 calc((100% - 60px) / 4);
  max-width: calc((100% - 60px) / 4);
  background: #fff;
  border-radius: 15px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  height: 350px;
  transition: transform 0.3s ease-in-out, z-index 0.3s, opacity 0.3s;
}

.card:hover {
  transform: scale(1.05);
  z-index: 5;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card h3 {
  font-size: 1.2em;
  margin: 15px;
}

.card p {
  font-size: 1em;
  margin: 0 15px 15px;
  color: #666;
}

/* Button Styling */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid rgb(254, 101, 0);
  color: rgb(254, 101, 0);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms, color 250ms;
  z-index: 10;
}

.slider-btn:hover {
  background-color: rgb(254, 101, 0);
  color: #fff;
}

.prev-btn {
  left: -50px;
}

.next-btn {
  right: -50px;
}

h2 {
  margin-bottom: 2.5rem;
  text-align: center;
  color: #333; /* Slightly darker color for better visibility */
}
