/* Custom CSS Hoàn toàn, không dùng util classes của Bootstrap */
:root {
    --brand-primary: #2b88e6;
    --brand-primary-hover: #1f6cb9;
    --bg-light-blue: #dcefff;
    --text-dark-main: #333333;
    --text-muted-gray: #666666;
    --border-divider: #e0e0e0;
    --max-content-width: 1064px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif; }
body { background-color: #ffffff; color: var(--text-dark-main); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }

.container-custom {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.match-height-row { display: flex; flex-wrap: wrap; align-items: stretch; }

/* HEADER FLOAT STICKY */
.site-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid var(--border-divider);
    transition: background-color 0.3s ease;
}
.site-header.is-scrolling { background-color: rgba(255, 255, 255, 0.98); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; font-weight: bold; font-size: 26px; }
.logo-accent { color: #e65100; font-style: italic; }
.logo-main { color: #1a237e; }
.logo-sub { color: #e65100; font-size: 14px; align-self: flex-end; margin-bottom: 4px; margin-left: 2px; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.nav-link { font-size: 14.5px; font-weight: bold; color: var(--text-dark-main); }
.nav-link:hover, .nav-link.active { color: var(--brand-primary); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.action-link { font-size: 13.5px; font-weight: 500; }
.action-link:hover { color: var(--brand-primary); }
.btn-post-news { background-color: var(--brand-primary); color: #ffffff; border: none; padding: 9px 22px; border-radius: 6px; font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.2s ease; }
.btn-post-news:hover { background-color: var(--brand-primary-hover); }

.menu-toggle-btn { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* MENU OFFCANVAS */
.offcanvas-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.4); z-index: 1000;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
.offcanvas-overlay.is-visible { opacity: 1; visibility: visible; }
.offcanvas-menu {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
    background-color: #ffffff; z-index: 1001; box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex; flex-direction: column; transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.offcanvas-menu.is-open { right: 0; }
.offcanvas-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border-divider); }
.offcanvas-title { font-weight: bold; font-size: 16px; }
.close-menu-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted-gray); }
.offcanvas-body { padding: 20px; display: flex; flex-direction: column; gap: 30px; overflow-y: auto; }
.mobile-nav { display: flex; flex-direction: column; gap: 16px; }
.mobile-nav a { font-size: 16px; font-weight: bold; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.mobile-actions { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.mobile-action-link { font-size: 14.5px; padding: 6px 0; font-weight: 500; }

/* SEARCH WIDGET */
.main-grid-section { padding: 35px 0; }
.search-box-widget {
    background-color: var(--bg-light-blue);
    border-radius: 8px; padding: 25px 20px;
    height: 100%; display: flex; flex-direction: column;
}
.search-box-title { color: var(--brand-primary); font-size: 19px; font-weight: bold; text-align: center; margin-bottom: 20px; }
.search-tabs { display: flex; gap: 12px; margin-bottom: 20px; }
.search-tab-item {
    flex: 1; background-color: #ffffff; border: 1px solid transparent;
    padding: 11px 5px; font-size: 14px; font-weight: bold; border-radius: 5px;
    cursor: pointer; text-align: center; transition: all 0.2s ease;
}
.search-tab-item.active { border-color: var(--brand-primary); color: var(--brand-primary); }
.search-form-wrapper { display: flex; flex-direction: column; flex-grow: 1; gap: 15px; }

.custom-dropdown-select { position: relative; width: 100%; }
.custom-dropdown-select select {
    width: 100%; padding: 13px 40px 13px 15px; font-size: 13.5px;
    background-color: #ffffff; border: 1px solid transparent;
    border-radius: 5px; appearance: none; cursor: pointer; outline: none;
}
.custom-dropdown-select::after {
    content: "\f0d7"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    color: #000; font-size: 15px; pointer-events: none;
}
.search-submit-btn {
    background-color: var(--brand-primary); color: #ffffff; font-size: 15px;
    font-weight: bold; padding: 13px; border: none; border-radius: 5px;
    cursor: pointer; width: 100%; margin-top: auto;
}

/* RIGHT: SERVICES GRID */
.services-grid-layout {
    display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr);
    gap: 20px; height: 100%;
}
.service-feature-card {
    background-color: #ffffff; border: 1px solid var(--border-divider);
    border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; height: 100%;
}
.card-image-top-bg { background-color: var(--bg-light-blue); flex: 1; display: flex; align-items: center; justify-content: center; min-height: 125px; }
.fixed-square-icon { width: 90px; height: 90px; object-fit: contain; mix-blend-mode: multiply; }
.card-details-content { background-color: #ffffff; padding: 15px 18px; border-top: 1px solid #f0f0f0; }
.card-headline-title { color: var(--brand-primary); font-size: 15.5px; font-weight: bold; margin-bottom: 6px; }
.card-paragraph-desc { color: var(--text-dark-main); font-size: 12.5px; line-height: 1.4; }

/* SLIDER BRANDS */
.brands-slider-section { padding: 25px 0 60px 0; }
.brands-section-header { border-bottom: 1px solid var(--brand-primary); padding-bottom: 8px; margin-bottom: 25px; }
.brands-section-title { color: var(--brand-primary); font-size: 18px; font-weight: bold; }
.swiper-outer-container { position: relative; padding: 0 42px; }
.swiper-nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 26px; height: 38px; background-color: #f4f4f4;
    border: 1px solid #e2e2e2; border-radius: 4px; display: flex;
    align-items: center; justify-content: center; cursor: pointer; z-index: 10;
}
.swiper-nav-arrow:hover { background-color: #e2e2e2; }
.arrow-prev { left: 0; } .arrow-next { right: 0; }
.brand-thumbnail-item { display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; }
.brand-logo-circle {
    width: 82px; height: 82px; border: 1px solid var(--border-divider);
    border-radius: 50%; background-color: #ffffff; display: flex;
    align-items: center; justify-content: center; padding: 12px; margin-bottom: 12px;
}
.brand-thumbnail-item:hover .brand-logo-circle { border-color: var(--brand-primary); }
.brand-logo-circle img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-label-name { font-size: 13.5px; font-weight: 500; }

/* RESPONSIVE */
@media (max-width: 991px) {
    .main-nav, .header-actions { display: none; }
    .menu-toggle-btn { display: block; }
    .match-height-row { flex-direction: column; }
    .left-search-col { margin-bottom: 20px; }
    .services-grid-layout { height: auto; }
}
@media (max-width: 767px) {
    .services-grid-layout { grid-template-columns: 1fr; gap: 15px; }
    .swiper-outer-container { padding: 0 30px; }
}






/* Tin xe card */
.car-card { background: #ffffff; border: 1px solid #ebebeb; border-radius: 8px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.car-card-img { width: 100%; padding-top: 65%; position: relative; }
.car-card-img img { position: absolute; top:0; width: 100%; height: 100%; object-fit: cover; }
.car-card-info { padding: 15px; }
.car-tags { display: flex; gap: 5px; margin-bottom: 8px; }
.car-tag { font-size: 11px; background: #f0f4f8; padding: 2px 6px; }
.car-title { font-size: 15px; font-weight: bold; margin-bottom: 5px; }

/* Salon Grid */
.salon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.salon-card { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.salon-img-box { width: 100%; padding-top: 50%; position: relative; }
.salon-img-box img { position: absolute; top:0; width: 100%; height: 100%; object-fit: cover; }
.salon-info-box { padding: 15px; }

/* Tin tức */
.main-news-img { width: 100%; border-radius: 8px; }
.side-news-list { display: flex; flex-direction: column; gap: 15px; }
.side-news-item { display: flex; gap: 10px; }
.side-news-img-box img { width: 120px; height: 80px; object-fit: cover; border-radius: 4px; }