/* Custom CSS for OK9 Customer Service Center */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Barlow+Condensed:wght@700;800&display=swap");

/* Custom Properties */
:root {
  --primary-blue: #0053df;
  --secondary-blue: #2f6eff;
  --text-dark: #3f4f75;
}

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-blue);
}

/* Focus: bàn phím mới hiện ring; click chuột không để viền xanh dương mặc định */
button:focus,
a:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #39b54a;
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Footer Slider Styles */
/* Trước Slick: kẹp 4 item, ẩn phần còn lại — tránh bung hết slide làm bể màn */
.footer-slider:not(.slick-initialized) {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden !important;
  max-height: 136px;
}

.footer-slider:not(.slick-initialized) > .footer-slide {
  flex: 0 0 25%;
  max-width: 25%;
  min-width: 0;
}

.footer-slider:not(.slick-initialized) > .footer-slide:nth-child(n + 5) {
  display: none !important;
}

.footer-slider {
  width: 100%;
  height: 136px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.footer-slider.slick-initialized {
  display: block !important;
  overflow: visible !important;
}

.footer-slider .slick-list,
.footer-slider .slick-track {
  height: 100% !important;
}

.footer-slider .slick-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 136px;
  padding: 6px 6px 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}

.footer-slider .slick-slide > div {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.footer-slider .footer-slide {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  transform: translateY(0);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;
  will-change: transform;
}

.footer-slider .slick-slide img {
  max-width: 78px;
  max-height: 78px;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;
}

.footer-slide__label {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 40, 10, 0.55);
  pointer-events: none;
  max-width: 110px;
  min-height: 1.15em;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-slider .slick-slide:focus,
.footer-slider .slick-slide:focus-visible,
.footer-slide:focus {
  outline: none;
}

/* Hover: cả icon + text trườn lên; hết hover trườn xuống */
.footer-slider .slick-slide:hover .footer-slide,
.footer-slider .slick-slide:focus-within .footer-slide {
  transform: translateY(-10px);
  filter:
    drop-shadow(0 0 12px rgba(92, 255, 106, 0.65))
    drop-shadow(0 8px 14px rgba(57, 181, 74, 0.35));
}

.footer-slider .slick-slide:hover img,
.footer-slider .slick-slide:focus-within img {
  transform: scale(1.06);
  filter: brightness(1.08) drop-shadow(0 0 10px rgba(92, 255, 106, 0.55));
}

.footer-slider .slick-slide:hover .footer-slide__label,
.footer-slider .slick-slide:focus-within .footer-slide__label {
  text-shadow: 0 0 10px rgba(92, 255, 106, 0.7);
}

.footer-slider .slick-slide:active .footer-slide {
  transform: translateY(-4px);
  filter: drop-shadow(0 0 8px rgba(92, 255, 106, 0.5));
  transition-duration: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .footer-slider .footer-slide,
  .footer-slider .slick-slide img,
  .footer-slide__label {
    transition: none !important;
  }

  .footer-slider .slick-slide:hover .footer-slide,
  .footer-slider .slick-slide:focus-within .footer-slide {
    transform: none;
  }
}

/* Custom Navigation Arrows — chỉ dùng left.png / right.png */
.footer-slider .custom-arrow,
.footer-slider-wrap > .custom-arrow,
.footer-slider-wrap > .slick-prev,
.footer-slider-wrap > .slick-next,
.footer-slider-container > .custom-arrow,
.footer-slider-container > .slick-prev,
.footer-slider-container > .slick-next {
  position: absolute !important;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  pointer-events: auto !important;
  font-size: 0 !important;
  color: transparent !important;
  outline: none !important;
}

.footer-slider .custom-arrow:hover,
.footer-slider-wrap > .custom-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: transparent !important;
}

.footer-slider .custom-arrow:active,
.footer-slider-wrap > .custom-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.footer-slider .custom-arrow img,
.footer-slider-wrap > .custom-arrow img,
.footer-slider-container > .custom-arrow img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block !important;
  /* PNG nền đen → chỉ hiện mũi tên trắng trên nền xanh */
  mix-blend-mode: screen;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ẩn hoàn toàn mũi tên mặc định của Slick (::before) */
.footer-slider .slick-prev:before,
.footer-slider .slick-next:before,
.footer-slider-wrap .slick-prev:before,
.footer-slider-wrap .slick-next:before,
.footer-slider-wrap > .slick-prev:before,
.footer-slider-wrap > .slick-next:before,
.footer-slider-container .slick-prev:before,
.footer-slider-container .slick-next:before {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  font-size: 0 !important;
}

/* Ép trong border — ghi đè slick-theme left/right: -25px */
.footer-slider .custom-prev,
.footer-slider-wrap > .custom-prev,
.footer-slider-wrap > .slick-prev,
.footer-slider-container > .custom-prev,
.footer-slider-container > .slick-prev {
  left: 6px !important;
  right: auto !important;
}

.footer-slider .custom-next,
.footer-slider-wrap > .custom-next,
.footer-slider-wrap > .slick-next,
.footer-slider-container > .custom-next,
.footer-slider-container > .slick-next {
  right: 6px !important;
  left: auto !important;
}

/* Responsive cho custom arrows */
@media (max-width: 1200px) {
  .footer-slider-wrap > .custom-prev,
  .footer-slider-wrap > .slick-prev,
  .footer-slider-container > .custom-prev,
  .footer-slider-container > .slick-prev,
  .footer-slider .custom-prev {
    left: 4px !important;
  }

  .footer-slider-wrap > .custom-next,
  .footer-slider-wrap > .slick-next,
  .footer-slider-container > .custom-next,
  .footer-slider-container > .slick-next,
  .footer-slider .custom-next {
    right: 4px !important;
  }

  .footer-slider .custom-arrow,
  .footer-slider-wrap > .custom-arrow,
  .footer-slider-container > .custom-arrow {
    width: 32px;
    height: 32px;
  }

  .footer-slider .custom-arrow img,
  .footer-slider-wrap > .custom-arrow img,
  .footer-slider-container > .custom-arrow img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 768px) {
  .footer-slider-wrap {
    margin-left: 0;
    margin-right: 0;
  }

  .footer-slider-wrap > .custom-prev,
  .footer-slider-wrap > .slick-prev,
  .footer-slider-container > .custom-prev,
  .footer-slider-container > .slick-prev,
  .footer-slider .custom-prev {
    left: 1px !important;
  }

  .footer-slider-wrap > .custom-next,
  .footer-slider-wrap > .slick-next,
  .footer-slider-container > .custom-next,
  .footer-slider-container > .slick-next,
  .footer-slider .custom-next {
    right: 1px !important;
  }

  .footer-slider .custom-arrow,
  .footer-slider-wrap > .custom-arrow,
  .footer-slider-container > .custom-arrow {
    width: 26px;
    height: 26px;
    padding: 0;
  }

  .footer-slider .custom-arrow img,
  .footer-slider-wrap > .custom-arrow img,
  .footer-slider-container > .custom-arrow img {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .footer-slider .custom-prev,
  .footer-slider-wrap > .custom-prev,
  .footer-slider-wrap > .slick-prev,
  .footer-slider-container > .custom-prev,
  .footer-slider-container > .slick-prev {
    left: 0 !important;
  }

  .footer-slider .custom-next,
  .footer-slider-wrap > .custom-next,
  .footer-slider-wrap > .slick-next,
  .footer-slider-container > .custom-next,
  .footer-slider-container > .slick-next {
    right: 0 !important;
  }

  .footer-slider .custom-arrow,
  .footer-slider-wrap > .custom-arrow,
  .footer-slider-container > .custom-arrow {
    width: 24px;
    height: 24px;
  }

  .footer-slider .custom-arrow img,
  .footer-slider-wrap > .custom-arrow img,
  .footer-slider-container > .custom-arrow img {
    width: 16px;
    height: 16px;
  }
}

/* Ẩn dots mặc định của Slick */
.footer-slider .slick-dots {
  display: none !important;
}

/* Ghi đè Slick theme CSS cho arrows */
.footer-slider .slick-prev,
.footer-slider .slick-next,
.footer-slider-wrap > .slick-prev,
.footer-slider-wrap > .slick-next,
.footer-slider-container > .slick-prev,
.footer-slider-container > .slick-next {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 9999 !important;
  position: absolute !important;
  pointer-events: auto !important;
  background: transparent !important;
}

/* Đảm bảo arrows mặc định (::before) không hiện */
.footer-slider .slick-prev:before,
.footer-slider .slick-next:before,
.footer-slider-wrap .slick-prev:before,
.footer-slider-wrap .slick-next:before,
.footer-slider-container .slick-prev:before,
.footer-slider-container .slick-next:before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Clip nền theo border-radius — tránh bg/blur tràn góc */
.footer-slider-wrap {
  position: relative;
  overflow: visible;
  z-index: 1;
  margin-left: 0;
  margin-right: 0;
}

.footer-slider-container {
  overflow: hidden !important;
  position: relative;
  z-index: 1;
  isolation: isolate;
  border-radius: 999px;
  border: 2px solid #ddeaff;
  background: rgba(94, 125, 89, 0.78);
  box-shadow: 0 9px 10px 0 rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  /* Chừa chỗ cho nút << >> sát mép — slide không đè arrow */
  padding-left: 36px !important;
  padding-right: 36px !important;
  padding-top: 2px;
  padding-bottom: 2px;
}

.footer-slider-container > .absolute {
  border-radius: inherit;
}

/* Arrow nằm trong border container, sát mép trái/phải */
.footer-slider-container > .custom-arrow,
.footer-slider-container > .slick-prev,
.footer-slider-container > .slick-next {
  position: absolute !important;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30 !important;
  background: transparent !important;
}

.footer-slider-container > .custom-prev,
.footer-slider-container > .slick-prev {
  left: 6px !important;
  right: auto !important;
}

.footer-slider-container > .custom-next,
.footer-slider-container > .slick-next {
  right: 6px !important;
  left: auto !important;
}

/* Responsive cho footer slider */
@media (max-width: 1024px) {
  .footer-slider {
    height: 120px;
  }

  .footer-slider .slick-slide {
    height: 120px;
    padding: 4px 4px 2px;
  }

  .footer-slider .slick-slide img {
    max-width: 64px;
    max-height: 64px;
  }

  .footer-slide__label {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .footer-slider {
    height: 108px;
  }

  .footer-slider-container {
    border-radius: 20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 0;
    padding-bottom: 0;
  }

  .footer-slider-container > .custom-prev,
  .footer-slider-container > .slick-prev,
  .footer-slider .custom-prev {
    left: 1px !important;
  }

  .footer-slider-container > .custom-next,
  .footer-slider-container > .slick-next,
  .footer-slider .custom-next {
    right: 1px !important;
  }

  .footer-slider-container > .custom-arrow,
  .footer-slider-container > .slick-prev,
  .footer-slider-container > .slick-next {
    display: flex !important;
    width: 24px;
    height: 24px;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .footer-slider-container > .custom-arrow img {
    width: 16px;
    height: 16px;
  }

  .footer-slider .slick-slide {
    height: 108px;
    padding: 0 1px;
  }

  .footer-slider .footer-slide {
    gap: 1px;
  }

  .footer-slider .slick-slide img {
    max-width: 68px;
    max-height: 68px;
  }

  .footer-slide__label {
    font-size: 11px;
    font-weight: 700;
    max-width: 92px;
    line-height: 1.05;
  }
}

@media (max-width: 480px) {
  .footer-slider {
    height: 102px;
  }

  .footer-slider-container {
    border-radius: 18px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .footer-slider-container > .custom-prev,
  .footer-slider-container > .slick-prev,
  .footer-slider .custom-prev {
    left: 0 !important;
  }

  .footer-slider-container > .custom-next,
  .footer-slider-container > .slick-next,
  .footer-slider .custom-next {
    right: 0 !important;
  }

  .footer-slider-container > .custom-arrow,
  .footer-slider-container > .slick-prev,
  .footer-slider-container > .slick-next {
    width: 22px;
    height: 22px;
  }

  .footer-slider-container > .custom-arrow img {
    width: 14px;
    height: 14px;
  }

  .footer-slider .slick-slide {
    height: 102px;
    padding: 0;
  }

  .footer-slider .slick-slide img {
    max-width: 64px !important;
    max-height: 64px;
  }

  .footer-slide__label {
    font-size: 10px;
    max-width: 88px;
  }
}

/* Nút đóng modal đẹp */
/* 
  Nút đóng modal với nền có độ mờ 20% (opacity 0.2)
  Giải thích: Sử dụng màu nền rgba với alpha = 0.2 để đạt hiệu ứng mờ 20%
*/
.close-button {
  position: relative;
  width: 30px;
  height: 30px;
  /* Sử dụng nền với opacity 20% */
  background: linear-gradient(135deg, #2d83fc, #0b62db);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  z-index: 1000;
  overflow: hidden;
}

.close-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.close-button:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
}

.close-button:hover::before {
  opacity: 1;
}

.close-button:active {
  transform: scale(0.95) rotate(90deg);
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

/* Hiệu ứng ripple khi click */
.close-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.close-button:active::after {
  width: 60px;
  height: 60px;
}

/* Animation cho nút đóng */
@keyframes closeButtonPulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  }

  50% {
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.5);
  }
}

.close-button {
  animation: closeButtonPulse 2s ease-in-out infinite;
  position: relative;
  top: auto;
  flex-shrink: 0;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  position: absolute;
  top: max(8px, env(safe-area-inset-top, 0px));
  right: 8px;
  z-index: 40;
  line-height: 0;
}

.btn-reload {
  background: #39b54a;
  width: 28px;
  height: 28px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  position: relative;
  top: auto;
  right: auto;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}

.btn-reload img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Desktop: reload nằm trong header, không absolute chồng lên */
.modal-desktop-panel {
  position: relative;
  overflow: hidden;
}

.modal-desktop-panel .btn-reload {
  position: relative;
  top: auto;
  right: auto;
  background: #39b54a;
}

.modal-desktop-panel .chat-modal-iframe-wrap {
  flex: 1 1 auto;
  min-height: 70vh;
  height: 70vh;
  max-height: calc(80vh - 52px);
  padding-bottom: 0;
}

/* Responsive cho nút đóng — khớp breakpoint mobile < 768 (Tailwind md) */
@media (max-width: 767px) {
  .close-button {
    background: #ff921b;
    width: 28px;
    height: 28px;
    font-size: 16px;
    top: auto;
  }

  .btn-reload {
    background: #39b54a;
  }
}

@media (max-width: 480px) {
  .close-button {
    font-size: 14px;
  }
}

/* ============================================================
   V2 — Header title (Science Gothic theo mẫu)
   ============================================================ */
@font-face {
  font-family: "Science Gothic";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/science-gothic:vf@5.3.0/vietnamese-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Science Gothic";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/science-gothic:vf@5.3.0/latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Science Gothic";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/science-gothic:vf@5.3.0/latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   V2 — Header bar (OK9 dark green)
   ============================================================ */
.site-header {
  isolation: isolate;
  overflow: visible;
  container-type: size;
  container-name: site-header;
  background:
    linear-gradient(180deg, rgba(72, 180, 78, 0.14) 0%, transparent 32%),
    linear-gradient(180deg, #0c160c 0%, #050805 52%, #030503 100%);
  border-top: 1px solid #5cff6a;
  border-bottom: 1px solid #3ad14a;
  border-left: 0;
  border-right: 0;
  box-shadow:
    0 0 10px rgba(58, 209, 74, 0.38),
    0 4px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(160, 255, 170, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55);
}

.header-logo {
  display: flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  height: 70% !important;
}

.header-logo a {
  display: flex;
  align-items: center;
  height: 100%;
  outline: none;
}

.header-logo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.header-title {
  margin: 0;
  z-index: 2;
  overflow: visible;
  white-space: nowrap;
  font-family: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  font-size: 66px;
  font-size: min(70cqh, 5.8vw);
  font-weight: 800;
  font-stretch: condensed;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #e8c43a;
}

.header-title__text {
  display: inline-block;
  overflow: visible;
  padding-block: 0.22em;
  margin-block: -0.22em;
  background-image: linear-gradient(
    180deg,
    #fff8d0 0%,
    #ffe66d 26%,
    #e8c43a 55%,
    #c99214 82%,
    #b07a10 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(20, 12, 0, 0.9))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

@media (max-width: 1279px) {
  .header-title {
    font-size: min(60cqh, 5.4vw);
  }
}

/* md → lg: tiêu đề canh giữa tuyệt đối (position: absolute) nên không tự né
   logo và nút Trang Chủ — cỡ chữ theo vw sẽ đè lên hai bên. Trừ sẵn bề ngang
   đã bị chiếm rồi chia cho độ dài chuỗi (~13.2em với Barlow Condensed 800)
   để chữ luôn lọt khe.
   Trần 60cqh: chữ hoa có dấu (Ị, Ệ, Ậ) chiếm ~1.15em nên vượt mức này là
   đụng viền trên/dưới của header. */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-title {
    font-size: min(60cqh, calc((100vw - 320px) / 13.2));
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .header-title {
    font-size: min(60cqh, calc((100vw - 350px) / 13.2));
  }
}

/* ============================================================
   V2 — Header CTA "Trang Chủ"
   ============================================================ */
.home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(170, 210, 170, 0.42);
  background: linear-gradient(180deg, #2f6d35 0%, #245a2b 52%, #1c4a22 100%);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    filter 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.home-cta:focus {
  outline: 2px solid #5cff6a;
  outline-offset: 2px;
}

.home-cta:hover,
.home-cta:focus-visible {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(180deg, #38823f 0%, #2b6b33 52%, #235628 100%);
  border-color: rgba(190, 230, 190, 0.5);
  box-shadow:
    0 0 10px rgba(61, 255, 74, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  filter: brightness(1.04);
  outline: none;
}

.home-cta:hover .home-cta__icon,
.home-cta:focus-visible .home-cta__icon {
  transform: scale(1.12);
}

.home-cta:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.98);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition-duration: 0.12s;
}

.home-cta__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-cta__icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .site-header,
  body > header {
    height: 50px !important;
  }

  body > header > div {
    min-height: 50px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-logo,
  body > header .w-\[150px\],
  body > header .max-md\:w-\[135px\] {
    width: 110px !important;
    height: 72% !important;
  }

  .home-cta {
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
    gap: 5px;
  }

  .home-cta__icon {
    width: 15px;
    height: 15px;
  }
}

@media (min-width: 768px) {
  .home-cta {
    height: 40px;
    padding: 0 24px;
    font-size: 14px;
    gap: 8px;
  }

  .home-cta__icon {
    width: 20px;
    height: 20px;
  }
}

/* ============================================================
   V2 — Hero Section (thay Main Title + contact-banner + rail cũ)
   ============================================================ */
.hero-section {
  background: transparent;
  padding: 14px 0 28px;
  overflow: visible;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 18px 0 48px;
  }
}

.hero-section__glow {
  display: none;
}

.hero-section__glow--tl {
  top: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: rgba(60, 130, 255, 0.35);
}

.hero-section__glow--br {
  bottom: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: rgba(70, 200, 255, 0.18);
}

.hero-title-mobile {
  margin: 0 0 8px;
  text-align: center;
  font-family: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-stretch: condensed;
  text-transform: uppercase;
  font-size: clamp(26px, 8.2vw, 36px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: #e8c43a;
  background-image: linear-gradient(
    180deg,
    #fff8d0 0%,
    #ffe66d 26%,
    #e8c43a 55%,
    #c99214 82%,
    #b07a10 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(20, 12, 0, 0.9))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
  overflow: visible;
  padding-block: 0.12em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Contact pills (Hotline / Email) */
.contact-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(3, 15, 60, 0.25);
  text-decoration: none;
  color: var(--text-dark);
  flex: 0 0 auto;
}

.contact-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-blue);
  flex-shrink: 0;
}

.contact-pill__icon img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
}

.contact-pill__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}

.contact-pill__label {
  font-size: 10px;
  font-weight: 500;
  color: #8492ad;
}

.contact-pill__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-blue);
}

@media (min-width: 768px) {
  .contact-pill {
    padding: 7px 18px;
    gap: 8px;
  }

  .contact-pill__icon {
    width: 22px;
    height: 22px;
  }

  .contact-pill__icon img {
    width: 12px;
    height: 12px;
  }

  .contact-pill__label {
    font-size: 10px;
  }

  .contact-pill__value {
    font-size: 13px;
  }
}

.hero-subtitle {
  color: #cfe0ff;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
}

.hero-subtitle__br {
  display: block;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .hero-subtitle__br {
    display: none;
  }
}

/* Rail: Tải App / Kênh Thông Tin / Link Mới Nhất — chỉ hiện desktop */
.hero-rail {
  display: flex;
  gap: 10px;
}

.hero-rail--side {
  display: none !important;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 12px 8px;
  /* Mép trái thẳng sát cạnh màn; chỉ bo góc phải */
  border: 1.5px solid #39b54a;
  border-radius: 0 28px 28px 0;
  background: rgba(94, 125, 89, 0.78);
  box-shadow: 0 0 8px rgba(57, 181, 74, 0.32);
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .hero-rail--side {
  display: flex !important;
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 20;
  }
}

.hero-rail__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 88px;
  border-radius: 18px;
  border: 1.5px solid transparent;
  background: transparent;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-rail__item:hover,
.hero-rail__item:focus,
.hero-rail__item:focus-visible {
  transform: translateY(-3px) scale(1.03);
  background: radial-gradient(
    circle at 50% 42%,
    #ffffff 0%,
    #f3faf3 28%,
    #d4efd4 68%,
    #b7e0b7 100%
  );
  border-color: #39b54a;
  box-shadow: 0 4px 12px rgba(57, 181, 74, 0.28);
  outline: none;
}

.hero-rail__item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(20, 60, 20, 0.22));
  transition: mix-blend-mode 0.25s ease, filter 0.25s ease;
}

.hero-rail__item:hover img,
.hero-rail__item:focus-visible img {
  /* Nền trắng trong PNG → lộ gradient hover */
  mix-blend-mode: multiply;
  filter: none;
}

.hero-rail__item span {
  display: none;
}

.hero-rail--side .hero-rail__item img {
  width: 88px;
  height: auto;
}

/* Hero stage: headset + orbit + badges */
.hero-stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 12px;
  overflow: visible;
  padding-left: 10%;
  padding-right: 10%;
  margin-top: -6%;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: auto;
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
}

/* Mobile: strut in-flow tạo chiều cao từ width — abspos không đóng góp height
   nên thiếu strut thì `top: %` = auto (rớt đáy). Chỉ dùng dưới 768px. */
.hero-stage::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: 108%;
  pointer-events: none;
}

.hero-stage > * {
  position: absolute;
}

@media (max-width: 767px) {
  .hero-stage::before {
    padding-top: 102%;
  }
}

@media (min-width: 768px) {
  .hero-stage::before {
    display: none;
    padding-top: 0;
    content: none;
  }

  .hero-stage {
    max-width: 640px;
    width: 100%;
    height: auto;
    aspect-ratio: 1.45 / 1;
    min-height: 0;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .hero-stage {
    max-width: 720px;
  }
}

/* Mobile: kéo hero stage + footer lên sát hơn
   (vị trí badge/headset/ellipse set ở block mobile-first bên dưới) */
@media (max-width: 767px) {
  .hero-section {
    padding: 8px 0 16px;
  }

  .contact-pills {
    margin-top: 4px;
    margin-bottom: 6px;
  }

  .hero-subtitle {
  }

  .hero-stage {
    margin-top: -4px;
    margin-bottom: -4px;
  }

  .hero-footer {
    margin-top: 10px !important;
  }
}

.hero-stage__ellipse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Cung quỹ đạo là NỬA ELLIPSE TRÊN: đỉnh ảnh = đỉnh cung, mép dưới ảnh = tâm
   ellipse (nơi hai đầu cung kết thúc).
   Badge neo theo `top` (% chiều cao stage) nên cung cũng phải neo theo chiều
   cao, không được neo theo chiều rộng — nếu không, tỉ lệ stage xê dịch một
   chút là badge rời khỏi cung.
     height = top(badge dưới) − top(badge trên)
     top    = top(badge dưới) − height / 2   (tâm ảnh)
   Mobile: badge 18% / 75% → 57% và 46.5% */
.hero-stage__ellipse--mobile {
  display: block;
  width: auto;
  max-width: none;
  height: 58%;
  top: 49.5%;
  mix-blend-mode: screen;
  opacity: 1;
}

/* Desktop: badge 20% / 80% → 60% và 50% */
.hero-stage__ellipse--outer {
  display: none;
  width: auto;
  max-width: none;
  height: 60%;
  opacity: 0.9;
}

.hero-stage__ellipse--inner {
  display: none;
  width: 62%;
  opacity: 0.7;
}

.hero-stage__dot {
  display: none;
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.hero-stage__dot--1 {
  top: 10%;
  right: 18%;
}

.hero-stage__dot--2 {
  bottom: 16%;
  left: 14%;
}

@media (min-width: 768px) {
  .hero-stage__ellipse--mobile {
    display: none;
  }

  .hero-stage__ellipse--outer,
  .hero-stage__ellipse--inner,
  .hero-stage__dot {
    display: block;
  }

  .hero-stage__ellipse--outer,
  .hero-stage__ellipse--inner {
    display: block;
  }
}

.hero-stage__headset {
  position: absolute;
  top: 72%;
  left: 50%;
  width: 65%;
  /* Canh giữa bằng `translate` riêng — animation float không được đè property này
     (trước đây animate `transform` làm mất -50%/-50% lúc frame đầu / delay). */
  translate: -50% -50%;
  transform: none;
  filter: drop-shadow(0 12px 24px rgba(0, 10, 40, 0.45));
  z-index: 2;
  animation: heroHeadsetFloat 3.6s ease-in-out infinite;
  will-change: transform;
}

@media (min-width: 768px) {
  /* Ảnh vuông nên width tăng bao nhiêu thì cao thêm bấy nhiêu;
     top canh sao cho chân đứng đúng bục, không đè footer. */
  .hero-stage__headset {
    top: 72%;
    width: 54%;
  }
}

/* Badge — mobile mặc định neo theo tron-mb; tablet+ dùng toạ độ ellipse PC */
.hero-badge {
  position: absolute;
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  translate: -50% -50%;
  transform: none;
  transition:
    filter 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 6px 10px rgba(0, 10, 40, 0.3)) brightness(1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: heroBadgeFloat 3.2s ease-in-out infinite;
  will-change: transform, filter;
  text-decoration: none;
}

/* Mobile: neo badge theo vòng cung tron-mb */
.hero-badge--top {
  left: 50%;
  top: 26%;
  width: 20%;
  animation-delay: 0s;
}

.hero-badge--left {
  left: 15%;
  top: 42%;
  width: 20%;
  animation-delay: 0.35s;
}

.hero-badge--right {
  left: 85%;
  top: 42%;
  width: 20%;
  animation-delay: 0.7s;
}

.hero-badge--bottom-left {
  left: 2%;
  top: 75%;
  width: 20%;
  animation-delay: 1.05s;
}

.hero-badge--bottom-right {
  left: 98%;
  top: 75%;
  width: 20%;
  animation-delay: 1.4s;
}

@media (min-width: 768px) {
  .hero-badge {
    width: 16%;
  }

  .hero-badge--top {
    left: 50%;
    top: 20%;
    width: 16%;
  }

  .hero-badge--left {
    left: 16%;
    top: 40%;
    width: 16%;
  }

  .hero-badge--right {
    left: 84%;
    top: 40%;
    width: 16%;
  }

  .hero-badge--bottom-left {
    left: 3%;
    top: 80%;
    width: 16%;
  }

  .hero-badge--bottom-right {
    left: 97%;
    top: 80%;
    width: 16%;
  }
}

.hero-badge img {
  width: 100%;
  height: auto;
  display: block;
  transition:
    filter 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  filter: brightness(1) saturate(1);
  transform: translateZ(0);
}

.hero-badge__label {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: clamp(10px, 2.7vw, 12px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 20, 80, 0.55);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-badge__label {
    margin-top: 6px;
    font-size: clamp(12px, 1.1vw, 15px);
  }
}

/* Mobile: chữ badge + nhãn carousel bị raster bởi filter/will-change trên parent */
@media (max-width: 767px) {
  .hero-badge {
    filter: none;
    will-change: auto;
  }

  .hero-badge img {
    filter: drop-shadow(0 6px 10px rgba(0, 10, 40, 0.3));
  }

  .hero-badge__label,
  .footer-slide__label {
    text-shadow: 0 1px 0 rgba(0, 20, 10, 0.8);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
  }

  .footer-slider .footer-slide {
    will-change: auto;
  }
}

/* Hover / click: phóng to + nhấc lên + glow neon xanh lá */
.hero-badge:hover,
.hero-badge:focus,
.hero-badge:focus-visible,
.hero-badge.is-lit {
  animation: none;
  translate: -50% -54%;
  transform: scale(1.08);
  filter:
    drop-shadow(0 0 12px rgba(92, 255, 106, 0.75))
    drop-shadow(0 0 22px rgba(57, 181, 74, 0.5))
    drop-shadow(0 8px 14px rgba(0, 40, 10, 0.32))
    brightness(1.1)
    saturate(1.08);
  outline: none;
  z-index: 6;
}

.hero-badge:hover img,
.hero-badge:focus-visible img,
.hero-badge.is-lit img {
  filter: brightness(1.08) contrast(1.03) saturate(1.05);
  transform: scale(1.02);
}

.hero-badge:hover .hero-badge__label,
.hero-badge:focus-visible .hero-badge__label,
.hero-badge.is-lit .hero-badge__label {
  text-shadow: 0 0 10px rgba(92, 255, 106, 0.7);
}

.hero-badge:active {
  animation: none;
  translate: -50% -50%;
  transform: scale(0.97);
  filter:
    drop-shadow(0 0 8px rgba(92, 255, 106, 0.55))
    drop-shadow(0 6px 12px rgba(0, 40, 10, 0.3))
    brightness(1.06)
    saturate(1.04);
  transition-duration: 0.12s;
}

.hero-badge:active img {
  transform: scale(0.98);
  filter: brightness(1.08) contrast(1.02) saturate(1.04);
}

@keyframes heroBadgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes heroHeadsetFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero-stage__headset {
    animation: none !important;
  }

  .hero-badge:hover,
  .hero-badge:focus-visible,
  .hero-badge.is-lit {
    translate: -50% -50%;
    transform: scale(1.04);
  }

  .hero-badge:active {
    translate: -50% -50%;
    transform: scale(1);
  }
}

@media (min-width: 768px) {
  body > header {
    height: 52px !important;
  }

  body > header .w-\[150px\] {
    width: 150px;
  }

  body > header > div {
    max-width: none !important;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    min-height: 52px;
  }

  .footer-slider-wrap {
    max-width: 690px;
  }

  .footer-slider-container {
    max-width: 100%;
  }
}

/* Màn hình desktop rộng: giữ tỷ lệ thành phần giống artboard 1024px
   ngay cả khi trình duyệt đang scale viewport lớn. */
@media (min-width: 1280px) {
  body > header {
    height: 87px !important;
  }

  body > header > div {
    padding-left: 24px;
    padding-right: 24px;
  }

  body > header .w-\[150px\] {
    width: 220px;
  }

  .home-cta {
    height: 46px;
    padding: 0 28px;
    font-size: 16px;
    gap: 8px;
  }

  .home-cta__icon {
    width: 22px;
    height: 22px;
  }

  .hero-section {
    padding: 8px 0 4px;
  }

  .contact-pills {
    gap: 18px;
    margin-bottom: 6px;
  }

  .contact-pill {
    padding: 10px 26px;
    gap: 11px;
  }

  .contact-pill__icon {
    width: 30px;
    height: 30px;
  }

  .contact-pill__icon img {
    width: 16px;
    height: 16px;
  }

  .contact-pill__text {
    font-size: 16px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-stage {
    max-width: min(900px, 70vw);
    margin-top: 0;
  }

  .hero-badge {
    width: 16%;
  }

  .hero-stage__headset {
    top: 72%;
    width: 54%;
  }

  .hero-stage-wrap .hero-rail--side {
    left: 0;
  }

  .hero-rail__item,
  .hero-rail--side .hero-rail__item img {
    width: 106px;
  }

  .hero-rail--side {
    gap: 12px;
    padding: 14px 12px 14px 10px;
    border-radius: 0 32px 32px 0;
  }

  .footer-slider-wrap {
    max-width: 1100px;
  }

  .footer-slider-container {
    max-width: 100%;
  }
}

/* V2 contact bar — capsule nền mờ, viền neon xanh */
.contact-pills {
  width: calc(100% - 16px);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  margin-bottom: 12px;
  box-sizing: border-box;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px 10px;
  border: 1.5px solid #39b54a;
  border-radius: 999px;
  background: rgba(94, 125, 89, 0.78);
  box-shadow: 0 0 8px rgba(57, 181, 74, 0.32);
  overflow: hidden;
}

@media (max-width: 767px) {
  .contact-pills {
    width: 100%;
    max-width: calc(100vw - 16px);
  }
}

.contact-pill {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding: 6px 8px;
  gap: 6px;
  background: #fff;
  border: 1px solid #4caf50;
  box-shadow: none;
  transition:
    filter 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* Hover: chỉ sáng lên — giữ nguyên viền, không thêm ring */
.contact-pill:hover,
.contact-pill:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
  background: #ffffff;
  border-color: #4caf50;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
  outline: none;
}

.contact-pill:hover .contact-pill__icon img,
.contact-pill:focus-visible .contact-pill__icon img {
  filter: brightness(1.25) contrast(1.05);
}

.contact-pill:hover .contact-pill__value,
.contact-pill:focus-visible .contact-pill__value {
  color: #1a1a1a;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.contact-pill:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(1.06);
  transition-duration: 0.12s;
}

.contact-pill__icon {
  width: 15px;
  height: 15px;
  background: transparent;
  flex-shrink: 0;
}

.contact-pill__icon img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: none;
}

.contact-pill__text {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
}

.contact-pill__label {
  display: inline;
  font-size: 1em;
  font-weight: 700;
  color: #090909;
  flex-shrink: 0;
}

.contact-pill__value {
  display: inline;
  font-size: 1em;
  font-weight: 700;
  color: #090909;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile: cỡ chữ theo viewport để hiện đủ hotline/email, không bị cắt */
@media (max-width: 767px) {
  .contact-pill {
    padding: 7px 8px;
    gap: 5px;
  }

  .contact-pill__icon,
  .contact-pill__icon img {
    width: 15px;
    height: 15px;
  }

  .contact-pill__text {
    gap: 3px;
    font-size: clamp(8.5px, 2.5vw, 12px);
  }
}

.hero-subtitle {
  color: #fff;
  font-size: 16px;
  font-weight: 700;

}

@media (min-width: 480px) and (max-width: 767px) {
  .contact-pills {
    gap: 10px;
  }

  .contact-pill {
    padding: 8px 12px;
    gap: 7px;
  }

  .contact-pill__icon,
  .contact-pill__icon img {
    width: 18px;
    height: 18px;
  }

  .contact-pill__text {
    font-size: clamp(11px, 2.2vw, 14px);
  }
}

@media (min-width: 768px) {
  .contact-pills {
    width: fit-content;
    max-width: calc(100vw - 24px);
    gap: 18px;
    padding: 12px 20px;
    overflow: visible;
    border: 1.5px solid #39b54a;
    background: rgba(94, 125, 89, 0.78);
    box-shadow: 0 0 8px rgba(57, 181, 74, 0.32);
  }

  .contact-pill {
    flex: 0 0 auto;
    min-width: 280px;
    padding: 10px 28px;
    gap: 10px;
    justify-content: center;
  }

  .contact-pill__icon,
  .contact-pill__icon img {
    width: 22px;
    height: 22px;
  }

  .contact-pill__text {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 20px;
    margin-top: 4px;
  }
}

/* ============================================================
   PC: fit 1 màn hình — không scroll (md+)
   ============================================================ */
@media (min-width: 768px) {
  html {
    height: 100%;
    overflow: hidden;
  }

  body {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
  }

  body > header {
    flex: 0 0 auto;
  }

  .hero-section {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    padding: 8px 0 0 !important;
    overflow: hidden;
  }

  .hero-container {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-height: 100%;
  display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
  }

  .contact-pills {
    flex: 0 0 auto;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }

  .hero-subtitle {
    flex: 0 0 auto;
    margin-bottom: 6px !important;
    margin-top: 2px !important;
    font-size: 17px !important;
  }

  .hero-stage-wrap {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding-top: 0;
    overflow: visible;
    margin-top: 0%;
  }

  .hero-stage {
    align-self: flex-start;
    width: auto !important;
    max-width: min(820px, 74vw) !important;
    height: 100% !important;
    max-height: min(566px, 51vw) !important;
    aspect-ratio: 1.45 / 1 !important;
    min-height: 220px !important;
    margin: -24px auto 0 !important;
  }

  body > footer,
  .hero-footer {
    flex: 0 0 auto;
    width: 100%;
    padding-top: 0;
    padding-bottom: 8px;
    /* body là flex column 100vh: margin-top âm chỉ nhả thêm free space cho
       .hero-section (flex:1) nên footer vẫn dính đáy → phải dời bằng transform. */
    margin-top: 0;
    position: relative;
    z-index: 5;
    transform: translateY(-10px);
  }

  .footer-slider-wrap {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .footer-slider-container {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 34px !important;
    padding-right: 34px !important;
    border-radius: 999px !important;
  }

  .footer-slider {
    height: 128px;
  }

  .footer-slider .slick-slide {
    height: 128px;
    padding: 4px 4px 2px;
    align-items: center;
  }

  .footer-slider .footer-slide {
    justify-content: center;
    gap: 6px;
    padding-top: 0;
  }

  .footer-slider .slick-slide img {
    max-width: 78px;
    max-height: 78px;
  }

  .footer-slide__label {
    font-size: 13px;
    max-width: 110px;
  }

  .contact-pill {
    min-width: 240px;
    padding: 8px 20px;
  }

  .contact-pill__text {
    font-size: 15px;
  }
}

/* 769–1279: footer carousel thấp hơn 1 chút; header mid mặc định
   ≤768 giữ nguyên style mobile/cũ */
@media (min-width: 769px) and (max-width: 1279px) {
  body > header {
    height: 74px !important;
  }

  body > header > div {
    min-height: 74px;
  }

  .home-cta {
    height: 38px;
    padding: 0 20px;
    font-size: 13px;
  }

  .footer-slider-container {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .footer-slider {
    height: 108px;
  }

  .footer-slider .slick-slide {
    height: 108px;
    padding: 2px 3px;
  }

  .footer-slider .slick-slide img {
    max-width: 60px;
    max-height: 60px;
  }

  .footer-slide__label {
    font-size: 11px;
    max-width: 96px;
  }
}

/* md → lg: header cao hơn (đang hơi thấp); logo + CTA thu lại nhường chỗ tiêu đề */
@media (min-width: 768px) and (max-width: 1023px) {
  body > header {
    height: 76px !important;
  }

  body > header > div {
    min-height: 76px;
  }

  body > header .w-\[150px\] {
    width: 124px !important;
  }

  .home-cta {
    height: 38px;
    padding: 0 16px;
    font-size: 12px;
  }

  .home-cta__icon {
    width: 18px;
    height: 18px;
  }
}

/* lg → dưới 2xl: thu nhỏ nội dung header (giữ nguyên chiều cao) */
@media (min-width: 1024px) and (max-width: 1279px) {
  body > header .w-\[150px\] {
    width: 140px !important;
  }

  .home-cta {
    height: 36px;
    padding: 0 18px;
    font-size: 12px;
  }

  .home-cta__icon {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 1280px) and (max-width: 1535px) {
  body > header .w-\[150px\] {
    width: 180px !important;
  }

  .home-cta {
    height: 40px;
    padding: 0 22px;
    font-size: 14px;
    gap: 7px;
  }

  .home-cta__icon {
    width: 20px;
    height: 20px;
  }
}

/* Laptop thấp: siết thêm — không đè chiều cao header md→lg */
@media (min-width: 1024px) and (max-height: 820px) {
  body > header {
    height: 52px !important;
  }

  .hero-subtitle {
    font-size: 15px !important;
  }

  .contact-pill {
    min-width: 200px;
    padding: 6px 14px;
  }

  .contact-pill__icon,
  .contact-pill__icon img {
    width: 17px;
    height: 17px;
  }

  .contact-pill__text {
    font-size: 13px;
  }

  .hero-stage {
    max-height: min(483px, 48.3vw) !important;
  }

  .footer-slider {
    height: 118px;
  }

  .footer-slider .slick-slide {
    height: 118px;
  }

  .footer-slider .slick-slide img {
    max-width: 66px;
    max-height: 66px;
  }

  .footer-slide__label {
    font-size: 12px;
  }

  body > footer,
  .hero-footer {
    padding-bottom: 4px;
    margin-top: 0;
    transform: translateY(-24px);
  }

  .hero-rail--side {
    transform: translateY(-50%) scale(0.82);
    transform-origin: left center;
  }
}

@media (min-width: 768px) and (max-height: 700px) {
  .hero-stage {
    max-height: min(386px, 44.1vw) !important;
  }

  .footer-slider {
    height: 100px;
  }

  .footer-slider .slick-slide {
    height: 100px;
  }

  .footer-slider .slick-slide img {
    max-width: 56px;
    max-height: 56px;
  }

  .hero-rail--side {
    transform: translateY(-50%) scale(0.72);
  }
}