.card-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* z-index: 0; */
}

h2 {
  color: white;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card-container {
  display: flex;
  gap: 90px;
  overflow-x: hidden;
  scroll-behavior: fast;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
  padding: 20px 0;
}

.card-container::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 auto;
  width: 250px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 15px;
  color: white;
}

.card-title {
  margin-top: 0;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.card-description {
  font-size: 0.8em;
  opacity: 0.9;
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  padding: 8px 16px;
  background-color: #00a86b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.read-more:hover {
  background-color: #008080;
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 15px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.scroll-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.scroll-left {
  left: 20px;
}

.scroll-right {
  right: 20px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .card {
    width: 80%;
    margin: 0 auto;
  }

  .scroll-button {
    display: none; /* Optional: hide buttons on smaller screens */
  }
}
