@import url('https://fonts.googleapis.com/css2?family=Mitr:wght@300;400;500;600;700&family=Sarabun:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --pink: #FFB3C6;
  --pink-light: #FFE4EC;
  --pink-dark: #FF6B9D;
  --blue: #B3D9FF;
  --blue-light: #E4F3FF;
  --blue-dark: #5BA3D9;
  --purple: #D4B3FF;
  --purple-light: #F0E4FF;
  --purple-dark: #9B59B6;
  --cream: #FFF8E7;
  --yellow: #FFE99A;
  --yellow-dark: #F4C430;
  --mint: #B3F0DC;
  --mint-light: #E4FFF5;
  --mint-dark: #2ECC71;
  --white: #FFFFFF;
  --text: #4A3F6B;
  --text-light: #7B6E9E;
  --text-muted: #A89FC4;
  --shadow: 0 8px 32px rgba(155, 89, 182, 0.12);
  --shadow-hover: 0 16px 48px rgba(155, 89, 182, 0.22);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', sans-serif;
  background: linear-gradient(135deg, #FFF0F5 0%, #F0F8FF 50%, #F5F0FF 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── FLOATING DECO ── */
body::before {
  content: '';
  position: fixed;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,179,198,0.18) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(179,217,255,0.15) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ── NAVBAR ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--pink-light);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 44px; border-radius: 12px; }
.nav-logo-text { font-family: 'Mitr', sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--pink-dark); line-height: 1.2; }
.nav-links { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; color: var(--text); font-size: 0.92rem; font-weight: 500;
  padding: 7px 16px; border-radius: 20px;
  transition: all 0.2s; white-space: nowrap;
}
.nav-links a:hover { background: var(--pink-light); color: var(--pink-dark); }
.btn-buy-nav {
  background: linear-gradient(135deg, var(--pink-dark), var(--purple-dark)) !important;
  color: white !important; font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(255,107,157,0.35) !important;
}
.btn-buy-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,157,0.45) !important; }

/* ── HERO ── */
.hero {
  position: relative; z-index: 1;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #FFE4EC 0%, #E4F3FF 40%, #F0E4FF 80%, #E4FFF5 100%);
  opacity: 0.6; z-index: -1;
}
.hero-deco { position: absolute; font-size: 3rem; opacity: 0.15; pointer-events: none; }
.hero-deco:nth-child(1) { top: 10%; left: 5%; animation: float1 6s ease-in-out infinite; }
.hero-deco:nth-child(2) { top: 20%; right: 8%; animation: float2 7s ease-in-out infinite; }
.hero-deco:nth-child(3) { bottom: 20%; left: 10%; animation: float1 5s ease-in-out infinite 1s; }
.hero-deco:nth-child(4) { bottom: 30%; right: 5%; animation: float2 8s ease-in-out infinite 0.5s; }
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }
@keyframes float2 { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-16px) rotate(8deg)} }

.hero-logo { height: 90px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 24px; animation: popIn 0.6s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes popIn { from{transform:scale(0.5);opacity:0} to{transform:scale(1);opacity:1} }

.hero h1 {
  font-family: 'Mitr', sans-serif; font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700; color: var(--text);
  line-height: 1.3; margin-bottom: 12px;
}
.hero h1 span { color: var(--pink-dark); }
.hero-sub { font-size: 1.1rem; color: var(--text-light); margin-bottom: 32px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px;
  font-family: 'Mitr', sans-serif; font-size: 1rem; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--purple-dark) 100%);
  color: white; box-shadow: 0 6px 24px rgba(255,107,157,0.4);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 36px rgba(255,107,157,0.5); }
.btn-secondary {
  background: white; color: var(--pink-dark);
  border: 2px solid var(--pink); box-shadow: var(--shadow);
}
.btn-secondary:hover { transform: translateY(-3px); background: var(--pink-light); }
.btn-mint {
  background: linear-gradient(135deg, var(--mint-dark), var(--blue-dark));
  color: white; box-shadow: 0 6px 24px rgba(46,204,113,0.35);
}
.btn-mint:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(46,204,113,0.45); }
.btn-yellow {
  background: linear-gradient(135deg, var(--yellow-dark), #E67E22);
  color: white; box-shadow: 0 6px 24px rgba(244,196,48,0.4);
}
.btn-yellow:hover { transform: translateY(-3px); }
.btn-buy {
  background: linear-gradient(135deg, #FF6B9D, #C0392B);
  color: white; font-size: 1.05rem; font-weight: 600;
  box-shadow: 0 8px 28px rgba(255,107,157,0.5);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 8px 28px rgba(255,107,157,0.5)} 50%{box-shadow:0 12px 40px rgba(255,107,157,0.7)} }
.btn-buy:hover { transform: translateY(-4px) scale(1.06); animation: none; box-shadow: 0 16px 48px rgba(255,107,157,0.6); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ── SECTIONS ── */
section { padding: 64px 24px; position: relative; z-index: 1; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-family: 'Mitr', sans-serif; font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700; color: var(--text); text-align: center; margin-bottom: 8px;
}
.section-title span { color: var(--pink-dark); }
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 40px; font-size: 1rem; }
.section-emoji { font-size: 2rem; display: block; text-align: center; margin-bottom: 8px; }

/* ── CARDS ── */
.card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255,179,198,0.2);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--pink-dark), var(--purple-dark), var(--blue-dark));
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

/* ── SUBJECT PILLS ── */
.subject-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
  margin: 4px;
}
.pill-math { background: var(--blue-light); color: var(--blue-dark); }
.pill-sci { background: var(--mint-light); color: var(--mint-dark); }
.pill-thai { background: var(--pink-light); color: var(--pink-dark); }
.pill-eng { background: var(--purple-light); color: var(--purple-dark); }
.pill-soc { background: var(--cream); color: #C0392B; }

/* ── PROVINCE GRID ── */
.province-card {
  background: white; border-radius: var(--radius);
  padding: 20px; text-align: center;
  box-shadow: var(--shadow); border: 2px solid transparent;
  text-decoration: none; color: var(--text);
  transition: all 0.3s; display: block;
}
.province-card:hover {
  border-color: var(--pink);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.province-emoji { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.province-name { font-family: 'Mitr', sans-serif; font-size: 1rem; font-weight: 600; color: var(--text); }
.province-count { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ── SCHOOL CARD ── */
.school-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 2px solid rgba(255,179,198,0.15);
  transition: all 0.3s;
}
.school-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.school-card-header {
  background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
  padding: 20px; text-align: center;
}
.school-rank {
  display: inline-block; background: var(--pink-dark); color: white;
  border-radius: 50%; width: 32px; height: 32px;
  line-height: 32px; text-align: center; font-weight: 700; font-size: 0.9rem;
  margin-bottom: 8px;
}
.school-name-card {
  font-family: 'Mitr', sans-serif; font-size: 1rem; font-weight: 600; color: var(--text);
  display: block; margin-bottom: 4px;
}
.school-card-body { padding: 16px; }
.school-card-body a {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--pink-dark), var(--purple-dark));
  color: white; text-decoration: none;
  padding: 10px; border-radius: 12px;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s;
}
.school-card-body a:hover { opacity: 0.85; transform: scale(1.02); }

/* ── QUIZ ── */
.quiz-container { background: white; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.quiz-header { text-align: center; margin-bottom: 32px; }
.quiz-progress {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 24px;
}
.quiz-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pink-light); border: 2px solid var(--pink);
  transition: all 0.2s;
}
.quiz-dot.answered { background: var(--mint-dark); border-color: var(--mint-dark); }
.quiz-dot.correct { background: #2ECC71; border-color: #2ECC71; }
.quiz-dot.wrong { background: #E74C3C; border-color: #E74C3C; }

.question-block {
  margin-bottom: 32px; padding: 24px;
  background: var(--cream); border-radius: var(--radius);
  border-left: 5px solid var(--pink);
}
.question-block.math-q { border-left-color: var(--blue-dark); background: var(--blue-light); }
.question-block.sci-q { border-left-color: var(--mint-dark); background: var(--mint-light); }
.question-block.thai-q { border-left-color: var(--pink-dark); background: var(--pink-light); }
.question-block.eng-q { border-left-color: var(--purple-dark); background: var(--purple-light); }
.question-block.soc-q { border-left-color: #E67E22; background: #FEF9E7; }

.question-block.correct { border-left-color: #2ECC71; background: #EAFAF1; }
.question-block.wrong { border-left-color: #E74C3C; background: #FDEDEC; }

.q-num { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.q-subject-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 10px; border-radius: 12px; margin-bottom: 10px; }
.q-text { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 16px; line-height: 1.6; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice-label {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 2px solid rgba(155,89,182,0.15);
  background: white; cursor: pointer;
  transition: all 0.2s; font-size: 0.95rem;
}
.choice-label:hover { border-color: var(--purple); background: var(--purple-light); }
.choice-label input[type="radio"] { display: none; }
.choice-label.selected { border-color: var(--purple-dark); background: var(--purple-light); font-weight: 600; }
.choice-label.correct-ans { border-color: #2ECC71; background: #EAFAF1; color: #1A7A4A; font-weight: 700; }
.choice-label.wrong-ans { border-color: #E74C3C; background: #FDEDEC; color: #C0392B; }
.choice-key { width: 28px; height: 28px; border-radius: 50%; background: var(--purple-light); color: var(--purple-dark); font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.explain-box {
  margin-top: 16px; padding: 16px; border-radius: var(--radius-sm);
  background: #FFF9C4; border-left: 4px solid var(--yellow-dark);
  font-size: 0.9rem; color: var(--text); display: none;
}
.explain-box.show { display: block; }

.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* ── SCORE POPUP ── */
.score-popup {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(100,80,160,0.4); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; display: none;
}
.score-popup.show { display: flex; }
.score-box {
  background: white; border-radius: var(--radius-lg);
  padding: 48px 40px; max-width: 520px; width: 100%;
  text-align: center; box-shadow: 0 24px 80px rgba(155,89,182,0.25);
  animation: scaleIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes scaleIn { from{transform:scale(0.7);opacity:0} to{transform:scale(1);opacity:1} }
.score-big { font-family: 'Mitr', sans-serif; font-size: 5rem; font-weight: 700; color: var(--pink-dark); line-height: 1; }
.score-label { color: var(--text-light); margin-bottom: 24px; }
.score-breakdown { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 28px; text-align: left; }
.score-subject { background: var(--cream); border-radius: var(--radius-sm); padding: 12px 16px; }
.score-subject-name { font-size: 0.8rem; color: var(--text-muted); }
.score-subject-val { font-family: 'Mitr', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 24px; background: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm); margin-bottom: 24px;
  font-size: 0.88rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--pink-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* ── FAQ ── */
.faq-item { background: white; border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(155,89,182,0.08); }
.faq-q {
  padding: 18px 24px; cursor: pointer;
  font-weight: 600; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--pink-light); }
.faq-arrow { font-size: 1.2rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.35s; color: var(--text-light); font-size: 0.93rem; line-height: 1.8; }
.faq-item.open .faq-a { max-height: 500px; padding: 0 24px 18px; }

/* ── REVIEW ── */
.review-card {
  background: white; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  border-top: 4px solid var(--pink);
  position: relative;
}
.review-card::before { content: '💬'; font-size: 2rem; position: absolute; top: -16px; left: 20px; }
.review-stars { color: var(--yellow-dark); font-size: 1.1rem; margin-bottom: 8px; }
.review-text { font-size: 0.93rem; color: var(--text); line-height: 1.7; margin-bottom: 12px; font-style: italic; }
.reviewer { font-weight: 700; color: var(--pink-dark); font-size: 0.88rem; }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(155,89,182,0.6), transparent);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-label { color: white; font-weight: 600; font-size: 0.9rem; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(30,20,60,0.9); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  display: none; padding: 24px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 24px; font-size: 2rem; color: white; cursor: pointer; background: none; border: none; }

/* ── BUY BOX ── */
.buy-box {
  background: linear-gradient(135deg, #FFF0F5, #F0E4FF);
  border-radius: var(--radius-lg); padding: 48px 32px;
  text-align: center; border: 2px solid var(--pink);
  box-shadow: 0 16px 56px rgba(255,107,157,0.15);
  margin: 48px 0;
}
.buy-box h3 { font-family: 'Mitr', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.buy-box p { color: var(--text-light); margin-bottom: 24px; font-size: 1rem; }

/* ── FOOTER ── */
footer {
  background: linear-gradient(135deg, #2D1B4E, #4A1942);
  color: rgba(255,255,255,0.85); padding: 48px 24px 24px;
  position: relative; z-index: 1;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-logo-text { font-family: 'Mitr', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--pink); margin-bottom: 8px; }
.footer-col h4 { color: white; font-family: 'Mitr', sans-serif; margin-bottom: 12px; font-size: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--pink); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ── BADGE / TAG ── */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.badge-pink { background: var(--pink-light); color: var(--pink-dark); }
.badge-blue { background: var(--blue-light); color: var(--blue-dark); }
.badge-mint { background: var(--mint-light); color: var(--mint-dark); }
.badge-purple { background: var(--purple-light); color: var(--purple-dark); }

/* ── INFO BOX ── */
.info-box {
  background: var(--cream); border-radius: var(--radius);
  padding: 24px; border-left: 5px solid var(--yellow-dark);
  margin: 20px 0;
}
.info-box h4 { font-family: 'Mitr', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.info-box ul { padding-left: 20px; color: var(--text-light); font-size: 0.93rem; line-height: 2; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
  border-radius: var(--radius); padding: 32px;
  text-align: center; margin: 32px 0;
}
.highlight-box .big-num {
  font-family: 'Mitr', sans-serif; font-size: 4rem; font-weight: 700; color: var(--pink-dark);
  display: block; line-height: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 48px 16px 40px; }
  .nav-links { display: none; }
  .nav-logo-text { font-size: 0.95rem; }
  section { padding: 40px 16px; }
  .quiz-container { padding: 24px 16px; }
  .score-box { padding: 32px 20px; }
  .buy-box { padding: 32px 20px; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .score-breakdown { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── STICKY BUY ── */
.sticky-buy {
  position: fixed; bottom: 20px; right: 20px; z-index: 500;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.sticky-buy a {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #FF6B9D, #C0392B);
  color: white; text-decoration: none;
  padding: 14px 20px; border-radius: 50px;
  font-family: 'Mitr', sans-serif; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(255,107,157,0.5);
  white-space: nowrap;
}

/* ── TAG SECTION ── */
.subject-section-title {
  font-family: 'Mitr', sans-serif; font-size: 1.15rem; font-weight: 700;
  padding: 8px 20px; border-radius: 12px; display: inline-block; margin-bottom: 16px;
}
.math-title { background: var(--blue-light); color: var(--blue-dark); }
.sci-title { background: var(--mint-light); color: var(--mint-dark); }
.thai-title { background: var(--pink-light); color: var(--pink-dark); }
.eng-title { background: var(--purple-light); color: var(--purple-dark); }
.soc-title { background: #FEF9E7; color: #C0392B; }
