.cards-container {
  overflow: hidden;
  position: relative;
}

.cards-wrapper {
  display: flex;
  gap: 48px;
  transition: transform 0.5s ease;
}

.card {
  flex: 0 0 400px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-image {
  position: relative;
  height: 388px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f9f9f9; 
}

.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto; 
}


.card-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 16px;
  background: rgba(240, 242, 239, 0.54);
  color: var(--text-light);
  backdrop-filter: blur(4px);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-meta {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.learn-more {
  font-size: 14px;
  color: var(--green-900);
  font-weight: 500;
}

.learn-more:hover {
  color: var(--text-black);
}

.navigation {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  margin-top: 40px;
}

.nav-btn {
  width: 56px;
  height: 40px;
  border: 2px solid var(--green-1000);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
  color: var(--green-1000);
}

.nav-btn:hover:not(:disabled) {
  background-color: var(--green-200);
  border-color: transparent;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .card {
    flex: 0 0 300px;
  }

  .cards-wrapper {
    gap: 20px;
  }

  .card-image {
    height: 360px;
  }
}
