:root {
  --font-signika: 'Signika', ui-sans-serif, system-ui, sans-serif;
  --background: #F5E9DA; /* Warm Cream */
  --foreground: #3B2314; /* Dark Brown */
  --primary: #D35400; /* Burnt Orange CTA */
  --secondary: #EAD8C0; /* Warm Section */
  --accent: #E67E22; /* Orange Hover */
  --muted: #6B5443; /* Warm Muted (darkened for WCAG AA) */
  --surface: #EAD8C0; /* Section BG */
  --card: #FFF8F0; /* Card White */
  --card-border: #E0C3A3; /* Card Border */
  --font-sans: 'Signika', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: 'Signika', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-script: 'Dancing Script', cursive;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-signika);
  margin: 0;
  font-feature-settings: "kern" 1, "liga" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "salt" 0;
  -webkit-font-smoothing: antialiased;
}

.font-script {
  font-family: var(--font-script);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Base utility classes used across the project to emulate original React components without Tailwind if needed or as root styles */

@keyframes train-move {
  0% { transform: translateX(-150%) scaleX(-1); }
  45% { transform: translateX(150%) scaleX(-1); }
  50% { transform: translateX(150%) scaleX(1); }
  95% { transform: translateX(-150%) scaleX(1); }
  100% { transform: translateX(-150%) scaleX(-1); }
}

@keyframes cloud-drift {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateX(50px); opacity: 0; }
}

.animate-train-loop {
  animation: train-move 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.animate-cloud-1 {
  animation: cloud-drift 4s linear infinite;
}

.animate-cloud-2 {
  animation: cloud-drift 5s linear infinite 2s;
}

/* ========== BLOG ARTICLE H1 TITLE ========== */
article h1 {
  color: #3B2314 !important;
}

/* ========== BLOG IMAGE SPACING & STYLING ========== */
.prose img {
  width: 85% !important;
  max-width: 650px !important;
  height: auto;
  margin: 3rem auto !important;
  border-radius: 16px !important;
  border: 1px solid rgba(211, 84, 0, 0.2) !important;
  box-shadow: 0 15px 35px -5px rgba(59, 35, 20, 0.15), 0 0 25px rgba(211, 84, 0, 0.05) !important;
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.prose img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 25px 45px -10px rgba(59, 35, 20, 0.2), 0 0 35px rgba(211, 84, 0, 0.1) !important;
  border-color: rgba(211, 84, 0, 0.4) !important;
}

.prose p + p {
  margin-top: 0.875rem !important;
}

/* ========== BLOG LISTS (BULLETS) ========== */
.prose ul {
  list-style-type: disc !important;
  padding-left: 1.5rem !important;
}

.prose li {
  display: list-item !important;
  margin-bottom: 0.5rem !important;
}

/* ========== BLOG PROSE TEXT CONTRAST (Light Background) ========== */
.prose,
.prose p,
.prose li,
.prose td,
.prose th,
.prose span,
.prose strong,
.prose em,
.prose blockquote {
  color: rgba(59, 35, 20, 0.85) !important;
}

.prose strong,
.prose b {
  color: #3B2314 !important;
  font-weight: 700 !important;
}

.prose a {
  color: #D35400 !important;
}

.prose a:hover {
  color: #E67E22 !important;
}

.prose blockquote {
  border-left-color: #D35400 !important;
  background: rgba(211, 84, 0, 0.05);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose ul, .prose ol {
  color: rgba(59, 35, 20, 0.8) !important;
}

.prose hr {
  border-color: rgba(59, 35, 20, 0.15) !important;
}

/* Override inline black text from WordPress export */
.prose [style*="color: #000"],
.prose [style*="color:#000"],
.prose [style*="color: black"],
.prose [style*="color:black"] {
  color: rgba(59, 35, 20, 0.85) !important;
}

/* ========== BLOG ARTICLE HEADING HIERARCHY ========== */
.prose h2 {
  font-size: 1.875rem !important; /* 30px */
  line-height: 1.3 !important;
  font-weight: 700 !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(211, 84, 0, 0.2);
  color: #3B2314 !important;
}

.prose h3 {
  font-size: 1.375rem !important; /* 22px */
  line-height: 1.4 !important;
  font-weight: 600 !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
  color: #4A301E !important;
  padding-left: 0.75rem;
  border-left: 3px solid #D35400;
}

.prose h4 {
  font-size: 1.125rem !important; /* 18px */
  line-height: 1.5 !important;
  font-weight: 600 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.5rem !important;
  color: #5C3D2E !important;
}

.prose h5 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #6B4C3B !important;
}

/* ========== TABLE OF CONTENTS (TOC) ========== */
.blog-toc {
  background: linear-gradient(135deg, #FFF8F0 0%, #F5E9DA 100%);
  border: 1px solid rgba(211, 84, 0, 0.2);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
}

.blog-toc summary {
  list-style: none;
  cursor: pointer;
  outline: none;
}

.blog-toc summary::-webkit-details-marker {
  display: none;
}


.blog-toc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #D35400, #E67E22);
  border-radius: 4px 0 0 4px;
}

.blog-toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #D35400;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: none;
}

details:not([open]) .blog-toc-title {
  margin-bottom: 0;
}

.blog-toc-title::after {
  content: '▼';
  font-size: 0.65rem;
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

details[open] .blog-toc-title::after {
  transform: rotate(-180deg);
}

.blog-toc-title svg {
  width: 16px;
  height: 16px;
  stroke: #D35400;
}

.blog-toc ol {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
  margin: 0;
}

.blog-toc > ol > li {
  counter-increment: toc-counter;
  margin-bottom: 0.35rem;
}

.blog-toc > ol > li > a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 0.3rem 0;
  transition: all 0.2s ease;
  border-radius: 0.25rem;
}

.blog-toc > ol > li > a:hover {
  color: #D35400;
  padding-left: 0.25rem;
}

.blog-toc > ol > li > a::before {
  content: counter(toc-counter) ".";
  font-weight: 700;
  color: #D35400;
  min-width: 1.5rem;
  font-size: 0.85rem;
}

/* Sub-items (H3) */
.blog-toc .toc-sub {
  list-style: none;
  padding-left: 2rem;
  margin-top: 0.15rem;
  margin-bottom: 0.25rem;
}

.blog-toc .toc-sub li {
  margin-bottom: 0.15rem;
}

.blog-toc .toc-sub a {
  font-size: 0.82rem;
  color: #666;
  text-decoration: none;
  padding: 0.2rem 0;
  display: block;
  transition: all 0.2s ease;
}

.blog-toc .toc-sub a:hover {
  color: #D35400;
  padding-left: 0.25rem;
}

.blog-toc .toc-sub a::before {
  content: "› ";
  color: #D35400;
  font-weight: 600;
}

/* ========== CINEMATIC PRE-LOADER ========== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #F5E9DA;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Train scene */
.preloader-scene {
  position: relative;
  width: min(90vw, 500px);
  height: 70px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.preloader-track {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #D35400 20%, #D35400 80%, transparent 100%);
  opacity: 0.3;
}

.preloader-track::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(211,84,0,0.15) 8px, rgba(211,84,0,0.15) 10px);
}

.preloader-train {
  position: absolute;
  bottom: 12px;
  left: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 0;
  animation: preloader-train-run 2.2s cubic-bezier(0.35, 0.05, 0.65, 0.95) forwards;
  filter: drop-shadow(0 0 12px rgba(211,84,0,0.5));
}

/* === Preloader Locomotive === */
.pl-loco {
  width: 44px;
  height: 28px;
  background: linear-gradient(180deg, #D35400 0%, #A0430A 100%);
  border: 2px solid #E67E22;
  border-radius: 4px 14px 3px 3px;
  position: relative;
  box-shadow: 
    0 0 15px rgba(211, 84, 0, 0.5),
    inset 0 3px 6px rgba(255, 200, 100, 0.3);
}

/* Chimney */
.pl-loco::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 8px;
  width: 8px;
  height: 10px;
  background: linear-gradient(180deg, #2C1A0E 0%, #D35400 100%);
  border-radius: 3px 3px 0 0;
  border: 1.5px solid #E67E22;
  box-shadow: 0 -5px 10px rgba(211, 84, 0, 0.5);
}

/* Wheels + Headlight */
.pl-loco::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 5px;
  width: 7px;
  height: 7px;
  background: #3B2314;
  border: 1.5px solid #D35400;
  border-radius: 50%;
  box-shadow: 
    11px 0 0 #3B2314, 11px 0 0 0 1.5px #D35400,
    22px 0 0 #3B2314, 22px 0 0 0 1.5px #D35400,
    /* Headlight glow */
    40px -8px 15px 5px rgba(255, 220, 100, 0.8),
    40px -8px 35px 12px rgba(255, 200, 50, 0.3);
}

/* === Preloader Coupler Link === */
.pl-coupler {
  width: 8px;
  height: 4px;
  background: #8B5E3C;
  border-radius: 1px;
  align-self: center;
  margin-bottom: 4px;
  box-shadow: 0 0 4px rgba(139, 94, 60, 0.4);
}

/* === Preloader Wagon === */
.pl-wagon {
  width: 38px;
  height: 24px;
  background: linear-gradient(180deg, #E67E22 0%, #C0601A 100%);
  border: 2px solid #D35400;
  border-radius: 4px;
  position: relative;
  box-shadow: 
    0 0 12px rgba(211, 84, 0, 0.35),
    inset 0 2px 4px rgba(255, 200, 100, 0.2);
}

/* Windows */
.pl-wagon::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 5px;
  width: 6px;
  height: 8px;
  background: rgba(173, 216, 230, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.5px;
  box-shadow: 
    9px 0 0 rgba(173, 216, 230, 0.75),
    9px 0 0 0 1px rgba(255, 255, 255, 0.5),
    18px 0 0 rgba(173, 216, 230, 0.75),
    18px 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Wheels */
.pl-wagon::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 4px;
  width: 6px;
  height: 6px;
  background: #3B2314;
  border: 1.5px solid #D35400;
  border-radius: 50%;
  box-shadow: 
    10px 0 0 #3B2314, 10px 0 0 0 1.5px #D35400,
    20px 0 0 #3B2314, 20px 0 0 0 1.5px #D35400;
}

@keyframes preloader-train-run {
  0%   { transform: translateX(-150%); opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(calc(min(90vw, 500px) + 50px)); opacity: 0; }
}

.preloader-smoke {
  position: absolute;
  bottom: 38px;
  width: 6px;
  height: 6px;
  background: rgba(211, 84, 0, 0.25);
  border-radius: 50%;
  animation: preloader-smoke-rise 1.5s ease-out infinite;
}

.preloader-smoke:nth-child(2) { animation-delay: 0.3s; left: 4px; }
.preloader-smoke:nth-child(3) { animation-delay: 0.6s; left: -4px; }

@keyframes preloader-smoke-rise {
  0%   { transform: translateY(0) scale(1); opacity: 0.5; }
  100% { transform: translateY(-30px) scale(2.5); opacity: 0; }
}

/* Preloader brand text */
.preloader-brand {
  text-align: center;
  opacity: 0;
  animation: preloader-brand-in 1s 0.3s forwards;
}

.preloader-brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #D35400;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  animation: preloader-fade-in 0.8s 0.8s forwards;
}

.preloader-brand-main {
  font-family: 'Dancing Script', cursive;
  font-size: 2.8rem;
  color: #3B2314;
  line-height: 1.2;
  display: flex;
  justify-content: center;
  gap: 2px;
  text-shadow: 0 0 30px rgba(211, 84, 0, 0.15);
}

.preloader-brand-main span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.preloader-brand.active .preloader-brand-main span {
  opacity: 1;
  transform: translateY(0);
}

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

.preloader-brand-sub svg {
  width: 10px;
  height: 10px;
  fill: #D35400;
}

@keyframes preloader-brand-in {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Preloader progress bar */
.preloader-progress {
  width: 120px;
  height: 1px;
  background: rgba(59, 35, 20, 0.1);
  margin-top: 2rem;
  border-radius: 1px;
  overflow: hidden;
}

.preloader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #D35400, #E67E22);
  animation: preloader-fill 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes preloader-fill {
  0%   { width: 0%; }
  60%  { width: 70%; }
  100% { width: 100%; }
}

/* ========== GLASSMORPHISM NAVBAR ========== */
#navbar {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
  background: rgba(245, 233, 218, 0.92) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(59, 35, 20, 0.08);
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  box-shadow: 0 4px 30px rgba(59, 35, 20, 0.08);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Reveal from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Reveal from right */
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Toast fade-in animation */
@keyframes fade-in {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.animate-fade-in {
  animation: fade-in 0.4s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem !important;
  }
  .prose h3 {
    font-size: 1.2rem !important;
  }
  .blog-toc {
    padding: 1.25rem 1.5rem;
  }
  .preloader-brand-main {
    font-size: 1.5rem;
  }
  .train-car {
    font-size: 1.4rem;
  }
  .train-car:not(.train-engine) {
    font-size: 1.25rem;
  }
}

/* ========== PREMIUM UI EFFECTS ========== */

/* 1. Shine Sweep Effect */
.hover-shine {
  position: relative;
  overflow: hidden;
}

.hover-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(30deg);
  transition: none;
  pointer-events: none;
}

.hover-shine:hover::after {
  left: 120%;
  transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 2. Golden Glow Effect */
.glow-shadow {
  transition: all 0.5s ease;
}

.glow-shadow:hover {
  box-shadow: 0 0 25px rgba(211, 84, 0, 0.25), 0 0 50px rgba(211, 84, 0, 0.1);
  border-color: rgba(211, 84, 0, 0.4) !important;
}

/* 3. Glassmorphism Play Button & Ripple */
.glass-play-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.glass-play-btn:hover {
  background: rgba(211, 84, 0, 0.8);
  border-color: #D35400;
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(211, 84, 0, 0.4);
}

@keyframes ripple-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.ripple-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #D35400;
  border-radius: 50%;
  animation: ripple-pulse 2s infinite;
  pointer-events: none;
}

/* 4. Animated Gradient Border for Form */
.premium-form-wrap {
  position: relative;
  padding: 1px;
  background: linear-gradient(135deg, rgba(211, 84, 0, 0.15), transparent 40%, transparent 60%, rgba(230, 126, 34, 0.15));
  border-radius: 64px;
  overflow: hidden;
}

.premium-form-wrap::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent, 
    transparent, 
    transparent, 
    #D35400, 
    transparent 20%
  );
  animation: rotate-border 6s linear infinite;
  z-index: 0;
}

.premium-form-inner {
  position: relative;
  z-index: 1;
  background: #FFF8F0;
  border-radius: 64px;
}

@keyframes rotate-border {
  100% { transform: rotate(360deg); }
}

/* Extra touch for inputs */
input:focus, select:focus, textarea:focus {
  background: rgba(255, 248, 240, 0.95) !important;
  box-shadow: 0 0 15px rgba(211, 84, 0, 0.08) !important;
}

/* ========== FLOATING CONTACT BUTTONS ========== */
.floating-contact {
  position: fixed;
  bottom: 100px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1);
  color: white;
}

.floating-btn.btn-call {
  background: #25D366; /* WhatsApp/Phone green */
  animation: floating-pulse-call 2s infinite;
}

.floating-btn.btn-zalo {
  background: #0068FF; /* Zalo blue */
  animation: floating-pulse-zalo 2s infinite;
  animation-delay: 1s;
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Tooltip */
.floating-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-btn:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

@keyframes floating-pulse-call {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes floating-pulse-zalo {
  0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(0, 104, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}

@media (max-width: 768px) {
  .floating-contact {
    bottom: 24px;
    right: 16px;
    left: auto;
    transform: scale(0.85);
    transform-origin: bottom right;
  }
  .floating-btn::before {
    display: none;
  }
}




/* ========== TRAIN RUNNING ANIMATION ========== */

/* === Đầu tàu (kiểu preloader, position absolute) === */
.bt-loco {
  position: absolute;
  width: 44px;
  height: 28px;
  background: linear-gradient(180deg, #D35400 0%, #A0430A 100%);
  border: 2px solid #E67E22;
  border-radius: 4px 14px 3px 3px;
  z-index: 52;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 0 10px rgba(211,84,0,0.45));
  box-shadow: 
    0 0 15px rgba(211, 84, 0, 0.5),
    inset 0 3px 6px rgba(255, 200, 100, 0.3);
}

/* Ống khói */
.bt-loco::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 8px;
  width: 8px;
  height: 10px;
  background: linear-gradient(180deg, #2C1A0E 0%, #D35400 100%);
  border-radius: 3px 3px 0 0;
  border: 1.5px solid #E67E22;
  box-shadow: 0 -5px 10px rgba(211, 84, 0, 0.5);
}

/* Bánh xe + đèn pha */
.bt-loco::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 5px;
  width: 7px;
  height: 7px;
  background: #3B2314;
  border: 1.5px solid #D35400;
  border-radius: 50%;
  box-shadow: 
    11px 0 0 #3B2314, 11px 0 0 0 1.5px #D35400,
    22px 0 0 #3B2314, 22px 0 0 0 1.5px #D35400,
    40px -8px 15px 5px rgba(255, 220, 100, 0.8),
    40px -8px 35px 12px rgba(255, 200, 50, 0.3);
}

/* === Toa tàu (kiểu preloader, position absolute) === */
.bt-wagon {
  position: absolute;
  width: 38px;
  height: 24px;
  background: linear-gradient(180deg, #E67E22 0%, #C0601A 100%);
  border: 2px solid #D35400;
  border-radius: 4px;
  z-index: 51;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 0 8px rgba(211,84,0,0.35));
  box-shadow: 
    0 0 12px rgba(211, 84, 0, 0.35),
    inset 0 2px 4px rgba(255, 200, 100, 0.2);
}

/* Cửa sổ toa */
.bt-wagon::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 5px;
  width: 6px;
  height: 8px;
  background: rgba(173, 216, 230, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.5px;
  box-shadow: 
    9px 0 0 rgba(173, 216, 230, 0.75),
    9px 0 0 0 1px rgba(255, 255, 255, 0.5),
    18px 0 0 rgba(173, 216, 230, 0.75),
    18px 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Bánh xe toa + khớp nối (coupler) bên phải */
.bt-wagon::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 4px;
  width: 6px;
  height: 6px;
  background: #3B2314;
  border: 1.5px solid #D35400;
  border-radius: 50%;
  box-shadow: 
    10px 0 0 #3B2314, 10px 0 0 0 1.5px #D35400,
    20px 0 0 #3B2314, 20px 0 0 0 1.5px #D35400;
}

/* Toa cuối cùng */
.bt-wagon[data-car="4"]::after {
  /* Chỉ giữ bánh xe */
}

/* === Dây xích nối giữa các toa === */
.bt-chain {
  position: absolute;
  width: 14px;
  height: 6px;
  z-index: 53;
  pointer-events: none;
  will-change: transform;
}

/* 3 mắt xích oval */
.bt-chain::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 6px;
  border: 1.5px solid #8B5E3C;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    5px 0 0 0 transparent,
    5px 0 0 1.5px #8B5E3C,
    10px 0 0 0 transparent,
    10px 0 0 1.5px #8B5E3C;
}

/* Thanh ngang mờ phía sau xích */
.bt-chain::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  width: 14px;
  height: 2px;
  background: linear-gradient(90deg, #A0826D, #8B5E3C, #A0826D);
  border-radius: 1px;
  opacity: 0.6;
}

/* ========== REVIEW CARDS GRID LAYOUT ========== */
.review-cards-wrapper {
  position: relative;
}

.review-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-card {
  width: 100%;
}

@media (min-width: 1024px) {
  .review-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== BLOG SEARCH BAR ========== */
.blog-search-wrapper {
  max-width: 560px;
  margin: 0 auto 3rem;
}

.blog-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.blog-search-icon {
  position: absolute;
  left: 1.25rem;
  color: rgba(142, 139, 134, 0.5);
  pointer-events: none;
  transition: color 0.3s;
}

.blog-search-box:focus-within .blog-search-icon {
  color: #D35400;
}

#blog-search {
  width: 100%;
  padding: 1rem 3rem 1rem 3.5rem;
  background: rgba(255, 248, 240, 0.6);
  border: 1px solid rgba(59, 35, 20, 0.12);
  border-radius: 2px;
  color: #3B2314;
  font-size: 0.9rem;
  font-family: 'Signika', sans-serif;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  outline: none;
}

#blog-search::placeholder {
  color: rgba(59, 35, 20, 0.35);
  font-style: italic;
}

#blog-search:focus {
  border-color: rgba(211, 84, 0, 0.4);
  background: rgba(255, 248, 240, 0.8);
  box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.08), 0 4px 20px rgba(59, 35, 20, 0.08);
}

.blog-search-clear {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(142, 139, 134, 0.5);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s;
}

.blog-search-clear:hover {
  color: #D35400;
}

.blog-search-count {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(142, 139, 134, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 1.2em;
}

.blog-item.search-hidden {
  display: none !important;
}
