/* =========================================
   A Star Academy Theme - Premium Dark Design
   ========================================= */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #060914;
  --bg-secondary: #0A0E27;
  --bg-card: #0f1535;
  --bg-card-hover: #141b42;
  --gold: #F0A500;
  --gold-light: #FFD166;
  --gold-dark: #C88A00;
  --text-primary: #F0F4FF;
  --text-secondary: #8892B0;
  --text-muted: #4A5568;
  --border: rgba(240, 165, 0, 0.15);
  --border-hover: rgba(240, 165, 0, 0.4);
  --glow: 0 0 30px rgba(240, 165, 0, 0.2);
  --glow-strong: 0 0 60px rgba(240, 165, 0, 0.35);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* === SELECTION === */
::selection { background: var(--gold); color: #000; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  background: rgba(6, 9, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(6, 9, 20, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo { display: flex; align-items: center; }
.logo-img { height: 40px; filter: brightness(0) invert(1); }

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

.logo-star {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: -2px;
  line-height: 1;
}

.star-symbol {
  color: var(--gold);
  font-size: 1.2rem;
  vertical-align: super;
  margin-left: 1px;
}

.logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(240, 165, 0, 0.08);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--gold);
  color: #000 !important;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
  margin-left: 0.5rem;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(240, 165, 0, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 2rem 80px;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 50%, rgba(240, 165, 0, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(100, 120, 255, 0.05) 0%, transparent 60%),
              var(--bg-secondary);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F0A500' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-math-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.math-symbol {
  position: absolute;
  color: rgba(240, 165, 0, 0.08);
  font-family: 'Times New Roman', serif;
  user-select: none;
  animation: float-symbol 8s ease-in-out infinite;
}

@keyframes float-symbol {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.06; }
  33% { transform: translateY(-20px) rotate(5deg); opacity: 0.12; }
  66% { transform: translateY(10px) rotate(-3deg); opacity: 0.04; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.25rem;
  background: rgba(240, 165, 0, 0.1);
  border: 1px solid rgba(240, 165, 0, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
  animation: fade-in-up 0.6s ease-out both;
}

.badge-star { font-size: 1rem; }

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.6s ease-out 0.1s both;
}

.hero-title-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fade-in-up 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fade-in-up 0.6s ease-out 0.3s both;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240, 165, 0, 0.5);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn-primary.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  animation: fade-in-up 0.6s ease-out 0.4s both;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 1rem 2rem;
  backdrop-filter: blur(10px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: fade-in 1s ease-out 1s both;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce-down 2s infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

/* =========================================
   TRUST BAR
   ========================================= */

.trust-bar {
  background: linear-gradient(90deg, rgba(240, 165, 0, 0.05) 0%, rgba(240, 165, 0, 0.1) 50%, rgba(240, 165, 0, 0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
}

.trust-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-icon { font-size: 1rem; }
.trust-divider { color: var(--text-muted); font-size: 1.5rem; }

/* =========================================
   SECTION COMMONS
   ========================================= */

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(240, 165, 0, 0.1);
  border: 1px solid rgba(240, 165, 0, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =========================================
   SERVICES SECTION
   ========================================= */

.services {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card.featured {
  border-color: rgba(240, 165, 0, 0.4);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(240, 165, 0, 0.05) 100%);
  grid-column: span 1;
}

.service-card.featured::before { transform: scaleX(1); }

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.card-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.card-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
}

.card-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  transition: var(--transition);
}

.card-cta:hover {
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

/* =========================================
   WHY ASTAR SECTION
   ========================================= */

.why-astar {
  padding: 6rem 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.why-astar::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.04) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.pillar-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  background: rgba(240, 165, 0, 0.04);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--glow);
}

.pillar-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.pillar-card:hover .pillar-icon {
  filter: drop-shadow(0 0 20px rgba(240, 165, 0, 0.4));
  transform: scale(1.05);
}

.pillar-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.pillar-stat {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(240, 165, 0, 0.1);
  border: 1px solid rgba(240, 165, 0, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

/* =========================================
   QUOTE SECTION
   ========================================= */

.quote-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(240, 165, 0, 0.08) 0%, transparent 50%, rgba(240, 165, 0, 0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote-star-row {
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 4px;
  margin-bottom: 2rem;
}

.main-quote {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
}

.main-quote::before {
  content: '"';
  font-size: 5rem;
  color: rgba(240, 165, 0, 0.2);
  position: absolute;
  top: -20px;
  left: -20px;
  line-height: 1;
  font-family: Georgia, serif;
}

.main-quote em { color: var(--gold-light); font-style: normal; }

.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-badge {
  width: 50px;
  height: 50px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  font-size: 0.9rem;
}

.quote-author strong {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
}

.quote-author span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* =========================================
   CTA SECTION
   ========================================= */

.cta-section {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.cta-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-content .section-tag { margin-bottom: 1rem; }

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.gold-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact-method:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.contact-icon { font-size: 1.5rem; flex-shrink: 0; }

.contact-info strong {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.contact-info span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cta-visual {
  display: flex;
  justify-content: center;
}

.cta-card-stack {
  position: relative;
  width: 320px;
  height: 280px;
}

.cta-card {
  position: absolute;
  width: 260px;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.cta-card strong { display: block; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.cta-card span { font-size: 0.8rem; color: var(--text-secondary); }
.cc-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }

.card-1 {
  background: linear-gradient(135deg, #1a1f4e 0%, var(--bg-card) 100%);
  top: 0; left: 0;
  transform: rotate(-4deg);
  z-index: 1;
}

.card-2 {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1a1f4e 100%);
  top: 40px; left: 30px;
  transform: rotate(-1deg);
  z-index: 2;
  border-color: rgba(240, 165, 0, 0.2);
}

.card-3 {
  background: linear-gradient(135deg, rgba(240, 165, 0, 0.1) 0%, var(--bg-card) 100%);
  top: 80px; left: 60px;
  transform: rotate(2deg);
  z-index: 3;
  border-color: rgba(240, 165, 0, 0.4);
}

.cta-card-stack:hover .card-1 { transform: rotate(-6deg) translateY(-4px); }
.cta-card-stack:hover .card-2 { transform: rotate(-2deg) translateY(-8px); }
.cta-card-stack:hover .card-3 { transform: rotate(3deg) translateY(-12px); }

/* =========================================
   BLOG SECTION
   ========================================= */

.blog-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--glow);
}

.post-image { overflow: hidden; height: 200px; }
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-image img { transform: scale(1.05); }

.post-content { padding: 1.5rem; }

.post-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.post-title a:hover { color: var(--gold); }

.post-excerpt { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.post-meta { font-size: 0.8rem; color: var(--text-muted); }

/* =========================================
   POST / PAGE TEMPLATES
   ========================================= */

.post-header, .page-header {
  background: var(--bg-secondary);
  padding: 8rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.post-header-inner, .page-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.post-tags, .post-tags-footer { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.post-tag {
  padding: 0.3rem 0.75rem;
  background: rgba(240, 165, 0, 0.1);
  border: 1px solid rgba(240, 165, 0, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  transition: var(--transition);
}
.post-tag:hover { background: rgba(240, 165, 0, 0.2); }

.post-title, .page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.post-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.post-divider { opacity: 0.4; }

.post-feature-image, .page-feature-image {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-feature-image img, .page-feature-image img {
  width: 100%;
  border-radius: var(--radius);
}

.post-body, .page-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.gh-content h1, .gh-content h2, .gh-content h3, .gh-content h4 {
  color: var(--text-primary);
  margin: 2rem 0 1rem;
  font-family: var(--font-display);
}
.gh-content h1 { font-size: 2rem; }
.gh-content h2 { font-size: 1.6rem; }
.gh-content h3 { font-size: 1.3rem; }

.gh-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.gh-content a { color: var(--gold); border-bottom: 1px solid rgba(240,165,0,0.3); }
.gh-content a:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }

.gh-content ul, .gh-content ol {
  color: var(--text-secondary);
  padding-left: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.gh-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(240,165,0,0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.gh-content code {
  background: rgba(255,255,255,0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--gold-light);
}

.gh-content pre {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

.post-footer-cta, .cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.post-footer-cta h3, .cta-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.post-footer-cta p, .cta-box p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 5rem 2rem 0;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-tagline { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.footer-location { font-size: 0.875rem; color: var(--text-muted); }

.footer-nav h4, .footer-services h4, .footer-contact h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer-nav ul, .footer-services ul { list-style: none; }
.footer-nav li, .footer-services li { margin-bottom: 0.6rem; }
.footer-nav a, .footer-services li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.footer-contact a { color: var(--gold); }
.footer-contact a:hover { color: var(--gold-light); }

.footer-cta { margin-top: 1.5rem; }

.btn-footer-cta {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--gold);
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-footer-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(240,165,0,0.3);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1024px) {
  .cta-container { grid-template-columns: 1fr; }
  .cta-visual { display: none; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-title { letter-spacing: -1px; }
  .hero-stats { gap: 0; padding: 0.75rem 1rem; }
  .stat-item { padding: 0 1rem; }
  .stat-divider { display: none; }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(6, 9, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  
  .nav-link { padding: 0.75rem 1rem; width: 100%; }
  .nav-cta { margin-left: 0; text-align: center; }
  
  .services-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-services { display: none; }
  
  .trust-container { gap: 1rem; }
  .trust-divider { display: none; }
  
  .main-quote::before { display: none; }
  .cta-card-stack { display: none; }
  .contact-methods { gap: 0.75rem; }
  
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 300px; justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding: 90px 1.25rem 60px; }
  .hero-stats { padding: 0.6rem 0.75rem; }
  .stat-item { padding: 0 0.75rem; }
  .stat-number { font-size: 1.25rem; }
  .section-container { padding: 0 1.25rem; }
  .services { padding: 4rem 0; }
  .why-astar { padding: 4rem 0; }
  .cta-section { padding: 4rem 0; }
  .blog-section { padding: 4rem 0; }
  .site-footer { padding: 4rem 1.25rem 0; }
}

/* === LIGHT THEME === */
[data-theme="light"] {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FF;
  --bg-card: #F0F2FF;
  --bg-card-hover: #E8EBFF;
  --text-primary: #0A0E27;
  --text-secondary: #4A5568;
  --text-muted: #8892B0;
  --border: rgba(10, 14, 39, 0.1);
  --border-hover: rgba(240, 165, 0, 0.5);
  --glow: 0 0 30px rgba(240, 165, 0, 0.15);
}

[data-theme="light"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg, #F0F2FF 0%, #E8EBFF 50%, #F8F9FF 100%);
}

[data-theme="light"] .hero-title { color: #0A0E27; }
[data-theme="light"] .hero-subtitle { color: #4A5568; }
[data-theme="light"] .hero-badge { background: rgba(240,165,0,0.12); color: #0A0E27; }
[data-theme="light"] .trust-bar { background: #F0F2FF; border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .trust-item { color: #4A5568; }
[data-theme="light"] .service-card { background: #FFFFFF; border-color: rgba(0,0,0,0.08); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
[data-theme="light"] .service-card:hover { border-color: var(--gold); box-shadow: 0 8px 40px rgba(240,165,0,0.15); }
[data-theme="light"] .service-card h3 { color: #0A0E27; }
[data-theme="light"] .service-card p { color: #4A5568; }
[data-theme="light"] .card-list li { color: #4A5568; }
[data-theme="light"] .card-list li::before { color: var(--gold); }
[data-theme="light"] .section-title { color: #0A0E27; }
[data-theme="light"] .section-subtitle { color: #4A5568; }
[data-theme="light"] .why-astar { background: #F8F9FF; }
[data-theme="light"] .pillar-card { background: #FFFFFF; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .pillar-card h3 { color: #0A0E27; }
[data-theme="light"] .pillar-card p { color: #4A5568; }
[data-theme="light"] .quote-section { background: #0A0E27; }
[data-theme="light"] .cta-section { background: linear-gradient(135deg, #0A0E27 0%, #1a1f4a 100%); }
[data-theme="light"] .math-symbol { color: rgba(240,165,0,0.25); }
[data-theme="light"] .nav-link { color: #4A5568; }
[data-theme="light"] .nav-link:hover { color: #0A0E27; background: rgba(0,0,0,0.05); }
[data-theme="light"] .logo-img { filter: none; }
[data-theme="light"] .logo-name { color: #0A0E27; }
[data-theme="light"] .btn-secondary { color: #0A0E27; border-color: rgba(0,0,0,0.2); }
[data-theme="light"] .btn-secondary:hover { background: rgba(0,0,0,0.05); }
[data-theme="light"] .stat-label { color: #4A5568; }
[data-theme="light"] .contact-method { background: rgba(255,255,255,0.05); }
[data-theme="light"] .footer { background: #0A0E27; color: #8892B0; }

/* === THEME TOGGLE BUTTON === */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="light"] .theme-toggle .icon-sun { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* === LANGUAGE SWITCHER === */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.lang-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  transition: var(--transition);
}
.lang-btn:hover, .lang-btn.active {
  border-color: var(--gold);
  color: var(--gold);
}

/* Chinese font support */
[lang="zh"] body, .zh-text {
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', var(--font-sans);
}

/* Hide/show language content */
.en-content { display: block; }
.zh-content { display: none; }
[lang="zh"] .en-content { display: none; }
[lang="zh"] .zh-content { display: block; }

/* Nav controls container */
.nav-controls {
  display: flex;
  align-items: center;
}

/* === BUTTON TEXT FIX === */
/* Ensure button text spans are always inline, not block */
.btn-primary .en-content,
.btn-primary .zh-content,
.btn-secondary .en-content,
.btn-secondary .zh-content {
  display: inline !important;
}
[lang='zh'] .btn-primary .en-content,
[lang='zh'] .btn-secondary .en-content {
  display: none !important;
}
[lang='en'] .btn-primary .zh-content,
[lang='en'] .btn-secondary .zh-content {
  display: none !important;
}

/* === LIGHT THEME: CTA SECTION FIX === */
[data-theme="light"] .cta-section {
  background: linear-gradient(135deg, #0A0E27 0%, #1a1f4a 100%) !important;
}
[data-theme="light"] .cta-section .section-tag {
  color: var(--gold) !important;
  border-color: rgba(240,165,0,0.3) !important;
  background: rgba(240,165,0,0.1) !important;
}
[data-theme="light"] .cta-section .cta-title,
[data-theme="light"] .cta-section h2,
[data-theme="light"] .cta-section .gold-text {
  color: #F0F4FF !important;
}
[data-theme="light"] .cta-section .gold-text {
  color: var(--gold) !important;
}
[data-theme="light"] .cta-section .cta-subtitle {
  color: #8892B0 !important;
}
[data-theme="light"] .cta-section .contact-method {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
[data-theme="light"] .cta-section .contact-method strong {
  color: #F0F4FF !important;
}
[data-theme="light"] .cta-section .contact-method span,
[data-theme="light"] .cta-section .contact-info span {
  color: #8892B0 !important;
}
[data-theme="light"] .cta-section .zh-content {
  color: #8892B0 !important;
}
[data-theme="light"] .cta-card {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
[data-theme="light"] .cta-card strong {
  color: #F0F4FF !important;
}
[data-theme="light"] .cta-card span {
  color: #8892B0 !important;
}

/* === LIGHT THEME: QUOTE SECTION FIX === */
[data-theme="light"] .quote-section {
  background: #0A0E27 !important;
}
[data-theme="light"] .quote-section * {
  color: inherit;
}
[data-theme="light"] .main-quote {
  color: #F0F4FF !important;
}
[data-theme="light"] .main-quote em {
  color: var(--gold) !important;
}
[data-theme="light"] .quote-star-row span {
  color: var(--gold) !important;
}
[data-theme="light"] .quote-author strong {
  color: #F0F4FF !important;
}
[data-theme="light"] .quote-author span {
  color: #8892B0 !important;
}
[data-theme="light"] .author-badge {
  background: var(--gold) !important;
  color: #000 !important;
}

/* === FOOTER CTA BUTTON FIX === */
.btn-footer-cta {
  color: #000000 !important;
}
.btn-footer-cta:hover {
  color: #000000 !important;
}
[data-theme="light"] .btn-footer-cta {
  color: #000000 !important;
}
[data-theme="dark"] .btn-footer-cta {
  color: #000000 !important;
}

/* === FOOTER LIGHT THEME === */
/* Footer is light in light mode — make text dark and logo dark */
[data-theme="light"] .site-footer {
  background: #F0F2FF !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .site-footer .footer-logo img {
  filter: brightness(0) !important;
}
[data-theme="light"] .footer-tagline,
[data-theme="light"] .footer-location {
  color: #4A5568 !important;
}
[data-theme="light"] .footer-nav h4,
[data-theme="light"] .footer-services h4,
[data-theme="light"] .footer-contact h4 {
  color: #0A0E27 !important;
}
[data-theme="light"] .footer-nav a,
[data-theme="light"] .footer-services li,
[data-theme="light"] .footer-contact p,
[data-theme="light"] .footer-contact a {
  color: #4A5568 !important;
}
[data-theme="light"] .footer-nav a:hover,
[data-theme="light"] .footer-contact a:hover {
  color: var(--gold) !important;
}
[data-theme="light"] .footer-bottom {
  background: #E8EBFF !important;
  color: #8892B0 !important;
  border-top: 1px solid rgba(0,0,0,0.06) !important;
}

/* === GHOST KOENIG EDITOR REQUIRED CLASSES === */
.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: auto calc(50% - 50vw * 0.85);
}
.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* =========================================
   BLOG INDEX PAGE
   ========================================= */

.blog-page {
  padding: 6rem 2rem 4rem;
  min-height: 60vh;
}

.blog-page .section-header {
  margin-bottom: 3rem;
}

.blog-page .post-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-bottom: 0.75rem !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
}

.blog-page .post-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.blog-page .post-title a:hover {
  color: var(--gold);
}

.blog-page .read-more {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.blog-page .read-more:hover {
  opacity: 0.8;
}

.blog-page .post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
