@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================================
   CSS VARIABLES (DESIGN SYSTEM V2.0 - GLASS BLUE BRAND)
   ========================================================================== */
:root {
  /* Colors - Primary Brand Blue */
  --blue-700: #1E3A8A; /* Deep Brand */
  --blue-600: #2F5FE0; /* Primary */
  --blue-500: #3A6CE2; /* Active */
  --blue-400: #5B8DEF; /* Hover */
  --blue-300: #A0B1D9; /* Glass tint */
  --blue-200: #C3D6EC; /* Frost */
  --blue-100: #E4EBF6; /* Pale */
  --blue-50:  #F4F7FC; /* BG tint */

  /* Colors - Neutral & Accent */
  --white-pure: #FFFFFF;
  --white-warm: #FDFEFE;
  --gray-200:   #E5EAF2;
  --gray-500:   #6B7A99;
  --gray-900:   #0F172A;
  
  --red-500:    #EF4757;
  --pink-400:   #F87DA8;
  --green-500:  #22C55E;
  --amber-500:  #F59E0B;

  /* Gradients */
  --bg-gradient: radial-gradient(at 0% 0%, #E4EBF6 0%, transparent 50%), 
                 radial-gradient(at 100% 100%, #C3D6EC 0%, transparent 50%), 
                 radial-gradient(at 50% 50%, #F4F7FC 0%, transparent 100%), #FFFFFF;
  --hero-text-gradient: linear-gradient(90deg, #1E3A8A 0%, #3A6CE2 100%);
  --btn-gradient: linear-gradient(180deg, #4A7DE2 0%, #2F5FE0 100%);
  --glass-gradient: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(228,235,246,0.6) 100%);

  /* Typography */
  --font-main: 'Be Vietnam Pro', sans-serif;
  
  /* Shadows */
  --shadow-glass: 0 8px 32px rgba(58, 108, 226, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-pill: 0 4px 12px rgba(47, 95, 224, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  --shadow-icon: 0 6px 20px rgba(58, 108, 226, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  
  /* Animation */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--bg-gradient);
  background-attachment: fixed;
  line-height: 1.5;
}

body {
  overflow-x: hidden;
  position: relative;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

/* ==========================================================================
   UTILITIES & GLASSMORPHISM
   ========================================================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-top: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: var(--shadow-glass);
}

.highlight {
  color: var(--blue-600);
}
.req { color: var(--red-500); }
.inline-icon { width: 18px; height: 18px; display: inline-block; vertical-align: text-bottom; margin-right: 4px; }

/* ==========================================================================
   DECORATIONS
   ========================================================================== */
.bubbles-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(58, 108, 226, 0.05);
}

.b1 { width: 300px; height: 300px; top: -50px; right: -50px; animation: float 15s infinite ease-in-out; }
.b2 { width: 200px; height: 200px; top: 40%; left: -80px; animation: float 18s infinite ease-in-out reverse; }
.b3 { width: 150px; height: 150px; bottom: 10%; right: 10%; animation: float 12s infinite ease-in-out; }
.b4 { width: 80px; height: 80px; top: 20%; left: 20%; animation: float 10s infinite ease-in-out 2s; }
.b5 { width: 120px; height: 120px; bottom: 30%; left: 15%; animation: float 14s infinite ease-in-out 1s; }

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

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  padding: 8px 0;
  transition: var(--transition-smooth);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(58, 108, 226, 0.05);
  padding: 4px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img { height: 92px; object-fit: contain; }

.nav-links { display: flex; gap: 32px; }
.nav-links a { font-weight: 600; color: var(--gray-500); font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-600); }

.nav-cta {
  background: var(--blue-100); color: var(--blue-700);
  padding: 10px 24px; border-radius: 999px;
  font-weight: 700; border: 1px solid var(--white-pure);
}
.nav-cta:hover { background: var(--blue-200); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding-top: 140px; padding-bottom: 80px;
  position: relative; text-align: center; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--white-pure);
  padding: 6px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: var(--blue-700);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 24px; box-shadow: 0 4px 12px rgba(58, 108, 226, 0.08);
}
.badge-icon { width: 16px; height: 16px; }

.hero-title { margin-bottom: 24px; }
.title-ko {
  display: block; font-size: 24px; color: var(--blue-400); font-weight: 800;
  margin-bottom: 8px; letter-spacing: 0.1em;
}
.title-main { font-size: 72px; font-weight: 900; line-height: 1.1; color: var(--blue-700); }
.title-main em {
  font-style: normal; background: var(--hero-text-gradient);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 700px; margin: 0 auto 40px;
  font-size: 18px; color: var(--gray-500); line-height: 1.6;
}
.hero-sub strong { color: var(--blue-700); }
.hero-sub em { color: var(--pink-400); font-style: normal; font-weight: 600; }

.hero-actions {
  display: flex; justify-content: center; gap: 16px; margin-bottom: 80px;
}
.btn-primary {
  background: var(--btn-gradient); color: var(--white-pure);
  padding: 14px 32px; border-radius: 999px;
  font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-pill); border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(47, 95, 224, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.5); color: var(--blue-700);
  padding: 14px 32px; border-radius: 999px;
  font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 10px;
  backdrop-filter: blur(10px); border: 1px solid var(--white-pure);
  box-shadow: 0 4px 12px rgba(58, 108, 226, 0.05);
}
.btn-ghost:hover {
  background: var(--white-pure); transform: translateY(-2px);
}
.btn-icon { width: 20px; height: 20px; }

/* Hero Visual Cards */
.hero-visual {
  display: flex; justify-content: center; gap: 24px;
  max-width: 1000px; margin: 0 auto;
}
.hero-card {
  padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; flex: 1;
}
.hc-icon-wrap {
  width: 72px; height: 72px;
  background: rgba(255, 255, 255, 0.6); border: 1.5px solid var(--white-pure);
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-icon);
}
.hc-icon { width: 40px; height: 40px; }
.hc-text { display: flex; flex-direction: column; }
.hc-num { font-weight: 800; color: var(--blue-700); line-height: 1.3; margin-top: 8px; }
.hc-label { font-size: 13px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;}

.float-anim { animation: float-up-down 6s infinite ease-in-out; }
.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }
@keyframes float-up-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
section { padding: 100px 0; position: relative; z-index: 1; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-100); color: var(--blue-700);
  padding: 6px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 16px;
}
.section-eyebrow img { width: 16px; height: 16px; }
.section-title {
  font-size: 40px; font-weight: 800; color: var(--blue-700);
  line-height: 1.2; margin-bottom: 24px;
  text-align: center;
}
.section-sub {
  font-size: 18px; color: var(--gray-500); max-width: 600px; margin-bottom: 60px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Center section headers */
.rules .container,
.prizes .container,
.teachers .container {
  text-align: center;
}

/* ==========================================================================
   RULES SECTION - VERTICAL TIMELINE
   ========================================================================== */
.rules {
  padding: 80px 0;
  position: relative;
}

.rules-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Timeline line */
.rules-grid::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 60px;
  bottom: 60px;
  width: 3px;
  background: linear-gradient(180deg, var(--blue-500) 0%, var(--blue-300) 100%);
  border-radius: 2px;
  opacity: 0.4;
}

.rule-card {
  padding: 32px 32px 32px 100px;
  margin-bottom: 24px;
  position: relative;
  transition: all var(--transition-smooth);
  background: rgba(255, 255, 255, 0.45);
}

.rule-card:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 40px rgba(58, 108, 226, 0.18);
}

.rule-card:last-child {
  margin-bottom: 0;
}

.tc-icon-box {
  position: absolute;
  left: 16px;
  top: 32px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
  border: 3px solid var(--white-pure);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(58, 108, 226, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.tc-icon-box h2 {
  color: var(--white-pure);
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tc-content {
  position: relative;
}

.tc-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 12px;
}

.tc-content p {
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   PRIZES SECTION
   ========================================================================== */
.prizes {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(228, 235, 246, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
}

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.prize-card {
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.prize-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.prize-card:hover::before {
  opacity: 1;
}

.prize-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(58, 108, 226, 0.2);
}

.prize-highlight {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(228, 235, 246, 0.5) 100%);
  border: 2px solid var(--blue-300);
}

.prize-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-icon);
}

.prize-icon img {
  width: 48px;
  height: 48px;
  color: var(--blue-600);
}

.prize-icon-special {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 71, 87, 0.15) 100%);
  border: 2px solid rgba(245, 158, 11, 0.3);
}

.prize-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 20px;
}

.prize-content {
  text-align: left;
}

.prize-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(58, 108, 226, 0.1);
  border: 1px solid var(--blue-300);
  border-radius: 12px;
  font-weight: 700;
  color: var(--blue-700);
  font-size: 15px;
  margin-bottom: 16px;
}

.prize-badge-special {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 71, 87, 0.15) 100%);
  border-color: var(--amber-500);
  color: var(--amber-500);
}

.prize-content p {
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.7;
}

.prize-content strong {
  color: var(--blue-700);
  font-weight: 700;
}

/* ==========================================================================
   TEACHERS CAROUSEL SECTION (INFINITE CENTERED CAROUSEL)
   ========================================================================== */
.teachers {
  padding: 80px 0;
}

/* Carousel Wrapper */
.teachers-carousel-wrapper {
  position: relative;
  margin-bottom: 60px;
  padding: 0 0 20px;
  overflow: hidden;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Carousel Container */
.teachers-carousel {
  display: flex;
  gap: 32px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px 0;
  cursor: grab;
  user-select: none;
}

.teachers-carousel:active {
  cursor: grabbing;
}

/* Teacher Card - Desktop: 3 cards visible (320px each + 32px gap) */
.teacher-card {
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.4;
  transform: scale(0.88);
}

/* Center card (active) */
.teacher-card.center {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 24px 64px rgba(58, 108, 226, 0.28);
  z-index: 10;
}

/* Adjacent cards */
.teacher-card.adjacent {
  opacity: 0.75;
  transform: scale(0.94);
  box-shadow: 0 12px 32px rgba(58, 108, 226, 0.12);
}

.teacher-card:hover {
  opacity: 1;
  transform: scale(0.96);
}

/* Avatar */
.teacher-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
}

.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--white-pure);
  border: 4px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-icon);
  overflow: hidden;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.teacher-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--btn-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-pill);
}

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

.teacher-role {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 16px;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  background: var(--blue-50);
  color: var(--blue-600);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Carousel Navigation Buttons */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.carousel-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid var(--white-pure);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 6px 20px rgba(58, 108, 226, 0.12);
}

.carousel-btn:hover {
  background: var(--white-pure);
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(58, 108, 226, 0.18);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue-700);
  stroke-width: 2.5;
  fill: none;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-200);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.carousel-dot:hover {
  background: var(--blue-400);
  transform: scale(1.1);
}

.carousel-dot.active {
  background: var(--blue-600);
  width: 32px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(47, 95, 224, 0.3);
}

/* ==========================================================================
   VOTE FORM SECTION
   ========================================================================== */
.cta-card {
  max-width: 800px; margin: 0 auto;
  padding: 60px; position: relative; overflow: hidden;
}
.cta-icon { text-align: center; }
.cta-icon img { width: 80px; height: 80px; margin: 0 auto 24px; }
.cta-title { text-align: center; font-size: 40px; font-weight: 800; color: var(--blue-700); margin-bottom: 16px; line-height: 1.2; }
.cta-sub { text-align: center; font-size: 18px; color: var(--gray-500); margin-bottom: 40px; }

.cta-form { max-width: 600px; margin: 0 auto; }
.form-section-title {
  font-size: 20px; font-weight: 700; color: var(--blue-700);
  margin-bottom: 24px; padding-bottom: 8px;
  border-bottom: 2px dashed rgba(58, 108, 226, 0.2);
  margin-top: 40px;
}
.form-section-title:first-of-type { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--blue-700); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.8); background: rgba(255,255,255,0.5);
  border-radius: 12px; font-family: var(--font-main); font-size: 15px; color: var(--gray-900);
  outline: none; transition: var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(58,108,226,0.05);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  background: var(--white-pure); border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(58,108,226,0.1);
}
.btn-submit {
  width: 100%; padding: 18px; margin-top: 24px;
  background: var(--btn-gradient); color: #fff;
  border: none; border-radius: 12px;
  font-size: 18px; font-weight: 700; font-family: var(--font-main);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: var(--shadow-pill); transition: var(--transition-smooth);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(47,95,224,0.4); }
.btn-submit img { width: 24px; height: 24px; }

/* Adjective Buttons */
.adjective-btn {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(58, 108, 226, 0.2);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-700);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.adjective-btn:hover {
  background: rgba(58, 108, 226, 0.1);
  border-color: var(--blue-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 108, 226, 0.15);
}

.adjective-btn.active {
  background: var(--blue-600);
  color: white;
  border-color: var(--blue-600);
  box-shadow: 0 4px 16px rgba(47, 95, 224, 0.3);
}

.adjective-btn:active {
  transform: translateY(0);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--white-pure);
  padding: 30px 0 0; backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  display: flex; align-items: center; gap: 16px; text-align: left;
}
.footer-logo-img { height: 48px; object-fit: contain; }
.footer-logo p { font-size: 13px; color: var(--gray-500); line-height: 1.4; margin: 0; }

.footer-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: var(--blue-100); border-radius: 16px; text-align: left;
}
.footer-badge img { width: 24px; height: 24px; }
.footer-badge strong { color: var(--blue-700); font-size: 14px; display: block; margin-bottom: 2px; }
.footer-badge p { color: var(--gray-500); font-size: 12px; margin: 0; }

.footer-bottom {
  text-align: center; padding: 16px; border-top: 1px solid rgba(255,255,255,0.5);
  font-size: 13px; color: var(--gray-500); margin-top: 30px;
}

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 1000;
  background: var(--white-pure); border: 1px solid var(--blue-200);
  padding: 16px 24px; border-radius: 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 10px 30px rgba(58,108,226,0.15);
  font-weight: 600; color: var(--blue-700);
  transform: translateY(100px); opacity: 0; pointer-events: none;
  transition: var(--transition-smooth);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast img { width: 24px; height: 24px; }

/* ==========================================================================
   FLOWER RAIN ANIMATION
   ========================================================================== */
.flower-rain-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 50; /* Below Navbar, Above Content */
  overflow: hidden;
}
.falling-flower {
  position: absolute;
  top: -100px;
  opacity: 0.7;
  filter: drop-shadow(0 4px 6px rgba(239, 71, 87, 0.2));
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-100px) rotate(var(--rot)); opacity: 0; }
  10% { opacity: 0.6; }
  70% { opacity: 0.6; }
  100% { transform: translateY(50vh) rotate(calc(var(--rot) + 180deg)); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-visual { flex-direction: column; }
  .rules-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-links, .nav-cta { display: none; }
  .logo-img { height: 60px; }
  .navbar { padding: 6px 0; }
  .nav-inner { padding: 0 20px; }

  /* Container */
  .container { padding: 0 20px; }

  /* Hero */
  .hero { padding-top: 100px; padding-bottom: 60px; }
  .hero-inner { padding: 0 20px; }
  .title-ko { font-size: 18px; margin-bottom: 6px; }
  .title-main { font-size: 36px; line-height: 1.2; }
  .title-main em img { width: 40px !important; right: -35px !important; bottom: 0px !important; }
  .hero-sub { font-size: 16px; margin-bottom: 32px; padding: 0 10px; }
  .hero-actions { flex-direction: column; gap: 12px; margin-bottom: 60px; padding: 0 10px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; padding: 12px 24px; font-size: 15px; }

  /* Hero Cards */
  .hero-card { padding: 20px 16px; }
  .hc-icon-wrap { width: 56px; height: 56px; }
  .hc-icon { width: 32px; height: 32px; }
  .hc-num { font-size: 16px !important; }
  .hc-label { font-size: 12px; }

  /* Sections */
  section { padding: 60px 0; }
  .section-title { font-size: 32px; margin-bottom: 16px; }
  .section-sub { font-size: 16px; margin-bottom: 40px; }
  .section-eyebrow { font-size: 11px; padding: 5px 14px; }

  /* Rules - Timeline responsive */
  .rules { padding: 60px 0; }
  .rules-grid { max-width: 100%; }
  .rules-grid::before { left: 28px; top: 50px; bottom: 50px; }
  .rule-card { padding: 24px 24px 24px 80px; margin-bottom: 20px; }
  .tc-icon-box { width: 40px; height: 40px; left: 8px; top: 24px; }
  .tc-icon-box h2 { font-size: 16px; }
  .tc-content h3 { font-size: 18px; margin-bottom: 10px; }
  .tc-content p { font-size: 14px; }

  /* Prizes */
  .prizes { padding: 60px 0; }
  .prizes-grid { grid-template-columns: 1fr; gap: 24px; }
  .prize-card { padding: 32px 24px; }
  .prize-icon { width: 64px; height: 64px; }
  .prize-icon img { width: 40px; height: 40px; }
  .prize-title { font-size: 20px; margin-bottom: 16px; }
  .prize-badge { font-size: 14px; padding: 8px 14px; }
  .prize-content p { font-size: 14px; }

  /* Teachers Carousel - Mobile: Only 1 card visible, perfectly centered */
  .teachers-carousel-wrapper {
    max-width: 100%;
    padding: 0;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
  }

  .teachers-carousel {
    gap: 16px;
    padding: 30px 0;
    justify-content: flex-start;
  }

  .teacher-card {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    padding: 32px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .teacher-card.center {
    transform: scale(1);
    box-shadow: 0 20px 48px rgba(58, 108, 226, 0.25);
    opacity: 1;
  }

  /* Hide all non-center cards completely on mobile */
  .teacher-card:not(.center) {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
  }

  .teacher-card.adjacent {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
  }

  .teacher-avatar {
    width: 130px;
    height: 130px;
    margin-bottom: 24px;
  }

  .avatar-circle {
    border: 3px solid var(--blue-100);
  }

  .avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .teacher-badge {
    font-size: 10px;
    padding: 5px 12px;
  }

  .teacher-card h3 {
    font-size: 17px;
  }

  .teacher-role {
    font-size: 13px;
  }

  .carousel-btn {
    width: 48px;
    height: 48px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }

  .carousel-dots {
    margin-top: 24px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .carousel-dot.active {
    width: 28px;
  }
}

@media (max-width: 480px) {
  .teacher-card {
    min-width: calc(100vw - 80px);
    max-width: calc(100vw - 80px);
    padding: 28px 20px;
  }

  .teacher-avatar {
    width: 100px;
    height: 100px;
  }

  .avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }

  .carousel-dots {
    gap: 6px;
    margin-top: 20px;
  }

  .carousel-dot {
    width: 7px;
    height: 7px;
  }

  .carousel-dot.active {
    width: 24px;
  }

  /* Prizes - Extra small mobile */
  .prize-card { padding: 28px 20px; }
  .prize-icon { width: 56px; height: 56px; }
  .prize-icon img { width: 36px; height: 36px; }
  .prize-title { font-size: 18px; }

  /* Rules - Timeline extra small */
  .rules-grid::before { left: 20px; width: 2px; }
  .rule-card { padding: 20px 20px 20px 64px; }
  .tc-icon-box { width: 36px; height: 36px; left: 2px; top: 20px; }
  .tc-icon-box h2 { font-size: 14px; }
  .tc-content h3 { font-size: 16px; }
  .tc-content p { font-size: 13px; }

  .teacher-card h3 { font-size: 16px; }
  .teacher-role { font-size: 12px; margin-bottom: 12px; }
  .teacher-badge { font-size: 10px; padding: 3px 10px; }
  .tag { font-size: 11px; padding: 3px 10px; }
}

  /* Form */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cta-card { padding: 32px 20px; }
  .cta-title { font-size: 32px; margin-bottom: 12px; }
  .cta-sub { font-size: 16px; margin-bottom: 32px; }
  .cta-icon img { width: 64px; height: 64px; margin-bottom: 20px; }
  .form-section-title { font-size: 18px; margin-top: 32px; margin-bottom: 20px; }
  .form-group { margin-bottom: 20px; }
  .form-group label { font-size: 13px; margin-bottom: 6px; }
  .form-group input, .form-group select, .form-group textarea {
    padding: 12px 16px; font-size: 14px;
  }
  .btn-submit { padding: 16px; font-size: 16px; margin-top: 20px; }
  #teacher-questions { padding: 16px; margin-bottom: 24px; }

  /* Footer */
  .footer { padding: 24px 0 0; }
  .footer-inner { flex-direction: column; text-align: center; gap: 20px; padding: 0 20px; }
  .footer-logo { flex-direction: column; text-align: center; gap: 12px; }
  .footer-logo-img { height: 40px; }
  .footer-logo p { font-size: 12px; }
  .footer-badge { padding: 10px 16px; }
  .footer-badge strong { font-size: 13px; }
  .footer-badge p { font-size: 11px; }
  .footer-bottom { padding: 12px; font-size: 12px; margin-top: 24px; }

  /* Toast */
  .toast { bottom: 20px; right: 20px; left: 20px; padding: 14px 20px; font-size: 14px; }

  /* Bubbles */
  .bubble { opacity: 0.3; }
  .b1 { width: 200px; height: 200px; }
  .b2 { width: 150px; height: 150px; }
  .b3 { width: 100px; height: 100px; }
}

@media (max-width: 480px) {
  /* Padding tổng thể */
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .hero-inner { padding: 0 24px; }
  .footer-inner { padding: 0 24px; }

  /* Logo nhỏ hơn nữa */
  .logo-img { height: 50px; }

  /* Hero */
  .hero { padding-top: 80px; padding-bottom: 40px; }
  .title-main { font-size: 28px; }
  .title-ko { font-size: 16px; }
  .hero-sub { font-size: 15px; padding: 0 12px; }
  .hero-actions { padding: 0 12px; }
  .hero-badge { font-size: 10px; padding: 5px 12px; }
  .badge-icon { width: 14px; height: 14px; }

  /* Hero Cards */
  .hero-card { padding: 16px 12px; }
  .hc-icon-wrap { width: 48px; height: 48px; }
  .hc-icon { width: 28px; height: 28px; }
  .hc-num { font-size: 14px !important; }
  .hc-label { font-size: 11px; }

  /* Sections */
  section { padding: 40px 0; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 15px; }

  /* Teachers - 1 cột */
  .teachers-carousel .teacher-card {
    min-width: 240px;
  }

  /* Form */
  .cta-card { padding: 24px 16px; }
  .cta-title { font-size: 26px; }
  .cta-sub { font-size: 15px; }
  .form-section-title { font-size: 16px; }
  .btn-submit { font-size: 15px; }

  /* Inline icons */
  .inline-icon { width: 16px; height: 16px; }
}
