:root {
  /* Brand Color Palette */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  --magic-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  
  /* LINE Official Brand Color */
  --line-green: #06c755;
  --line-green-hover: #05b34c;
  --line-gradient: linear-gradient(135deg, #06c755 0%, #00b900 100%);
  --line-glow: 0 0 25px rgba(6, 199, 85, 0.45);
  
  /* Neutral Colors */
  --bg-main: #0b0f19;
  --bg-card: rgba(22, 30, 49, 0.85);
  --bg-card-hover: rgba(30, 41, 67, 0.95);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  /* Effects & Shadows */
  --glow-primary: 0 0 25px rgba(79, 70, 229, 0.4);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px -15px rgba(79, 70, 229, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  /* Fonts */
  --font-en: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-th: 'Prompt', system-ui, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-th), var(--font-en);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(6, 199, 85, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Background Ambient Orbs */
.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-th), var(--font-en);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Common Styling */
section {
  position: relative;
  padding: 5rem 0;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* LINE Button */
.btn-line {
  background: var(--line-gradient);
  color: #ffffff;
  box-shadow: var(--line-glow);
}

.btn-line:hover {
  background: var(--line-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(6, 199, 85, 0.6);
}

.line-glow-btn {
  animation: linePulse 2.5s infinite;
}

@keyframes linePulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(6, 199, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0); }
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-hover);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--glow-primary);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hero Section */
.hero-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  color: #34d399;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #cbd5e1;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* LINE Direct Info Box */
.line-direct-box {
  background: rgba(6, 199, 85, 0.08);
  border: 1px solid rgba(6, 199, 85, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 480px;
}

.line-box-icon {
  font-size: 1.8rem;
}

.btn-line-mini {
  margin-left: auto;
  background: #06c755;
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn-line-mini:hover {
  background: #05b34c;
}

/* PR Visual Card */
.pr-card-main {
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}

.pr-card-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.pr-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pr-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pr-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pr-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pr-feature-item h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.pr-feature-item p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Schedule / Timetable Section */
.schedule-section {
  background: rgba(0, 0, 0, 0.2);
}

.schedule-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--glow-primary);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
}

.schedule-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  border-top: 3px solid #6366f1;
}

.schedule-status-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-open {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-hot {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-vip {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.schedule-header {
  margin-bottom: 1.25rem;
  padding-right: 4rem;
}

.course-category-tag {
  font-size: 0.8rem;
  color: #38bdf8;
  font-weight: 600;
}

.schedule-course-title {
  font-size: 1.2rem;
  margin: 0.35rem 0;
}

.schedule-course-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.schedule-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.schedule-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.schedule-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.schedule-val {
  font-size: 0.9rem;
  color: #f1f5f9;
}

.highlight-time {
  color: #fbbf24;
  font-weight: 600;
}

.schedule-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.schedule-price {
  display: flex;
  flex-direction: column;
}

/* LINE Section */
.line-section {
  padding: 4.5rem 0;
}

.line-contact-card {
  background: linear-gradient(135deg, rgba(22, 30, 49, 0.95), rgba(6, 9, 17, 0.98));
  border: 1px solid rgba(6, 199, 85, 0.4);
  border-radius: 28px;
  padding: 3.5rem;
  box-shadow: 0 15px 40px -10px rgba(6, 199, 85, 0.25);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.line-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(6, 199, 85, 0.15);
  border: 1px solid rgba(6, 199, 85, 0.35);
  border-radius: var(--radius-full);
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.line-title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  margin-bottom: 1rem;
}

.line-desc {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.line-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.line-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.line-feat-item span {
  color: #06c755;
  font-weight: bold;
  margin-right: 0.4rem;
}

.line-qr-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.qr-frame {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.qr-inner {
  color: #0f172a;
}

/* Footer */
.site-footer {
  background: #060911;
  border-top: 1px solid var(--border-glass);
  padding: 3.5rem 0 1.5rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-contact-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

/* Floating LINE Action Pill */
.floating-line-wrap {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.floating-line-btn {
  background: var(--line-gradient);
  color: #ffffff;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(6, 199, 85, 0.5);
  transition: var(--transition);
  animation: floatBounce 3s ease-in-out infinite;
}

.floating-line-btn:hover {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 15px 35px rgba(6, 199, 85, 0.7);
}

.line-floating-icon {
  font-size: 1.4rem;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   Level Cards — 3-Level Reading Program
   ============================================= */

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

.schedule-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

/* Coloured top band per level */
.level-header-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 0.5rem;
}

.band-1 { background: linear-gradient(135deg, #1e40af, #0ea5e9); }
.band-2 { background: linear-gradient(135deg, #5b21b6, #a855f7); }
.band-3 { background: linear-gradient(135deg, #9f1239, #f43f5e); }

.level-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.level-grade {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.schedule-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  flex-grow: 1;
}

.course-name-block { }

.schedule-course-title {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.schedule-course-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* What you'll learn box */
.what-learn-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.what-learn-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.what-learn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.what-learn-list li {
  font-size: 0.875rem;
  color: #cbd5e1;
  padding-left: 1.25rem;
  position: relative;
}

.what-learn-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Schedule Time Block */
.schedule-time-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.1rem;
}

.time-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.time-icon {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.time-label {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.time-val {
  font-size: 0.95rem;
  color: #f1f5f9;
  font-weight: 500;
}

.highlight-time {
  color: #fbbf24;
  font-weight: 700;
}

/* Card Footer */
.schedule-card-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.15);
}

/* Onsite removed — Online-only badge */
.online-only-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius-md);
  color: #38bdf8;
  font-size: 0.875rem;
  font-weight: 600;
}

/* PR icon levels */
.level-1-icon {
  background: linear-gradient(135deg, #1e40af, #0ea5e9) !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 1rem;
}

.level-2-icon {
  background: linear-gradient(135deg, #5b21b6, #a855f7) !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 1rem;
}

.level-3-icon {
  background: linear-gradient(135deg, #9f1239, #f43f5e) !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 1rem;
}

/* Timetable Summary Table */
.timetable-summary {
  margin-top: 2.5rem;
  padding: 2rem 2.5rem;
}

.timetable-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tt-header,
.tt-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.7fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
}

.tt-header {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tt-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: #e2e8f0;
  transition: var(--transition);
}

.tt-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(99, 102, 241, 0.3);
}

.tt-row small {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.1rem;
}

/* =============================================
   Responsive
   ============================================= */

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .line-contact-card {
    grid-template-columns: 1fr;
    padding: 2.2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .schedule-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .schedule-footer .btn {
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .floating-line-wrap {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .floating-line-btn {
    padding: 0.75rem 1.1rem;
    font-size: 0.85rem;
  }
}
