:root {
  --primary: #e2211f;
  --primary-dark: #b91a19;
  --maroon: #7a1214;
  --accent: #e2211f;
  --accent2: #b91a19;
  --text: #212328;
  --light-bg: #f5f7fa;
  --border: #e8ecf2;
}

/* ---------- Desktop dropdown (3 cấp) ---------- */
.nav-item {
  position: relative;
}
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  box-shadow: 0 20px 45px -14px rgba(0, 0, 0, 0.22);
  border-top: 3px solid var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 60;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.nav-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item-l2 {
  position: relative;
}
.sub-menu-l3 {
  top: 0;
  left: 100%;
  border-top: none;
  border-left: 3px solid var(--primary);
}
.nav-item-l2:hover > .sub-menu-l3 {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Mobile accordion ---------- */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f8fafc;
}
.mobile-submenu .mobile-submenu {
  background: #f1f5f9;
}
.mobile-submenu.open {
  max-height: 1200px;
}
.mobile-caret {
  transition: transform 0.25s ease;
}
.rotate-open {
  transform: rotate(180deg);
}

/* Ensure mobile menu links and sub-menu links have black text on white background */
#mobileMenu a,
#mobileMenu button,
.mobile-submenu a,
.mobile-submenu button,
.mobile-submenu .mobile-toggle {
  color: #212328 !important;
}
#mobileMenu a:hover,
#mobileMenu button:hover,
.mobile-submenu a:hover,
.mobile-submenu button:hover,
.mobile-submenu .mobile-toggle:hover {
  color: var(--primary) !important;
}

/* Force mobile top-level parent menu items uppercase & bold */
#mobileMenu > ul > li > a,
#mobileMenu > ul > li > button,
#mobileMenu > ul > li > .mobile-toggle {
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

/* Header Address Marquee Animation */
.address-marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.address-marquee-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: headerMarquee 14s linear infinite;
  will-change: transform;
}

.address-marquee-wrap:hover .address-marquee-content {
  animation-play-state: paused;
}

@keyframes headerMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

.header-scrolled {
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.18);
}

/* Eye-catching blinking & ringing animation for CTA button */
@keyframes ctaPulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
  }
}

@keyframes phoneRing {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: rotate(-14deg) scale(1.15);
  }
  20%,
  40%,
  60%,
  80% {
    transform: rotate(14deg) scale(1.15);
  }
}

.animate-cta-glow {
  animation: ctaPulseGlow 1.8s infinite ease-in-out;
}

.animate-phone-ring {
  display: inline-block;
  animation: phoneRing 2s infinite ease-in-out;
}

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

body {
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--text);
  overflow-x: hidden;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar a:hover {
  color: var(--accent);
}

.header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
}

.logo-sub {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.nav-item > a {
  color: #ffffff !important;
}

.sub-menu a {
  color: var(--text) !important;
}

.sub-menu a:hover {
  color: var(--primary) !important;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background: var(--accent2);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  min-width: 200px;
  padding: 8px 0;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--primary) !important;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #f5f7fa;
  color: var(--accent) !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 9998;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.mobile-close-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.mobile-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-body {
  padding: 12px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.mobile-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-link {
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 14px 0 !important;
  border-bottom: none !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: color 0.2s;
  text-transform: uppercase;
}

.mobile-menu-link:hover {
  color: var(--accent) !important;
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  padding: 0 0 12px 16px;
  gap: 0;
}

.mobile-submenu.open {
  display: flex;
}

.mobile-submenu a {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  text-decoration: none;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.mobile-submenu a:last-child {
  border-bottom: none !important;
}

.mobile-submenu a:hover {
  color: var(--accent) !important;
}

.mobile-submenu a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.chevron-icon {
  transition: transform 0.3s;
  flex-shrink: 0;
}

.chevron-icon.rotated {
  transform: rotate(180deg);
}

footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
}

footer h5 {
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 6px;
}

footer a:hover {
  color: #fff;
}

footer p {
  font-size: 13px;
  line-height: 1.7;
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 8px;
  outline: none;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.fixed-cta {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .hamburger span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
  }

  nav.desktop-nav {
    display: none !important;
  }
}

/* ── UNIVERSAL WYSIWYG / RICH TEXT STYLING (.single-content) ── */
.single-content {
  color: #2c3e50;
  font-size: 15.5px;
  line-height: 1.85;
}
.single-content p {
  margin-bottom: 20px;
}
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
  color: var(--primary);
  font-weight: 800;
  line-height: 1.35;
  margin: 32px 0 16px;
}
.single-content h2 {
  font-size: 24px;
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}
.single-content h3 {
  font-size: 20px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}
.single-content h4 {
  font-size: 17px;
}
.single-content a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.single-content a:hover {
  color: var(--accent2);
}

/* Elegant custom Unordered Lists (ul) */
.single-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}
.single-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.7;
}
.single-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

/* Elegant custom Ordered Lists (ol) */
.single-content ol {
  counter-reset: custom-counter;
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}
.single-content ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  counter-increment: custom-counter;
  line-height: 1.7;
}
.single-content ol li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Figcaption and Caption text */
.single-content figcaption,
.single-content .wp-caption-text {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin: 10px 0 24px;
  font-style: italic;
  line-height: 1.5;
  display: block;
}

/* Figure and images */
.single-content figure {
  margin: 28px 0;
  text-align: center;
}
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: block;
  margin: 0 auto;
}

/* Blockquote */
.single-content blockquote {
  border-left: 4px solid var(--accent);
  background: #f8fafc;
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 10px 10px 0;
  color: #475569;
  font-style: italic;
  font-size: 16px;
  line-height: 1.8;
  position: relative;
}
.single-content blockquote p {
  margin-bottom: 0;
}

/* Responsive Table styling */
.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.single-content table th,
.single-content table td {
  padding: 12px 18px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.single-content table th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.5px;
}
.single-content table tr:nth-child(even) {
  background: #f8fafc;
}

/* Helper SVG rules to prevent icon stretching or distortion */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
svg.w-3,
.w-3 {
  width: 12px !important;
  height: 12px !important;
}
svg.w-4,
.w-4 {
  width: 16px !important;
  height: 16px !important;
}
svg.w-5,
.w-5 {
  width: 20px !important;
  height: 20px !important;
}
svg.w-6,
.w-6 {
  width: 24px !important;
  height: 24px !important;
}
