/* ===== Shared styles for story pages ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro TC", "PingFang TC", "Helvetica Neue", "Microsoft JhengHei", Arial, sans-serif;
  background: #ffffff; color: #1d1d1f;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
html { scroll-behavior: auto; }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 9999; background: #1d1d1f; border-bottom: 1px solid #000; }
.navbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.navbar-brand { font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; color: #fff; text-decoration: none; letter-spacing: 0.2px; white-space: nowrap; transition: opacity .2s ease; }
.navbar-brand:hover { opacity: 0.85; }
.navbar-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.navbar-links a { font-size: 14px; font-weight: 400; color: #fff; text-decoration: none; letter-spacing: 0.1px; white-space: nowrap; opacity: 0.65; transform-origin: center; transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1), font-weight .25s ease, text-shadow .25s ease; will-change: transform; }
.navbar-links a:hover { opacity: 1; transform: scale(1.06); }
.navbar-links a.active { opacity: 1; font-weight: 700; transform: scale(1.1); text-shadow: 0 0 12px rgba(255, 255, 255, 0.45); }
.navbar-cta { display: inline-block; padding: 8px 18px; background: #0071e3; color: #fff !important; font-size: 14px; font-weight: 500; border-radius: 980px; text-decoration: none; opacity: 1 !important; transform: none !important; text-shadow: none !important; transition: background .2s ease, transform .2s ease !important; white-space: nowrap; }
.navbar-cta:hover { background: #0077ed; transform: translateY(-1px) !important; }

/* Story Hero */
.story-hero { padding: clamp(48px, 8vw, 96px) clamp(22px, 5vw, 48px) clamp(64px, 10vw, 120px); }
.story-hero-inner { max-width: 1100px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: #5f8a6b; font-weight: 600; letter-spacing: 0.5px; margin: 0 0 24px 0; }
.breadcrumb a { color: inherit; text-decoration: none; opacity: 0.75; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.story-eyebrow { margin: 0 0 16px 0; font-size: clamp(12px, 1.3vw, 14px); color: #5f8a6b; font-weight: 700; letter-spacing: 1.5px; }
.story-headline { font-size: clamp(32px, 5.5vw, 64px); font-weight: 700; color: #1d1d1f; margin: 0 0 32px 0; letter-spacing: -0.02em; line-height: 1.1; }
.story-lede { font-size: clamp(18px, 2vw, 22px); color: #424245; line-height: 1.5; margin: 0; max-width: 680px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 36px; }
.story-avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; font-weight: 700; flex-shrink: 0; }
.story-meta-text p { margin: 0; }
.story-meta-name { font-size: 17px; font-weight: 600; color: #1d1d1f; }
.story-meta-role { font-size: 14px; color: #6e6e73; margin-top: 2px; }

/* Body */
.story-body { max-width: 720px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) clamp(22px, 5vw, 48px); }
.story-section { margin-bottom: clamp(48px, 7vw, 80px); }
.story-section:last-child { margin-bottom: 0; }
.story-chapter-eyebrow { margin: 0 0 16px 0; font-size: 12px; color: #86868b; font-weight: 700; letter-spacing: 1.5px; }
.story-chapter-title { font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: #1d1d1f; margin: 0 0 24px 0; letter-spacing: -0.015em; line-height: 1.2; }
.story-paragraph { font-size: clamp(17px, 1.7vw, 19px); color: #1d1d1f; line-height: 1.7; margin: 0 0 20px 0; }
.story-paragraph:last-child { margin-bottom: 0; }

/* Pull quote */
.pull-quote { margin: clamp(48px, 7vw, 72px) auto; padding: 0; border-left: 4px solid #5f8a6b; padding-left: clamp(20px, 3vw, 32px); }
.pull-quote-text { font-size: clamp(22px, 3vw, 32px); font-weight: 500; color: #1d1d1f; line-height: 1.4; margin: 0 0 16px 0; letter-spacing: -0.01em; }
.pull-quote-attr { font-size: 14px; color: #6e6e73; font-weight: 500; }

/* Stats */
.stats-section { background: #f5f5f7; padding: clamp(64px, 10vw, 120px) clamp(22px, 5vw, 48px); }
.stats-inner { max-width: 1100px; margin: 0 auto; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 2.5vw, 32px); margin-top: 40px; }
.stat-card { background: #fff; border-radius: 18px; padding: clamp(24px, 2.5vw, 32px); }
.stat-number { font-size: clamp(36px, 4vw, 52px); font-weight: 700; color: #5f8a6b; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 12px 0; word-break: keep-all; }
.stat-label { font-size: 14px; color: #424245; line-height: 1.55; margin: 0; }

/* CTA */
.story-cta { padding: clamp(64px, 10vw, 120px) clamp(22px, 5vw, 48px); text-align: center; max-width: 920px; margin: 0 auto; }
.story-cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: #1d1d1f; margin: 0 0 20px 0; letter-spacing: -0.02em; line-height: 1.15; }
.story-cta p { font-size: clamp(17px, 2vw, 21px); color: #424245; margin: 0 0 36px 0; line-height: 1.5; }
.btn-primary { display: inline-block; padding: 14px 28px; background: #1d1d1f; color: #fff; font-size: 16px; font-weight: 500; border-radius: 980px; text-decoration: none; border: 1px solid #1d1d1f; margin: 0 8px 10px; transition: background .2s ease, border-color .2s ease; }
.btn-primary:hover { background: #424245; border-color: #424245; }
.btn-secondary { display: inline-block; padding: 14px 28px; background: #fff; color: #1d1d1f; font-size: 16px; font-weight: 500; border-radius: 980px; text-decoration: none; border: 1px solid #1d1d1f; margin: 0 8px 10px; transition: background .2s ease, color .2s ease; }
.btn-secondary:hover { background: #1d1d1f; color: #fff; }

/* More stories carousel (Apple K12 style) */
.more-stories { border-top: 1px solid #d2d2d7; padding: clamp(64px, 10vw, 120px) 0; max-width: 100%; overflow: hidden; }
.more-stories h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  margin: 0 0 56px 0; letter-spacing: -0.015em;
  text-align: center; line-height: 1.15;
  padding: 0 clamp(22px, 5vw, 48px);
}
.carousel-viewport { padding: 0 clamp(22px, 5vw, 48px); overflow: hidden; }
.carousel-track {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.more-card {
  flex: 0 0 calc((100% - clamp(16px, 2vw, 32px) * 2) / 3);
  min-width: 280px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
@media (max-width: 900px) { .more-card { flex: 0 0 calc((100% - clamp(16px, 2vw, 32px)) / 2); } }
@media (max-width: 600px) { .more-card { flex: 0 0 100%; } }
.more-card-img {
  aspect-ratio: 4 / 3; border-radius: 16px;
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(56px, 8vw, 88px);
}
.more-card-tag { font-size: 14px; color: #424245; margin: 0 0 8px 0; line-height: 1.4; }
.more-card-title { font-size: clamp(18px, 1.8vw, 21px); font-weight: 700; color: #1d1d1f; line-height: 1.35; margin: 0 0 20px 0; letter-spacing: -0.01em; flex: 1; }
.more-card-btn {
  align-self: flex-start; padding: 9px 18px;
  background: transparent; color: #1d1d1f; font-size: 13px; font-weight: 500;
  border: 1px solid #1d1d1f; border-radius: 980px; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.more-card-btn:hover,
.more-card-btn:active { background: #1d1d1f; color: #fff; }

/* Carousel arrows */
.carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }
.carousel-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: #d8d8da; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; transition: background .2s ease, transform .2s ease;
}
.carousel-btn:hover:not(:disabled) { background: #1d1d1f; }
.carousel-btn:active:not(:disabled) { transform: scale(0.95); }
.carousel-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.carousel-btn svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .navbar-inner { height: 56px; gap: 12px; }
  .navbar-brand { font-size: 15px; }
  .navbar-links { gap: 14px; }
  .navbar-links a { font-size: 12px; }
  .navbar-cta { padding: 6px 14px; font-size: 12px; }
}
