@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

.card-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  margin: 0 -1rem;
}
.card-scroll .card {
  flex: 0 0 auto;
  width: 50%;
}

@media (max-width: 900px) {
  .desktop-ui {
    display: none;
  }
  .mobile-portrait-ui {
    display: block;
  }
  .potentialSection-mobile {
    padding: 0 16px;
    overflow-x: hidden;
    padding: 0 0.5rem;
  }

  /* Ensure mobile section takes full width */
  .potentialSection-mobile {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  /* Vertical scroll setup */
  .card-scroll {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space between cards */
    overflow-y: auto;
    max-height: 80vh; /* optional: control scroll height */
  }

  /* Style individual cards */
  .card-scroll .potentialcard {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }

  .potentialSection-mobile .heading2 {
    font-size: 1.75rem;
  }
  .potentialSection-mobile .potentialSubTitle {
    font-size: 1rem;
  }
  #card-container-mobile {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
  }

  .mobile-card {
    flex: 0 0 50%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    box-sizing: border-box;
    height: auto;
  }

  .mobile-card .program-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
  }

  .potentialcard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 1rem;
  }

  .potentialcard-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .potentialcard-content p {
    font-size: 0.95rem;
    margin: 0;
  }
  .mobile-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-scroll-container .featured-card,
  .card-scroll {
    flex: 0 0 50%;
    scroll-snap-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }

  .featured-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
  }

  .browse-courses-btn {
    padding: 10px 20px;
  }
  /* Ensure full-width section */
  .featuredCourseSection-mobile {
    /* width: 100%;
    box-sizing: border-box;
    margin-left: 18px; */
    margin-left: 15px;
  }

  /* Vertical scroll container */
  .mobile-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: 80vh; /* Adjust height if needed */
  }

  /* Style individual mobile cards */
  .mobile-scroll-container .featuredCourseCard {
    width: 350px;
    /* scroll-snap-align: center; */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }
}
