/* ==========================================
   TOYOTA BINH DUONG - MODERN CAR DETAIL
   Scoped CSS - Desktop / Tablet / Mobile
========================================== */

.tb-car-detail {
    --tb-red: #eb0a1e;
    --tb-dark: #191919;
    --tb-muted: #686868;
    --tb-line: #e7e7e7;
    --tb-gray: #f5f5f5;

    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    color: var(--tb-dark);
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.tb-car-detail *,
.tb-car-detail *::before,
.tb-car-detail *::after {
    box-sizing: border-box;
}

.tb-car-detail img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.tb-car-detail h2,
.tb-car-detail h3,
.tb-car-detail p {
    margin-top: 0;
}

.tb-car-detail h2 {
    margin-bottom: 16px;
    font-size: clamp(28px, 3.4vw, 38px);
    line-height: 1.2;
    font-weight: 700;
}

.tb-car-detail h3 {
    margin-bottom: 12px;
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.4;
    font-weight: 700;
}

.tb-car-detail p {
    margin-bottom: 0px;
    color: var(--tb-muted);
    font-size: 13px;
}

.tb-car-detail figure {
    margin: 0;
}

/* INTRO */

.tb-car-detail .tb-intro {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.tb-car-detail .tb-intro__label,
.tb-car-detail .tb-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--tb-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tb-car-detail .tb-intro>p {
    max-width: 760px;
    margin: 0 auto;
}

.tb-car-detail .tb-intro__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 32px;
    border: 1px solid var(--tb-line);
}

.tb-car-detail .tb-intro__facts>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 12px;
    border-right: 1px solid var(--tb-line);
}

.tb-car-detail .tb-intro__facts>div:last-child {
    border-right: 0;
}

.tb-car-detail .tb-intro__facts strong {
    font-size: 23px;
    line-height: 1.4;
}

.tb-car-detail .tb-intro__facts span {
    color: var(--tb-muted);
    font-size: 13px;
}

/* SECTION */

.tb-car-detail .tb-section {
    padding: 50px 0 15px;
    scroll-margin-top: 25px;
}

.tb-car-detail .tb-section--gray {
    padding-right: clamp(18px, 4vw, 45px);
    padding-left: clamp(18px, 4vw, 45px);
    background: var(--tb-gray);
}

.tb-car-detail .tb-heading {
    max-width: 100%;
    margin: 0 auto 35px;
    text-align: center;
}

.tb-car-detail .tb-heading>span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--tb-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tb-car-detail .tb-heading p {
    margin-bottom: 0;
}

/* LARGE IMAGE */

.tb-car-detail .tb-image-wide {
    margin-bottom: 5px;
}

.tb-car-detail .tb-image-wide img {
    width: 100%;
    max-height: 600px;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    background: #eee;
}

.tb-car-detail .tb-image-wide figcaption {
    padding: 10px 0;
    color: var(--tb-muted);
    font-size: 13px;
}

/* FEATURE CARDS */

.tb-car-detail .tb-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tb-car-detail .tb-feature-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tb-line);
}

.tb-car-detail .tb-feature-card>img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eee;
    transition: transform .35s ease;
}

.tb-car-detail .tb-feature-card__body {
    padding: 22px;
}

.tb-car-detail .tb-feature-card__body>span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--tb-red);
    font-size: 12px;
    font-weight: 700;
}

.tb-car-detail .tb-feature-card h3 {
    font-size: 20px;
}

.tb-car-detail .tb-feature-card p {
    margin-bottom: 0;
    font-size: 14px;
}

/* SPLIT LAYOUT */

.tb-car-detail .tb-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(25px, 5vw, 60px);
    margin: 20px 0 40px;
}

.tb-car-detail .tb-split__image,
.tb-car-detail .tb-split__content {
    min-width: 0;
}

.tb-car-detail .tb-split__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eee;
}

.tb-car-detail .tb-split__content h3 {
    font-size: clamp(23px, 2.5vw, 23px);
}

/* STATS */

.tb-car-detail .tb-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.tb-car-detail .tb-stats>div {
    padding: 14px 10px;
    background: #fff;
    border: 1px solid var(--tb-line);
}

.tb-car-detail .tb-stats strong,
.tb-car-detail .tb-stats span {
    display: block;
}

.tb-car-detail .tb-stats strong {
    color: var(--tb-red);
    font-size: 23px;
    line-height: 1.4;
}

.tb-car-detail .tb-stats span {
    color: var(--tb-muted);
    font-size: 12px;
}

/* HIGHLIGHT */

.tb-car-detail .tb-highlight {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: 30px;
    background: var(--tb-gray);
    border-left: 4px solid var(--tb-red);
}

.tb-car-detail .tb-highlight__number {
    color: var(--tb-red);
    font-size: 44px;
    font-weight: 800;
    text-align: center;
}

.tb-car-detail .tb-highlight h3 {
    margin-bottom: 8px;
}

.tb-car-detail .tb-highlight p {
    margin-bottom: 0;
}

/* SAFETY LIST */

.tb-car-detail .tb-safety-list {
    margin: 0px 0 5px;
    padding: 0;
    list-style: none;
}

.tb-car-detail .tb-safety-list li {
    position: relative;
    padding: 5px 0 5px 28px;
    border-bottom: 1px solid var(--tb-line);
    color: var(--tb-dark);
    font-size: 14px;
}

.tb-car-detail .tb-safety-list li::before {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--tb-red);
    content: "\2713";
    font-weight: 700;
}

.tb-car-detail .tb-note {
    font-size: 12px;
    font-style: italic;
}

/* SPECS */

.tb-car-detail .tb-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--tb-line);
    border-left: 1px solid var(--tb-line);
}

.tb-car-detail .tb-spec-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 18px 20px;
    border-right: 1px solid var(--tb-line);
    border-bottom: 1px solid var(--tb-line);
}

.tb-car-detail .tb-spec-item:nth-child(4n + 1),
.tb-car-detail .tb-spec-item:nth-child(4n + 2) {
    background: #fafafa;
}

.tb-car-detail .tb-spec-item span {
    color: var(--tb-muted);
    font-size: 13px;
}

.tb-car-detail .tb-spec-item strong {
    font-size: 15px;
    overflow-wrap: anywhere;
}

/* CTA */

.tb-cta {
    margin-top: 35px;
    padding: clamp(35px, 6vw, 65px) 25px;
    background: #eb0a1e;
    color: #fff;
    text-align: center;
}

.tb-cta__content {
    max-width: 760px;
    margin: 0 auto;
}

.tb-cta__content>span {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tb-cta h2 {
    color: #fff;
}

.tb-cta p {
    color: #fff;
}

.tb-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 25px;
    background: #fff;
    color: #eb0a1e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/* TABLET */
@media screen and (max-width: 990px) {

    .tb-car-detail .tb-split {
        grid-template-columns: 1fr;
    }

    .tb-car-detail .tb-feature-card h3 {
        font-size: 16px;
    }

    .tb-car-detail .tb-feature-card__body {
        padding: 10px;
    }

    .tb-car-detail .tb-feature-card p {
        margin-bottom: 0;
        font-size: 12px;
    }

    .tb-car-detail .tb-heading {
        font-size: 20px;
    }

    .tb-cta h2 {
        font-size: 25px;
    }
}

@media screen and (max-width: 900px) {
    .tb-car-detail .tb-section {
        padding-top: 30px;
        padding-bottom: 20px;
    }

    .tb-car-detail .tb-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .tb-car-detail .tb-split {
        gap: 25px;
    }

    .tb-car-detail .tb-feature-card__body {
        padding: 18px;
    }
}

/* MOBILE */

@media screen and (max-width: 600px) {
    .tb-car-detail {
        font-size: 15px;
        line-height: 1.7;
    }

    .tb-car-detail .tb-intro {
        padding: 20px;
        text-align: left;
    }

    .tb-car-detail .tb-intro h2 {
        font-size: 29px;
    }

    .tb-car-detail .tb-intro__facts {
        margin-top: 22px;
    }

    .tb-car-detail .tb-intro__facts>div {
        padding: 15px 5px;
        text-align: center;
    }

    .tb-car-detail .tb-intro__facts strong {
        font-size: 20px;
    }

    .tb-car-detail .tb-intro__facts span {
        font-size: 11px;
    }

    .tb-car-detail .tb-section {
        padding: 20px 0;
    }

    .tb-car-detail .tb-section--gray {
        padding-right: 15px;
        padding-left: 15px;
    }

    .tb-car-detail .tb-heading {
        margin-bottom: 25px;
        text-align: left;
    }

    .tb-car-detail .tb-heading h2 {
        font-size: 28px;
    }

    .tb-car-detail .tb-image-wide img {
        aspect-ratio: 4 / 3;
    }

    .tb-car-detail .tb-feature-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .tb-car-detail .tb-feature-card>img {
        aspect-ratio: 16 / 10;
    }

    .tb-car-detail .tb-feature-card__body {
        padding: 17px;
    }

    .tb-car-detail .tb-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }

    .tb-car-detail .tb-split__image img {
        aspect-ratio: 4 / 3;
    }

    .tb-car-detail .tb-split__content h3 {
        font-size: 24px;
    }

    .tb-car-detail .tb-stats {
        gap: 7px;
    }

    .tb-car-detail .tb-stats>div {
        padding: 12px 6px;
    }

    .tb-car-detail .tb-stats strong {
        font-size: 19px;
    }

    .tb-car-detail .tb-stats span {
        font-size: 11px;
    }

    .tb-car-detail .tb-highlight {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 22px;
    }

    .tb-car-detail .tb-highlight__number {
        text-align: left;
        font-size: 36px;
    }

    .tb-car-detail .tb-spec-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tb-car-detail .tb-spec-item {
        padding: 14px 16px;
    }

    .tb-car-detail .tb-spec-item:nth-child(n) {
        background: #fff;
    }

    .tb-car-detail .tb-spec-item:nth-child(even) {
        background: #f8f8f8;
    }

    .tb-cta {
        margin-top: 20px;
        padding: 35px 18px;
    }

    .tb-cta h2 {
        font-size: 27px;
    }

    .tb-cta__button {
        width: 100%;
    }
}

/* MOBILE NHO */

@media screen and (max-width: 360px) {
    .tb-car-detail .tb-intro__facts strong {
        font-size: 17px;
    }

    .tb-car-detail .tb-intro__facts span {
        font-size: 10px;
    }

    .tb-car-detail .tb-heading h2 {
        font-size: 25px;
    }
}