/* ==============================
   SECTION WRAPPER
============================== */
.scroll-cards-section {
  max-width: 1112px;
  margin: 0 auto;
  padding: 64px 0px 10px;
}

/* ==============================
   SECTION TITLE
============================== */
.scroll-cards-title {
  font-family: "Open Sans", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 54px;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 48px;
}

/* ==============================
   WRAPPER
============================== */
.scroll-cards-wrapper {
  position: relative;
}

/* ==============================
   TRACK (DESKTOP SLIDER)
============================== */
.scroll-cards-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
}

.scroll-cards-track::-webkit-scrollbar {
  display: none;
}

/* ==============================
   CARD
============================== */
.scroll-card {
  width: 260px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  overflow: hidden;
  flex-shrink: 0;
  position: relative; /* needed for overlay link */
  cursor: pointer;
}

/* ==============================
   IMAGE
============================== */
.scroll-card img {
  width: 260px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

/* ==============================
   CONTENT
============================== */
.scroll-card-content {
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
}

/* ==============================
   TITLE
============================== */
.scroll-card h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #1a1a1a;
  margin: 0 0 12px;
}

/* ==============================
   DESCRIPTION
============================== */
.scroll-card p {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #333333;
  margin: 0 0 20px;
}

/* ==============================
   BUTTON (VISUAL)
============================== */
.scroll-card-btn {
  width: 132px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  color: #0a45bb;
  text-decoration: none;
  border: 1px solid #0a45bb;
  border-radius: 4px;
  background: transparent;
  margin-top: auto;
  align-self: center;
  position: relative;
  z-index: 3; /* stays above overlay */
}

/* FULL CARD CLICK OVERLAY */
.scroll-card-btn::after {
  content: "";
  position: absolute;
  inset: -200px -50px -50px -50px; /* safely covers full card */
  z-index: 2;
}

/* ==============================
   ARROWS
============================== */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #0a45bb;
  background: #ffffff;
  color: #0a45bb;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.scroll-arrow.left {
  left: -52px;
}

.scroll-arrow.right {
  right: -52px;
}

/* ==============================
   TABLET
============================== */
@media (max-width: 1280px) {
  .scroll-cards-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .scroll-arrow.left {
    left: -16px;
  }

  .scroll-arrow.right {
    right: -16px;
  }
}

/* ==============================
   MOBILE – 2 CARDS PER ROW (EQUAL BUTTON LINE)
============================== */
@media (max-width: 768px) {

  /* Grid instead of slider */
  .scroll-cards-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    overflow-x: hidden;
    padding-bottom: 0;
  }

  /* Equal-height cards */
  .scroll-card {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* Image */
  .scroll-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }

  /* Content stretches */
  .scroll-card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
  }

  /* Mobile title */
  .scroll-card h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    margin: 0 0 4px;
  }

  /* Mobile description */
  .scroll-card p {
    font-size: 14px;
    line-height: 20px;
    margin: 0 0 10px;
  }

@media (max-width: 768px) {
        .scroll-cards-title {
            font-family: "Open Sans", sans-serif;
            font-size: 36px;
            font-weight: 700;
            line-height: 49px;
            text-align: center;
            color: #1a1a1a;
            margin-bottom: 43px;
        }
        .scroll-cards-section {
    max-width: 1112px;
    margin: 0 auto;
    padding: 10px 10px 55px;
}
    }

  /* Button aligned */
  .scroll-card-btn {
    margin-top: auto;
    align-self: center;
  }

  /* Hide arrows on mobile */
  .scroll-arrow {
    display: none;
  }
}
