:root {
  --bg: #f8f8fb;
  --bg-alt: #ffffff;
  --text: #222222;
  --muted: #666666;
  --accent: #c8102e;
  --border: #e1e1ec;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  /* background:  rgba(191, 214, 236, 0.967); */
  background: white;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow { max-width: 760px; }

.section { padding: 3.5rem 0; }
.section-light { background: var(--bg-alt); }

/* Header */
.site-header {
  background:  rgba(191, 214, 236, 0.967);
  /* background: rgba(9, 120, 223, 0.796); */
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.logo a {
  font-weight: 650;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
}
.logo-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}
.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}
.nav-link:hover {
  color: var(--text);
  border-bottom-color: var(--border);
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  /* background: radial-gradient(circle at top left, #ffffff, #eef0fb); */
  background: radial-gradient(circle at top left, #eef0fb, #eef0fb);
  border-bottom: 1px solid var(--border);
}
.hero-inner { text-align: left; }
.hero-title {
  font-size: clamp(2.3rem, 3vw, 2.8rem);
  margin-bottom: 0.8rem;
}
.hero-subtitle {
  font-size: 1.02rem;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}
.hero-actions {
  display: flex;
  gap: 0.9rem;
}
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: white;
  /* background: radial-gradient(circle at top left, #eef0fb, #eef0fb); */
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); }

/* Content */
h1, h2, h3 { margin-top: 0; }
h2 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.lead {
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.7;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.2s;
  transform: translateZ(0);
  transform-style: preserve-3d;
}

.card:hover {
  transform: translateZ(10px) scale(1);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.card h3 { margin-bottom: 0.4rem; }
.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.page-subtitle {
  color: var(--muted);
  margin-top: -0.4rem;
  margin-bottom: 1.6rem;
}
.page-content {
  line-height: 1.7;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  background: #f5f5fa;
  margin-top: 2rem;
}
.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .hero-inner { text-align: left; }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Team page */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-card {
  background: rgba(191, 214, 236, 0.967);
  border-radius: 16px;
  padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(9, 120, 223, 0.796);
  transition: transform 0.2s;
  transform: translateZ(0);
  transform-style: preserve-3d;
}
.team-card:hover {
  transform: translateZ(10px) scale(1);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.team-photo {
  width: 100%;
  border-radius: 12px;
  height: 180px;
  object-fit: cover;
  margin-bottom: 0.8rem;
  background: #ddd;
}

.team-role {
  margin: 0.1rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.team-affiliation {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.team-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--accent);
}

.team-link:hover {
  text-decoration: underline;
}

.team-note {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}


/* Apply page */

.apply-box {
  margin-top: 1.6rem;
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  background: #f1f3ff;
  border: 1px solid #d7dcff;
}

/* Schedule table */

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.7rem;
  vertical-align: top;
}

.schedule-table th {
  background: #f1f2fb;
  text-align: left;
}

.schedule-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}
