/* ========= STORIES PAGE ========= */

.stories-page {
  --st: #0077B6;
  --st-dark: #005A8C;
  --st-bg: #EBF5FB;
  --st-soft: rgba(0, 119, 182, 0.1);
}

.page-main--stories {
  padding-top: 0;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 72px;
}

.st-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.st-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--st);
  margin-bottom: 10px;
}
.st-eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--st);
  border-radius: 2px;
}

.st-section-head {
  margin-bottom: 28px;
}
.st-section-head h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.5vw, 30px);
  color: #1A202C;
  margin: 0 0 8px;
}
.st-section-head p {
  font-size: 15px;
  color: #718096;
  line-height: 1.65;
  max-width: 640px;
  margin: 0;
}

/* Stats strip */
.st-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 28px 24px;
  background: linear-gradient(135deg, var(--st-bg) 0%, #fff 100%);
  border: 1px solid rgba(0,119,182,0.12);
  border-radius: 20px;
}
.st-stat {
  text-align: center;
  min-width: 100px;
}
.st-stat .n {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--st);
  line-height: 1;
}
.st-stat .l {
  font-size: 13px;
  font-weight: 600;
  color: #718096;
  margin-top: 6px;
}
.st-stat--text .n {
  font-size: 22px;
  letter-spacing: -0.02em;
}

/* Featured story cards */
.st-story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.st-milestones-testimonials {
  margin-bottom: 8px;
}

/* Featured story cards — card styles */
.st-story-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
}
.st-story-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--st);
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 2;
}
.st-story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,55,90,0.12);
  border-color: rgba(0,119,182,0.22);
}
.st-story-card:hover::before { opacity: 1; }
.st-story-card:hover .st-story-img img { transform: scale(1.05); }
.st-story-card:hover .st-story-link { color: var(--st); gap: 10px; }

.st-story-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #e8f4fc;
}
.st-story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}
.st-story-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: var(--st);
  box-shadow: 0 4px 14px rgba(0,55,90,0.1);
}
.st-story-tag--scholarship {
  color: #D97706;
  background: rgba(255,248,236,0.95);
}

.st-story-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.st-story-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: #1A202C;
  margin: 0 0 10px;
}
.st-story-body p {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.st-story-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #4A5568;
  transition: color 0.2s ease, gap 0.2s ease;
}
.st-story-link i { font-size: 11px; }

/* Videos section */
.st-videos {
  background: var(--st-bg);
  padding: 48px 0;
  margin-bottom: 0;
}
.st-videos .st-section-head {
  text-align: center;
  margin-bottom: 32px;
}
.st-videos .st-section-head p {
  margin-left: auto;
  margin-right: auto;
}
.st-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.st-video-card {
  display: block;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.st-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,55,90,0.1);
}
.st-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1A202C;
}
.st-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: opacity 0.25s ease, transform 0.35s ease;
}
.st-video-card:hover .st-video-thumb img {
  opacity: 1;
  transform: scale(1.03);
}
.st-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,55,90,0.15);
  transition: background 0.25s ease;
}
.st-video-card:hover .st-video-play { background: rgba(0,55,90,0.28); }
.st-video-play i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--st);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding-left: 3px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.st-video-body {
  padding: 16px 18px 18px;
}
.st-video-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1A202C;
  margin: 0 0 6px;
  line-height: 1.35;
}
.st-video-body p {
  font-size: 13px;
  color: #718096;
  line-height: 1.5;
  margin: 0;
}

/* CTA band */
.st-cta {
  max-width: 1280px;
  margin: 48px auto 0;
  padding: 0 40px;
}
.st-cta-band {
  background: linear-gradient(135deg, var(--st) 0%, var(--st-dark) 100%);
  border-radius: 22px;
  padding: 40px;
  text-align: center;
  color: #fff;
}
.st-cta-band h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}
.st-cta-band p {
  font-size: 15px;
  opacity: 0.88;
  max-width: 520px;
  margin: 0 auto 22px;
  line-height: 1.65;
}

/* Story detail article */
.page-main--story-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 40px 72px;
}
.st-article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--st);
  margin-bottom: 28px;
  text-decoration: none;
}
.st-article-back:hover { color: var(--st-dark); }
.st-article-img {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 12px 32px rgba(0,55,90,0.08);
}
.st-article-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 320px;
}
.st-article .prose p {
  font-size: 16px;
  line-height: 1.75;
  color: #4A5568;
  margin-bottom: 18px;
}
.st-article .prose ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #4A5568;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .st-inner, .st-cta { padding-left: 20px; padding-right: 20px; }
  .st-story-grid { grid-template-columns: 1fr; }
  .st-story-img { height: 170px; }
  .st-stats { gap: 28px; }
  .page-main--story-article { padding: 36px 20px 56px; }
}
