@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=Noto+Serif+TC:wght@500;700&display=swap");
@import url("base.css");

:root {
  --header: #ffffff;
  --bg: #f2fafc; /* middle block from color.png */
  --footer: #21818f; /* bottom block from color.png */
  --text: #0f1115;
  --muted: #354257;
  --border: #d8e6ee;
  --accent: #121826;
  --accent-2: #f3c86b;
  --container: 1180px;
  --shadow: 0 12px 30px rgba(18, 24, 38, 0.08);
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans TC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.webview-banner {
  background: #1f6fbf;
  color: #ffffff;
}

.webview-banner__inner {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}

.webview-banner__btn {
  background: #ffffff;
  color: #1f6fbf;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .webview-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: var(--header);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(18, 24, 38, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text);
}

.logo-img {
  width: 220px;
  height: 80px;
  margin-left: -25px;
  object-fit: contain;
  display: block;
  padding-top: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-title {
  font-size: 16px;
}

.brand-tagline {
  font-size: 12px;
  color: var(--muted);
}

.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--text);
}

.menu a {
  padding: 10px 14px;
  border-radius: 10px;
  transition: color 0.2s ease;
}

.menu a:hover {
  color: #16a34a;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links img {
  width: 26px;
  height: 26px;
  display: block;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.social-links a:hover {
  background: rgba(18, 24, 38, 0.06);
}

.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  padding: 0;
}

.hero-banner {
  display: block;
  width: 100%;
  max-width: 100%;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 769px) {
  .hero {
    display: block;
  }

  .hero-media {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero {
    background: #21818f;
    min-height: calc(100vw * 0.794);
    padding: 0;
  }

  .hero-media {
    padding: 0;
  }

}

.intro-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.intro-header {
  justify-self: flex-start;
  text-align: left;
}

.intro-cards {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.intro-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px rgba(18, 24, 38, 0.08);
  color: var(--text);
}

.intro-card h3 {
  margin: 0 0 4px;
  font-size: clamp(18px, 2.4vw, 22px);
}

.intro-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
}

.intro-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.intro-icon svg {
  width: 34px;
  height: 34px;
}

.intro-blue .intro-icon {
  background: #2f6cea;
}

.intro-green .intro-icon {
  background: #229f85;
}

.intro-purple .intro-icon {
  background: #8b5cf6;
}

.intro-pink .intro-icon {
  background: #d94681;
}

.intro-orange .intro-icon {
  background: #f59e0b;
}

.intro-visual {
  justify-self: center;
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  padding: 12px;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(18, 24, 38, 0.12);
  align-self: stretch;
  display: flex;
}

.intro-visual img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
}

.intro-plan-card {
  margin-top: 24px;
  padding: 20px 22px;
  background: #fff6d8;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(18, 24, 38, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.intro-plan-text {
  text-align: center;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.intro-plan-text h3 {
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(20px, 2.5vw, 26px);
}

.intro-plan-text p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: clamp(16px, 2.2vw, 18px);
}

.intro-plan-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.intro-plan-card .btn.primary {
  background: #2f6cea;
  color: #ffffff;
  white-space: nowrap;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.intro-plan-card .btn.primary svg {
  width: 20px;
  height: 20px;
}

.slogan {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}

.slogan-text {
  font-size: 20px;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  margin: 0;
  color: var(--text);
}

.slogan-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-main {
  padding: 0;
  background: var(--bg);
}

:where(.hero, .slogan, .section) {
  scroll-margin-top: 77px; /* offset sticky nav;微調縮小預留 */
}

.section {
  padding: 30px 0 60px;
  background: var(--bg);
}

.section-header {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 28px;
  text-align: center;
  justify-self: center;
}

.section-header.tight {
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: 0.6px;
}

.section p {
  margin: 0;
  color: var(--muted);
}

.section-header p {
  font-size: clamp(17px, 2vw, 20px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  color: var(--text);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(18, 24, 38, 0.06);
  color: var(--accent);
  font-weight: 700;
}

.card h3 {
  margin: 0;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.resource-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resource-tabs {
  position: relative;
}

.resource-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: min(100%, 500px);
  margin: 0 auto;
}

.switch-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  flex: 0 0 auto;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.2;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  transition: color 0.2s ease, transform 0.2s ease;
}

.switch-btn:hover {
  color: #1fa38c;
}

.switch-btn.is-default,
.switch-btn.is-active {
  background: #1fa38c;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(18, 24, 38, 0.18);
  border-color: transparent;
}

.resource-type-tabs {
  margin: 18px 0 0;
}

.resource-panels {
  position: relative;
  margin-top: 30px;
}

.resource-carousel {
  position: relative;
  padding: 0 72px;
}

.resource-track-mask {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 6px 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}

.resource-track-mask::-webkit-scrollbar {
  display: none;
}

.resource-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: nowrap;
  padding-right: 16px;
  box-sizing: border-box;
}

.resource-track .case-card {
  flex: 0 0 min(100%, 360px);
  scroll-snap-align: start;
}

.panel-article .resource-track .case-card {
  flex-basis: min(100%, calc((100% - 16px) / 2));
}

.panel-video .resource-track .case-card,
.panel-graphic .resource-track .case-card {
  flex-basis: min(100%, calc((100% - 32px) / 3));
}

.resource-panel {
  display: none;
  padding: 6px 0;
}

.resource-panel.is-active {
  display: block;
}

.resource-panel-header {
  text-align: center;
  margin: 0 0 24px;
}

.resource-panel-header h3 {
  margin: 0 0 6px;
  font-size: clamp(21px, 2.4vw, 25px);
}

.resource-panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

.case-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--text);
}

.case-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #f7f9fb;
  background: var(--accent);
  font-weight: 700;
  letter-spacing: 0.4px;
}

.case-card h3 {
  margin: 12px 0 6px;
}

.case-card p {
  margin: 0;
  color: var(--muted);
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.resource-video-card .video-thumb {
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #e7eef6;
  display: block;
  position: relative;
  cursor: pointer;
}

.resource-video-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.resource-video-card .video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.resource-video-card .video-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.resource-video-card h3 {
  margin: 0 0 10px;
}

.resource-video-card .case-actions {
  justify-content: center;
  margin-top: auto;
}

.resource-watch {
  background: #1f8cd6;
  border-color: #1f8cd6;
  color: #ffffff;
  width: 100%;
  justify-content: center;
  padding: 13px 18px;
  gap: 8px;
  font-size: clamp(14px, 1.8vw, 16px);
}

.resource-watch:hover {
  background: #1874b3;
  border-color: #1874b3;
}

.resource-watch svg {
  width: 20px;
  height: 20px;
}

.resource-article-card {
  display: grid;
  grid-template-columns: clamp(140px, 40vw, 40%) 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 0;
  row-gap: 0;
  align-items: start;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.resource-article-card .article-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 140 / 208;
  grid-row: 1 / span 3;
  overflow: hidden;
  background: #e7eef6;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.resource-article-card .article-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.resource-article-card .article-thumb--placeholder {
  background: #e7eef6;
}

.resource-article-card .article-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.resource-article-card .article-body h3 {
  margin: 0 0 8px;
}

.resource-article-card .article-body p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.resource-article-card.hide-summary .article-body p {
  display: none;
}

.resource-article-card .case-actions {
  margin-top: 0;
  padding: 0 18px 16px;
  min-width: 0;
  width: 100%;
  grid-column: 2;
  grid-row: 3;
}

.article-link {
  border-color: #1fa38c;
  color: #1fa38c;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex-wrap: nowrap;
  max-width: 100%;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px clamp(8px, 2vw, 16px);
  font-size: clamp(11px, 2.6vw, 16px);
  gap: clamp(4px, 1.6vw, 8px);
}

.article-link:hover {
  background: rgba(31, 163, 140, 0.08);
  color: #188a76;
}

.article-link svg {
  width: 1em !important;
  height: 1em !important;
  flex: 0 0 1em;
}

.article-link span {
  font-size: 1em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-graphic-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.resource-graphic-card .graphic-thumb {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  background: #e7eef6;
  overflow: hidden;
}

.resource-graphic-card .graphic-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.resource-graphic-card .graphic-thumb--placeholder {
  background: #e7eef6;
}

.resource-graphic-card .graphic-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.resource-graphic-card h3 {
  margin: 0;
}

.resource-graphic-card p {
  margin: 0;
  color: var(--muted);
}

.resource-graphic-card .case-actions {
  justify-content: flex-start;
  gap: 10px;
  margin-top: auto;
}

.resource-download {
  background: #1fa38c;
  border-color: #1fa38c;
  color: #ffffff;
  box-shadow: none;
  font-size: clamp(14px, 1.8vw, 16px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.resource-download:hover {
  background: #188a76;
  border-color: #188a76;
}

.resource-download svg {
  width: 20px;
  height: 20px;
}

.resource-view {
  border-color: #1fa38c;
  color: #1fa38c;
  background: transparent;
  box-shadow: none;
  font-size: clamp(14px, 1.8vw, 16px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.resource-view:hover {
  background: rgba(31, 163, 140, 0.08);
  color: #188a76;
}

.resource-view svg {
  width: 20px;
  height: 20px;
}

.resource-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 31, 0.64);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 99;
}

.resource-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.resource-modal {
  position: relative;
  width: min(1100px, 92vw);
  height: min(88vh, 800px);
  background: #000;
  border-radius: 14px;
  overflow: visible;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.resource-modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.resource-modal-close {
  position: absolute;
  top: -38px;
  right: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.resource-modal-close:hover {
  color: #e5e7eb;
}

.resource-modal-open {
  overflow: hidden;
}

.partners-carousel {
  position: relative;
  padding: 0 72px;
  --partners-columns: 3;
  --partners-gap: 24px;
}

.partners-track-mask {
  overflow: hidden;
  width: 100%;
  padding: 6px 0;
}

.partners-track {
  display: flex;
  align-items: stretch;
  gap: var(--partners-gap);
  transition: transform 0.5s ease;
}

.partners-carousel.is-static .partners-track {
  justify-content: center;
}

.partner-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: transparent;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.partners-track .partner-card {
  flex: 0 0
    calc((100% - (var(--partners-columns) - 1) * var(--partners-gap)) / var(--partners-columns));
}

.partner-card:hover {
  border-color: #1fa38c;
  transform: translateY(-2px);
}

.partner-logo {
  height: 100px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
}

.partner-logo--compact {
  height: 84px;
  max-width: 95%;
}

.partner-logo--wide {
  height: 62px;
  max-width: 88%;
}

.course-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.card--course {
  padding-bottom: 10px;
}

.courses-banner {
  display: block;
  margin-top: 24px;
  border-radius: 18px;
  overflow: hidden;
}

.courses-banner img {
  display: block;
  width: 50%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .courses-banner img {
    width: 100%;
  }
}

.course-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-content {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.course-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.course-title-row h3 {
  flex: 1;
  min-width: 0;
}

.course-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 12px;
  background: #15803d;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.course-cta svg {
  width: 20px;
  height: 20px;
}

.course-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #f7f9fb;
  background: var(--accent);
  font-weight: 700;
  letter-spacing: 0.4px;
  width: fit-content;
}

.course-card h3 {
  margin: 0;
  font-size: clamp(19px, 2.3vw, 23px);
}

.course-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
}

.timeline-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
}

.timeline-tab {
  border: 1px solid #cfe0f0;
  background: #ffffff;
  color: #1f2a44;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.timeline-tab.is-active {
  background: #1f6fbf;
  border-color: #1f6fbf;
  color: #ffffff;
}

.timeline-tab:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.timeline-root {
  position: relative;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding: 6px 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.timeline-root.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

.timeline-root::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #e0ecf7 0%, #c6d9ed 100%);
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  gap: 18px;
}

.timeline-axis {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.timeline-dot {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f8cd6 0%, #4bb4ff 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(18, 24, 38, 0.18);
}

.timeline-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(18, 24, 38, 0.12);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  position: relative;
}

.timeline-card.is-left::after,
.timeline-card.is-right::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.timeline-card.is-left::after {
  right: -20px;
  border-left-color: #ffffff;
}

.timeline-card.is-right::after {
  left: -20px;
  border-right-color: #ffffff;
}

.timeline-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(14px, 1.9vw, 16px);
  letter-spacing: 0.3px;
}

.timeline-tag.tw {
  background: #e8f5e9;
  color: #1b8c50;
}

.timeline-tag.global {
  background: #e3eefb;
  color: #1f6fbf;
}

.timeline-tag::before {
  content: "•";
  font-size: 16px;
  line-height: 1;
}

.timeline-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.timeline-card li {
  line-height: 1.6;
}

.timeline-empty {
  min-height: 1px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1f6fbf;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(16, 41, 85, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    opacity 0.2s ease;
  z-index: 1000;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(16, 41, 85, 0.28);
  background: #195fb0;
}

.back-to-top:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 960px) {
  .timeline-root {
    gap: 20px;
  }

  .timeline-root::before {
    left: 24px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-axis {
    justify-self: start;
  }

  .timeline-dot {
    width: 64px;
    height: 64px;
  }

  .timeline-card {
    order: 1;
  }

  .timeline-card.is-left::after,
  .timeline-card.is-right::after {
    display: none;
  }
}

/* Override case-grid defaults for timeline root */
#timeline-root {
  display: grid;
  grid-template-columns: 1fr;
}

.timeline-source {
  display: block;
  margin: 50px auto 0 !important;
  color: #4b5563;
  font-size: 14px;
  text-align: center;
}

.stories-carousel {
  position: relative;
  padding: 0 72px;
}

.stories-track-mask {
  overflow: hidden;
  width: 100%;
  padding: 6px 0;
}

.stories-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  transition: transform 0.5s ease;
}

.story-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 280px;
  max-width: 360px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 24px 44px rgba(18, 24, 38, 0.14);
  overflow: hidden;
  display: grid;
  grid-template-rows: 220px 1fr;
  min-height: 520px;
}

.story-photo {
  background: #dfe8f5;
  position: relative;
}

.story-photo[data-video] {
  cursor: pointer;
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-photo--placeholder {
  background: linear-gradient(120deg, #e7ecf5 0%, #f5f8fc 100%);
}

.story-photo .ytp-large-play-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.story-photo .ytp-button {
  border: none;
}

.story-photo .ytp-large-play-button-red-bg {
  background: #ff0000;
}

.story-photo .ytp-large-play-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-style: solid;
  border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent #ffffff;
}

.story-card-body {
  padding: 18px 18px 20px;
  display: grid;
  gap: 12px;
  align-content: space-between;
}

.story-header {
  display: grid;
  gap: 6px;
}

.story-name {
  margin: 0;
  font-size: clamp(23px, 2.4vw, 26px);
  letter-spacing: 0.4px;
}

.story-role {
  color: #2b9a7f;
  font-weight: 700;
  font-size: clamp(15px, 1.8vw, 17px);
}

.story-history {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
  font-size: clamp(15px, 2vw, 17px);
  display: grid;
  gap: 6px;
}

.story-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
}

.story-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  font-size: clamp(14px, 1.8vw, 16px);
  box-shadow: 0 14px 28px rgba(18, 24, 38, 0.12);
}

.story-actions .btn svg {
  width: 20px;
  height: 20px;
}

.story-actions .btn.primary {
  background: #1f8cd6;
}

.story-actions .btn.ghost {
  background: #ffffff;
}

.stories-nav {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(18, 24, 38, 0.12);
  display: grid;
  place-items: center;
  color: #1f8cd6;
  font-size: 26px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  transform: translateY(-50%);
  z-index: 2;
}

.stories-nav[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  transform: translateY(-50%);
}

.stories-nav:hover {
  background: #1f8cd6;
  color: #ffffff;
  transform: translateY(calc(-50% - 2px));
}

.story-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 31, 0.64);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 99;
}

.story-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.story-modal {
  position: relative;
  width: min(900px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: visible;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.story-modal-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.story-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.story-modal-close:hover {
  color: #f2f6ff;
}

.story-modal-open {
  overflow: hidden;
}

.stories-nav:focus-visible {
  outline: 2px solid #1f8cd6;
  outline-offset: 2px;
}

.stories-nav.prev {
  left: 16px;
}

.stories-nav.next {
  right: 16px;
}

@media (max-width: 1024px) {
  .stories-carousel {
    padding: 0 48px;
  }

  .resource-carousel {
    padding: 0 48px;
  }

  .story-card {
    flex-basis: calc((100% - 16px) / 2);
    min-width: 260px;
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .stories-carousel {
    padding: 0 16px;
  }

  .resource-carousel {
    padding: 0 16px;
  }

  .panel-article .resource-track .case-card,
  .panel-video .resource-track .case-card,
  .panel-graphic .resource-track .case-card {
    flex-basis: 100%;
  }

  .stories-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
    transform: translateY(-50%);
  }

  .stories-nav.prev {
    left: 4px;
  }

  .stories-nav.next {
    right: 4px;
  }

  .story-card {
    flex-basis: 100%;
    max-width: none;
    grid-template-rows: 200px 1fr;
  }

  .story-actions {
    grid-template-columns: 1fr;
  }

  .partners-carousel {
    --partners-columns: 2;
    padding: 0 56px;
  }

  .intro-plan-text h3 {
    white-space: nowrap;
    font-size: 14px;
  }

  .intro-plan-text p {
    display: none;
  }

  .intro-plan-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .intro-plan-card .btn.primary {
    font-size: 12px;
    padding: 8px 10px;
  }
}

.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.about-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.about-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  color: var(--text);
}

.about-card ol {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.about-card strong {
  color: var(--text);
}

.about-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(18, 24, 38, 0.06);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  width: fit-content;
}

.site-footer {
  background: #21818f;
  color: #e8edf7;
  height: 65px;
  padding: 0;
  display: flex;
  align-items: center;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 32px 60px;
  align-items: center;
  height: 100%;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-copy {
  color: #e8edf7;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2px;
  white-space: nowrap;
  margin-left: 30px;
}

.footer-logo {
  height: 50px;
  width: auto;
  display: block;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
}

.footer-inner > .footer-social {
  align-self: center;
  transform: none;
}

.footer-social a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-1px);
  opacity: 0.8;
}

.footer-social img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.footer-phone {
  color: #d7dbe3;
  font-weight: 600;
  letter-spacing: 0.6px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 24px 30px;
  align-items: start;
}

.footer-col {
  display: grid;
  gap: 12px;
}

.footer-col h4 {
  margin: 0;
  font-size: 18px;
  color: #f9fafb;
  letter-spacing: 0.4px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  align-content: start;
}

.footer-col a {
  color: rgba(232, 237, 247, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 400;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 32px;
  color: rgba(232, 237, 247, 0.7);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1080px) {
  .footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .footer-logo,
  .footer-social {
    display: none;
  }

  .footer-copy {
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 960px) {
  .panel-video .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-article .case-grid {
    grid-template-columns: 1fr;
  }

  .panel-graphic .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .partners-carousel {
    padding: 0 40px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-inner > .footer-social {
    transform: none;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
  }

  .resource-switch {
    width: 100%;
  }

  .panel-video .case-grid {
    grid-template-columns: 1fr;
  }

  .panel-article .case-grid {
    grid-template-columns: 1fr;
  }

  .panel-graphic .case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .menu {
    gap: 12px;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .intro-layout {
    grid-template-columns: 1fr;
  }

  .intro-visual {
    max-width: 100%;
    order: -1;
  }

  .intro-plan-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    position: relative;
    height: 64px;
    padding: 10px 0;
    gap: 0;
  }

  .nav-right {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 20px 16px;
    background: var(--header);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 24px rgba(18, 24, 38, 0.12);
  }

  .site-nav.nav-open .nav-right {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .menu a {
    padding: 10px 12px;
    width: 100%;
  }

  .social-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-content {
    padding: 64px 0;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  /* Align all button text sizes to intro plan CTA on mobile */
  .btn,
  .story-actions .btn,
  .resource-watch,
  .article-link,
  .resource-download,
  .resource-view {
    font-size: 16px;
  }
}
