  /* Outer section wrapper */
  .scroll-section {
    position: relative;
    overflow: hidden;
    padding: 20px 20px;
    background-color: white;
    margin-top: 40px;
  }

  /* Scroll buttons styled like Apple */
  .scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #d2d2d7;
    border: 1px solid #d2d2d7;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.1);
    transition: background-color 0.25s ease, border-color 0.25s ease;
    z-index: 10;
    user-select: none;
    padding: 0;
  }

  .scroll-button:hover {
    background-color: #f5f5f7;
    border-color: #a1a1a6;
  }

  .scroll-button.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .scroll-button.left {
    left: 10px;
  }

  .scroll-button.right {
    right: 10px;
  }

  /* Scrollable container */
  .card-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
  }

  .card-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  /* Each card */
  .card {
    position: relative;
    z-index: 0; 
    flex: 0 0 360px;
    height: 500px;
    background-color: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-top: 10px;
  }

  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }

  /* Card content with flex to push image to bottom */
  .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between; /* Text top, image bottom */
    gap: 10px;
  }

  /* Headings and paragraph */
  .card-content h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #004B40;
  }

  .card-content p {
    margin: 0;
    font-size: 1rem;
    color: #333;
    flex-grow: 1; /* take up space so image is pushed down */
  }

  /* Image styling */
  .card-content img {
    width: 100%;
    max-height: 400px;
    border-radius: 10px;
    object-fit: cover;
    align-self: flex-end; /* bottom-right alignment */
  }

  @media (max-width: 900px) {
    .card {
      flex: 0 0 320px;
      height: 440px;
    }

    .card-content img {
      max-height: 300px;
    }
  }

  @media (max-width: 640px) {
    .scroll-section {
      padding: 10px 14px;
    }

    .scroll-button {
      display: none;
    }

    .card-track {
      gap: 14px;
      scroll-padding: 10px;
    }

    .card {
      flex: 0 0 78vw;
      min-width: 260px;
      height: auto;
    }

    .card-content {
      padding: 16px;
      gap: 12px;
    }

    .card-content img {
      max-height: 220px;
    }
  }
