/* Featured Projects Section */
.projects-section {
  background-color: #c0d9cc;
  padding: 4rem 2rem;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-container h2 {
  font-size: 2.5rem;
  color: #2f4f40;
  text-align: center;
  margin-bottom: 0.5rem;
}

.projects-container .subheading {
  font-size: 1.1rem;
  text-align: center;
  color: #4d7462;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Scrollable Card Grid */
.card-scroll-wrapper {
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.card-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.card {
  flex: 0 0 300px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  scroll-snap-align: start;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.card h3 {
  font-size: 1.3rem;
  color: #2f4f40;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: #4d7462;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.card-link {
  font-size: 0.95rem;
  font-weight: bold;
  color: #00aa88;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Optional: Hide scrollbar for cleaner look */
.card-scroll::-webkit-scrollbar {
  height: 6px;
}

.card-scroll::-webkit-scrollbar-thumb {
  background: #c4d4cb;
  border-radius: 3px;
}
