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

/*************** ADD CUSTOM CSS HERE.   ***************/
div#top-bar {
  background-image: linear-gradient(90deg, #61c73f, #29b94c);
}
div#top-bar li.html.custom.html_topbar_right {
  font-size: 20px;
}
div#top-bar li.html.custom.html_topbar_right a {
  color: #e4ff00;
}
div#top-bar a.hotline-top i {
  padding-right: 6px;
}

div#masthead {
  background: #fff;
}
div#masthead ul li.menu-item a.nav-top-link {
  color: #4fc243;
  font-size: 15px;
  padding: 0 15px;
}
main#main {
  background-color: #f7f9fb;
}

/* css hiệu ứng khách hàng đặt xe */
.box_marquee_slider {
  padding: 10px;
  background: #fff;
  font-size: 17px;
  border-radius: 8px;
  display: inline-block;
  overflow: hidden;
  height: 130px;
}
ul.box_datxe {
  top: 7em;
  position: relative;
  box-sizing: border-box;
  animation: marquee 15s linear infinite;
}
.box_datxe > li {
  margin-left: 0px !important;
  margin-bottom: 0px;
  list-style: none;
  border-bottom: 1px dashed #737373;
  font-size: 14px;
  padding: 10px 0px;
  transition: background-color 0.5s;
  position: relative;
  width: 100%;
  float: left;
  overflow: visible !important;
}
.box_datxe li span,
.box_datxe li b {
  color: #5bc641;
}
@keyframes marquee {
  0% {
    top: 4em;
  }
  100% {
    top: -11em;
  }
}

/* css section dịch vụ */
.title-dichvu h2 {
  text-align: center;
  color: #5bc641;
}
.box-dichvu {
  box-shadow:
    rgb(60 64 67 / 30%) 0px 1px 2px 0px,
    rgb(60 64 67 / 15%) 0px 1px 6px 2px;
  border-radius: 6px;
  background: #fff;
  padding-bottom: 15px;
  cursor: pointer;
}
.box-dichvu:hover {
  box-shadow:
    rgb(60 64 67 / 30%) 0px 1px 8px 0px,
    rgb(60 64 67 / 15%) 0px 0px 5px 1px;
}
.box-dichvu .icon-box-img {
  margin-bottom: 8px;
}
.box-dichvu p {
  font-size: 16px;
  color: #000000;
  text-transform: uppercase;
}

.dichvu-gia > .col-inner {
  box-shadow:
    rgb(60 64 67 / 30%) 0px 1px 2px 0px,
    rgb(60 64 67 / 15%) 0px 1px 6px 2px;
  border-radius: 10px;
  background: #fff;
}
.dichvu-gia > .col-inner h4 {
  background-image: linear-gradient(90deg, #61c73f, #29b94c);
  text-align: center;
  padding: 6px 0;
  border-radius: 11px 10px 0 0;
  color: #ffff;
}
.dichvu-gia > .col-inner ul {
  padding: 20px;
}
.dichvu-gia > .col-inner ul li {
  color: #000;
}

/* css section tour */
.title-tour {
  text-align: center;
}
.title-tour h3 {
  font-size: 22px;
  color: #000;
}
.title-tour p {
  color: #000;
}
.box-tour {
  box-shadow:
    rgb(60 64 67 / 30%) 0px 1px 2px 0px,
    rgb(60 64 67 / 15%) 0px 1px 6px 2px;
  border-radius: 10px;
  background: #fff;
  padding-bottom: 10px;
}
.box-tour .icon-box-img {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.box-tour .icon-box-img img {
  padding: 0;
}
.box-tour h4 {
  text-align: center;
  color: #12a8e1;
  font-size: 18px;
}
.box-tour p {
  color: #000;
  margin-bottom: 0;
  padding: 0 8px 0 12px;
  text-align: left;
}
.box-tour p strong {
  color: red;
}
.box-tour .icon-box-text {
  height: 200px;
  overflow: hidden;
  overflow-y: scroll;
}
.box-tour .icon-box-text::-webkit-scrollbar {
  width: 4px;
}
.box-tour .icon-box-text::-webkit-scrollbar-thumb {
  -webkit-border-radius: 5px;
  border-radius: 5px;
  background: #12a9e2;
  -webkit-box-shadow: inset 0 0 6px rgb(0 0 0 / 50%);
}

/* css form */
.col.col-padding {
  padding-bottom: 0;
}
.formdatxe {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
}
.formdatxe .col.col-padding {
  padding-bottom: 1px;
}
.formdatxe h4 {
  text-align: center;
  color: #104282;
}
.formdatxe input.wpcf7-form-control.wpcf7-text,
.formdatxe select {
  border-radius: 5px;
  height: 40px;
  margin-bottom: 10px;
  box-shadow: 0 0;
  padding-left: 30px;
  font-size: 14px;
}
.formdatxe i {
  position: absolute;
  bottom: 18px;
  left: 23px;
  z-index: 9;
  font-size: 14px;
  top: 10px;
}
i.fas.fa-street-view,
i.fas.fa-phone-square-alt {
  color: #104282;
}
i.fas.fa-user,
i.fas.fa-map-marker-alt {
  color: red;
}
i.fas.fa-car,
i.fas.fa-calendar-alt {
  color: #0a5ec7;
}

.formdatxe input.wpcf7-form-control.has-spinner.wpcf7-submit {
  padding: 0 20px 1px 20px;
  text-transform: inherit;
  min-height: 34px;
  line-height: 11px;
  background-image: linear-gradient(90deg, #3e88e7, #104282);
  border-radius: 24px;
  margin-left: -22px;
  position: absolute;
  margin-top: 5px;
}
.formdatxe .btn-datxe {
  text-align: center;
}
.btn-click {
  text-align: center;
  background-image: linear-gradient(90deg, #3e88e7, #104282);
  color: #fff;
  border-radius: 20px;
  line-height: 30px;
  cursor: pointer;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  background-image: linear-gradient(90deg, #ffcf00, #9e851b);
  color: #fff;
  border-color: #61c73f;
}

/* css đội xe */
.col.col-doixe {
  background: #fff;
  box-shadow:
    rgb(60 64 67 / 30%) 0px 1px 2px 0px,
    rgb(60 64 67 / 15%) 0px 1px 6px 2px;
  border-radius: 10px;
  padding-top: 15px;
  padding-bottom: 0;
}
.col.col-doixe h2 {
  margin-bottom: 0;
}

/* css section đánh giá */
.title-khachhang h2 {
  color: #5bc641;
  font-size: 38.5px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  text-shadow: rgb(0 0 0) 1px 1px 1px;
}

/* css footer */
.footer-widgets.footer.footer-1 {
  /* background-image: linear-gradient(90deg,#61c73f,#29b94c); */
  background-color: #292929;
}
.ct-foo p {
  font-size: 15px;
  line-height: 25px;
}
.ct-foo ul li {
  margin-left: 0;
  margin-bottom: 12px;
  line-height: 20px;
}
.ct-foo h4 {
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
}
.ct-foo h4:after {
  content: "";
  position: absolute;
  left: 0;
  top: 33px;
  border: 2px solid #ff8a00;
  z-index: 1;
  width: 30%;
}
.absolute-footer.dark.medium-text-center.small-text-center {
  background-image: linear-gradient(90deg, #61c73f, #29b94c);
}
.copyright-footer {
  color: #fff;
}

@media (max-width: 549px) {
  /* 	css col tour */
  .col.col-tour {
    padding: 6px 5px;
  }
  .box-tour p {
    font-size: 15px;
  }
  /* 	css form */
  span.wpcf7-list-item.first {
    margin-right: 6px;
  }
  input[type="checkbox"] {
    margin-right: 2px;
  }
  .col.col-daochieu {
    padding-right: 0;
  }
  .btn-click {
    text-align: right;
    padding-right: 10px;
  }
}

@media only screen and (max-width: 48em) {
  /*************** ADD MOBILE ONLY CSS HERE  ***************/
}

/* ==========================================
   TỐI ƯU HÓA CARD BẢNG GIÁ XE GHÉP (EQUAL HEIGHT)
   ========================================== */
/* Biến toàn bộ hàng trong section Bảng giá thành Flexbox để các cột bằng nhau */
.bang-gia .row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
}
.bang-gia .row::before,
.bang-gia .row::after {
  display: none !important; /* Xóa clearfix mặc định của Flatsome */
}
.bang-gia .row > .col {
  display: flex !important;
  flex-direction: column;
}
.bang-gia .row > .col > .col-inner {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  flex: 1; /* Ép giãn toàn bộ chiều cao của cột */
}

/* Biến box-dichvu thành Flexbox để đẩy nút xuống */
.bang-gia .box-dichvu {
  display: flex !important;
  flex-direction: column;
  height: 100% !important; /* Chiếm trọn col-inner */
  min-width: 0 !important; /* Quan trọng: Fix lỗi tràn thẻ do flexbox */
}
.bang-gia .box-dichvu .icon-box-text {
  display: flex !important;
  flex-direction: column;
  flex: 1; /* Phần text tự động giãn */
  min-width: 0 !important; /* Quan trọng: Cho phép chữ ... hoạt động */
  width: 100% !important;
  overflow: hidden !important; /* Ngăn chặn bất kỳ thứ gì tràn ra ngoài card */
}

/* Fix thẻ div text-center của ux_text nằm bên trong icon-box-text */
.bang-gia .box-dichvu .icon-box-text > div {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Đẩy nút bấm xuống sát đáy */
.bang-gia .box-dichvu .icon-box-text > *:last-child,
.bang-gia .box-dichvu .icon-box-text > a.button,
.bang-gia .box-dichvu .icon-box-text > p:last-of-type {
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

/* Giới hạn tiêu đề (H3) ở 1 dòng, hiển thị dấu ... nếu quá dài */
.bang-gia .box-dichvu h3 {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  display: block !important;
}

/* ==========================================
   SEO: BREADCRUMB NAVIGATION
   ========================================== */
.custom-breadcrumb {
  padding: 12px 20px;
  margin: 0 auto;
  max-width: 1200px;
  font-size: 13px;
  color: #666;
}
.custom-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.custom-breadcrumb li {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.custom-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: #999;
  font-size: 16px;
}
.custom-breadcrumb a {
  color: #5bc641;
  text-decoration: none;
  transition: color 0.2s;
}
.custom-breadcrumb a:hover {
  color: #29b94c;
  text-decoration: underline;
}
.custom-breadcrumb li:last-child span {
  color: #333;
  font-weight: 500;
}

/* ==========================================
   SEO: TABLE OF CONTENTS (MỤC LỤC)
   ========================================== */
.custom-toc {
  background: #f0faf0;
  border: 1px solid #d4edda;
  border-left: 4px solid #5bc641;
  border-radius: 8px;
  padding: 20px 25px;
  margin: 20px 0 30px;
  max-width: 100%;
}
.custom-toc .toc-title {
  font-size: 16px;
  font-weight: 700;
  color: #2d6a2e;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed #b8deb8;
}
.custom-toc .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}
.custom-toc .toc-list li {
  counter-increment: toc-counter;
  padding: 5px 0;
  line-height: 1.5;
  margin: 0;
}
.custom-toc .toc-list li::before {
  content: counter(toc-counter) ". ";
  color: #5bc641;
  font-weight: 600;
}
.custom-toc .toc-list li.toc-sub {
  padding-left: 20px;
  font-size: 14px;
}
.custom-toc .toc-list li.toc-sub::before {
  content: "↳ ";
  color: #85d685;
}
.custom-toc .toc-list a {
  color: #104282;
  text-decoration: none;
  transition: color 0.2s;
}
.custom-toc .toc-list a:hover {
  color: #5bc641;
  text-decoration: underline;
}

/* ==========================================
   SEO: BÀI VIẾT LIÊN QUAN
   ========================================== */
.bai-viet-lien-quan {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}
.bai-viet-lien-quan h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #5bc641;
  display: inline-block;
}
.bai-viet-lien-quan .list-bai-viet {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.bai-viet-lien-quan .list-bai-viet li {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  margin: 0;
}
.bai-viet-lien-quan .list-bai-viet li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.bai-viet-lien-quan .box-image {
  overflow: hidden;
  aspect-ratio: 16/10;
}
.bai-viet-lien-quan .box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.bai-viet-lien-quan .list-bai-viet li:hover .box-image img {
  transform: scale(1.05);
}
.bai-viet-lien-quan h4.tieu-de-bai-viet {
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 12px;
  margin: 0;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bai-viet-lien-quan a {
  text-decoration: none;
}
.bai-viet-lien-quan a:hover h4 {
  color: #5bc641;
}

/* SEO: Danh mục & Từ khóa */
.danh-muc,
.the-tim-kiem {
  margin-bottom: 8px;
}
.danh-muc .title,
.the-tim-kiem .title {
  font-weight: 600;
  color: #333;
  margin-right: 5px;
}
.danh-muc a,
.the-tim-kiem a {
  display: inline-block;
  background: #f0f7f0;
  color: #2d6a2e;
  padding: 3px 10px;
  border-radius: 15px;
  margin: 2px;
  font-size: 13px;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.danh-muc a:hover,
.the-tim-kiem a:hover {
  background: #5bc641;
  color: #fff;
}

@media (max-width: 768px) {
  .bai-viet-lien-quan .list-bai-viet {
    grid-template-columns: repeat(2, 1fr);
  }
  .custom-toc {
    padding: 15px 18px;
  }
}
@media (max-width: 549px) {
  .bai-viet-lien-quan .list-bai-viet {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .custom-breadcrumb {
    padding: 8px 15px;
    font-size: 12px;
  }
}

/* ==========================================
   CAR BOOKING PREMIUM COLOR PALETTE
   ========================================== */
:root {
  --booking-primary: #00b14f; /* Xanh Grab - Năng động, quen thuộc với dịch vụ xe */
  --booking-primary-dark: #008a3d;
  --booking-secondary: #ff7a00; /* Cam nổi bật cho các nút Call-to-action */
  --booking-text-dark: #1f2326;
  --booking-text-gray: #555e65;
  --booking-bg-light: #f7f9fc;
}

/* 1. Đổi toàn bộ các màu Xanh cũ (nhạt nhòa) sang Xanh Grab Đậm, Tươi */
[style*="color:rgb(94, 187, 148)"],
[style*="color: rgb(94, 187, 148)"],
[style*="color:#5ebb94"],
[style*="color: #5ebb94"],
.section-title-main {
  color: var(--booking-primary) !important;
}

/* 1.5. Đổi màu NỀN xanh nhạt của các Section thành Xanh Grab đậm để chữ trắng nổi bật */
[style*="background-color:rgb(94, 187, 148)"],
[style*="background-color: rgb(94, 187, 148)"],
[style*="background-color:#5ebb94"],
[style*="background-color: #5ebb94"] {
  background-color: var(--booking-primary-dark) !important;
}

/* 2. Đổi các màu Vàng (chói, khó đọc) thành Vàng Cam Đậm (Dark Gold) để dễ đọc trên mọi nền */
[style*="color:#eac31a"],
[style*="color: #eac31a"] {
  color: #c78d00 !important; /* Đổi tiêu đề vàng thành Vàng Cam Đậm (vừa đẹp vừa qua được bài test SEO contrast) */
}

/* Tăng cường độ nổi bật của các icon đặt xe */
.icon-box-left i {
  color: var(--booking-primary) !important;
}

/* 3. Màu chữ đoạn văn tiêu chuẩn */
[style*="color:#777777"],
[style*="color: #777777"],
[style*="color: #777"] {
  color: var(--booking-text-gray) !important;
}

/* 4. Tối ưu Menu Top cho Web Dịch Vụ Xe */
.nav-top-link[aria-current="page"],
.current-menu-item > a.nav-top-link {
  color: var(--booking-text-dark) !important;
}
#masthead ul li.current-menu-item > a.nav-top-link[href*="gioi-thieu"],
#masthead ul li.current-menu-item > a.nav-top-link[href*="cac-tuyen-lien-tinh"],
#masthead ul li.current-menu-item > a.nav-top-link[href*="tin-tuc"],
#masthead ul li.current-menu-item > a.nav-top-link[href*="lien-he"] {
  background-color: var(--booking-primary) !important;
  color: #ffffff !important;
  border-radius: 4px;
}

/* 5. Khắc phục màu nền ô tìm kiếm (Tăng độ ưu tiên selector) */
body .header-search-form .search-field,
body .ux-search-box .search-field,
.header-wrapper input[type="search"].search-field {
  background-color: #ffffff !important;
  color: #1f2326 !important;
  border: none !important; /* Bỏ border ngoài theo yêu cầu */
  border-radius: 99px !important; /* Bo tròn hoàn toàn */
  padding-left: 20px !important;
}
body .header-search-form .search-field::placeholder,
body .ux-search-box .search-field::placeholder,
.header-wrapper input[type="search"].search-field::placeholder {
  color: #555e65 !important;
  opacity: 1 !important;
}
/* Sửa màu icon kính lúp để đảm bảo hiển thị rõ trên nền trắng */
body .header-search-form button.submit,
body .ux-search-box button.submit,
.header-wrapper .searchform button[type="submit"],
.header-wrapper .searchform .button.icon {
  color: #00b14f !important;
  background-color: transparent !important;
  z-index: 10 !important;
  opacity: 1 !important;
}
body .header-search-form button.submit i,
body .ux-search-box button.submit i,
.header-wrapper .searchform button[type="submit"] i,
.header-wrapper .searchform .button.icon i {
  color: #00b14f !important;
}

/* 6. Nút Đặt Xe (Button) */
.elementor-widget-container .button-wrap.icon-right a,
.bang-gia .button {
  background-image: linear-gradient(
    90deg,
    var(--booking-primary),
    var(--booking-primary-dark)
  ) !important;
  color: white !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 177, 79, 0.25) !important;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.3s ease !important;
}
.elementor-widget-container .button-wrap.icon-right a:hover,
.bang-gia .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 177, 79, 0.4) !important;
}
