/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.1.7
*/

/* ========================================================================
   1. FONTS — DFVN The Silver Editorial (local OTF)
   Variants: Regular (400) + Italic — weight 500/600/700 map về Regular
   ======================================================================== */

@font-face {
  font-family: 'DFVNTheSilverEditorial';
  src: url('fonts/DFVNTheSilverEditorial/OTF/DFVN-TheSilverEditorial-Regular.otf') format('opentype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DFVNTheSilverEditorial';
  src: url('fonts/DFVNTheSilverEditorial/OTF/DFVN-TheSilverEditorial-Italic.otf') format('opentype');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}


/* ========================================================================
   TABLE OF CONTENTS
   ========================================================================
   1. FONTS & TYPOGRAPHY
   2. CSS VARIABLES & ROOT STYLES
   3. BASE STYLES & UTILITIES
   4. HEADER & NAVIGATION
   5. HERO & BANNER SECTIONS
   6. CONTENT SECTIONS
   7. COMPONENTS
   8. PAGES
   9. ANIMATIONS & KEYFRAMES
   10. RESPONSIVE STYLES
   ======================================================================== */

/* ── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --font-title:      'DFVNTheSilverEditorial', Georgia, serif;
  --ic-cream:        #f2ead9;
  --ic-red:          #871718;
  --ic-green:        #19974a;
  --ic-green-light:  #d1eadb;
  --ic-green-bright: #6cffa5;
  --ic-dark:         #22292e;
  --ic-footer-bg:    #24292f;
  --ic-grey:         #8e8989;
  --ic-gold:         #ffd478;
  --width-container: 1200px;
}


/* ========================================================================
   4. HEADER & NAVIGATION
   ======================================================================== */

/* ── TOP CONTACT (Figma node 159:34) ─────────────────────── */
/* Xuất hiện trên mọi trang trong header */
.top-contact {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Vòng tròn icon phone — 30×30px, nền xanh */
.top-contact > i {
  width: 30px;
  height: 30px;
  background: #19974a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
}

/* Text group */
.top-contact > div {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

/* Label "Liên hệ hỗ trợ" — 12px Regular */
.top-contact > div span {
  font-family: 'Public Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #22292e;
  line-height: 1;
  margin-bottom: 2px;
}

/* Số điện thoại — 16px SemiBold */
.top-contact > div a {
  font-family: 'Public Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #22292e;
  text-decoration: none;
  line-height: 1;
}
.top-contact > div a:hover {
  color: #19974a;
}


/* ── LANGUAGE SWITCHER (Figma node 152:51) ───────────────── */
/* Trigger: lang code + chevron-down, dropdown on hover */
.custom-language-switcher {
  position: relative;
  display: inline-flex;
}

/* Trigger button */
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.lang-trigger .lang-code {
  font-family: 'Public Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #22292e;
  line-height: 15px;
}

.lang-trigger .lang-chevron {
  font-size: 12px;
  color: #22292e;
  transition: transform 0.2s ease;
  line-height: 1;
}

/* Chevron xoay khi hover/open */
.custom-language-switcher:hover .lang-chevron,
.custom-language-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

/* Dropdown list — ẩn mặc định */
/* padding-top tạo khoảng cách với trigger mà không tạo gap làm mất hover */
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin: 0;
  padding: 8px 0 4px;
  list-style: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 56px;
  z-index: 9999;
}

/* Hiển thị dropdown khi hover wrapper */
.custom-language-switcher:hover .lang-dropdown,
.custom-language-switcher.open .lang-dropdown {
  display: block;
}

.lang-dropdown li{
  margin-bottom: 0;
}

.lang-dropdown li a {
  display: block;
  padding: 7px 16px;
  text-decoration: none;
}

.lang-dropdown li a .lang-code {
  font-family: 'Public Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #22292e;
}

.lang-dropdown li a:hover .lang-code {
  color: #19974a;
}

.nav>li{
    margin: 0 10px;
}

.nav>li>a{
    font-size: 15px;
    color: #22292E;
}

.nav>li.current-menu-item a{color: #199849;font-weight: 600;}

.header-nav.nav-left{
    justify-content: center;
}

.header-main {
  background: #fff;
}

.header-wrapper {
  position: fixed;
  border: 0;
}

.header-wrapper.stuck{
  margin-top: 0;
  background: #fff;
}

.header-wrapper .flex-col.hide-for-medium .header-nav {
  justify-content: center;
}

.header-bg-color {
  background: transparent;
}

.header-shadow .header-wrapper, .header-wrapper.stuck, .layout-shadow #wrapper {
  box-shadow: none;
}

.top-divider, .nav-divided > li + li > a:after {
  display: none;
}

/* Single trip: header chưa scroll thì không fixed, khi stuck (đã scroll) thì giữ nguyên */
.single-trip .header-wrapper:not(.stuck) {
  position: relative;
  margin-top: 0;
}

/* ── HERO BANNER (dùng chung: blog archive, blog single, page-hero-banner) ── */
.ic-blog-hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ic-blog-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('./images/blog-banner.png');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.ic-blog-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.ic-blog-hero__title {
  font-family: var(--font-title);
  font-size: 66px;
  font-weight: 700;
  color: var(--ic-red, #871718);
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.ic-page-hero__subtitle {
  font-family: 'Public Sans', sans-serif;
  font-size: 18px;
  color: #22292e;
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
}

.ic-blog-hero__breadcrumb {
  font-family: 'Public Sans', sans-serif;
  font-size: 16px;
  color: #22292e;
  position: relative;
  z-index: 1;
}

.ic-blog-hero__breadcrumb a,
.ic-blog-hero__breadcrumb .rank-math-breadcrumb a {
  color: #22292e;
  text-decoration: none;
}

.ic-blog-hero__breadcrumb a:hover,
.ic-blog-hero__breadcrumb .rank-math-breadcrumb a:hover {
  color: var(--ic-green, #19974a);
}

.ic-blog-hero__breadcrumb .rank-math-breadcrumb .separator {
  margin: 0 6px;
  color: #22292e;
}

.ic-blog-hero__breadcrumb script { display: none; }

@media (max-width: 960px) {
  .ic-blog-hero          { height: 240px; }
  .ic-blog-hero__title   { font-size: 52px; }
}

@media (max-width: 767px) {
  .ic-blog-hero          { height: 200px; }
  .ic-blog-hero__title   { font-size: 40px; }
}

/* ── SECTION HEADING COMPONENTS (dùng chung nhiều trang) ── */
.ic-section-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.5vw, 50px);
  color: var(--ic-red, #871718);
  font-weight: 700;
  letter-spacing: 2px;
}

/* Heading row: flex với 2 đường kẻ 2 bên — dùng chung .ic-section-title */
.ic-section-title {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto 35px;
}

/* Đường kẻ 2 bên tiêu đề */
.title-line {
  flex: 1;
  height: 2px;
  background: var(--ic-dark, #22292e);
  flex-shrink: 0;
}

.ic-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.ic-section-header .ic-section-title {
  margin-bottom: 0;
}

/* ── SECTION VCT (dùng chung nhiều trang) ────────────────── */
.section-vct {
  background: #fff;
}

.section-vct .row-collapse > .col.text-vct {
  padding-left: calc((100vw - var(--width-container, 1200px)) / 2 - 10px) !important;
  padding-right: 50px !important;
  display: flex;
  align-items: center;
}

.text-vct .ic-section-title {
  margin-bottom: 16px;
}

.text-vct h3 {
  font-size: 24px;
  line-height: 1.2;
  color: var(--ic-green, #19974a);
  margin-bottom: 16px;
}

.text-vct .button.is-outline {
  font-size: 16px;
  padding: 0 10px;
  width: 212px;
  max-width: 100%;
  height: 46px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0 0;
  border-color: var(--ic-green, #19974a);
  color: var(--ic-green, #19974a);
}

.text-vct .button.is-outline:hover {
  background: var(--ic-green, #19974a);
  border-color: var(--ic-green, #19974a);
  color: #fff;
}

/* ── KHACH HANG (dùng chung nhiều trang) ─────────────────── */
.khach-hang-tb {
  padding-top: 65px !important;
  padding-bottom: 0 !important;
}

/* ── WATERMARK (dùng chung nhiều trang) ─────────────────── */
.ic-watermark {
  font-family: var(--font-title);
  font-size: clamp(60px, 8vw, 124px);
  font-weight: 500;
  font-style: italic;
  color: rgba(135, 23, 24, 0.15);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0;
}

@media (max-width: 960px) {
  .ic-watermark { font-size: 50px; }
}

#main {
  position: relative;
  background-color: #f2ead9;
}
#main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/bg-yl.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.08; /* chỉnh opacity tại đây: 0 = ẩn, 1 = nguyên bản */
  pointer-events: none;
  z-index: 0;
}
.no-padding{
  padding: 0!important;
}

.absolute-footer.dark{
  display: none;
}


/* ── FOOTER ──────────────────────────────────────────────── */
/*
 * .ic-footer-section không render ra DOM — dùng :has() để giữ
 * position:relative cho .ic-footer-map-overlay hoạt động đúng.
 */
section.section:has(.ic-footer-map-overlay) {
  position: relative;
  overflow: hidden;
}

.ic-footer-map-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
}

.ic-footer-logo {
  max-height: 62px;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
}

.ic-footer-company {
  color: var(--ic-green-bright);
  font-size: 16px;
  font-weight: 700;
  font-family: 'Public Sans', sans-serif;
  margin: 0 0 14px;
}

.ic-footer-info { list-style: none; padding: 0; margin: 0 0 20px; }
.ic-footer-info li, .ic-footer-links li {
  color: white;
  display: flex;
  gap: 8px;
  font-size: 14px;
  align-items: flex-start;
  margin-left: 0!important;
}
.ic-footer-info li i { color: white; margin-top: 3px; flex-shrink: 0; }

.ic-footer-heading {
  color: var(--ic-green-bright);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}

.ic-footer-links { list-style: none; padding: 0; margin: 0 0 20px; }
.ic-footer-links li a {
  color: white;
  text-decoration: none;
  display: block;
  font-size: 16px;
}
.ic-footer-links li a:hover { color: var(--ic-green-bright); }

.ic-social-icons { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ic-social-icon {
  width: 38px;
  height: 38px;
  background: rgba(120, 120, 120, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
  text-decoration: none !important;
  font-size: 17px;
  transition: all 0.2s;
}
.ic-social-icon:hover { background: var(--ic-green); color: white; }

.ic-footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 28px 0 24px;
}

.ic-footer-copyright {
  padding-top: 30px;
  border-top: 1px solid #FFFFFF80;
  color: white;
  font-size: 16px;
  text-align: center;
  margin: -30px 0 0;
  font-weight: 300;
}

.section-letter{
    padding-top: 50px!important;
    padding-bottom: 50px!important;
}
.section-letter .row .col:first-child{
    border: 1px solid #22292E;
    border-right: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    padding: 45px!important;
    display: inline-flex;
    align-items: center;
}
.section-letter h2{
    color: #871718;
    font-size: 44px;
    font-family: var(--font-title);
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}
.section-letter strong{
    color: #22292E;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.2;
}
.nf-form-fields-required{
    display: none;
}

.nf-form-layout .nf-field-element input[type=submit]{
    background: #19974A;
    font-weight: normal;
    text-transform: none;
    border-radius: 4px;
    font-size: 16px;
    border: 0;
    padding: 0;
    width: 100%;
}

.section-letter .field-wrap input[type=submit]{
  width: 100%;
}

.nf-form-layout .nf-field-element input{
    border: 1px solid #22292E;
    border-radius: 4px;
    background: transparent;
    font-size: 12px;
    padding: 20px 18px;
}

.footer-wk{
    color: #F2EAD9;
    font-size: 48px;
    font-family: var(--font-title);
    font-style: italic;
    letter-spacing: -2px;
    margin-bottom: 45px;
    line-height: 1.2;
}

.top-footer img.size-full.alignnone{
    margin-bottom: 0;
}

.ic-social-icons{}
.ic-social-icons a{
    display: inline-flex;
    height: 38px;
    width: 38px;
    background: #FFFFFF;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    color: #787878;
}
.ic-social-icons a i{}

.section-footer{
    background-color: #24292F;
    background-image: url('images/footer-map.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 60px 0 0!important;
}

/* "Xem thêm" — bordered box (Figma: Rectangle 379, 146×34px, stroke #19974A, no fill) */
.ic-ht-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ic-green, #19974A);
    border: 1px solid var(--ic-green, #19974A);
    width: 146px;
    height: 34px;
    white-space: nowrap;
    text-decoration: underline;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.ic-ht-more:hover,
.ic-ht-more:focus {
    background: var(--ic-green, #19974A);
    color: #fff;
    text-decoration: none;
}

.section-chung-toi{
    padding-top: 80px!important;
}
.section-chung-toi .row{
    background: #FFFFFF;
    border-radius: 4px;
    padding: 35px 40px;
}
.section-chung-toi .row .ic-section-title{
    margin-bottom: 0;
    text-align: center;
}
.section-chung-toi .row .box-image{
    max-width: 82px;
    margin: 0 0 10px;
}
.section-chung-toi .row .box-text{
    text-align: left;
    padding: 0;
}
.section-chung-toi .row .box-text-inner h3{
    color: #19974A;
    font-size: 24px;
    font-family: var(--font-title);
    margin: 0 0 10px;
    letter-spacing: 2px;
}
.section-chung-toi .row .box-text-inner p{
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

/* ========================================================================
   [ic_reviews] — Slider đánh giá khách hàng
   Dùng ở nhiều trang → đặt global trong style.css
   ======================================================================== */

.ic-reviews-section {
    position: relative;
}

/* Flickity viewport */
.ic-rv-slider {
    outline: none;
    margin-right: -10px;
    margin-left: -10px;
}
.ic-rv-slider .flickity-viewport {
    overflow: hidden;
    /* Equal height cho tất cả cards trong row */
    align-items: stretch;
}
.ic-rv-slider .flickity-slider {
    display: flex;
    align-items: stretch;
}

/* Slide wrapper — width set by JS (pixel) để Flickity đo đúng
   padding-right tạo gap 20px giữa các cards */
.ic-rv-slider .flickity-slider>div.ic-rv-slide {
    padding: 0 10px;
    box-sizing: border-box;
}
.ic-rv-slide:last-child {
    padding-right: 0;
}

/* Card */
.ic-rv-card {
    background: #ffffff;
    border-radius: 4px;
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    height: 100%;
    box-sizing: border-box;
}

/* Stars */
.ic-rv-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 10px;
    line-height: 1;
}
.ic-rv-stars i {
    font-size: 13px;
    color: #ffe342;
}
.ic-rv-stars .ic-rv-star-empty {
    color: #d0d0d0;
}

/* Tour name */
.ic-rv-tour {
    color: #19974A;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* Review body */
.ic-rv-body {
    color: #22292E;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 14px;
    flex: 1;
}

/* Divider */
.ic-rv-divider {
    border: none;
    border-top: 1px solid #000000;
    margin: 0 0 14px;
}

/* Author row */
.ic-rv-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Avatar */
.ic-rv-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.ic-rv-avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D9D9D9;
    color: #464646;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Author info */
.ic-rv-author-info {
    flex: 1;
    min-width: 0;
}
.ic-rv-name {
    color: #464646;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 2px;
    line-height: 1.3;
}
.ic-rv-location {
    color: #464646;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
}

/* Arrows — absolute, vertically centered với slider
   JS sẽ set top chính xác sau khi Flickity init */
.ic-reviews-section .ic-rv-prev,
.ic-reviews-section .ic-rv-next {
    position: absolute;
    top: 50%!important;
    transform: translateY(-50%)!important;
    z-index: 2;
    margin-top: -35px;
}
.ic-reviews-section .ic-rv-prev {left: -20px;}
.ic-reviews-section .ic-rv-next {right: -20px;}

/* Controls bar — chỉ chứa dots */
.ic-rv-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    padding: 0;
}

/* Page dots — dots được JS move vào .ic-rv-controls */
.ic-rv-controls .flickity-page-dots {
    position: static;
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: auto;
    bottom: auto;
    text-align: left;
}
.ic-rv-controls .flickity-page-dots .dot {
    width: 32px !important;
    height: 3px !important;
    border-radius: 2px !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border: none !important;
    opacity: 1 !important;
    margin: 0 !important;
    cursor: pointer;
    transition: background 0.25s, width 0.25s;
    display: block !important;
}
.ic-rv-controls .flickity-page-dots .dot.is-selected {
    background: var(--ic-green, #19974A) !important;
    width: 40px !important;
}

.ic-ht-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #D1EADB;
  text-decoration: none;
  transition: color 0.2s;
}
.ic-ht-card-cta:hover { color: #fff; }

/* ---- Nav controls — below slider (Figma: y:1735, below card bottom y:1677) ---- */
.ic-ht-controls {
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
}

.ic-ht-nav {
  display: flex;
  gap: 34px;
}
.ic-ht-prev,
.ic-ht-next {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #D1EADB;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ic-green, #19974A);
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}
.ic-ht-prev:hover,
.ic-ht-next:hover {
  background: var(--ic-green, #19974A);
  color: #fff;
}

@media (max-width: 767px) {
    .ic-rv-controls { margin-top: 20px; }
}

