/* Flatsome-compatible layout + HV chrome — breakpoints match Flatsome:
   small <550 · medium 550–849 · large ≥850 */

/* —— Base layout —— */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.section {
  position: relative;
  padding-top: 30px;
  padding-bottom: 30px;
}

.section-bg.fill,
.bg.section-bg.fill {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.section-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-content.relative,
.section-content {
  position: relative;
  z-index: 1;
}

.row {
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.row-collapse {
  max-width: 1170px;
}

.row-small {
  max-width: 1192.5px;
  margin-left: auto;
  margin-right: auto;
}

.row-small > .col {
  padding-left: 7.5px;
  padding-right: 7.5px;
}

.row-large {
  max-width: 1230px;
}

.row-large > .col {
  padding-left: 20px;
  padding-right: 20px;
}

.col {
  position: relative;
  margin: 0;
  padding: 0 15px 30px;
  width: 100%;
  max-width: 100%;
  flex-basis: 100%;
  min-height: 1px;
}

.col-inner {
  position: relative;
  margin: 0 auto;
  width: 100%;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.align-middle {
  align-items: center;
}

.align-equal > .col {
  display: flex;
}

.align-equal > .col > .col-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
}

/* —— Small (default / mobile) —— */
.small-1 { max-width: 8.3333333333%; flex-basis: 8.3333333333%; }
.small-2 { max-width: 16.6666666667%; flex-basis: 16.6666666667%; }
.small-3 { max-width: 25%; flex-basis: 25%; }
.small-4 { max-width: 33.3333333333%; flex-basis: 33.3333333333%; }
.small-5 { max-width: 41.6666666667%; flex-basis: 41.6666666667%; }
.small-6 { max-width: 50%; flex-basis: 50%; }
.small-7 { max-width: 58.3333333333%; flex-basis: 58.3333333333%; }
.small-8 { max-width: 66.6666666667%; flex-basis: 66.6666666667%; }
.small-9 { max-width: 75%; flex-basis: 75%; }
.small-10 { max-width: 83.3333333333%; flex-basis: 83.3333333333%; }
.small-11 { max-width: 91.6666666667%; flex-basis: 91.6666666667%; }
.small-12 { max-width: 100%; flex-basis: 100%; }

.hide-for-small { display: none !important; }

@media screen and (max-width: 549px) {
  .show-for-small { display: block !important; }
  .hide-for-small { display: none !important; }
}

/* —— Medium (tablet ≥550) —— */
@media screen and (min-width: 550px) {
  .medium-1 { max-width: 8.3333333333%; flex-basis: 8.3333333333%; }
  .medium-2 { max-width: 16.6666666667%; flex-basis: 16.6666666667%; }
  .medium-3 { max-width: 25%; flex-basis: 25%; }
  .medium-4 { max-width: 33.3333333333%; flex-basis: 33.3333333333%; }
  .medium-5 { max-width: 41.6666666667%; flex-basis: 41.6666666667%; }
  .medium-6 { max-width: 50%; flex-basis: 50%; }
  .medium-7 { max-width: 58.3333333333%; flex-basis: 58.3333333333%; }
  .medium-8 { max-width: 66.6666666667%; flex-basis: 66.6666666667%; }
  .medium-9 { max-width: 75%; flex-basis: 75%; }
  .medium-10 { max-width: 83.3333333333%; flex-basis: 83.3333333333%; }
  .medium-11 { max-width: 91.6666666667%; flex-basis: 91.6666666667%; }
  .medium-12 { max-width: 100%; flex-basis: 100%; }

  .hide-for-medium { display: none !important; }
  .show-for-medium { display: block !important; }
  .hide-for-small { display: block !important; }
}

/* —— Large (desktop ≥850) —— */
@media screen and (min-width: 850px) {
  .large-1 { max-width: 8.3333333333%; flex-basis: 8.3333333333%; }
  .large-2 { max-width: 16.6666666667%; flex-basis: 16.6666666667%; }
  .large-3 { max-width: 25%; flex-basis: 25%; }
  .large-4 { max-width: 33.3333333333%; flex-basis: 33.3333333333%; }
  .large-5 { max-width: 41.6666666667%; flex-basis: 41.6666666667%; }
  .large-6 { max-width: 50%; flex-basis: 50%; }
  .large-7 { max-width: 58.3333333333%; flex-basis: 58.3333333333%; }
  .large-8 { max-width: 66.6666666667%; flex-basis: 66.6666666667%; }
  .large-9 { max-width: 75%; flex-basis: 75%; }
  .large-10 { max-width: 83.3333333333%; flex-basis: 83.3333333333%; }
  .large-11 { max-width: 91.6666666667%; flex-basis: 91.6666666667%; }
  .large-12 { max-width: 100%; flex-basis: 100%; }

  .hide-for-large { display: none !important; }
  .show-for-large { display: block !important; }
  .hide-for-medium { display: block !important; }
}

@media screen and (max-width: 849px) {
  .hide-for-medium { display: none !important; }
}

/* —— Header —— */
.hv-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid #730708;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(6px);
}

.hv-site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hv-site-logo {
  flex: 0 0 auto;
  width: clamp(150px, 16vw, 190px);
}

.hv-site-logo img {
  height: clamp(40px, 4.2vw, 46px);
  width: auto;
  max-height: 64px;
  display: block;
}

.hv-site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(2px, 0.35vw, 6px);
  flex-wrap: nowrap;
  margin-left: 10px;
  min-width: 0;
}

.hv-site-nav a {
  font-size: clamp(11px, 0.62vw + 9px, 13px);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #111;
  padding: 10px clamp(6px, 0.75vw, 11px);
  border-radius: 4px;
  transition: color 0.2s;
  white-space: nowrap;
}

.hv-site-nav a:hover,
.hv-site-nav a.is-active {
  color: #2597e0;
}

.hv-site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.hv-lang-switch {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hv-lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: #111;
}

.hv-lang-switch summary::-webkit-details-marker {
  display: none;
}

.hv-lang-switch summary::after {
  content: "▾";
  font-size: 10px;
  opacity: 0.7;
}

.hv-lang-switch[open] summary::after {
  content: "▴";
}

.hv-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 108px;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(11, 22, 40, 0.12);
  padding: 6px;
  z-index: 20;
}

.hv-lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hv-lang-menu a:hover,
.hv-lang-menu a.is-active {
  background: #f4f8fc;
  color: #2597e0;
}

.hv-flag {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
}

.hv-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
  color: #111;
  margin-left: auto;
}

@media screen and (min-width: 850px) and (max-width: 1100px) {
  .hv-site-header-inner {
    gap: 6px;
    padding: 0 8px;
  }

  .hv-site-logo {
    width: clamp(140px, 14vw, 170px);
  }

  .hv-site-nav {
    margin-left: 4px;
    gap: 0;
  }

  .hv-site-nav a {
    font-size: 10.5px;
    padding: 10px 5px;
    letter-spacing: 0.02em;
  }
}

/* Flatsome medium breakpoint for nav collapse */
@media screen and (max-width: 849px) {
  .hv-site-header-inner {
    min-height: 60px;
    flex-wrap: wrap;
    position: relative;
  }

  .hv-site-logo {
    order: 1;
    width: auto;
    max-width: 160px;
  }

  .hv-site-logo img {
    height: 40px;
  }

  .hv-site-actions {
    order: 2;
    margin-left: auto;
  }

  .hv-nav-toggle {
    display: none;
  }

  .hv-site-nav {
    display: none !important;
  }
}

@media screen and (max-width: 549px) {
  .hv-site-logo {
    max-width: 140px;
  }

  .hv-site-logo img {
    height: 36px;
  }
}

/* —— Home hero / CTA backgrounds —— */
.hv-home-hero .section-bg.fill {
  background-image: url("/theme/hungviet/images/trang-chu/anh/trang-chu-1.png");
  background-size: cover !important;
  background-position: right center !important;
}

.hv-home-cta .section-bg.fill {
  background-image: url("/theme/hungviet/images/trang-chu/anh/trang-chu-9.png");
  background-size: cover !important;
  background-position: center !important;
}

@media screen and (max-width: 849px) {
  .hv-home-hero .section-bg.fill {
    background-position: center top !important;
    opacity: 0.35;
  }

  .hv-home-hero-inner {
    max-width: 100% !important;
    padding: 28px 0 48px !important;
  }
}

@media screen and (max-width: 549px) {
  .hv-home-hero {
    min-height: 420px !important;
  }

  .hv-home-hero-buttons {
    flex-direction: column;
    align-items: stretch !important;
  }

  .hv-home-hero-btn-primary,
  .hv-home-hero-btn-outline {
    text-align: center;
  }
}

/* —— Footer —— */
.hv-footer .container {
  max-width: 1200px;
}

@media screen and (max-width: 849px) {
  .hv-footer-main {
    grid-template-columns: 1fr !important;
  }
}
