﻿.scrollable-section {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  overflow-x: auto; /* Enable horizontal scrolling */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  scroll-behavior: smooth; /* Smooth scrolling */
}

.scrollable-section::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.card-group {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  overflow-x: auto; /* Enable horizontal scrolling */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  scroll-behavior: smooth; /* Smooth scrolling */
}

.card-group::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card article {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card > article > h2 {
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 600;
  line-height: 2rem;
}

.card > article > p {
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem;
}

.card__img {
  border-radius: 2rem;
  width: 212px;
  height: 212px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  .card article {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .card {
    gap: 2rem;
  }
}
