/* =========================================
   1. CORE & VARIABLES
   ========================================= */
:root {
    --theme-color: #405FF2;
    --theme-hover: #3048c2;
    --title-color: #050B20;
    --text-color: #717171;
    --border-color: #E9E9E9;
    --bg-light: #F9F9F9;
    --radius-xl: 20px;
    --radius-md: 10px;
    --section-gap: 80px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--title-color);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    padding-top: 80px; /* Tránh header che nội dung */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: var(--section-gap) 0;
}

/* --- TYPOGRAPHY --- */
.title-main {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.text-sub {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 0;
}

.btn-view-all {
    font-weight: 700;
    color: var(--title-color);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-view-all:hover {
    color: var(--theme-color);
    gap: 12px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo img {
    height: 25px;
}

.menu-link {
    font-weight: 600;
    color: var(--title-color);
    margin: 0 15px;
    font-size: 12px;
    text-transform: uppercase;
}

.menu-link:hover {
    color: var(--theme-color) !important;
}

.btn-header {
    background: var(--theme-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header:hover {
    background: var(--theme-hover);
    color: #fff;
}

/* =========================================
   3. GENERAL COMPONENTS (Cards, Forms, etc.)
   ========================================= */
/* --- CAR CARDS --- */
.car-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.car-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
    position: relative;
    margin-bottom: 5px;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.car-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.car-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.car-card:hover .car-img img {
    transform: scale(1.05);
}

.badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 5px;
}

.badge-pill {
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-blue {
    background: #E8F1FF;
    color: var(--theme-color);
}

.badge-green {
    background: #E4F7E6;
    color: #3D923A;
}

.fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.fav-btn:hover {
    background: var(--theme-color);
    color: #fff;
}

.car-content {
    padding: 25px;
}

.car-brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.car-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.spec {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.spec i {
    color: var(--title-color);
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 20px;
    font-weight: 800;
    color: var(--theme-color);
}

.price-small {
    font-size: 18px;
    font-weight: 800;
    color: var(--theme-color);
}

.btn-link-detail {
    font-size: 14px;
    font-weight: 700;
    color: var(--title-color);
}

.btn-link-detail:hover {
    color: var(--theme-color);
}

/* =========================================
   4. HOME PAGE SECTIONS
   ========================================= */
/* Hero */
.hero {
    height: 50vh;
    min-height: 700px;
    position: relative;
    background: #050B20;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding-top: 15vh;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Search Box */
.search-box-wrap {
    max-width: 1140px;
    margin: -80px auto 0;
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.search-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 20px;
    margin-top: 25px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.custom-select {
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 15px;
    width: 100%;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    background-image: none;
}

.btn-search {
    height: 50px;
    background: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    padding: 0 35px;
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
}

/* Brand Grid */
.search-brands-wrapper {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.brand-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
}

.brand-mini-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.brand-mini-item:hover {
    background: #fff;
    border-color: var(--theme-color);
    box-shadow: 0 5px 15px rgba(64, 95, 242, 0.1);
    transform: translateY(-3px);
}

.brand-mini-item img {
    height: 30px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
    transition: 0.3s;
}

.brand-mini-item:hover img {
    transform: scale(1.05);
}

.brand-mini-item span {
    font-size: 11px;
    font-weight: 700;
    color: var(--title-color);
    line-height: 1;
}

.brand-mini-item:hover span {
    color: var(--theme-color);
}

/* Promo Banner */
.promo-banner {
    position: relative;
    background: url('https://car.gracetal.net/img/20237181110113747536_s450.jpg') center center/cover no-repeat;
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    min-height: 280px;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 11, 32, 0.9) 0%, rgba(5, 11, 32, 0.6) 50%, rgba(5, 11, 32, 0.2) 100%);
    z-index: 1;
}

.promo-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.promo-tag {
    display: inline-block;
    background: var(--theme-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.promo-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #fff;
}

.promo-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.btn-promo {
    background: #fff;
    color: var(--title-color);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-promo:hover {
    background: var(--theme-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Process Section */
.process-section {
    background: #fff;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.process-item {
    position: relative;
    padding: 0 10px;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: #F0F4FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--theme-color);
    transition: 0.3s;
}

.process-item:hover .process-icon {
    background: var(--theme-color);
    color: #fff;
}

.process-item h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.process-item p {
    font-size: 15px;
    color: var(--text-color);
    padding: 0 15px;
    opacity: 0.8;
}

/* Info Grid (Modern Style) */
.info-grid-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.info-grid-section .text-sub {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin-top: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    top: 0;
}

.info-item:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(64, 95, 242, 0.2);
}

.info-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: #F0F4FF;
    color: var(--theme-color);
    font-size: 32px;
    border-radius: 50%;
    margin-bottom: 25px;
    transition: 0.4s;
}

.info-item:hover .info-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.info-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--title-color);
    transition: 0.4s;
}

.info-item:hover .info-title {
    color: #fff;
}

.info-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 30px;
    flex-grow: 1;
    transition: 0.4s;
}

.info-item:hover .info-desc {
    color: rgba(255, 255, 255, 0.8);
}

.btn-info {
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 700;
    color: var(--theme-color);
    background: transparent;
    border: 2px solid rgba(64, 95, 242, 0.1);
    border-radius: 50px;
    transition: 0.4s;
    text-decoration: none;
}

.info-item:hover .btn-info {
    background: #fff;
    color: var(--theme-color);
    border-color: #fff;
}

/* Contact Section */
.contact-container {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.contact-left {
    background: var(--title-color);
    color: #fff;
    padding: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-right {
    padding: 60px;
    background: #fff;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: 0.3s;
}

.contact-item:hover .contact-icon {
    background: var(--theme-color);
}

.contact-label {
    font-size: 13px;
    opacity: 0.7;
    display: block;
    margin-bottom: 5px;
}

.contact-value {
    font-size: 18px;
    font-weight: 700;
}

.form-control-custom {
    width: 100%;
    height: 55px;
    padding: 0 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #F9F9F9;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
    font-size: 14px;
}

.form-control-custom:focus {
    border-color: var(--theme-color);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(64, 95, 242, 0.1);
}

textarea.form-control-custom {
    height: 120px;
    padding-top: 15px;
    resize: none;
}

.btn-submit {
    width: 100%;
    height: 55px;
    background: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--theme-hover);
    transform: translateY(-2px);
}

/* Video & Stats */
.video-box {
    position: relative;
    height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: url('https://car.gracetal.net/img/20237181110113747536_s450.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 11, 32, 0.4);
}

.play-btn {
    position: relative;
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color);
    font-size: 24px;
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

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

.stat-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--theme-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 16px;
    font-weight: 600;
}

/* Testimonials */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testi-item {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: 0.3s;
}

.testi-item:hover {
    border-color: var(--theme-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.testi-stars {
    color: #FFB800;
    margin-bottom: 20px;
    font-size: 14px;
}

.testi-text {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 25px;
    font-style: italic;
}

.user-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

.user-name {
    font-weight: 700;
    display: block;
    font-size: 16px;
}

.user-role {
    font-size: 13px;
    color: var(--text-color);
    font-weight: 500;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-img {
    height: 240px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 20px;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-item:hover .blog-img img {
    transform: scale(1.05);
}

.blog-meta {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a:hover {
    color: var(--theme-color);
}

.blog-link {
    font-weight: 700;
    font-size: 14px;
    color: var(--theme-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background: #050B20;
    color: #fff;
    padding: 80px 0 30px;
}

footer h4 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 700;
}

footer a {
    color: #A0A0A0;
    font-size: 15px;
    display: block;
    margin-bottom: 12px;
}

footer a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    color: #A0A0A0;
}

/* =========================================
   5. DETAIL PAGE SPECIFIC COMPONENTS
   ========================================= */
/* Breadcrumb */
.breadcrumb-wrap {
    padding: 20px 0;
}

.breadcrumb-item a {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--theme-color);
    font-weight: 700;
}

/* Gallery (Splide) */
.gallery-box {
    margin-bottom: 30px;
}

.main-slider .splide__slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.thumbnail-slider {
    margin-top: 10px;
}

.thumbnail-slider .splide__slide {
    opacity: 0.6;
    transition: 0.3s;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.thumbnail-slider .splide__slide.is-active {
    opacity: 1;
    border-color: var(--theme-color);
}

.thumbnail-slider img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

/* Sidebar Info */
.sidebar-offer {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.car-title-main {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
}

.car-price-main {
    font-size: 32px;
    font-weight: 800;
    color: var(--theme-color);
    display: block;
    margin-bottom: 20px;
}

.quick-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.spec-box {
    background: var(--bg-light);
    padding: 10px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--title-color);
}

.spec-box i {
    display: block;
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.btn-buy {
    width: 100%;
    background: var(--theme-color);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    margin-bottom: 10px;
    transition: 0.3s;
}

.btn-buy:hover {
    background: var(--theme-hover);
    transform: translateY(-2px);
}

.btn-call {
    width: 100%;
    background: #E8F1FF;
    color: var(--theme-color);
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.btn-call:hover {
    background: #dcecfc;
    color: var(--theme-hover);
}

.seller-info {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.seller-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-name {
    font-weight: 700;
    font-size: 15px;
    display: block;
}

.seller-role {
    font-size: 12px;
    color: var(--text-color);
}

/* Content Tabs (Pill Style Highlighted) */
.content-box {
    margin-bottom: 40px;
}

.content-box .nav-tabs {
    border-bottom: none;
    background: #F0F4FF;
    padding: 8px;
    border-radius: 50px;
    display: inline-flex;
    gap: 10px;
    margin-bottom: 25px;
}

.content-box .nav-link {
    border: none;
    border-radius: 40px;
    padding: 12px 35px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-color);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-box .nav-link:hover {
    color: var(--theme-color);
    background: rgba(255, 255, 255, 0.6);
}

.content-box .nav-link.active {
    background: var(--theme-color);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(64, 95, 242, 0.3);
    transform: scale(1.05);
}

.tab-content {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.specs-table {
    width: 100%;
}

.specs-table tr {
    transition: 0.2s;
    border-bottom: 1px dashed var(--border-color);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table tr:hover {
    background-color: #F9F9F9;
}

.specs-table td {
    padding: 18px 15px;
    font-size: 15px;
}

.specs-table td:first-child {
    color: var(--text-color);
    width: 40%;
}

.specs-table td:last-child {
    font-weight: 600;
    color: var(--title-color);
}

/* Certificates (Detail Page) */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.cert-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: 0.3s;
}

.cert-card:hover {
    border-color: var(--theme-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cert-icon {
    font-size: 32px;
    color: var(--theme-color);
    margin-bottom: 15px;
}

.cert-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* Calculator */
.calc-wrapper {
    background: #F4F7FB;
    padding: 40px;
    border-radius: var(--radius-xl);
}

.form-calc {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

.btn-calc {
    background: var(--title-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
}

.result-table {
    width: 100%;
    margin-top: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.result-table th {
    background: var(--title-color);
    color: #fff;
    padding: 12px;
    font-size: 14px;
}

.result-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    text-align: center;
}

/* Modal */
.modal-content {
    border-radius: var(--radius-xl);
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 30px;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: none;
    padding: 0 30px 30px;
}

/* Zalo Widget Fix */
.zalo-chat-widget {
    bottom: 110px !important;
    right: 28px !important;
}

/* --- VIDEO SLIDE CSS --- */
.video-wrapper {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Icon Play trên Thumbnail */
.thumbnail {
    position: relative;
}

.thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0.9;
}

/* Khi thumbnail được chọn thì icon sáng lên */
.thumbnail.is-active .play-icon {
    color: var(--theme-color);
    background: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-shadow: none;
}

/* =========================================
   6. RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
    .search-inputs, .car-grid, .process-grid, .testi-grid, .blog-grid, .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 40px;
    }

    .search-box-wrap {
        margin-top: -50px;
        padding: 20px;
    }

    .app-img-abs {
        display: none;
    }

    .btn-search {
        grid-column: span 2;
    }

    .process-item::after {
        display: none;
    }

    .contact-left, .contact-right {
        padding: 40px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Detail Page */
    .sidebar-offer {
        position: static;
        margin-top: 30px;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-slider .splide__slide img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .search-inputs, .car-grid, .process-grid, .testi-grid, .blog-grid, .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cat-grid {
        grid-template-columns: 2fr;
    }

    .btn-search {
        grid-column: span 1;
    }

    .app-box {
        padding: 30px;
        text-align: center;
    }

    .app-btns {
        justify-content: center;
    }

    .promo-banner {
        padding: 40px 20px;
        min-height: auto;
        align-items: center;
        text-align: center;
    }

    .promo-title {
        font-size: 26px;
    }

    .brand-grid-mini {
        grid-template-columns: repeat(4, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        padding: 30px 20px;
    }

    /* Detail Page */
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   6. LISTING PAGE SPECIFIC (MUA XE)
   ========================================= */

/* Sidebar Filter */
.sidebar-filter {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.filter-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    color: var(--title-color);
}

/* Checkbox Style */
.custom-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
}

.custom-checkbox input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--theme-color);
}

.btn-filter {
    width: 100%;
    background: var(--theme-color);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-filter:hover {
    background: var(--theme-hover);
}

/* Listing Header (Sort & Count) */
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.result-count {
    font-size: 16px;
    color: var(--text-color);
}

.result-count strong {
    color: var(--title-color);
}

.sort-box select {
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: var(--radius-md);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    outline: none;
}

/* Override Grid for Listing Page (3 Columns instead of 4) */
@media (min-width: 992px) {
    .car-grid-listing {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 cột khi có sidebar */
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .car-grid-listing {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sidebar-filter {
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .car-grid-listing {
        grid-template-columns: 1fr;
    }

    .listing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Pagination */
.pagination-wrap {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-link-custom {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--title-color);
    font-weight: 700;
    transition: 0.3s;
}

.page-link-custom:hover, .page-link-custom.active {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

/* =========================================
   7. NEW SECTIONS (FROM IMAGES)
   ========================================= */

/* --- A. QUY TRÌNH 4 BƯỚC (STEP PROCESS) --- */
.steps-section {
    background: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: #F4F7FC; /* Màu nền xám xanh nhạt */
    padding: 40px 30px;
    border-radius: 20px;
    height: 100%;
    transition: 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.step-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
}

/* Màu sắc riêng cho từng icon */
.step-icon-pink {
    background: #FDE8F2;
    color: #E74B95;
}

.step-icon-blue {
    background: #E3F1FF;
    color: #3086FF;
}

.step-icon-green {
    background: #E0F5E9;
    color: #2CB67D;
}

.step-icon-purple {
    background: #EFE9FD;
    color: #7F56D9;
}

.step-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--title-color);
}

.step-desc {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

/* --- B. KIẾN THỨC MUA XE (CHECKERBOARD GRID) --- */
.knowledge-section .section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.checkerboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Không có gap để các ô dính liền nhau giống ảnh */
    gap: 0;
}

.kb-item {
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.kb-icon {
    font-size: 48px;
    margin-bottom: 30px;
}

.kb-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.4;
}

.kb-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 35px;
    flex-grow: 1; /* Đẩy nút xuống đáy */
}

.btn-kb {
    padding: 12px 30px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

/* Style cho ô màu XANH */
.kb-blue {
    background-color: #1E73E8; /* Màu xanh dương đậm */
    color: #fff;
}

.kb-blue .kb-icon {
    color: #fff;
    opacity: 0.8;
}

.kb-blue .kb-desc {
    color: rgba(255, 255, 255, 0.9);
}

.kb-blue .btn-kb {
    background: #fff;
    color: #1E73E8;
}

.kb-blue .btn-kb:hover {
    background: #f0f0f0;
}

/* Style cho ô màu TRẮNG */
.kb-white {
    background-color: #fff;
    color: var(--title-color);
    border: 1px solid #eee; /* Viền nhẹ để phân cách */
}

.kb-white .kb-icon {
    color: #2CB67D; /* Hoặc màu xanh nhạt tùy ý */
}

.kb-white .kb-title {
    color: var(--title-color);
}

.kb-white .kb-desc {
    color: var(--text-color);
}

.kb-white .btn-kb {
    background: #1E73E8;
    color: #fff;
}

.kb-white .btn-kb:hover {
    background: var(--theme-hover);
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkerboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .checkerboard-grid {
        grid-template-columns: 1fr;
    }

    .kb-item {
        padding: 40px 20px;
    }
}

/* =========================================
   7. ACCESSORIES PAGE (PHỤ KIỆN)
   ========================================= */

/* Product Card (Kế thừa từ Car Card nhưng chỉnh sửa cho phù hợp) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.product-img {
    height: 250px; /* Cao hơn car-img để hiển thị sản phẩm rõ hơn */
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Dùng contain để không bị cắt ảnh sản phẩm */
    padding: 20px; /* Khoảng đệm để sản phẩm không dính sát lề */
    transition: 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--title-color);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name:hover {
    color: var(--theme-color);
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--theme-color);
}

.btn-add-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F0F4FF;
    color: var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    border: none;
}

.btn-add-cart:hover {
    background: var(--theme-color);
    color: #fff;
}

/* Discount Badge */
.badge-sale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FF4757;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Responsive Grid */
@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   8. BLOG PAGE SPECIFIC (TIN TỨC)
   ========================================= */

/* Blog Card (Giao diện trang danh sách) */
.blog-card-page {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 30px;
    transition: 0.3s;
    height: 100%; /* Giúp các thẻ bằng nhau */
    display: flex;
    flex-direction: column;
}

.blog-card-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.blog-card-page .blog-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.blog-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta-info {
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-meta-info i {
    color: var(--theme-color);
    margin-right: 5px;
}

.blog-title-page {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--title-color);
}

.blog-title-page:hover {
    color: var(--theme-color);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Giới hạn 3 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-more {
    margin-top: auto;
    font-weight: 700;
    font-size: 14px;
    color: var(--title-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.btn-read-more:hover {
    color: var(--theme-color);
    gap: 10px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--theme-color);
}

/* Category List */
.category-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.category-list li:last-child {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.category-list a:hover {
    color: var(--theme-color);
    padding-left: 5px;
}

.category-count {
    background: var(--bg-light);
    color: var(--title-color);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-title:hover {
    color: var(--theme-color);
}

.recent-post-date {
    font-size: 12px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-card-page {
        margin-bottom: 20px;
    }
}

/* =========================================
   9. BLOG DETAIL PAGE (CHI TIẾT TIN TỨC)
   ========================================= */

/* Article Container */
.article-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

/* Article Header */
.article-header {
    margin-bottom: 30px;
}

.article-meta {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
}

.article-meta i {
    color: var(--theme-color);
    margin-right: 5px;
}

.article-title-main {
    font-size: 32px;
    font-weight: 800;
    color: var(--title-color);
    line-height: 1.3;
}

/* Article Featured Image */
.article-featured-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    margin-bottom: 30px;
    object-fit: cover;
}

/* Article Content Typography */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--title-color);
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content img {
    border-radius: var(--radius-md);
    margin: 20px 0;
    max-width: 100%;
}

/* Blockquote */
.blockquote-custom {
    background: #F0F4FF;
    border-left: 5px solid var(--theme-color);
    padding: 30px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-weight: 600;
    color: var(--title-color);
    margin: 30px 0;
    font-size: 18px;
}

/* Tags & Share */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 40px;
}

.article-tags a {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    margin-right: 5px;
    font-weight: 600;
}

.article-tags a:hover {
    background: var(--theme-color);
    color: #fff;
}

.article-share {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: 0.3s;
}

.share-btn:hover {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

/* Author Box */
.author-box {
    background: #F9F9F9;
    padding: 30px;
    border-radius: var(--radius-xl);
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--title-color);
}

.author-bio {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Comment Form */
.comment-form-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.comment-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    /*.article-box, .comment-form-box {*/
    /*    padding: 25px;*/
    /*}*/

    /*.article-footer {*/
    /*    flex-direction: column;*/
    /*    gap: 15px;*/
    /*    align-items: flex-start;*/
    /*}*/

    /*.author-box {*/
    /*    flex-direction: column;*/
    /*    text-align: center;*/
    /*}*/

    :root { --section-gap: 40px; }
    .hero h1 { font-size: 32px; }
    .title-main { font-size: 24px; }
    .article-title-main { font-size: 22px; }

    /* Chuyển các grid thành 1 cột */
    .car-grid, .info-grid, .process-grid, .blog-grid, .stats-grid, .cert-grid, .steps-grid, .checkerboard-grid, .icon-grid-maintenance {
        grid-template-columns: 1fr;
    }

    .contact-info-grid { grid-template-columns: 1fr; }
    .search-inputs { grid-template-columns: 1fr; }
    .search-box-wrap { padding: 20px; margin-top: -40px; }
    .hero-content { padding-top: 60px; }

    .article-box, .comment-form-box, .policy-content, .contact-form-area { padding: 25px; }
    .contact-map-area { min-height: 350px; }
    .article-footer { flex-direction: column; gap: 15px; align-items: flex-start; }
    .author-box { flex-direction: column; text-align: center; }
    .formula-math { font-size: 18px; }
}

/* =========================================
   10. CONTACT PAGE SPECIFIC (TRANG LIÊN HỆ)
   ========================================= */

/* Info Cards (Top Section) */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: 0.3s;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--theme-color);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    background: #F0F4FF;
    color: var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 25px;
    transition: 0.3s;
}

.contact-info-card:hover .contact-card-icon {
    background: var(--theme-color);
    color: #fff;
}

.contact-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--title-color);
}

.contact-card-text {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

.contact-card-text a {
    font-weight: 600;
    color: var(--title-color);
}

.contact-card-text a:hover {
    color: var(--theme-color);
}

/* Contact Layout (Form + Map) */
.contact-wrapper {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.contact-form-area {
    padding: 50px;
}

.contact-map-area {
    height: 100%;
    min-height: 500px;
    background: #eee;
}

.contact-map-area iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.form-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-desc {
    color: var(--text-color);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 991px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-area {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-map-area {
        min-height: 350px;
    }
}

/* =========================================
   11. SUPPORT & POLICY PAGES
   ========================================= */

/* --- HELP CENTER (HỎI ĐÁP) --- */
.faq-search-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-color);
    margin-bottom: 50px;
    background-image: linear-gradient(135deg, #fff 0%, #F0F4FF 100%);
}

.accordion-custom .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    margin-bottom: 15px;
    overflow: hidden;
    background: #fff;
}

.accordion-custom .accordion-button {
    font-weight: 700;
    font-size: 16px;
    color: var(--title-color);
    padding: 20px 25px;
    background: #fff;
    box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
    color: var(--theme-color);
    background-color: #F8FBFF;
}

.accordion-custom .accordion-body {
    padding: 20px 25px;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
}

/* --- POLICY PAGES (VĂN BẢN) --- */
.policy-content {
    background: #fff;
    padding: 50px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.policy-content h2,
.policy-content h3 {
    color: var(--title-color);
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 15px;
}

.policy-content h2 {
    font-size: 24px;
}

.policy-content h3 {
    font-size: 18px;
}

.policy-content p {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.8;
}

.policy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style-type: disc;
    color: var(--text-color);
}

.policy-content li {
    margin-bottom: 10px;
}



/* Responsive */
@media (max-width: 768px) {
    .policy-content {
        padding: 25px;
    }
}

/* =========================================
   13. MOBILE MENU (OFF-CANVAS)
   ========================================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: -320px; /* Ẩn sang phải */
    width: 300px;
    height: 100%;
    background: #fff;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active .mobile-menu-container {
    right: 0; /* Trượt ra */
}

/* Header bên trong Mobile Menu */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-logo {
    height: 25px;
}

.btn-close-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--title-color);
    cursor: pointer;
    transition: 0.3s;
}

.btn-close-menu:hover {
    color: var(--theme-color);
    transform: rotate(90deg);
}

/* Danh sách link */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-menu-list li {
    margin-bottom: 20px;
}

.mobile-menu-list a {
    font-size: 16px;
    font-weight: 700;
    color: var(--title-color);
    text-transform: uppercase;
    display: block;
}

.mobile-menu-list a:hover {
    color: var(--theme-color);
    padding-left: 5px;
}

/* Footer của Mobile Menu */
.mobile-menu-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-hotline {
    display: block;
    background: var(--theme-color);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 15px;
}

.mobile-hotline:hover {
    color: #fff;
    opacity: 0.9;
}

.mobile-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mobile-socials a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #F0F4FF;
    color: var(--title-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-socials a:hover {
    background: var(--theme-color);
    color: #fff;
}

/* =========================================
   14. SERVICE PRICE PAGE (BẢNG GIÁ DỊCH VỤ)
   ========================================= */

.price-table-wrapper {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden; /* Bo tròn góc cho bảng */
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Đảm bảo bảng không bị co quá nhỏ trên mobile */
}

/* Header của bảng */
.custom-table thead th {
    background: var(--title-color);
    color: #fff;
    padding: 18px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-table thead th:first-child {
    text-align: center;
    width: 60px;
}

/* Cột STT */
.custom-table thead th:nth-child(2) {
    text-align: left;
}

/* Cột Tên dịch vụ */

/* Hàng tiêu đề nhóm (VD: DỊCH VỤ RỬA XE) */
.category-row td {
    background-color: #E8F1FF;
    color: var(--theme-color);
    font-weight: 800;
    text-align: center;
    padding: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px;
}

/* Các ô nội dung */
.custom-table tbody td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 14px;
    vertical-align: middle;
}

/* Cột giá tiền và thời gian căn giữa */
.custom-table tbody td:nth-child(3),
.custom-table tbody td:nth-child(4),
.custom-table tbody td:nth-child(5),
.custom-table tbody td:nth-child(6) {
    text-align: center;
    font-weight: 600;
    color: var(--title-color);
}

/* Hiệu ứng hover dòng */
.custom-table tbody tr:hover td {
    background-color: #F9F9F9;
}

/* Tên dịch vụ và mô tả */
.service-name {
    display: block;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 5px;
    font-size: 15px;
}

.service-desc {
    display: block;
    font-size: 12px;
    font-style: italic;
    color: #888;
    line-height: 1.4;
}

/* Responsive Table (Thanh cuộn ngang trên mobile) */
.table-responsive-custom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Note Section */
.price-note {
    background: #FFF8E1;
    border-left: 4px solid #FFC107;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 30px;
    color: #555;
    font-size: 14px;
}

/* =========================================
   13. ADDITIONAL ELEMENTS (Tables, Formulas)
   ========================================= */
.table-custom {
    width: 100%; border-collapse: collapse; margin-bottom: 20px;
    background: #fff; border: 1px solid var(--border-color);
}
.table-custom th { background: var(--theme-color); color: #fff; padding: 15px; text-align: left; font-weight: 700; }
.table-custom td { padding: 12px 15px; border-bottom: 1px solid #eee; color: var(--text-color); }
.table-custom tr:last-child td { border-bottom: none; }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0,0,0,.02); }

.file-download-list { list-style: none; padding: 0; }
.file-download-list li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #eee; }
.file-download-list li:last-child { margin-bottom: 0; border: none; }
.file-download-list a { font-weight: 600; color: var(--title-color); display: flex; align-items: center; gap: 10px; }
.file-download-list a:hover { color: var(--theme-color); }

.formula-box {
    background: #F0F4FF; border: 2px dashed var(--theme-color); border-radius: var(--radius-md);
    padding: 30px; text-align: center; margin: 30px 0;
}
.formula-label { display: block; font-size: 14px; color: var(--text-color); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.formula-math { font-size: 24px; color: var(--theme-color); display: block; }

.icon-grid-maintenance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; }
.maint-item { text-align: center; }
.maint-icon {
    width: 60px; height: 60px; background: #E8F1FF; color: var(--theme-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 10px; transition: 0.3s;
}
.maint-item:hover .maint-icon { background: var(--theme-color); color: #fff; transform: rotateY(180deg); }
.maint-item span { font-weight: 600; font-size: 14px; }

.car-review-block h2 { font-size: 22px; font-weight: 800; margin-bottom: 15px; }
.pros-list li, .cons-list li {
    margin-bottom: 8px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start;
}
.pros-list li i, .cons-list li i { margin-top: 4px; }

/* Custom Elements for Articles (TOC, Alert, Checklist) */
.toc-box {
    background: #F8F9FA; border: 1px solid #E9E9E9; border-radius: var(--radius-md);
    padding: 20px; margin-bottom: 30px; display: inline-block; min-width: 300px;
}
.toc-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--title-color); }
.toc-box ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.toc-box li { margin-bottom: 8px; font-size: 14px; }
.toc-box li a { color: var(--theme-color); font-weight: 600; }

.alert-box {
    padding: 15px 20px; border-radius: var(--radius-md); margin: 25px 0;
    font-size: 15px; line-height: 1.6; border-left: 4px solid;
}
.alert-warning { background-color: #FFF8E1; color: #856404; border-color: #FFC107; }
.alert-info { background-color: #E8F1FF; color: var(--theme-color); border-color: var(--theme-color); }
.alert-box strong { display: block; margin-bottom: 5px; font-size: 16px; }

.check-list-custom { list-style: none !important; padding-left: 0 !important; margin: 20px 0; }
.check-list-custom li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 16px; color: var(--title-color); }
.check-list-custom li::before {
    content: '\f00c'; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 2px; color: #2CB67D; font-size: 16px;
}

.upload-box {
    border: 2px dashed var(--theme-color);
    background-color: #F8F9FA;
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.upload-box:hover {
    background-color: #F0F4FF;
    box-shadow: 0 5px 15px rgba(64, 95, 242, 0.1);
}
.upload-box i {
    font-size: 40px;
    color: var(--theme-color);
    margin-bottom: 15px;
}
.upload-box p {
    font-size: 15px;
    color: var(--title-color);
    font-weight: 600;
    margin-bottom: 5px;
}
.upload-box span {
    font-size: 13px;
    color: var(--text-color);
}
.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.form-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 8px;
}

/* Flash messages */
.message {
    padding: 1rem;
    text-align: center;
    background: #eff8ff;
    color: #2779bd;
    border-color: #6cb2eb;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.message.hidden {
    display: none;
}
.message.success {
    background: #e3fcec;
    color: #1f9d55;
    border-color: #51d88a;
}
.message.warning {
    background: #fffabc;
    color: #8d7b00;
    border-color: #d3b800;
}
.message.error {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}

/* =========================================
   FLOATING CONTACT BUTTONS
   ========================================= */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #fff !important;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: zoom-in-out 2s infinite ease-in-out;
}

/* Nút Messenger */
.contact-btn.messenger {
    background: #0084FF;
}

/* Nút Zalo */
.contact-btn.zalo {
    background: #0068FF;
    padding: 10px; /* Để logo Zalo vừa vặn */
}
.contact-btn.zalo img {
    width: 100%;
    height: auto;
}

/* Hiệu ứng Hover */
.contact-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Hiệu ứng Rung nhẹ thu hút chú ý */
@keyframes zoom-in-out {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Responsive cho Mobile */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 80px; /* Đẩy lên cao hơn để tránh đè vào các thanh điều hướng mobile */
        right: 15px;
    }
    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
