/* === Generated by Trae Work === */

/* === Fonts === */
@font-face {
  font-family: 'Outfit';
  src: url('../_shared/fonts/Outfit-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Outfit';
  src: url('../_shared/fonts/Outfit-Bold.ttf') format('truetype');
  font-weight: 700;
}

/* === CSS Variables === */
:root {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --bg3: #f1f5f9;
  --ink: #1e293b;
  --muted: #64748b;
  --rule: #e2e8f0;
  --accent: #2563eb;
  --accent2: #f97316;
  --accent3: #10b981;
  --accent4: #8b5cf6;
  --accent5: #ec4899;
  --grad-1: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
  --grad-2: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  --grad-3: linear-gradient(135deg, #10b981 0%, #2563eb 100%);
  --font: 'Outfit', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max: 1200px;
  --nav-h: 72px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* === School Banner === */
.school-banner {
  background: #3b5998;
  padding: 0.6rem 2rem;
  position: relative;
  z-index: 1001;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.school-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow: hidden;
}
.school-logo-img {
  width: auto;
  height: 62px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}
.school-banner-title {
  font-size: 2rem;
  color: #ffd54f;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
  .school-banner { padding: 0.5rem 1rem; }
  .school-logo-img { height: 46px; }
  .school-banner-title { font-size: 1.15rem; letter-spacing: 0.03em; }
}
@media (max-width: 480px) {
  .school-logo-img { height: 38px; }
  .school-banner-title { font-size: 0.95rem; }
}

/* === Navigation === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}
.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.nav-logo svg {
  width: 32px;
  height: 32px;
}
.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  transition: all 0.25s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a:hover {
  color: var(--accent);
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.12);
}
.nav-links a.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
}
.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-1);
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.85) 0%, rgba(139,92,246,0.8) 50%, rgba(249,115,22,0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 4rem 2rem;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 700px;
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.hero-decor {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}
.hero-decor-1 {
  width: 400px;
  height: 400px;
  background: #f97316;
  top: -100px;
  right: -100px;
}
.hero-decor-2 {
  width: 300px;
  height: 300px;
  background: #10b981;
  bottom: -50px;
  left: 10%;
}

/* === Section Common === */
.section {
  padding: 5rem 2rem;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--grad-1);
}
.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 1rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* === Number badges for section numbering === */
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-right: 0.75rem;
  flex-shrink: 0;
}
.num-1 { background: var(--accent); }
.num-2 { background: var(--accent2); }
.num-3 { background: var(--accent3); }
.num-4 { background: var(--accent4); }
.num-5 { background: var(--accent5); }
.num-6 { background: var(--grad-2); }

/* === Stats Row === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}
.stat-card {
  background: var(--bg2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s;
  border: 1px solid var(--rule);
}
.stat-card:hover {
  transform: translateY(-4px);
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* === Content Cards === */
.content-card {
  background: var(--bg2);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  border: 1px solid var(--rule);
  transition: box-shadow 0.3s, transform 0.25s;
}
.content-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.content-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.content-card h3 .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}
.content-card ul {
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}
.content-card li {
  margin-bottom: 0.5rem;
}
.content-card li::marker {
  color: var(--accent);
}

/* === Video Container === */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  margin: 1.5rem 0;
}
.video-container iframe,
.video-container video,
.video-container .video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  font-size: 1rem;
  gap: 1rem;
}
.video-placeholder .play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.video-placeholder .play-icon:hover {
  background: rgba(255,255,255,0.25);
}

/* === Info Grid === */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.info-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* === Feature Tag === */
.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}
.tag-blue { background: #dbeafe; color: #1d4ed8; }
.tag-orange { background: #ffedd5; color: #c2410c; }
.tag-green { background: #dcfce7; color: #15803d; }
.tag-purple { background: #f3e8ff; color: #7c3aed; }
.tag-pink { background: #fce7f3; color: #be185d; }

/* === Timeline === */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--rule);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 10px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg2);
  z-index: 1;
  transform: translateX(-4px);
}
.timeline-item .year {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.timeline-item .desc {
  color: var(--muted);
  font-size: 0.95rem;
}

/* === Award Card === */
.award-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--bg2);
  border: 1px solid var(--rule);
  margin-bottom: 1rem;
  transition: all 0.25s;
}
.award-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.award-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}
.award-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.award-info p {
  font-size: 0.85rem;
  color: var(--muted);
}
.award-image {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.award-image img {
  width: 280px;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--rule);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  background: var(--bg3);
}
.award-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.award-image-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform-origin: center center;
  cursor: zoom-in;
  transition: transform 0.1s ease;
  object-fit: contain;
}
.lightbox img.zoomed {
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
body.no-scroll {
  overflow: hidden;
}

@media (max-width: 768px) {
  .award-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .award-image {
    margin-left: 0;
    width: 100%;
    align-items: flex-start;
  }
  .award-image img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
  }
}

/* === Publication Card === */
.pub-card {
  background: var(--bg2);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  margin-bottom: 1rem;
  transition: all 0.25s;
}
.pub-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.pub-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.pub-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s;
  border: 1px solid var(--rule);
}
.gallery-item:hover {
  transform: scale(1.03);
}
.gallery-item .placeholder-content {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1rem;
}
.gallery-item .placeholder-content svg {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}
.gallery-caption {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* === Highlight Box === */
.highlight-box {
  border-radius: 16px;
  padding: 2rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}
.highlight-box::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    currentColor 10px,
    currentColor 11px
  );
}
.highlight-blue {
  background: #eff6ff;
  border-left: 4px solid var(--accent);
  color: var(--accent);
}
.highlight-orange {
  background: #fff7ed;
  border-left: 4px solid var(--accent2);
  color: var(--accent2);
}
.highlight-green {
  background: #f0fdf4;
  border-left: 4px solid var(--accent3);
  color: var(--accent3);
}
.highlight-purple {
  background: #faf5ff;
  border-left: 4px solid var(--accent4);
  color: var(--accent4);
}

/* === Section with colored background === */
.section-alt {
  background: var(--bg3);
}
.section-gradient {
  background: var(--grad-1);
  color: #fff;
}
.section-gradient .section-header h2 {
  color: #fff;
}
.section-gradient .section-header h2::after {
  background: rgba(255,255,255,0.5);
}
.section-gradient .section-header p {
  color: rgba(255,255,255,0.8);
}
.section-gradient .content-card {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.section-gradient .content-card h3 { color: #fff; }
.section-gradient .content-card p,
.section-gradient .content-card li { color: rgba(255,255,255,0.85); }

/* === Progress Bar === */
.progress-item {
  margin-bottom: 1.25rem;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.progress-bar {
  height: 10px;
  border-radius: 5px;
  background: var(--bg3);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease;
}

/* === Footer === */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 2rem;
  text-align: center;
}
.site-footer p {
  font-size: 0.9rem;
}

/* === Scroll to Top === */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 100;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover {
  background: #1d4ed8;
}

/* === Tab Navigation for Sub-sections === */
.tab-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}
.tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  border: 2px solid var(--rule);
  background: var(--bg2);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-grid-three { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    padding: 1rem;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 3rem 1rem; }
  .content-card { padding: 1.5rem; }
  .info-grid-three { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; padding: 0 1rem; }
  .section-header h2 { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .hero { min-height: 500px; }
}

/* === Utility === */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.icon-blue { background: #dbeafe; color: #1d4ed8; }
.icon-orange { background: #ffedd5; color: #c2410c; }
.icon-green { background: #dcfce7; color: #15803d; }
.icon-purple { background: #f3e8ff; color: #7c3aed; }
.icon-pink { background: #fce7f3; color: #be185d; }

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Breadcrumb === */
.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.5rem) 2rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.breadcrumb span {
  color: var(--rule);
}

/* === Sub-page Hero (compact) === */
.sub-hero {
  padding: calc(var(--nav-h) + 2rem) 2rem 2.5rem;
  background: var(--grad-1);
  color: #fff;
}
.sub-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sub-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: var(--max);
  margin: 0.5rem auto 0;
}

/* === Sub-page Navigation (side or top) === */
.sub-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}
.sub-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: 2px solid var(--rule);
  background: var(--bg2);
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}
.sub-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.sub-nav a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* === Directory Cards (for index page) === */
.dir-card {
  display: block;
  background: var(--bg2);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.dir-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.dir-card .dir-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.dir-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.dir-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.dir-card .dir-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
}
.dir-card .dir-children {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.dir-card .dir-children a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.dir-card .dir-children a:hover {
  color: var(--accent);
}

/* === Page content area === */
.page-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: calc(100vh - var(--nav-h) - 160px);
}

/* === Footer always at bottom === */
.site-footer {
  margin-top: auto;
}
