/* ==================================================================
   Guided — subjects rail  (LOCAL PREVIEW ONLY)
   Tall 4:5 cards on a horizontal rail, in the shape of Apple's poster
   carousels. Scroll-snap, edge-to-edge, no borders or shadows.
   ================================================================== */

.gs-subjects {
  background: #FFFFFF;
  padding: 24px 0 130px;
  overflow: hidden;
}

.gs-subjects-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 54px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.gs-subjects-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #0071E3;
  text-align: center;
}

.gs-subjects-head {
  margin: 16px 0 0;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.026em;
  color: #1D1D1F;
  text-align: center;
}

.gs-subjects-body {
  margin: 18px 0 0;
  font-size: 21px;
  line-height: 1.5;
  color: #6E6E73;
  text-align: center;
  max-width: 52ch;
}

/* ---- the rail ---- */

.gs-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 24px 8px;
  /* start the rail at the page gutter but let it run off the right edge */
  max-width: 1200px;
  margin: 0 auto;
}
.gs-rail::-webkit-scrollbar { display: none; }

.gs-card {
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: start;
}

.gs-card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}

/* the label sits in a gradient at the foot of the card */
.gs-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.34) 22%,
    rgba(0,0,0,0) 46%);
}

.gs-card-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  padding: 22px 20px;
}

.gs-card-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: #FFFFFF;
  text-align: left;
}

.gs-card-sub {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255,255,255,0.78);
  text-align: left;
}

@media (max-width: 1024px) {
  .gs-subjects { padding: 8px 0 78px; }
  .gs-subjects-intro { padding: 0 22px 34px; }
  .gs-subjects-body { font-size: 18px; }
  .gs-rail { gap: 14px; padding: 4px 22px 8px; }
  .gs-card { width: 200px; }
  .gs-card-name { font-size: 17px; }
  .gs-card-sub { font-size: 13px; }
}
