/* Quicksand — toàn bộ web, hỗ trợ tiếng Việt */

:root {
  --style-font: var(--font-quicksand), "Quicksand", sans-serif;
  --title-font: var(--font-quicksand), "Quicksand", sans-serif;
  --body-font: var(--font-quicksand), "Quicksand", sans-serif;
  /* VinaStay — đồng bộ logo */
  --brand-primary: #0d4a78;
  --brand-accent: #2b9fd9;
  --brand-accent-hover: #2488be;
  --theme-color: var(--brand-accent);
  --primary-color: var(--brand-accent);
  --title-color: var(--brand-primary);
}

body.tourm-theme,
body.tourm-theme *:not(i):not([class*="fa-"]) {
  font-family: var(--font-quicksand), "Quicksand", sans-serif;
}

.sub-title {
  font-family: var(--font-quicksand), "Quicksand", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-color, #1ca8cb) !important;
  margin-bottom: 10px !important;
}

.hero-style1 .sub-title {
  color: rgba(255, 255, 255, 0.95) !important;
  letter-spacing: 0.16em;
}

.sec-title,
.box-title,
h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
textarea,
select {
  font-family: var(--font-quicksand), "Quicksand", sans-serif;
}

@media (max-width: 480px) {
  .sub-title {
    font-size: 13px !important;
  }
}

/* About section — fix overlapping images */
.img-box1 {
  min-height: 640px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.img-box1 .img1 {
  width: 56%;
  max-width: 312px;
}

.img-box1 .img1 img {
  width: 100%;
  height: 630px;
  max-height: min(630px, 70vw);
  object-fit: cover;
  display: block;
}

.img-box1 .img2 {
  width: 50%;
  max-width: 312px;
  z-index: 2;
}

.img-box1 .img2 img {
  width: 100%;
  height: 315px;
  max-height: 315px;
  object-fit: cover;
  display: block;
}

.img-box1 .img3 {
  width: 50%;
  max-width: 312px;
  bottom: 0;
  z-index: 3;
}

.img-box1 .img3 img {
  width: 100%;
  height: 315px;
  max-height: 315px;
  object-fit: cover;
  display: block;
}

@media (max-width: 1199px) {
  .img-box1 {
    min-height: 520px;
    max-width: 480px;
  }

  .img-box1 .img1 img {
    height: 500px;
    max-height: 500px;
  }

  .img-box1 .img2 img,
  .img-box1 .img3 img {
    height: 250px;
    max-height: 250px;
  }
}

/* Section backgrounds — cover + center thay vì tile pattern xấu */
.team-section-bg,
.tour-area.bg-top-center {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 480px) {
  .img-box1 {
    min-height: auto;
  }

  .img-box1 .img1 {
    width: 100%;
    max-width: 100%;
  }

  .img-box1 .img1 img {
    height: auto;
    max-height: none;
    aspect-ratio: 312 / 630;
  }
}

/* Logo VinaStay — cân bằng với khối logo-bg (~92px), gần admin (h-16 ≈ 64px) */
.header-layout1 .header-logo .site-brand-logo {
  display: block;
  width: auto !important;
  max-width: 200px !important;
  height: auto !important;
  max-height: 58px !important;
  object-fit: contain;
  object-position: left center;
}

.header-layout1 .header-logo {
  line-height: 0;
}

.header-layout1 .header-logo a {
  display: inline-block;
}

.th-menu-wrapper .mobile-logo .site-brand-logo {
  display: block;
  width: auto !important;
  max-width: 180px !important;
  max-height: 52px !important;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.footer-layout1 .about-logo .site-brand-logo {
  display: block;
  width: auto !important;
  max-width: 180px !important;
  max-height: 48px !important;
  object-fit: contain;
}

/* Header gọn: không top bar, không nền logo-bg */
.header-layout1--minimal .logo-bg {
  display: none !important;
}

.header-layout1--minimal .main-menu {
  padding-left: 0 !important;
}

.header-layout1--minimal .menu-area {
  padding: 16px 0;
}

.host-branded-page .sub-title {
  color: var(--brand-accent, var(--theme-color, #2b9fd9)) !important;
}

.host-custom-html {
  line-height: 1.7;
}

.header-layout1--minimal .menu-area > .container {
  width: 100%;
  max-width: calc(var(--main-container) + var(--container-gutters));
  margin-left: auto;
  margin-right: auto;
}

.header-layout1--minimal .header-logo {
  position: relative;
  left: auto;
  margin: 0;
  padding: 0;
}

/* Header: logo trái — menu giữa — CTA phải */
.header-layout1--minimal .header-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 1200px) {
  .header-layout1--minimal .header-nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }

  .header-layout1--minimal .header-nav-logo {
    justify-self: start;
  }

  .header-layout1--minimal .header-nav-menu {
    justify-self: center;
  }

  .header-layout1--minimal .header-nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
  }
}

.header-layout1--minimal .header-nav-menu .main-menu > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 0;
}

.header-layout1--minimal .main-menu > ul > li > a:hover,
.header-layout1--minimal .main-menu > ul > li > a.active {
  color: var(--brand-primary);
}

.header-layout1--minimal .main-menu > ul > li > a:before {
  background: var(--brand-accent);
}

/* Nút CTA & primary — màu logo */
.th-btn {
  background-color: var(--brand-accent);
}

.th-btn:before {
  background-color: var(--brand-primary);
}

.th-btn.style3 {
  background-color: var(--brand-primary);
}

.th-btn.style3:before {
  background-color: var(--brand-accent);
}

.th-btn.style3:hover {
  color: var(--white-color);
}

.th-btn.style4 {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.th-btn.style4.th-icon:after {
  background-color: var(--brand-primary);
}

.th-btn.style4:before {
  background-color: var(--brand-accent);
}

.th-btn.style4:hover {
  border-color: var(--brand-accent);
}
