/* content-page.css — Shared styles for content-heavy sub-pages
   (exchange-program sub-pages, etc.)
   Pages link this in addition to nav.css.
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --magenta: #ff0097;
  --magenta-dark: #c4008a;
  --grad: linear-gradient(135deg, #ff0097 0%, #c4008a 100%);
  --dark: #0e0e16;
  --card: #1a1a26;
  --white: #ffffff;
  --muted: #9999b0;
  --border: rgba(255,255,255,0.08);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', 'Inter', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}
html[data-theme="light"] body.content-page {
  background: #fdf8f0 !important;
  color: #1a1a2a !important;
}
a { text-decoration: none; color: var(--magenta); transition: color 0.15s; }
a:hover { color: #ff4dbb; }
img { max-width: 100%; display: block; }
.nav-spacer { height: 64px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Breadcrumb bar */
.breadcrumb-bar {
  padding: 14px 0;
  background: rgba(255,0,151,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb-bar a { color: var(--magenta); }
html[data-theme="light"] .breadcrumb-bar { background: rgba(255,0,151,0.04); color: rgba(20,20,40,0.6); }

/* Page hero */
.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255,0,151,0.10) 0%, transparent 60%);
}
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,0,151,0.12);
  border: 1px solid rgba(255,0,151,0.35);
  border-radius: 50px; padding: 6px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--magenta);
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 14px;
}
.page-hero .lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 760px; line-height: 1.7;
}
html[data-theme="light"] .page-hero h1 { color: #1a1a2a; }
html[data-theme="light"] .page-hero .lead { color: rgba(20,20,40,0.78); }

/* Content body */
.content { padding: 64px 0 96px; }
.content h2 {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em;
  margin: 56px 0 14px; padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,0,151,0.30);
  color: #fff;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-size: 1.1rem; font-weight: 700;
  margin: 28px 0 10px; color: #fff;
}
.content p { font-size: 1rem; color: rgba(255,255,255,0.80); margin-bottom: 14px; }
.content ul, .content ol { margin: 0 0 18px 24px; color: rgba(255,255,255,0.80); }
.content li { margin-bottom: 8px; padding-left: 6px; }
.content li::marker { color: var(--magenta); }
.content strong { color: #fff; }
html[data-theme="light"] .content h2 { color: #1a1a2a; }
html[data-theme="light"] .content h3 { color: #1a1a2a; }
html[data-theme="light"] .content p,
html[data-theme="light"] .content ul,
html[data-theme="light"] .content ol,
html[data-theme="light"] .content li { color: rgba(20,20,40,0.80); }
html[data-theme="light"] .content strong { color: #0c0c18; }

/* Callouts */
.callout {
  background: rgba(255,0,151,0.08);
  border-left: 3px solid var(--magenta);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
  font-size: 0.96rem;
}
.callout.warn { background: rgba(224,123,16,0.10); border-left-color: #e07b10; }
.callout p:last-child { margin-bottom: 0; }
html[data-theme="light"] .callout { background: rgba(255,0,151,0.06); }
html[data-theme="light"] .callout.warn { background: rgba(224,123,16,0.08); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table {
  width: 100%; border-collapse: collapse; min-width: 480px;
  background: var(--card); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
}
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th {
  background: rgba(255,0,151,0.08);
  font-weight: 700; font-size: 0.85rem;
  color: var(--magenta); letter-spacing: 0.5px;
}
td { font-size: 0.92rem; color: rgba(255,255,255,0.85); }
td strong { color: #fff; }
tr:last-child td { border-bottom: none; }
html[data-theme="light"] table {
  background: #fff; border-color: rgba(20,20,40,0.10);
  box-shadow: 0 4px 14px rgba(20,20,40,0.05);
}
html[data-theme="light"] th { background: rgba(255,0,151,0.05); }
html[data-theme="light"] td { color: rgba(20,20,40,0.85); border-bottom-color: rgba(20,20,40,0.08); }
html[data-theme="light"] td strong { color: #0c0c18; }

/* Step cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.step-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 20px;
  position: relative;
}
.step-num {
  position: absolute; top: -12px; left: 18px;
  width: 30px; height: 30px;
  background: var(--grad); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(255,0,151,0.40);
}
.step-card h4 { font-size: 1rem; font-weight: 700; margin: 8px 0 6px; color: #fff; }
.step-card p { font-size: 0.88rem; color: rgba(255,255,255,0.72); line-height: 1.6; }
html[data-theme="light"] .step-card {
  background: #fff; border-color: rgba(20,20,40,0.10);
  box-shadow: 0 2px 12px rgba(20,20,40,0.04);
}
html[data-theme="light"] .step-card h4 { color: #1a1a2a; }
html[data-theme="light"] .step-card p { color: rgba(20,20,40,0.72); }

/* CTA */
.cta-band {
  margin-top: 64px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(255,0,151,0.10) 0%, rgba(255,0,151,0.03) 100%);
  border: 1px solid rgba(255,0,151,0.25);
  border-radius: 20px;
  text-align: center;
}
.cta-band h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; color: #fff; }
.cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 20px; }
html[data-theme="light"] .cta-band {
  background: linear-gradient(135deg, rgba(255,0,151,0.06) 0%, rgba(255,0,151,0.02) 100%);
  border-color: rgba(255,0,151,0.30);
}
html[data-theme="light"] .cta-band h3 { color: #1a1a2a; }
html[data-theme="light"] .cta-band p { color: rgba(20,20,40,0.78); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grad); color: #fff;
  padding: 13px 28px; border-radius: 50px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(255,0,151,0.35);
  transition: transform 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  background: #06AF49; color: #fff;
  padding: 13px 28px; border-radius: 50px;
  font-size: 14px; font-weight: 700;
  transition: transform 0.2s;
}
.btn-line:hover { transform: translateY(-2px); color: #fff; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Card grids (used by hubs) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(255,0,151,0.35); transform: translateY(-2px); }
.feature-card h4 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.02rem; font-weight: 700;
  margin-bottom: 8px; color: #fff;
}
.feature-card p { font-size: 0.9rem; color: rgba(255,255,255,0.72); line-height: 1.6; margin: 0; }
html[data-theme="light"] .feature-card {
  background: #fff; border-color: rgba(20,20,40,0.10);
  box-shadow: 0 2px 12px rgba(20,20,40,0.04);
}
html[data-theme="light"] .feature-card h4 { color: #1a1a2a; }
html[data-theme="light"] .feature-card p { color: rgba(20,20,40,0.72); }
