/*
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.   ***************/

/* Fix scrollbar gutter - tránh lệch layout 15px bên phải */
html {
    scrollbar-gutter: stable;
}


#logo {
    width: 100px !important;
}

.sub-menu.nav-dropdown li a {
    width: 268px !important;
    display: inline-block; /* Đảm bảo thuộc tính width có hiệu lực */
}

















/* Custom Menu Main: Khoảng cách và kiểu chữ */
.header-nav-main {
    display: flex !important;
    gap: 18px !important;
    text-transform: none !important; }

/* Custom Menu Item: Kích thước và định dạng text */
.header-nav.nav-uppercase > li > a {
    text-transform: none !important;
    font-size: 16px; }

.off-canvas:not(.off-canvas-center) .nav-vertical li>a {
    text-transform: none;
}

.col-inner,
.text-left {
    padding-top: 0px !important;
}



.gioithieu-section {
    padding: 30px !important;
    background: #f1f1f1;
    margin: 60px 0px 40px 0px !important;
    border-radius: 14px !important;
}

.gioithieu-column {
    padding: 20px;
    padding-bottom: 0px !important; }

.banner-heading-text {
    width: 82% !important;
    left: 50%;
    top: 32%; }

.banner-discount-tag {
    width: 32% !important;
    top: 63%;
    left: 24%; }

.banner-car {
    width: 90% !important;
    top: 73%; }


/* Số điện thoại trong banner */
.text-box-phone-banner {
    top: 92%;
}

.phone-banner {
  display: inline-block;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background-color: #e8232a;
  padding: clamp(6px, 0.8vw, 10px) clamp(12px, 1.8vw, 24px);
  border-radius: 50px;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.phone-banner:hover {
  background-color: #c0392b;
  transform: scale(1.05);
  color: #ffffff;
}

.vertical-rectangle-banner {
    padding: 0px;
    padding-left: 12px;
}

.vertical-rectangle-banner .banner-inner {
    overflow: hidden;
}








.visaochon-section {
    padding: 30px 15px 5px 15px !important;
    margin: 30px 5px 5px 5px !important;
    background: #f1f1f1;
    border-radius: 12px;
}

.visaochon-text {
    padding: 10px !important; 
}

.visaochon-column-right, 
.visaochon-column-left {
    padding: 0px 6px;
}

.visaochon-row img {
    width: 50% !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Xe cho thuê các loại - Card style */
.cacloaixe-secsion {
    padding: 0px 5px !important;
    margin: 0px 5px !important;
}

.xechothuecacloai-column .col-inner {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xechothuecacloai-column .col-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.xechothuecacloai-imagebox .box-image {
    overflow: hidden;
    position: relative;
}

.xechothuecacloai-imagebox .box-image img {
    transition: transform 0.3s ease;
    display: block;
    width: 100%;
}

.xechothuecacloai-column .col-inner:hover .box-image img {
    transform: scale(1.05);
}

/* Hover overlay "NHẬN BÁO GIÁ" */
.xechothuecacloai-imagebox .box-image::after {
    content: "NHẬN BÁO GIÁ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.xechothuecacloai-column .col-inner:hover .box-image::after {
    opacity: 1;
}

.xechothuecacloai-imagebox .box-text {
    padding: 12px 16px;
    font-weight: 600;
}

.dichvuchothuexe_section {
    padding: 15px 5px 5px 5px !important;
    margin: 15px 5px 5px 5px !important;
}

/* Dịch vụ thuê xe - H3 và p cùng 1 hàng */
.dichvu-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.dichvu-item {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 12px;
}

.dichvu-item h3 {
    margin: 0;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.dichvu-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Bảng giá thuê xe - Slider Card */
.banggia-section {
    padding: 30px 5px 5px 5px !important;
    margin: 30px 5px 5px 5px !important;
    overflow: visible;
}

.column-card-slider {
    padding-bottom: 0px;
}

.banggia-section h2 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 8px;
}

.banggia-section > p {
    margin-bottom: 20px;
    color: #555;
}

.banggia-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    padding: 10px 10px 16px 10px;
}

/* Ẩn scrollbar nhưng vẫn kéo được */
.banggia-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.banggia-slider::-webkit-scrollbar {
    display: none;
}

.banggia-card {
    flex: 0 0 304px;
    height: 230px;
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #0073e6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banggia-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.banggia-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    font-weight: 700;
    color: #0073e6;
}

.banggia-card .banggia-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.banggia-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}






/* =============================================
   TABLE OF CONTENTS – Rank Math TOC Block
   ============================================= */

.wp-block-rank-math-toc-block {
    background: #f8f9fb;
    border: 1px solid #e2e6ea;
    border-left: 4px solid #e67e22;
    border-radius: 10px;
    padding:24px 28px 6px;
    margin: 32px 0;
    font-size: 15px;
}

.wp-block-rank-math-toc-block h2 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-block-rank-math-toc-block h2::before {
    content: "☰";
    font-size: 15px;
    color: #e67e22;
}

/* Reset list */
.wp-block-rank-math-toc-block nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Cấp 1 – ẩn link H1, giữ li để children hiển thị */
.wp-block-rank-math-toc-block nav > ul > li {
    display: block;
}

.wp-block-rank-math-toc-block nav > ul > li > a {
    display: none;
}

/* Cấp 2 – H2 items */
.wp-block-rank-math-toc-block nav > ul > li > ul {
    display: block;
}

.wp-block-rank-math-toc-block nav > ul > li > ul > li {
    display: block;
    padding: 0;
    margin: 0;
    counter-increment: toc-h2;
}

.wp-block-rank-math-toc-block nav > ul > li > ul > li > a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.5;
}

.wp-block-rank-math-toc-block nav > ul > li > ul > li > a::before {
    content: counter(toc-h2) ".";
    color: #e67e22;
    font-weight: 700;
    font-size: 13px;
    min-width: 18px;
}

.wp-block-rank-math-toc-block nav > ul > li > ul > li > a:hover {
    background: #ffe9d5;
    color: #e67e22;
}

/* Cấp 3 – H3 items */
.wp-block-rank-math-toc-block nav > ul > li > ul > li > ul {
    padding-left: 24px;
    margin: 2px 0 4px 0;
    border-left: 2px solid #c9bbaf;
    margin-left: 10px;
}

.wp-block-rank-math-toc-block nav > ul > li > ul > li > ul > li {
    margin: 0;
    padding: 0;
}

.wp-block-rank-math-toc-block nav > ul > li > ul > li > ul > li > a {
    display: block;
    padding: 4px 8px;
    border-radius: 5px;
    color: #555;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.5;
}

.wp-block-rank-math-toc-block nav > ul > li > ul > li > ul > li > a::before {
    content: "›  ";
    color: #e67e22;
    font-weight: 700;
}

.wp-block-rank-math-toc-block nav > ul > li > ul > li > ul > li > a:hover {
    background: #ffeddc;
    color: #e67e22;
}

/* Mobile */
@media (max-width: 767px) {
    .wp-block-rank-math-toc-block {
        padding: 18px 16px;
        margin: 24px 0;
    }

    .wp-block-rank-math-toc-block nav > ul > li > ul > li > a {
        font-size: 13px;
        padding: 5px 6px;
    }

    .wp-block-rank-math-toc-block nav > ul > li > ul > li > ul > li > a {
        font-size: 12px;
    }
}

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

.gioithieu-section {
    padding: 30px 15px 5px 15px !important;
    margin: 30px 15px 5px 0px !important; }

.banner { overflow: hidden; } 
.banner-layers { overflow: hidden; }

.visaochon-section {
    padding: 30px 20px 5px 20px !important;
    margin: 30px 0px 5px 0px !important;
}

.visaochon-column-left,
.visaochon-column-right {
    padding: 0px 6px 0px 6px;
}

/* Card xe cho thuê - mobile: 2 card 1 hàng */
.xechothuecacloai-column {
    flex: 0 1 50% !important;
    max-width: 50% !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    padding-bottom: 10px !important;
}

.xechothuecacloai-imagebox .box-text {
    padding: 8px 10px;
    font-size: 13px;
}

.xechothuecacloai-imagebox .box-image::after {
    font-size: 12px;
}

/* Dịch vụ thuê xe - mobile: H3 và p xuống dòng */
.dichvu-item {
    flex-direction: column;
    gap: 4px;
}

.dichvu-item h3 {
    white-space: normal;
    font-size: 15px;
}

.dichvu-item p {
    font-size: 14px;
}

/* Bảng giá thuê xe - mobile: card nhỏ hơn */
.column-card-slider { 
    padding: 0px !important
}



.banggia-card {
    flex: 0 0 240px;
    padding: 20px 16px;
}

.banggia-card h3 {
    font-size: 15px;
}

.banggia-card p {
    font-size: 13px;
}

.cacloaixe-secsion {
    padding: 0px 5px 5px 5px !important;
    margin: 0px 5px 5px 0px !important;
}

.dichvuchothuexe_section {
    padding: 25px 5px 5px 5px !important;
    margin: 25px 5px 5px 0px !important;
}



}