/* ============================================
   百顺当教育 | Baishundang Education
   全局样式表
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1B3A5C;
  --primary-light: #2A5A8C;
  --primary-dark: #0F2440;
  --accent: #C41E3A;
  --accent-light: #E8455C;
  --gold: #C8963E;
  --gold-light: #E0B860;
  --bg: #FBF9F6;
  --bg-warm: #F5F0EB;
  --bg-card: #FFFFFF;
  --text: #2C2C2C;
  --text-muted: #6B6B6B;
  --text-light: #999999;
  --border: #E8E3DC;
  --border-light: #F0EDE8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --font-heading: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", "Songti SC", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  border-radius: 6px;
}

.nav-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.nav-logo .logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0;
  font-family: var(--font-body);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--text);
  transition: all 0.25s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(27,58,92,0.06);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.nav-phone svg {
  width: 18px;
  height: 18px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* --- Page Header --- */
.page-header {
  margin-top: var(--nav-height);
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.02);
  border-radius: 50%;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,0.9);
}

.page-header .breadcrumb a:hover {
  color: white;
}

/* --- Section Common --- */
.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--bg-warm);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-tag {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(196,30,58,0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196,30,58,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-gold {
  background: var(--gold);
  color: white;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,150,62,0.3);
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg-warm);
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ============================================
   HOME PAGE
   ============================================ */

/* --- Hero --- */
.hero {
  margin-top: var(--nav-height);
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #F5F0EB 0%, #EDE4D8 40%, #E8DDD0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(27,58,92,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  right: 10%;
  bottom: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(196,30,58,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-content h1 .accent {
  color: var(--accent);
  position: relative;
}

.hero-content h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(196,30,58,0.12);
  border-radius: 4px;
  z-index: -1;
}

.hero-content .hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card .stat-number .unit {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.stat-card .stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  width: 320px;
  height: 320px;
  background: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 12px solid rgba(27,58,92,0.04);
  position: relative;
}

.hero-badge .badge-inner {
  font-family: var(--font-heading);
  font-size: 52px;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
}

.hero-badge .badge-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 4px;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  opacity: 0.4;
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: rgba(27,58,92,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Program Overview --- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.program-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.program-card.hot::before {
  background: var(--accent);
}

.program-card .program-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.program-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}

.program-card .program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.program-card .tag {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--bg-warm);
  color: var(--text-muted);
  border-radius: 4px;
}

.program-card .program-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.program-card .program-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- Book Preview --- */
.book-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.book-preview-card {
  text-align: center;
}

.book-cover {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #f0ebe0, #e8dcc8);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.book-cover::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  opacity: 0.3;
}

.book-cover .cover-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.book-cover .cover-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

.book-cover .cover-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.book-preview-card .book-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 14px;
}

.book-preview-card .book-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Testimonial Preview --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-light);
}

.testimonial-card .testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.testimonial-card .testimonial-info h4 {
  font-size: 15px;
  font-weight: 600;
}

.testimonial-card .testimonial-info span {
  font-size: 12px;
  color: var(--gold);
  background: rgba(200,150,62,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.testimonial-card .testimonial-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  font-style: italic;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0F2A4A 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.02);
  border-radius: 50%;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  position: relative;
}

.cta-banner .cta-phone {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
}

.cta-banner .cta-phone span {
  color: var(--gold-light);
}

/* ============================================
   PROGRAMS PAGE
   ============================================ */

.program-category {
  margin-bottom: 60px;
}

.program-category:last-child {
  margin-bottom: 0;
}

.program-category h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

.program-category .category-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-left: 20px;
}

.course-phase {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.course-phase h4 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-phase h4 .phase-num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.course-phase p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.course-phase .phase-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.course-phase .phase-feature {
  font-size: 12px;
  padding: 4px 12px;
  background: rgba(27,58,92,0.05);
  color: var(--primary-light);
  border-radius: 4px;
  font-weight: 500;
}

.exam-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.exam-type-tab {
  padding: 10px 24px;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.exam-type-tab:hover,
.exam-type-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(27,58,92,0.04);
}

/* Two-column layout for programs */
.programs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .programs-two-col {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BOOKS PAGE
   ============================================ */

.book-series {
  margin-bottom: 60px;
}

.book-series:last-child {
  margin-bottom: 0;
}

.book-series h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.book-series h3 .series-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.book-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.book-item {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}

.book-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.book-item .book-cover-visual {
  height: 240px;
  background: linear-gradient(135deg, #f5f0eb, #e8ddd0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.book-item .book-cover-visual .cover-icon {
  font-size: 56px;
  margin-bottom: 8px;
}

.book-item .book-cover-visual .cover-label {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.book-item .book-cover-visual::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
}

.book-item .book-info {
  padding: 20px;
}

.book-item .book-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.book-item .book-info .book-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.book-item .book-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   TEACHERS PAGE
   ============================================ */

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.teacher-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
  text-align: center;
}

.teacher-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.teacher-avatar {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-warm), #e5ddd0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
}

.teacher-avatar .teacher-initial {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--text-muted);
}

.teacher-info {
  padding: 24px 20px;
}

.teacher-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.teacher-info .teacher-title {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.teacher-info .teacher-specialty {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}

.teacher-info .specialty-tag {
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(27,58,92,0.05);
  color: var(--primary-light);
  border-radius: 4px;
}

.teacher-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   CASES PAGE
   ============================================ */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}

.case-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.case-card .case-badge {
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #0F2A4A 100%);
  color: white;
  position: relative;
}

.case-card .case-badge .case-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.case-card .case-badge .case-exam {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.case-card .case-badge .case-score {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-light);
  margin-top: 4px;
}

.case-card .case-body {
  padding: 24px;
}

.case-card .case-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.case-card .case-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.case-card .case-body .case-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

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

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 16px;
}

.about-text .motto {
  padding: 20px 24px;
  background: rgba(196,30,58,0.04);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.about-text .motto p {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0;
}

.about-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
}

.info-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-info .contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
}

.contact-info .contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(27,58,92,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* --- Links --- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}

.link-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.link-card .link-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-warm);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.link-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.link-card span {
  font-size: 12px;
  color: var(--text-light);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: white;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 4px;
}

.footer-col h4 {
  font-size: 15px;
  color: white;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom p {
  margin-bottom: 4px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.8);
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .book-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .book-list { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .about-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .menu-toggle { display: flex; }
  
  .hero { min-height: auto; padding: 40px 0; }
  .hero-content h1 { font-size: 32px; }
  .hero-badge { width: 240px; height: 240px; }
  .hero-badge .badge-inner { font-size: 38px; }
  
  .features-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .book-preview-grid { grid-template-columns: 1fr 1fr; }
  .book-list { grid-template-columns: 1fr 1fr; }
  .teacher-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 26px; }
  
  .hero-stats { grid-template-columns: 1fr; }
}

/* --- Mobile Nav (when toggled) --- */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: white;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* --- Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
