:root {
  --blue: #1a3a6e;
  --blue-dark: #0f2347;
  --blue-light: #2a5298;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --shadow: 0 4px 24px rgba(26, 58, 110, 0.12);
  --radius: 12px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

body[dir="rtl"] { font-family: 'Segoe UI', 'Tahoma', sans-serif; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Promo Banner */
.promo-banner {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-light));
  color: var(--white);
  text-align: center;
  padding: 10px 48px 10px 16px;
  font-size: 0.875rem;
  position: relative;
}
.promo-banner a { color: var(--gold-light); font-weight: 600; margin-left: 8px; }
.promo-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--white); opacity: 0.7; font-size: 1.2rem; padding: 4px 8px;
}
.promo-close:hover { opacity: 1; }
.promo-banner.hidden { display: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 16px;
}
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--gray-600);
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--blue); }
.nav a.active { font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--gray-200); font-size: 0.85rem;
  background: var(--white);
}
.lang-btn:hover { border-color: var(--blue); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 200px; max-height: 360px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.2s; z-index: 100;
}
.lang-switch.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 16px; text-align: left;
  font-size: 0.875rem; transition: background 0.15s;
}
body[dir="rtl"] .lang-dropdown button { text-align: right; }
.lang-dropdown button:hover { background: var(--gray-50); }
.lang-dropdown button.active { background: var(--gray-100); font-weight: 600; color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 50px; font-weight: 600;
  font-size: 0.9rem; transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #b8921f; }
.btn-outline {
  border: 2px solid var(--blue); color: var(--blue); background: transparent;
}
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1da851; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-800); transition: 0.3s;
}

/* Hero */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center;
  overflow: hidden; padding: 80px 0;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0; pointer-events: none;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; color: var(--white); }
.hero-badge {
  display: inline-block; background: rgba(201,162,39,0.2);
  border: 1px solid var(--gold); color: var(--gold-light);
  padding: 6px 16px; border-radius: 50px; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 20px;
}
.hero h1 span { color: var(--gold-light); }
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem); opacity: 0.9;
  margin-bottom: 32px; max-width: 560px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-tag {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px; border-radius: 50px; font-size: 0.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions .or-text { opacity: 0.7; font-size: 0.9rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 64px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--gold-light); }
.stat-num small { font-size: 1.5rem; }
.stat-label { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }

/* Course Cards */
.courses-strip {
  background: var(--white); margin-top: -60px; position: relative; z-index: 2;
  padding-bottom: 20px;
}
.courses-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.course-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 24px;
  border: 1px solid var(--gray-200); transition: transform 0.2s, box-shadow 0.2s;
  display: flex; gap: 16px; align-items: flex-start;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(26,58,110,0.18); }
.course-num {
  font-size: 2rem; font-weight: 800; color: var(--gold);
  line-height: 1; min-width: 48px;
}
.course-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--blue); }
.course-card p { font-size: 0.85rem; color: var(--gray-600); }
.course-card .arrow { color: var(--gold); font-weight: 700; margin-top: 8px; display: block; font-size: 0.85rem; }

/* Sections
   Use nth-of-type (not nth-child): chrome injects promo/header/nav before
   the first section, which previously made .page-hero an "even" child and
   overrode its blue background with gray-50 (white text became invisible). */
section { padding: 80px 0; }
section:nth-of-type(even):not(.hero):not(.testimonials):not(.cta-section):not(.page-hero):not(.page-cta) {
  background: var(--gray-50);
}

.section-label {
  display: inline-block; color: var(--gold); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800;
  color: var(--blue); margin-bottom: 16px; line-height: 1.2;
}
.section-desc {
  color: var(--gray-600); max-width: 640px;
  font-size: 1.05rem; margin-bottom: 48px;
}

/* Story */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story-visual {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: var(--radius); padding: 48px; text-align: center; color: var(--white);
  min-height: 320px; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
}
.story-visual h3 { font-size: 2.5rem; font-weight: 800; margin-bottom: 8px; }
.story-visual .from-to { display: flex; align-items: center; gap: 16px; margin-top: 24px; font-size: 0.95rem; }
.story-visual .plus { font-size: 1.5rem; color: var(--gold-light); font-weight: 700; }

/* Features */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card {
  display: block; color: inherit;
  background: var(--white); border-radius: var(--radius);
  padding: 32px 24px; border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.05rem; color: var(--blue); margin-bottom: 10px; font-weight: 700; }
.feature-card p { font-size: 0.9rem; color: var(--gray-600); }

/* Partnerships */
.partnership-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.partnership-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}
.partnership-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partnership-img {
  height: 160px; background: linear-gradient(135deg, var(--blue-light), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.3);
}
.partnership-body { padding: 24px; }
.partnership-tag {
  display: inline-block; background: var(--gray-100); color: var(--blue);
  font-size: 0.75rem; font-weight: 600; padding: 4px 10px;
  border-radius: 4px; margin-bottom: 10px;
}
.partnership-body h3 { font-size: 1.05rem; color: var(--blue); margin-bottom: 4px; }
.partnership-body .cn-name { color: var(--gold); font-size: 0.9rem; margin-bottom: 10px; }
.partnership-body p { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 12px; }
.partnership-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.partnership-tags span {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  font-size: 0.72rem; padding: 3px 8px; border-radius: 4px; color: var(--gray-600);
}

/* Testimonials */
section.testimonials,
.testimonials { background: var(--blue-dark); color: var(--white); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-label { color: var(--gold-light); }
.testimonials .section-label { color: var(--gold-light); }
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex; transition: transform 0.4s ease;
}
.testimonial-slide {
  min-width: 100%; padding: 0 12px;
}
.testimonial-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 32px; max-width: 700px; margin: 0 auto;
}
.testimonial-stars { color: var(--gold-light); font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-card blockquote {
  font-size: 1.05rem; line-height: 1.7; margin-bottom: 20px;
  font-style: italic; opacity: 0.95;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-flag { font-size: 1.5rem; }
.testimonial-author h4 { font-size: 0.95rem; font-weight: 700; }
.testimonial-author span { font-size: 0.8rem; opacity: 0.7; }
.slider-controls {
  display: flex; justify-content: center; gap: 12px; margin-top: 32px;
}
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: background 0.2s;
}
.slider-btn:hover { background: rgba(255,255,255,0.15); }

/* CTA */
section.cta-section,
.cta-section {
  text-align: center; padding: 80px 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
}
.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; font-weight: 800;
  color: var(--white);
}
.cta-section p {
  opacity: 0.9; margin-bottom: 32px; font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-section .btn-outline {
  border-color: var(--white); color: var(--white);
}
.cta-section .btn-outline:hover {
  background: var(--white); color: var(--blue);
}

/* Location */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.location-info h3 { font-size: 1.25rem; color: var(--blue); margin-bottom: 8px; }
.location-info .address { color: var(--gray-600); margin-bottom: 20px; }
.location-info .phone-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 600; font-size: 1.1rem; margin-bottom: 24px;
}
.location-info .phone-link:hover { color: var(--gold); }
.transport-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.transport-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; background: var(--gray-50); border-radius: var(--radius);
}
.transport-icon { font-size: 1.5rem; }
.transport-item h4 { font-size: 0.9rem; color: var(--blue); margin-bottom: 2px; }
.transport-item p { font-size: 0.8rem; color: var(--gray-600); }
.location-map {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-200); min-height: 360px;
}
.location-map iframe { width: 100%; height: 360px; border: 0; }

/* Partner Logos */
.partner-logos {
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: center; align-items: center;
}
.partner-logo {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 20px 32px;
  font-weight: 700; color: var(--blue); font-size: 0.95rem;
  min-width: 140px; text-align: center;
}

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-img {
  height: 180px; background: linear-gradient(135deg, var(--blue), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 2.5rem;
}
.news-body { padding: 20px; }
.news-date { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 8px; }
.news-body h3 { font-size: 1rem; color: var(--blue); margin-bottom: 8px; line-height: 1.4; }
.news-body p { font-size: 0.85rem; color: var(--gray-600); }
.news-tag {
  display: inline-block; margin-top: 12px;
  background: var(--gray-100); color: var(--blue);
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 4px;
}
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; flex-wrap: wrap; gap: 16px; }
.view-all { color: var(--blue); font-weight: 600; font-size: 0.9rem; }
.view-all:hover { color: var(--gold); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-item-icon { font-size: 1.3rem; }
.contact-item h4 { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 4px; }
.contact-item p { font-size: 0.95rem; color: var(--blue); font-weight: 500; }

.contact-form {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; border: 1px solid var(--gray-200); box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.25rem; color: var(--blue); margin-bottom: 8px; }
.contact-form .form-sub { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-600); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200);
  border-radius: 8px; font-size: 0.9rem; transition: border-color 0.2s;
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Footer */
.footer {
  background: var(--blue-dark); color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px;
  margin-bottom: 48px;
}
.footer-logo img { height: 60px; margin-bottom: 16px; border-radius: 50%; }
.footer-desc { font-size: 0.875rem; line-height: 1.7; opacity: 0.8; }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.875rem; opacity: 0.8; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { opacity: 0.7; }
.footer-bottom-links a:hover { opacity: 1; }

/* Floating WhatsApp */
.fab-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.fab-main {
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.fab-main:hover { transform: scale(1.08); }
.fab-panel {
  position: absolute; bottom: 68px; right: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s;
}
.fab-container.open .fab-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-panel h4 { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 12px; }
.fab-link {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px; border-radius: 8px; font-size: 0.875rem;
  transition: background 0.15s; text-align: left; color: var(--gray-800);
}
.fab-link-icon { font-size: 1.1rem; flex-shrink: 0; }
.fab-link:hover { background: var(--gray-50); }
.fab-link-whatsapp:hover { background: rgba(37, 211, 102, 0.12); color: #128c7e; }
.fab-link-wechat { border: none; background: none; cursor: pointer; font: inherit; }
.fab-link-wechat:hover { background: rgba(7, 193, 96, 0.12); color: #07c160; }

.wechat-modal {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.wechat-modal.open { opacity: 1; visibility: visible; }
.wechat-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.wechat-modal-content {
  position: relative; z-index: 1;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 24px 24px;
  max-width: 320px; width: 100%; text-align: center;
}
.wechat-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-100); color: var(--gray-600);
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.wechat-modal-close:hover { background: var(--gray-200); }
.wechat-modal-content h4 {
  font-size: 1.05rem; color: var(--blue); margin-bottom: 8px;
}
.wechat-modal-desc {
  font-size: 0.85rem; color: var(--gray-600); margin-bottom: 16px;
}
.wechat-qr {
  width: 220px; height: 220px; object-fit: contain;
  margin: 0 auto; border-radius: 8px;
  border: 1px solid var(--gray-200);
}

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden;
  transition: all 0.3s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; width: min(320px, 85vw);
  height: 100%; background: var(--white); padding: 24px;
  transform: translateX(100%); transition: transform 0.3s;
  overflow-y: auto;
}
body[dir="rtl"] .mobile-nav-panel { right: auto; left: 0; transform: translateX(-100%); }
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.mobile-nav-close { font-size: 1.5rem; padding: 4px; }
.mobile-nav-links a {
  display: block; padding: 14px 0; font-size: 1rem; font-weight: 500;
  color: var(--gray-800); border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active { color: var(--blue); }
.mobile-nav-links a.active { font-weight: 700; }
.mobile-nav .btn { width: 100%; margin-top: 24px; }

/* Responsive */
@media (max-width: 1024px) {
  .features-grid, .partnership-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header .btn-primary { display: none; }
  .mobile-nav { display: block; }

  .hero { min-height: auto; padding: 60px 0 100px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-num { font-size: 1.75rem; }

  .courses-strip { margin-top: -40px; }
  .courses-grid { grid-template-columns: 1fr; }

  .story-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .features-grid, .partnership-grid, .news-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .transport-grid { grid-template-columns: 1fr; }

  section { padding: 60px 0; }
  .section-header { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ===== Inner pages ===== */
section.page-hero,
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  color: var(--white);
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
}
.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}
.page-hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.page-hero .btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

.course-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-detail-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.course-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.course-detail-card .badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.course-detail-card h3 {
  font-size: 1.25rem;
  color: var(--blue);
  margin-bottom: 8px;
}
.course-detail-card .tagline {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.course-detail-card .desc {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--gray-600);
}

.pathway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.pathway-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 28px;
}
.pathway-card h3 { color: var(--blue); margin-bottom: 8px; }
.pathway-card p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 14px; }
.pathway-steps {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  justify-content: center; color: var(--blue); font-weight: 600; font-size: 0.95rem;
}
.pathway-steps span { opacity: 0.45; }

.faq-list { max-width: 820px; margin: 0 auto; }
.faq-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 32px;
}
.faq-filters button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}
.faq-filters button.active,
.faq-filters button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  display: none;
  padding: 0 22px 18px;
  color: var(--gray-600);
  font-size: 0.95rem;
}
.faq-item.open .faq-a { display: block; }

.test-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 36px;
}
.test-tabs button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
}
.test-tabs button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.test-panel { display: none; }
.test-panel.active { display: block; }
.test-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.test-meta-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.test-meta-card h4 { color: var(--blue); margin: 8px 0 4px; font-size: 1rem; }
.test-meta-card p { color: var(--gray-600); font-size: 0.85rem; }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.flow-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
}
.flow-card h3 { color: var(--blue); font-size: 1.05rem; margin: 8px 0; }
.flow-card p { color: var(--gray-600); font-size: 0.9rem; }

.life-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.life-stat {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}
.life-stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.moment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.moment-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}
.moment-card .num { color: var(--gold); font-weight: 800; margin-bottom: 8px; }
.moment-card h3 { color: var(--blue); font-size: 1.05rem; margin-bottom: 8px; }
.moment-card p { color: var(--gray-600); font-size: 0.9rem; }
.flag-cloud {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0;
}
.flag-cloud span {
  background: var(--gray-100);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.day-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.day-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 22px;
}
.day-card .time {
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 8px;
}
.day-card h4 { color: var(--blue); margin-bottom: 6px; }
.day-card p { color: var(--gray-600); font-size: 0.9rem; }
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.nearby-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
}
.nearby-card .icon { font-size: 1.5rem; margin-bottom: 10px; }
.nearby-card h4 { color: var(--blue); margin-bottom: 6px; }
.nearby-card p { color: var(--gray-600); font-size: 0.9rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.step-card .step-num {
  width: 36px; height: 36px; margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.step-card h3 { color: var(--blue); margin-bottom: 8px; font-size: 1.05rem; }
.step-card p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 10px; }
.step-card .dur {
  font-size: 0.8rem; color: var(--gold); font-weight: 700;
}
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.doc-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 22px;
}
.doc-card h4 { color: var(--blue); margin: 8px 0 6px; }
.doc-card p { color: var(--gray-600); font-size: 0.9rem; }

.term-banner {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  margin-bottom: 40px;
}
.term-banner .section-label { color: rgba(255, 255, 255, 0.75); }
.term-banner h2 { color: var(--white); font-size: 2rem; margin: 8px 0 16px; }
.term-banner p { color: rgba(255, 255, 255, 0.92); margin-bottom: 16px; }
.term-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.term-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
}
.term-card h3 { color: var(--blue); margin-bottom: 6px; font-size: 1rem; }
.term-card p { color: var(--gray-600); font-size: 0.9rem; }
.term-card .status {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--gray-100);
  color: var(--gray-600);
}
.term-card .status.open {
  background: rgba(37, 211, 102, 0.15);
  color: #159a4a;
}
.cal-legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; margin: 24px 0 8px;
  font-size: 0.85rem; color: var(--gray-600);
}
.cal-legend i {
  display: inline-block; width: 12px; height: 12px;
  border-radius: 3px; margin-right: 6px; vertical-align: middle;
}
.cal-legend .start { background: var(--blue); }
.cal-legend .end { background: var(--gold); }
.cal-legend .holiday { background: #e11d48; }

.job-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--white);
  margin-bottom: 24px;
}
.job-card .job-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 12px 0 18px;
}
.job-card h2 { color: var(--blue); font-size: 1.5rem; }
.job-card .cn { color: var(--gold); margin-bottom: 8px; }
.job-card .summary { color: var(--gray-600); margin-bottom: 20px; }
.job-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.job-cols h3 { color: var(--blue); font-size: 1rem; margin-bottom: 10px; }
.job-cols ul { color: var(--gray-600); font-size: 0.9rem; }
.job-cols li { margin-bottom: 8px; padding-left: 14px; position: relative; }
.job-cols li::before {
  content: '•'; position: absolute; left: 0; color: var(--gold);
}
.perk-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.why-join-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.why-join-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 22px;
}
.why-join-card .n { color: var(--gold); font-weight: 800; margin-bottom: 8px; }
.why-join-card h3 { color: var(--blue); font-size: 1rem; margin-bottom: 8px; }
.why-join-card p { color: var(--gray-600); font-size: 0.9rem; }
.apply-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

section.page-cta,
.page-cta {
  text-align: center;
  padding: 64px 0;
  background: var(--gray-50);
  color: var(--gray-800);
}
.page-cta h2 { color: var(--blue); margin-bottom: 12px; }
.page-cta p { color: var(--gray-600); margin-bottom: 24px; }
.page-cta .cta-actions { justify-content: center; }

@media (max-width: 1024px) {
  .course-detail-grid,
  .moment-grid,
  .day-timeline,
  .nearby-grid,
  .steps-grid,
  .life-stats,
  .why-join-grid,
  .apply-steps,
  .term-list { grid-template-columns: repeat(2, 1fr); }
  .test-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .course-detail-grid,
  .pathway-grid,
  .moment-grid,
  .day-timeline,
  .nearby-grid,
  .steps-grid,
  .doc-grid,
  .life-stats,
  .flow-grid,
  .job-cols,
  .why-join-grid,
  .apply-steps,
  .term-list,
  .test-meta { grid-template-columns: 1fr; }
}
