/* ===================== Design tokens ===================== */
:root {
  --nh-teal: #4abab9;
  --nh-teal-dark: #1e8f8e;
  --nh-teal-deep: #0091a2;
  --nh-text-primary: #1e232d;
  --nh-text-inverse: #ffffff;
  --nh-bg-mint: #effdfc;
  --nh-bg-page: #ffffff;
  --nh-bg-section: #f7f9ff;
  --nh-warning: #f59e0b;
  --nh-track: #e5e5ea;
  --nh-red: #e02020;

  --nh-font: "URWDIN", sans-serif !important;
  --container-max: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--nh-font);
  color: var(--nh-text-primary);
  background: var(--nh-bg-page);
  -webkit-font-smoothing: antialiased;
}



ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; border: none; background: none; cursor: pointer; }

a { color: inherit; text-decoration: none; }

.view-landing_page_new .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--nh-teal-deep); }

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

/* .logo img { height: 34px; width: auto; } */

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-grid-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
}

.dot-grid {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(3, 4px);
  gap: 2px;
}
.dot-grid i { background: var(--nh-text-primary); border-radius: 1px; width: 4px; height: 4px; display: block; }

/* .nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  padding: 4px 6px;
  white-space: nowrap;
  border-radius: 6px;
}
.nav-item:hover { background: var(--nh-bg-section); } */

.chevron { width: 10px; height: 5px; transform: rotate(180deg); opacity: .6; }

.badge-new {
  position: absolute;
  top: -8px;
  right: -6px;
  background: var(--nh-red);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 3px 4px;
  border-radius: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  /* gap: 8px; */
  flex-shrink: 0;
}

.btn-pill {
  height: 36px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  white-space: nowrap;
}
.btn-pill--filled { background: var(--nh-teal); color: #00172e; }
.btn-pill--outline { background: transparent; border: 1px solid var(--nh-teal); color: var(--nh-teal-dark); }

.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-btn img { width: 20px; height: 20px; }

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--nh-text-primary);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--nh-red);
  color: #fff;
  font-size: 11px;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 64px 24px 140px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  object-position: bottom;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(712px, 90vw);
  transform: translate(-50%, -60%);
  opacity: .8;
  pointer-events: none;
}

.hero-mascot {
  position: absolute;
  right: max(1vw, 18px);
  bottom: 60px;
  width: min(400px, 40vw);
  filter: drop-shadow(0 0 21px rgba(0, 0, 0, .1));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-badge { 
  width: 100%;
  max-width: 326px;
  height: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center; 
}

.hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.4px;
  text-shadow: 0 0 20px rgba(0, 0, 0, .5);
}

.hero-subtitle {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2.6vw, 34px);
  font-weight: 600;
  text-shadow: 0 0 20px rgba(0, 0, 0, .5);
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.countdown-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}
.countdown-label img { width: 20px; height: 20px; filter: brightness(0) invert(1); }

.countdown-timer { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.countdown-cell {
  width: 92px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(48, 93, 144, .6);
  border: 1px solid #0ff;
  box-shadow: 0 0 10px 0 #6aefee;
  backdrop-filter: blur(10px);
  color: #fff;
}
.cd-value { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; }
.cd-unit { display: block; font-size: 13px; font-weight: 500; }

.hero-scroll-down {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  animation: bob 1.8s ease-in-out infinite;
}
.hero-scroll-down img { filter: brightness(0) invert(1); }

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ===================== Voucher sections ===================== */
.voucher-section {
  position: relative;
  padding: 56px 0;
  overflow: hidden;
}
.voucher-section--mint { background: var(--nh-bg-mint); }
.voucher-section--wave .voucher-card-body {gap: 20px;}
.voucher-section--gradient { background: linear-gradient(to top, #f7f9ff 0%, #ffffff 65%); }

.voucher-section--overlap {
  margin-top: -75px;
  border-radius: 32px 32px 32px 32px;
  z-index: 2;
  padding-top: 48px;
  width: 1280px;
  justify-self: center;
}

.voucher-section--overlap .section-title { justify-content: center; }
.voucher-section--overlap .voucher-grid { justify-content: center; }

.voucher-section--wave { padding-top: 56px; padding-bottom: 80px; }
.wave-bg {
  position: absolute;
  opacity: .4;
  pointer-events: none;
  z-index: 0;
}
.wave-bg-1 { top: 10%; left: 50%; width: 82%; transform: translateX(-50%); }
.wave-bg-2 { top: -10%; right: -10%; width: 55%; transform: rotate(-90deg); }

.section18-bg {
  position: absolute;
  right: -5%;
  top: 10%;
  width: 55%;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

.voucher-section .container { position: relative; z-index: 1; }

.section-title {
  display: flex;
  align-items: center;
  /* justify-content: center; */
  gap: 8px;
  text-align: center;
  font-size: clamp(24px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.4px;
  text-transform: uppercase;
  margin: 0 0 40px;
  flex-wrap: wrap;
}

.section-title-icon {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.section-title-icon img:first-child {
  position: absolute;
  inset: 6px;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  transform: rotate(-7deg);
}
.section-title-icon .sparkle {
  position: absolute;
  width: 22%;
  top: 14%;
  left: 34%;
  transform: rotate(36deg);
}

.voucher-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 32px 48px;
}
.voucher-grid--4, .voucher-grid--3 { gap: 14px; }

.voucher-row { overflow-x: hidden; padding-bottom: 8px; scrollbar-width: none; padding-top: 25px; margin-top: -25px; display: block; width: 100%; user-select: none; }
.voucher-row-track {
  display: flex;
  gap: 32px;
  width: max-content;
  margin: 0 auto;
  white-space: nowrap;
  will-change: transform;
}

.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.slider-dots--mobile-only { display: none; }
.slider-dots .dot { width: 29px; height: 12px; border-radius: 5px; background: var(--nh-track); }
.slider-dots .dot.active { width: 50px; background: var(--nh-teal); }

/* ===================== Voucher card ===================== */
.voucher-card {
  position: relative;
  width: 316px;
  min-height: 346px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, .08));
}

.voucher-card:hover .btn-cta { background-color: #A10C0E; border-color: #A10C0E; color: #fff; }
.voucher-card--sm { width: 280px; min-height: 306px; }

.voucher-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.voucher-card-divider {
  position: absolute;
  top: 98px;
  left: 50%;
  transform: translateX(-50%);
  width: 82.9%;
  z-index: 1;
}

.voucher-hot-badge {
  position: absolute;
  top: -20px;
  right: 24px;
  width: 56px;
  z-index: 2;
}

.voucher-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 96px;
  flex-shrink: 0;
  padding: 0 24px;
}

.voucher-icon {
  width: 48px;
  height: 48px;
  border-radius: 100px;
  background: var(--nh-bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--nh-bg-mint);
}
.voucher-icon img { width: 100%; height: 100%; object-fit: contain; }

.voucher-card-head h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--nh-teal-deep);
  letter-spacing: -0.2px;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voucher-card:hover .voucher-card-head span,
.voucher-card:hover .voucher-card-head p,
.voucher-card:hover .voucher-card-head h3 {
    color: #ffffff;
}

.voucher-card:hover .voucher-card-head {
    background-image: url("https://nhanhoa.com/images/sinh-nhat/car-frame-subtract.png") ;
    background-size: 100% 100% ;
    background-color: transparent t;
}

.voucher-card:hover .voucher-card-bg {
    /* Cắt bỏ 96px phần trên cùng của ảnh nền cũ */
    clip-path: inset(96px 0 0 0);
}


.voucher-card-body {
  position: relative;
  height: 100%;
  z-index: 1;
  padding: 24px;
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.voucher-card-body ul { display: flex; flex-direction: column; gap: 2px; min-height: 72px; max-height: 100px; overflow: hidden; text-overflow: ellipsis; flex-grow: 1; margin-bottom: 100%; }
.voucher-card-body ul li {
  font-size: 15px;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
  white-space: normal ;
  word-break: break-word ;
  
}
.voucher-card-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nh-text-primary);
}
.voucher-note { margin: 0; font-size: 15px; }

.btn-cta {
  height: 48px;
  border-radius: 57px;
  background: var(--nh-teal);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  transition: background .15s ease;
  margin-top: auto;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-cta:hover { background: var(--nh-teal-dark); }

.voucher-progress { display: none; flex-direction: column; gap: 4px; }

.voucher-card:has(.voucher-hot-badge) .voucher-progress {
    display: block;
    padding-bottom: 10px;
}
.voucher-card:not(:has(.voucher-hot-badge)) .voucher-progress {
    visibility: hidden;
    display: block;
}
.voucher-progress span { font-size: 12px; font-weight: 500; }
.progress-track {
  position: relative;
  height: 10px;
  border-radius: 50px;
  background: var(--nh-track);
}
.progress-fill {
  position: absolute;
  inset: 2px auto 2px 2px;
  height: 6px;
  border-radius: 50px;
  background: var(--nh-warning);
}
.progress-fire {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
}

/* ===================== Banner (Mừng Nhân Hòa) ===================== */
.banner-section { padding: 56px 0; background: var(--nh-bg-page); }

.banner-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px 40px;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
}
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

.banner-visual {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}
.banner-giftbox {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(-6px -6px 20px rgba(0, 0, 0, .1));
}
.banner-tag {
  position: absolute;
  width: 46%;
  top: 26%;
  left: 44%;
  transform: rotate(-9deg);
  filter: drop-shadow(-2px 1px 8px rgba(0, 0, 0, .25));
}

.banner-divider {
  position: relative;
  z-index: 1;
  align-self: stretch;
  width: 1px;
  background: var(--nh-track);
  flex-shrink: 0;
}

.banner-text { position: relative; z-index: 1; max-width: 620px; }
.banner-text h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
}
.banner-text p { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--nh-text-primary); }

/* ===================== FAQ ===================== */
.faq-section { padding: 56px 0 96px; background: var(--nh-bg-page); }

.faq-title {
  text-align: left;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 40px;
  letter-spacing: -0.4px;
}

.accordion { display: flex; flex-direction: column; gap: 16px; max-width: 1120px; margin: 0 auto; margin-left: 0px; margin-right: auto;}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 24px;
  background: var(--nh-bg-section);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}

.accordion-arrow { width: 13.432px; height: 7.366px; transition: transform .2s ease; }

.accordion-item.open .accordion-arrow { transform: rotate(180deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.accordion-item.open .accordion-panel { max-height: 400px; }

.accordion-panel-inner { padding: 20px 28px 4px; }
.accordion-panel-inner ul { display: flex; flex-direction: column; gap: 10px; }
.accordion-panel-inner li {
  font-size: 15px;
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.accordion-panel-inner li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nh-teal);
}

/* ===================== Footer ===================== */
.site-footer { background: #f2f2f5; }
.footer-img { width: 100%; height: auto; }

/* ===================== Floating widget ===================== */
.floating-widget {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.widget-countdown[hidden] { display: none; }

.widget-countdown {
  width: 210px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(0, 0, 0, .1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.widget-countdown-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
}
.widget-countdown-label img { width: 16px; height: 16px; }

.widget-countdown-timer { display: flex; width: 100%; }
.widget-cd-cell { flex: 1; text-align: center; padding: 4px; border-radius: 8px; }
.widget-cd-cell .cd-value { display: block; font-size: 22px; font-weight: 700; color: var(--nh-teal); line-height: 1.2; }
.widget-cd-cell .cd-unit { display: block; font-size: 11px; }

.widget-menu {
  position: relative;
  width: 210px;
  padding: 16px 12px;
  border-radius: 24px 24px 24px 8px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(0, 0, 0, .1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.widget-menu[hidden] { display: none; }

.widget-menu-glow {
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 171px;
  pointer-events: none;
  z-index: 0;
}

.widget-menu-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--nh-text-primary);
}
.widget-menu-item:hover { background: var(--nh-bg-mint); }
.widget-menu-item img { width: 22px; height: 22px; }
.widget-menu-item--accent { color: var(--nh-teal); font-weight: 700; font-size: 18px; }
.widget-menu-item--flame { font-size: 16px; }

.widget-toggle {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--nh-teal);
  box-shadow: 0 0 10px 0 #48edeb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.widget-toggle img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.widget-toggle .icon-closed { display: none; }

@keyframes smoothScaleRotateFix {
  0% { transform: rotate(-7deg) scale(1); }
  50% { transform: rotate(0deg) scale(1.1); }
  100% { transform: rotate(-7deg) scale(1); }
}

@keyframes sparkleMoveFix {
  0% { transform: rotate(36deg) scale(1) translate(0, 0); }
  50% { transform: rotate(45deg) scale(1.2) translate(5px, -5px); }
  100% { transform: rotate(36deg) scale(1) translate(0, 0); }
}

/* Applied directly to the elements with high priority */
.section-title-icon img:not(.sparkle) {
    animation: smoothScaleRotateFix 3s ease-in-out infinite !important;
    will-change: transform;
}

.section-title-icon img.sparkle {
    animation: sparkleMoveFix 3s ease-in-out infinite !important;
    will-change: transform;
}

@media (max-width: 1200px) {
  .floating-widget { right: 12px; bottom: 80px; gap: 8px; }

  .voucher-section--overlap { width: 95%; background: var(--nh-bg-mint); }

  .bg-body-light {
    background-color: #fff;
  }
  
}

/* ===================== Responsive ===================== */
@media (max-width: 960px) {
  .header-left { gap: 12px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 8px 20px 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
  }
  .main-nav.mobile-open { display: flex; }
  .header-inner { position: relative; }
  .nav-item { padding: 10px 6px; }

  .mobile-menu-btn { display: flex; }
  .header-right .btn-pill--filled,
  .header-right .btn-pill--outline,
  .header-right .icon-btn--download { display: none; }

  .hero { padding: 48px 20px 120px; }
  .banner-card { flex-direction: column; text-align: center; }
  .banner-divider { display: none; }
  .banner-visual { width: 180px; height: 180px; }
  .voucher-section--overlap { margin-top: -70px; }
}

@media (max-width: 767px) {
  /* 1. Container chính */
  /* .voucher-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    justify-content: flex-start !important; 
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory;
    
    padding-left: calc(50vw - 158px) !important;
    padding-right: calc(50vw - 158px) !important;
    
    padding-top: 25px !important; 
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 16px;
  }

  .voucher-grid::-webkit-scrollbar {
    display: none;
  }

  article.voucher-card {
    flex: 0 0 316px !important;
    width: 316px !important;
    position: relative !important;
    overflow: visible !important;
    scroll-snap-align: center;
  } */

  section#ruong-qua-hiem .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
    overflow: visible !important;
  }

  /* 2. Cấu hình lại Grid để tạo hiệu ứng lộ card */
  .voucher-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    
    padding: 25px 20px 0 20px !important;
    gap: 12px !important;
    
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
  }

  .voucher-grid::-webkit-scrollbar {
    display: none;
  }

  /* 3. Cố định kích thước card (giảm nhẹ để hiện card sau rõ hơn) */
  .voucher-grid article.voucher-card {
    flex: 0 0 300px !important; /* Độ rộng card */
    width: 300px !important;
    scroll-snap-align: start !important; /* Hít về lề trái */
    margin: 0 !important;
  }

  /* 3. Badge "Hot" (đảm bảo không bị che) */
  .voucher-hot-badge {
    position: absolute;
    top: -15px; /* Điều chỉnh lại nếu cần */
    z-index: 10;
  }

  img.hero-bg {
    
    /* 1. Giữ tỉ lệ ảnh, không làm vỡ/méo ảnh */
    object-fit: cover !important;
    
    /* 2. Cố định lấy phần bên trái của ảnh */
    object-position: right center !important; 
    
  }

  section#hero {
    overflow: hidden; /* Cắt phần dư thừa của ảnh bên phải */
    position: relative;
  }
}


@media (min-width: 641px) {
  /* Desktop/tablet: countdown mini-card in the floating widget always stays visible. */
  .widget-countdown[hidden] { display: flex; }
}

@media (max-width: 640px) {
  /* ---------- Header ---------- */
  .header-inner { padding: 10px 16px; min-height: 64px; }
  .logo img { height: 26px; }

  /* ---------- Hero ---------- */
  .hero { padding: 28px 16px 280px; min-height: 0; }
  .hero-content { gap: 16px; }
  .hero-badge { height: 80px; max-width: 252px; object-fit: contain;}
  .hero-title { font-size: 30px; letter-spacing: -0.3px; }
  .hero-subtitle { font-size: 18px; }
  .hero-glow { top: 30%; right: -10%; left: auto; width: 260px; transform: translate(0, -50%); }
  .hero-mascot { left: 0; right: 0; bottom: 8px; width: 100%; max-width: none; display: flex; justify-content: center; }
  .hero-mascot img { width: 82%; }
  .countdown-timer { width: 100%; gap: 8px; }
  .countdown-cell { flex: 1; width: auto; padding: 6px; border-radius: 14px; }
  .cd-value { font-size: 20px; }
  .cd-unit { font-size: 11px; }

  .hero-bg& {
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    width: 100%;
    height: 100%;
    transform: translateZ(0px);
    backface-visibility: hidden;
  }

  .bg-body-light {
    background-color: #fff;
  }

  .voucher-section--overlap { width: 98%; background: var(--nh-bg-mint); }

  /* ---------- Section titles ---------- */
  .section-title {
    justify-content: flex-start;
    text-align: left;
    font-size: 22px;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
  }
  .section-title > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .section-title-icon { width: 52px; height: 52px; }

  /* ---------- Voucher sliders ---------- */
  /* .voucher-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    gap: 16px;
    padding-bottom: 4px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 25px !important;
    margin-top: -25px !important;
  } */


  .voucher-hot-badge {
      z-index: 10 !important;
      top: -15px !important; 
  }
  .voucher-card,
  .voucher-card--sm {
    scroll-snap-align: center;
    width: min(316px, 82vw);
  }
  .voucher-section { padding: 40px 0; }
  .voucher-section--overlap { margin-top: -48px; padding-top: 32px; }
  .slider-dots { margin-top: 20px; }
  .slider-dots--mobile-only { display: flex; }

  /* ---------- Banner ---------- */
  .banner-section { padding: 40px 0; }
  .banner-card { padding: 16px; border-radius: 32px; gap: 20px; }
  .banner-visual { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .banner-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(to right, var(--nh-teal-deep) 0 8px, transparent 8px 16px);
  }
  .banner-text { text-align: left; }
  .banner-text h2 { font-size: 26px; }
  .banner-text p { font-size: 15px; }

  /* ---------- FAQ ---------- */
  .faq-section { padding: 40px 0 64px; }
  .faq-title { text-align: left; font-size: 24px; margin-bottom: 24px; }
  .accordion-header { padding: 14px 18px; font-size: 16px; }

  /* ---------- Floating widget ---------- */
  .floating-widget { right: 12px; bottom: 80px; gap: 8px; }
  .widget-countdown, .widget-menu { width: 190px; }

  .widget-toggle[aria-expanded="false"] {
    background: var(--nh-bg-page);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .12);
  }
  .widget-toggle[aria-expanded="false"] .icon-open { display: none; }
  .widget-toggle[aria-expanded="false"] .icon-closed { display: block; filter: none; }

  
  
}

@media (max-width: 480px) {
  .countdown-timer {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.countdown-cell {
  background: rgba(0, 58, 120, 0.7);
  border: 2px solid #00d2ff;
  border-radius: 15px;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
  color: #ffffff;
}

.countdown-cell .number {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.countdown-cell .label {
  font-size: 14px;
  margin-top: 4px;
}

.hero-mascot {
  bottom: 15px;
}

}
