/* ============================================================
   PORTFOLIO - TRẦN THỊ HÀ NHI
   Theme: Dreamy ULIS Girl  🌸✨
   Aesthetic: Pastel Glassmorphism + Animated Gradient BG
   Font: Times New Roman 12pt (Vietnamese-ready)
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --font-body: 'Times New Roman', Times, serif;

  /* Pastel palette */
  --pink:        #f9a8d4;   /* soft rose */
  --pink-deep:   #ec4899;
  --lavender:    #c4b5fd;   /* lavender */
  --lavender-deep:#7c3aed;
  --mint:        #6ee7b7;   /* mint green */
  --mint-deep:   #059669;
  --peach:       #fcd34d;   /* warm honey */
  --sky:         #93c5fd;   /* sky blue */
  --cream:       #fef9f4;

  /* Glassmorphism */
  --glass-bg:    rgba(255,255,255,0.55);
  --glass-border:rgba(255,255,255,0.75);
  --glass-shadow:0 8px 32px rgba(180,130,200,0.15);

  /* Text */
  --text-dark:   #3b1a4a;
  --text-mid:    #6b4e82;
  --text-light:  #a78bbf;

  /* Accents */
  --grad-hero:   linear-gradient(135deg, #fce4f3 0%, #e8dff5 35%, #d1f0e8 70%, #fef3c7 100%);
  --grad-card:   linear-gradient(135deg, rgba(249,168,212,.18) 0%, rgba(196,181,253,.18) 50%, rgba(110,231,183,.12) 100%);
  --grad-btn:    linear-gradient(135deg, #f9a8d4, #c4b5fd, #6ee7b7);
  --grad-accent: linear-gradient(135deg, #ec4899 0%, #7c3aed 50%, #059669 100%);

  --radius-sm:   12px;
  --radius-md:   18px;
  --radius-lg:   28px;
  --radius-pill: 999px;

  --nav-h:       70px;
  --trans-fast:  0.2s ease;
  --trans-mid:   0.4s cubic-bezier(.25,.8,.25,1);
  --trans-bounce:0.5s cubic-bezier(0.34,1.56,0.64,1);
}

/* Dark mode */
body.dark-mode {
  --glass-bg:    rgba(30,20,50,0.65);
  --glass-border:rgba(200,180,255,0.15);
  --glass-shadow:0 8px 32px rgba(0,0,0,0.4);
  --text-dark:   #f0e6ff;
  --text-mid:    #cbb8f0;
  --text-light:  #9d84c5;
  --cream:       #140e22;
  --grad-hero:   linear-gradient(135deg, #1a0d2e 0%, #1a1040 35%, #0d2210 70%, #1e1407 100%);
  --grad-card:   linear-gradient(135deg, rgba(249,168,212,.08) 0%, rgba(196,181,253,.1) 50%, rgba(110,231,183,.05) 100%);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
html { font-size: 12pt; scroll-behavior: smooth; }

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated gradient canvas background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--grad-hero);
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  33%  { background-position: 100% 50%; }
  66%  { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

/* Floating blob decorations */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 25%, rgba(249,168,212,0.35) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(196,181,253,0.3) 0%, transparent 35%),
    radial-gradient(circle at 75% 80%, rgba(110,231,183,0.25) 0%, transparent 40%),
    radial-gradient(circle at 30% 75%, rgba(252,211,77,0.2) 0%, transparent 35%);
  animation: blobDrift 25s ease-in-out infinite alternate;
}
@keyframes blobDrift {
  0%   { transform: scale(1) translate(0,0); }
  33%  { transform: scale(1.05) translate(20px,-10px); }
  66%  { transform: scale(0.97) translate(-15px,15px); }
  100% { transform: scale(1.03) translate(10px,-20px); }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--pink), var(--lavender));
  border-radius: var(--radius-pill);
}

/* ── LAYOUT WRAPPER ─────────────────────────────────────────── */
.portfolio-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOP NAVIGATION ─────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  height: auto;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(180,130,200,0.12);
  transition: background var(--trans-mid);
  overflow: visible;
  padding: 0;
}

/* Profile row inside top nav */
.profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

.avatar-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow:
    0 0 0 2px var(--pink),
    0 0 0 4px rgba(249,168,212,0.4),
    0 8px 20px rgba(236,72,153,0.3);
  transition: transform var(--trans-bounce), box-shadow var(--trans-mid);
}

.profile-avatar:hover {
  transform: scale(1.1) rotate(-4deg);
  box-shadow:
    0 0 0 2px var(--lavender),
    0 0 0 4px rgba(196,181,253,0.5),
    0 12px 28px rgba(124,58,237,0.35);
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(34,197,94,0.6); }
  50%       { box-shadow: 0 0 16px rgba(34,197,94,0.9); }
}

.profile-name {
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.profile-role {
  font-size: 0.99rem;
  color: var(--text-mid);
  white-space: nowrap;
}

.profile-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.badge {
  font-size: 0.94rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.badge-ulis {
  background: rgba(196,181,253,0.2);
  color: var(--lavender-deep);
  border-color: rgba(196,181,253,0.4);
}

.badge-mssv {
  background: rgba(249,168,212,0.2);
  color: var(--pink-deep);
  border-color: rgba(249,168,212,0.4);
}

/* Horizontal nav pill strip */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex-grow: 0;
}

.nav-menu::-webkit-scrollbar { display: none; }

.nav-divider {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding: 0 0.5rem;
  opacity: 0.7;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-pill);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--trans-fast);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-btn);
  opacity: 0;
  transition: opacity var(--trans-fast);
}

.nav-item i {
  font-size: 0.97rem;
  position: relative;
  z-index: 1;
  transition: transform var(--trans-fast);
}

.nav-item span {
  position: relative;
  z-index: 1;
}

.nav-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(180,130,220,0.25);
  border-color: rgba(249,168,212,0.5);
  color: var(--text-dark);
}

.nav-item:hover i { transform: scale(1.15); }

.nav-item.active {
  background: var(--grad-btn);
  border-color: transparent;
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(180,120,200,0.4);
  transform: translateY(-1px);
}

.nav-item.active i { color: white; }

/* Theme toggle + footer in nav */
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.5rem 0.6rem;
  justify-content: flex-end;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.theme-btn:hover {
  background: rgba(196,181,253,0.25);
  border-color: var(--lavender);
  color: var(--lavender-deep);
  transform: scale(1.04);
}

.footer-copyright {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Mobile hamburger — hidden by default */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-mid);
  cursor: pointer;
  padding: 0.5rem;
}

/* ── MAIN CONTENT ───────────────────────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header bar (shows on mobile only, hidden on desktop) */
.header-bar {
  display: none;
  padding: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 150;
}

.header-title .subject-tag {
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.99rem;
  font-weight: 600;
  color: #16a34a;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.pulse-point {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-glow 1.8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50%       { opacity: 1;   transform: scale(1.2); }
}

/* ── CONTENT SECTIONS ───────────────────────────────────────── */
.content-section {
  display: none;
  padding: 2rem 2.5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--trans-mid), transform var(--trans-mid);
  position: relative;
  animation: none;
}

.content-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: sectionReveal 0.5s cubic-bezier(.25,.8,.25,1) forwards;
}

@keyframes sectionReveal {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── CUTE FLOATING STICKERS ─────────────────────────────────── */
.cute-sticker {
  pointer-events: none;
  user-select: none;
  position: absolute;
  right: 2.5rem;
  top: 1.5rem;
  z-index: 5;
  filter: drop-shadow(0 4px 12px rgba(180,120,200,0.3));
}

.float-sticker { animation: floatSway 4s ease-in-out infinite alternate; }
.sticker-folder { animation: floatSway 4.5s ease-in-out infinite alternate; }
.sticker-search { animation: floatSway 3.8s ease-in-out infinite alternate-reverse; }
.sticker-magic  { animation: swingSticker 3s ease-in-out infinite; }
.sticker-chat   { animation: floatSway 5s ease-in-out infinite alternate; }
.sticker-robot  { animation: floatSway 4.2s ease-in-out infinite alternate-reverse; }
.sticker-shield { animation: floatSway 4.8s ease-in-out infinite alternate; }
.sticker-stars  { animation: sparkSpin 6s linear infinite; }

@keyframes floatSway {
  0%   { transform: translateY(0)    rotate(-3deg); }
  100% { transform: translateY(-14px) rotate(4deg); }
}

@keyframes swingSticker {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50%       { transform: rotate(8deg)  scale(1.05); }
}

@keyframes sparkSpin {
  0%   { transform: rotate(0deg)   scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ── GLASS CARD ─────────────────────────────────────────────── */
.info-card,
.syntax-card,
.level-card,
.tool-card-detailed,
.ai-tool-item,
.principle-card,
.summary-card,
.analysis-box,
.concept-card,
.rule-item,
.challenge-item,
.policy-card,
.topic-box {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--glass-shadow);
  transition: transform var(--trans-mid), box-shadow var(--trans-mid);
  position: relative;
  overflow: hidden;
}

.info-card::before,
.principle-card::before,
.summary-card::before,
.ai-tool-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-btn);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.info-card:hover,
.syntax-card:hover,
.level-card:hover,
.tool-card-detailed:hover,
.ai-tool-item:hover,
.principle-card:hover,
.summary-card:hover,
.analysis-box:hover,
.concept-card:hover,
.rule-item:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 16px 48px rgba(180,120,200,0.22);
}

/* ── HERO SECTION ───────────────────────────────────────────── */
.section-hero {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  position: relative;
}

.hero-tag {
  display: inline-block;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  animation: fadeInDown 0.6s ease both;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  animation: fadeInUp 0.7s ease both 0.1s;
}

.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease both 0.2s;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── WELCOME GRID ───────────────────────────────────────────── */
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.col-2 { grid-column: 1 / 3; }
.col-2-span { grid-column: 1 / -1; }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--grad-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* ── STATS PANEL ────────────────────────────────────────────── */
.stats-panel {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  flex: 1;
  min-width: 120px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  transition: transform var(--trans-bounce);
}

.stat-item:hover { transform: scale(1.06) translateY(-3px); }

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-top: 0.25rem;
}

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
  margin-bottom: 1.5rem;
  padding-right: 100px; /* avoid overlap with sticker */
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.subsection-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subsection-title::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: var(--grad-btn);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

/* ── INTRO BUBBLE ───────────────────────────────────────────── */
.intro-bubble {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(249,168,212,0.15), rgba(196,181,253,0.15));
  border: 1px solid rgba(249,168,212,0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.intro-bubble i {
  font-size: 1.2rem;
  color: var(--pink-deep);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── TIMELINE (BÀI 1) ───────────────────────────────────────── */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 2rem;
  border-left: 3px solid transparent;
  border-image: linear-gradient(to bottom, var(--pink), var(--lavender), var(--mint)) 1;
  position: relative;
}

.timeline-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  animation: fadeInUp 0.5s ease both;
}

.timeline-step:nth-child(1)  { animation-delay: .05s; }
.timeline-step:nth-child(2)  { animation-delay: .10s; }
.timeline-step:nth-child(3)  { animation-delay: .15s; }
.timeline-step:nth-child(4)  { animation-delay: .20s; }
.timeline-step:nth-child(5)  { animation-delay: .25s; }
.timeline-step:nth-child(6)  { animation-delay: .30s; }
.timeline-step:nth-child(7)  { animation-delay: .35s; }

.timeline-step::before {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 0.9rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-btn);
  box-shadow: 0 0 0 3px rgba(249,168,212,0.3);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-card);
  border: 2px solid rgba(249,168,212,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--pink-deep);
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.step-content {
  flex: 1;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--glass-shadow);
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.step-images {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* ── THUMBNAIL WRAPPERS (images) ────────────────────────────── */
.thumbnail-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  border: 2px solid rgba(249,168,212,0.3);
  transition: transform var(--trans-bounce), box-shadow var(--trans-mid);
  background: rgba(255,255,255,0.3);
  flex: 1;
  min-width: 130px;
  max-width: 260px;
}

.thumbnail-wrapper:hover {
  transform: scale(1.04) translateY(-3px);
  box-shadow: 0 12px 36px rgba(180,120,200,0.3);
  border-color: var(--pink);
}

.thumbnail-wrapper img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.thumbnail-wrapper:hover img { transform: scale(1.08); }

.zoom-icon,
.img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(40,10,60,0.75), transparent);
  color: white;
  font-size: 0.97rem;
  padding: 0.4rem 0.6rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.thumbnail-wrapper:hover .zoom-icon,
.thumbnail-wrapper:hover .img-caption { opacity: 1; }

/* ── TOPIC BOX ──────────────────────────────────────────────── */
.topic-box {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.topic-box::before {
  content: '✨';
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.5rem;
  animation: floatSway 3s ease-in-out infinite alternate;
}

.topic-meta {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lavender-deep);
  margin-bottom: 0.4rem;
}

.topic-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* ── GRID LAYOUTS ───────────────────────────────────────────── */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.evidence-grid { margin-bottom: 0.75rem; }

/* ── SYNTAX CARDS (BÀI 2) ───────────────────────────────────── */
.syntax-badge {
  font-size: 0.94rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
  display: inline-block;
}

.syntax-vn     { background: rgba(249,168,212,0.2); color: var(--pink-deep); }
.syntax-en     { background: rgba(196,181,253,0.2); color: var(--lavender-deep); }
.syntax-domain { background: rgba(110,231,183,0.2); color: var(--mint-deep); }

.code-box {
  background: rgba(30,10,50,0.06);
  border: 1px solid rgba(196,181,253,0.25);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-family: 'Courier New', monospace;
  font-size: 0.92rem;
  color: var(--lavender-deep);
  margin-bottom: 0.6rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

body.dark-mode .code-box {
  background: rgba(196,181,253,0.07);
  color: var(--lavender);
}

.syntax-explain { font-size: 0.97rem; color: var(--text-mid); line-height: 1.5; }

/* ── TABLE ──────────────────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(196,181,253,0.25);
  margin-bottom: 1.25rem;
}

.academic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
}

.academic-table thead {
  background: linear-gradient(135deg, rgba(249,168,212,0.2), rgba(196,181,253,0.2));
}

.academic-table th {
  padding: 0.75rem 0.9rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-dark);
  border-bottom: 2px solid rgba(196,181,253,0.3);
  white-space: nowrap;
}

.academic-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(196,181,253,0.12);
  color: var(--text-mid);
  vertical-align: middle;
  line-height: 1.4;
}

.academic-table tbody tr:hover {
  background: rgba(249,168,212,0.07);
}

.academic-table tbody tr:last-child td { border-bottom: none; }

.author-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

/* Doc type tags */
.doc-tag {
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.doc-journal { background: rgba(196,181,253,0.2); color: var(--lavender-deep); }
.doc-intl    { background: rgba(110,231,183,0.2); color: var(--mint-deep); }
.doc-book    { background: rgba(249,168,212,0.2); color: var(--pink-deep); }
.doc-web     { background: rgba(252,211,77,0.2);  color: #b45309; }

/* Reliability badges */
.reliability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.99rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.r-very-high { background: rgba(110,231,183,0.2); color: var(--mint-deep);      border: 1px solid rgba(110,231,183,0.3); }
.r-high      { background: rgba(196,181,253,0.2); color: var(--lavender-deep);  border: 1px solid rgba(196,181,253,0.3); }
.r-medium    { background: rgba(252,211,77,0.2);  color: #b45309;               border: 1px solid rgba(252,211,77,0.3); }

/* ── FINDINGS PANEL ─────────────────────────────────────────── */
.findings-panel {
  background: linear-gradient(135deg, rgba(110,231,183,0.12), rgba(196,181,253,0.12));
  border: 1px solid rgba(110,231,183,0.25);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.findings-panel h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.findings-panel ul { padding-left: 1.2rem; }
.findings-panel li {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

/* ── REFERENCE BOX ──────────────────────────────────────────── */
.reference-box {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(196,181,253,0.25);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
}

.harvard-ref-list { padding-left: 1.2rem; }
.harvard-ref-list li {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

/* ── PROMPT SECTION TABS ────────────────────────────────────── */
.tabs-container {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid rgba(196,181,253,0.2);
  background: linear-gradient(135deg, rgba(249,168,212,0.1), rgba(196,181,253,0.1));
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-dark);
  background: rgba(249,168,212,0.08);
}

.tab-btn.active {
  color: var(--pink-deep);
  border-bottom-color: var(--pink-deep);
  background: rgba(249,168,212,0.1);
}

.tabs-content { padding: 1.25rem; }

.tab-pane { display: none; }
.tab-pane.active {
  display: block;
  animation: sectionReveal 0.35s ease both;
}

.prompt-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Level cards with left border accent */
.level-card {
  border-left-width: 4px;
  border-left-style: solid;
  padding: 1rem 1.1rem;
}

.basic-border    { border-left-color: var(--text-light); }
.improved-border { border-left-color: var(--sky); }
.advanced-border { border-left-color: var(--pink-deep); }

.card-level {
  font-size: 0.99rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-basic    { background: var(--text-light); }
.dot-improved { background: var(--sky); }
.dot-advanced { background: var(--pink-deep); }

.prompt-text-block,
.output-text-block {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

/* Prompt comparison badges */
.prompt-badge {
  display: inline-block;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.p-basic    { background: rgba(167,139,191,0.15); color: var(--text-light); }
.p-improved { background: rgba(147,197,253,0.2);  color: #1d4ed8; }
.p-advanced { background: rgba(249,168,212,0.2);  color: var(--pink-deep); }

.task-td { font-size: 0.94rem; color: var(--text-dark); vertical-align: middle; }

.control-badge {
  display: inline-block;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.c-low  { background: rgba(252,211,77,0.2);  color: #b45309; }
.c-mid  { background: rgba(147,197,253,0.2); color: #1d4ed8; }
.c-high { background: rgba(110,231,183,0.2); color: var(--mint-deep); }

/* ── RULES CONTAINER (Principles) ───────────────────────────── */
.rules-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.rule-item { text-align: center; padding: 1.2rem; }

.rule-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 0.6rem;
}

.rule-item h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.rule-item p {
  font-size: 0.94rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── GALLERY (BÀI 3) ────────────────────────────────────────── */
.gallery-wrapper {
  margin-top: 1rem;
}

.gallery-tip {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scroll-gallery {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  border: 2px solid rgba(196,181,253,0.3);
  transition: all var(--trans-bounce);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  position: relative;
}

.gallery-thumb img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-thumb span {
  display: block;
  font-size: 0.95rem;
  color: var(--text-mid);
  text-align: center;
  padding: 0.25rem;
}

.gallery-thumb:hover {
  transform: scale(1.06) translateY(-4px);
  border-color: var(--lavender);
  box-shadow: 0 10px 28px rgba(196,181,253,0.35);
}

.gallery-thumb:hover img { transform: scale(1.1); }

/* ── TOOLS SHOWCASE (BÀI 4-5) ──────────────────────────────── */
.tools-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tool-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.tool-head h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.tool-head i { font-size: 1.3rem; }

.drive-color { color: #4285f4; }
.zalo-color  { color: #0068ff; }

.ai-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ai-brand-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.ai-brand {
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.cl-color    { background: rgba(249,168,212,0.2); color: var(--pink-deep); }
.canva-color { background: rgba(110,231,183,0.2); color: var(--mint-deep); }
.dalle-color { background: rgba(196,181,253,0.2); color: var(--lavender-deep); }

.ai-use {
  font-size: 0.92rem;
  color: var(--text-light);
}

.ai-prompt-box {
  background: rgba(30,10,50,0.05);
  border: 1px solid rgba(196,181,253,0.2);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.ai-feedback {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── CONFLICT / CHALLENGE ───────────────────────────────────── */
.conflict-resolution {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.ch-badge {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.danger-badge { background: rgba(252,165,165,0.2); color: #dc2626; border: 1px solid rgba(252,165,165,0.3); }

.solve-text {
  font-size: 0.97rem;
  color: var(--mint-deep);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

/* ── ANALYSIS BOX ───────────────────────────────────────────── */
.analysis-box { text-align: center; padding: 1.2rem; }

.box-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 0.6rem;
}

.analysis-box h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.analysis-box p {
  font-size: 0.94rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── PRINCIPLES GRID (BÀI 6) ────────────────────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pr-num {
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pr-content h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.pr-content p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── SPEAKING GRID (BÀI 6) ──────────────────────────────────── */
.task-speaking-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.speaking-desc {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}

.speaking-desc p,
.speaking-desc ul {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.speaking-desc ul { padding-left: 1.2rem; }

.speaking-images { display: flex; flex-direction: column; gap: 0.75rem; }

/* ── INFOGRAPHIC ────────────────────────────────────────────── */
.infographic-wrapper {
  display: flex;
  justify-content: center;
}

.infographic-wrapper .thumbnail-wrapper {
  max-width: 480px;
  width: 100%;
}

.infographic-wrapper .thumbnail-wrapper img {
  height: 280px;
}

/* ── SUMMARY GRID (TỔNG KẾT) ────────────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.summary-card.col-2-span { grid-column: 1 / -1; }

.summary-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.clean-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.clean-list li {
  font-size: 0.97rem;
  color: var(--text-mid);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.5;
}

/* ── LIGHTBOX ────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20,5,35,0.88);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInLightbox 0.25s ease both;
}

.lightbox.open { display: flex; }

@keyframes fadeInLightbox {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  line-height: 1;
  transition: transform var(--trans-fast), color var(--trans-fast);
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.2);
  color: var(--pink);
}

.lightbox-content {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  border: 2px solid rgba(249,168,212,0.3);
  animation: zoomIn 0.3s cubic-bezier(.25,.8,.25,1) both;
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lightbox-caption {
  color: rgba(255,255,255,0.8);
  font-size: 0.97rem;
  text-align: center;
  max-width: 500px;
}

/* ── CODE HIGHLIGHT ──────────────────────────────────────────── */
.code-highlight {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: rgba(196,181,253,0.15);
  color: var(--lavender-deep);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  border: 1px solid rgba(196,181,253,0.25);
}

body.dark-mode .code-highlight {
  background: rgba(196,181,253,0.1);
  color: var(--lavender);
}

kbd {
  font-family: 'Courier New', monospace;
  font-size: 0.82em;
  background: rgba(249,168,212,0.1);
  color: var(--pink-deep);
  border: 1px solid rgba(249,168,212,0.3);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

/* ── PARAGRAPH TEXT ──────────────────────────────────────────── */
.paragraph-text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── COLOR UTILITIES ─────────────────────────────────────────── */
.text-teal   { color: var(--mint-deep); }
.text-purple { color: var(--lavender-deep); }
.text-orange { color: #ea580c; }
.text-blue   { color: #2563eb; }
.text-pink   { color: var(--pink-deep); }
.text-yellow { color: #d97706; }
.text-green  { color: #16a34a; }
.text-red    { color: #dc2626; }

.sticker-inline {
  display: inline-block;
  margin-right: 0.3rem;
  font-size: 1.05em;
  animation: floatSway 3.5s ease-in-out infinite alternate;
}

/* ── CURSOR SPARKLE ──────────────────────────────────────────── */
.cursor-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  font-size: 0.9rem;
  animation: sparkFade 0.7s ease-out forwards;
  user-select: none;
}

@keyframes sparkFade {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-30px) scale(0.4); }
}

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .header-bar { display: flex; }
  .mobile-menu-btn { display: block; }

  .sidebar {
    position: fixed;
    top: 0; left: -100%;
    width: 290px;
    height: 100vh;
    flex-direction: column;
    overflow-y: auto;
    padding: 1.25rem;
    transition: left 0.35s cubic-bezier(.25,.8,.25,1);
    box-shadow: 4px 0 30px rgba(180,120,200,0.25);
  }

  .sidebar.mobile-open { left: 0; }

  .profile-card {
    flex-direction: column;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .profile-badges { justify-content: center; margin-left: 0; }

  .nav-menu {
    flex-direction: column;
    overflow-x: visible;
    gap: 0.35rem;
  }

  .nav-item {
    width: 100%;
    border-radius: var(--radius-md);
  }

  .sidebar-footer {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.3);
  }

  .content-section { padding: 1.25rem; }
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.3rem; }

  .welcome-grid,
  .prompt-levels-grid,
  .principles-grid,
  .summary-grid { grid-template-columns: 1fr; }

  .col-2, .col-2-span { grid-column: 1; }

  .grid-2col,
  .grid-3col,
  .grid-4col,
  .rules-container { grid-template-columns: 1fr; }

  .tools-showcase { grid-template-columns: 1fr; }
  .task-speaking-grid { grid-template-columns: 1fr; }

  .cute-sticker { display: none; }
  .section-header { padding-right: 0; }
}

@media (max-width: 600px) {
  .welcome-grid,
  .stats-panel { grid-template-columns: 1fr; }
  .col-2 { grid-column: 1; }
}

/* ── EXTRA UTILITY STYLES ────────────────────────────────────── */
.policy-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Concept card (Bài 5) */
.concept-card h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Inside info-cards */
.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Ensure headings in content sections use proper color */
h2, h3, h4, h5 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-dark);
}

/* em/strong in content */
em { font-style: italic; color: var(--lavender-deep); }
strong { font-weight: 700; }

/* li inside challenge-item */
.challenge-item p,
.challenge-item ul {
  font-size: 0.99rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

/* Tool card detailed p */
.tool-card-detailed p {
  font-size: 0.99rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* Dark mode adjustments for backgrounds */
body.dark-mode .sidebar {
  background: rgba(20,10,35,0.75);
  border-bottom-color: rgba(196,181,253,0.12);
}

body.dark-mode .academic-table {
  background: rgba(30,18,48,0.7);
}

body.dark-mode .academic-table thead {
  background: linear-gradient(135deg, rgba(249,168,212,0.08), rgba(196,181,253,0.1));
}

body.dark-mode .step-content,
body.dark-mode .speaking-desc,
body.dark-mode .reference-box {
  background: rgba(30,18,48,0.6);
}

body.dark-mode .ai-prompt-box {
  background: rgba(196,181,253,0.06);
}

/* Scroll gallery scrollbar */
.scroll-gallery::-webkit-scrollbar { height: 4px; }
.scroll-gallery::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, var(--pink), var(--lavender));
  border-radius: var(--radius-pill);
}

/* Bài 1 step number color cycling */
.timeline-step:nth-child(1) .step-number  { color: var(--pink-deep); border-color: rgba(249,168,212,0.4); }
.timeline-step:nth-child(2) .step-number  { color: var(--lavender-deep); border-color: rgba(196,181,253,0.4); }
.timeline-step:nth-child(3) .step-number  { color: var(--mint-deep); border-color: rgba(110,231,183,0.4); }
.timeline-step:nth-child(4) .step-number  { color: #d97706; border-color: rgba(252,211,77,0.4); }
.timeline-step:nth-child(5) .step-number  { color: var(--pink-deep); border-color: rgba(249,168,212,0.4); }
.timeline-step:nth-child(6) .step-number  { color: var(--lavender-deep); border-color: rgba(196,181,253,0.4); }
.timeline-step:nth-child(7) .step-number  { color: var(--mint-deep); border-color: rgba(110,231,183,0.4); }

/* Nice hover glow on stat items */
.stat-item:hover {
  box-shadow: 0 8px 28px rgba(249,168,212,0.25);
}

