/* ============================================
   Slider - Frontend Styles
   ============================================ */
.history-slider-wrap {
    position: relative;
}

/* Layout: slider full width, nav buttons overlay 50% on edges */
.history-slider-body {
    position: relative;
}
.history-slider-center {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 70px;
}
.history-slider-center .historySwiper {
    overflow: hidden;
}

/* ---- Slide Items ---- */
.history-slide-item {
    width: 285px !important;
}
.history-slide-inner {
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.history-slide-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 16px;
    background: #f5f5f5;
}
.history-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.history-slide-item:hover .history-slide-image img {
    transform: scale(1.03);
}
.history-slide-date p {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.3;
}
.history-slide-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* ---- Navigation Arrows (overlay on edges) ---- */
.history-nav-next,
.history-nav-prev {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 35px));
    z-index: 20;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1464F4;
    background: #fff;
    border: 2px solid #1464F4;
    border-radius: 50%;
    transition: all 0.25s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.history-nav-prev {
    left: 0;
    transform: translateX(-50%) translateY(calc(-50% - 35px));
}
.history-nav-next {
    right: 0;
    transform: translateX(50%) translateY(calc(-50% - 35px));
}
.history-nav-next:hover,
.history-nav-prev:hover {
    background: #1464F4;
    color: #fff;
    box-shadow: 0 4px 16px rgba(20, 100, 244, 0.3);
}
.history-nav-next svg,
.history-nav-prev svg {
    width: 22px;
    height: 22px;
}
.history-nav-next.swiper-button-disabled,
.history-nav-prev.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}
/* Override Swiper's default ::after arrows */
.history-nav-next::after,
.history-nav-prev::after {
    display: none !important;
}

/* ---- Year Navigation (Timeline) ---- */
.history-year-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    margin-top: 40px;
}
.history-year-track {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    height: 50px;
}
.history-year-dot {
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    outline: none;
}
.history-year-dot .dot-marker {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: #c8c8c8;
    transition: background 0.25s ease;
}
.history-year-dot:hover .dot-marker {
    background: #999;
}
.history-year-dot.active .dot-marker {
    background: #1464F4;
    height: 4px;
}
.history-year-dot .dot-year {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    white-space: nowrap;
    transition: color 0.25s ease;
    line-height: 1;
    align-self: flex-start;
}
.history-year-dot:hover .dot-year {
    color: #555;
}
.history-year-dot.active .dot-year {
    color: #1464F4;
    font-weight: 600;
}

/* ============================================
   Prize Slider (hs-prize-*)
   ============================================ */
.hs-prize-wrap {
    overflow: hidden;
}
.hs-prize-wrap .hs-prize-swiper {
    overflow: hidden;
}
.hs-prize-slide {
    width: 100% !important;
}
.hs-prize-row {
    display: flex;
    align-items: stretch;
    gap: 60px;
}
.hs-prize-img {
    flex: 0 0 55%;
    max-width: 55%;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
}
.hs-prize-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hs-prize-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}
.hs-prize-title {
    font-size: 42px;
    font-weight: 300;
    color: #1a1a1a;
    margin: 0 0 30px;
    line-height: 1.2;
}
.hs-prize-body {
    margin-bottom: 40px;
}
.hs-prize-year {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
}
.hs-prize-desc p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}
.hs-prize-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.hs-prize-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hs-prize-btns button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #1464F4;
    background: #fff;
    color: #1464F4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}
.hs-prize-btns button:hover {
    background: #1464F4;
    color: #fff;
}
.hs-prize-btns button svg {
    width: 18px;
    height: 18px;
}
.hs-prize-counter {
    font-size: 16px;
    color: #888;
    font-weight: 500;
    letter-spacing: 1px;
}
.hs-prize-counter .hs-prize-cur {
    color: #1a1a1a;
    font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .history-slide-item {
        width: 250px !important;
    }
    .history-slide-date p {
        font-size: 16px;
    }
    .history-slide-content p {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .history-slider-center {
        padding-bottom: 50px;
    }
    .history-slide-item {
        width: 220px !important;
    }
    .history-slide-date p {
        font-size: 15px;
    }
    .history-slide-content p {
        font-size: 13px;
        line-height: 1.5;
    }
    .history-nav-next,
    .history-nav-prev {
        width: 40px;
        height: 40px;
    }
    .history-nav-next svg,
    .history-nav-prev svg {
        width: 18px;
        height: 18px;
    }
    .history-year-track {
        gap: 4px;
    }
    .history-year-dot .dot-year {
        font-size: 11px;
        margin-top: 6px;
    }

    /* Prize responsive */
    .hs-prize-row {
        flex-direction: column;
        gap: 24px;
    }
    .hs-prize-img {
        flex: none;
        max-width: 100%;
    }
    .hs-prize-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .hs-prize-year {
        font-size: 18px;
    }
    .hs-prize-desc p {
        font-size: 14px;
    }
    .hs-prize-body {
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .history-slide-item {
        width: 200px !important;
    }
    .history-slide-image {
        margin-bottom: 10px;
    }
    .history-slide-date p {
        font-size: 14px;
        margin-bottom: 6px;
    }
    .history-slide-content p {
        font-size: 12px;
    }
    .history-nav-next,
    .history-nav-prev {
        width: 36px;
        height: 36px;
    }
    .history-nav-next svg,
    .history-nav-prev svg {
        width: 16px;
        height: 16px;
    }
    .history-year-track {
        gap: 3px;
    }
}

/* ============================================
   Slider Ngoại thất — class chuẩn VinFast
   ============================================ */
.section-exterior.hs-exterior-wrap {
    --hs-ext-blue: #1464f4;
    --hs-ext-text: #151515;
    --hs-ext-muted: #8a8a8a;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--hs-ext-text);
    background: #fff;
}
.section-exterior.hs-exterior-wrap *,
.section-exterior.hs-exterior-wrap *::before,
.section-exterior.hs-exterior-wrap *::after {
    box-sizing: border-box;
}
.section-exterior .content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 480px;
    padding: 40px 0 20px;
    background: #fff;
}
.section-exterior .car-view {
    position: relative;
    z-index: 1;
    flex: 1 1 58%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 24px 16px 32px;
    background: url('../images/background-xe.svg') no-repeat 0 100%;
    background-size: 90% 65%;
}
.section-exterior .car-view .tab-pane {
    display: none;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}
.section-exterior .car-view .tab-pane.active,
.section-exterior .car-view .tab-pane.show {
    display: block;
}
.section-exterior .car-view .tab-pane.fade {
    opacity: 0;
    transition: opacity .25s ease;
}
.section-exterior .car-view .tab-pane.fade.active.show {
    opacity: 1;
}
.section-exterior .car-view figure {
    margin: 0;
    text-align: center;
}
.section-exterior .car-view img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    margin: 0 auto;
}
.section-exterior .color-select-box {
    position: relative;
    z-index: 2;
    flex: 1 1 42%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px 40px 40px;
    background: transparent;
}
.section-exterior .color-select-box > .logo {
    position: absolute;
    top: 12px;
    right: 20px;
    width: min(46%, 260px);
    height: auto;
    max-height: 160px;
    object-fit: contain;
    object-position: right top;
    opacity: .22;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.section-exterior .color-select-box > .logo-img {
    display: block;
    opacity: .28;
}
.section-exterior .color-select-box > .logo-text {
    width: auto;
    max-width: none;
    max-height: none;
    opacity: 1;
    font-size: clamp(80px, 11vw, 150px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #e6e9ec;
    white-space: nowrap;
}
.section-exterior .color-select {
    position: relative;
    z-index: 1;
    max-width: 480px;
}
.section-exterior .tag-line {
    margin-bottom: 32px;
}
.section-exterior .ttl {
    font-size: 56px;
    font-weight: 600;
    margin: 0;
    padding: 0 10px;
    line-height: 1.15;
    color: var(--hs-ext-text);
}
.section-exterior .sub-ttl {
    margin: 12px 0 0;
    padding: 0 10px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--hs-ext-muted);
}
.section-exterior .car-view figcaption {
    margin-top: 14px;
    font-size: 24px;
    font-weight: 600;
    color: #3c3c3c;
    line-height: 1.35;
}
.section-exterior .color-list .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0 10px;
    border: 0;
    justify-content: flex-start;
}
.section-exterior .color-list .nav-item {
    margin: 0;
    list-style: none;
}
/* Skew chuẩn VinFast: đỉnh nghiêng sang trái (skewX 20deg) */
.section-exterior .color-list .nav-tabs .nav-item .nav-link {
    position: relative;
    display: block;
    width: 64px;
    height: 48px;
    padding: 4px;
    border: 0;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transform: skewX(20deg);
}
.section-exterior .color-list .nav-tabs .nav-item .nav-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transform: skewX(-20deg);
}
.section-exterior .color-list .nav-tabs .nav-item .nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    pointer-events: none;
    transition: border-color .25s;
    box-sizing: border-box;
}
.section-exterior .color-list .nav-tabs .nav-item .nav-link.active::before,
.section-exterior .color-list .nav-tabs .nav-item .nav-link:hover::before,
.section-exterior .color-list .nav-tabs .nav-item .nav-link:focus-visible::before {
    border-color: var(--hs-ext-blue);
}
.section-exterior .hs-ext-color-list-mobile {
    display: none;
}
.section-exterior .detail-link {
    display: none !important;
}

@media only screen and (min-width: 1200px) {
    .section-exterior .color-list .nav-tabs .nav-item .nav-link::before {
        border-radius: 16px;
    }
    .section-exterior .color-list .nav-tabs .nav-item .nav-link img {
        border-radius: 12px;
    }
    .section-exterior .color-list .nav-tabs .nav-item .nav-link {
        width: 72px;
        height: 52px;
        padding: 5px;
    }
    .section-exterior .car-view {
        padding-bottom: 32px;
    }
    .section-exterior .color-select-box > .logo-text {
        font-size: 160px;
    }
}

@media only screen and (max-width: 1199px) {
    .section-exterior .ttl {
        font-size: 40px;
    }
}

@media only screen and (max-width: 991px) {
    .section-exterior .content {
        flex-direction: column;
        min-height: 0;
        padding: 24px 0;
    }
    .section-exterior .car-view {
        flex: none;
        width: 100%;
        margin-bottom: 16px;
        background-size: 95% 55%;
        background-position: center 100%;
    }
    .section-exterior .color-select-box {
        flex: none;
        width: 100%;
        padding: 16px 20px 28px;
        align-items: center;
        text-align: center;
    }
    .section-exterior .color-select {
        max-width: none;
        width: 100%;
    }
    .section-exterior .color-select-box > .logo {
        position: static;
        display: block;
        margin: 0 auto 12px;
        width: min(40%, 160px);
        opacity: .15;
        text-align: center;
    }
    .section-exterior .color-select-box > .logo-text {
        width: auto;
        font-size: 64px;
        opacity: 1;
        color: #eceff1;
    }
    .section-exterior .ttl {
        font-size: 32px;
        padding: 0;
    }
    .section-exterior .sub-ttl {
        padding: 0;
    }
    .section-exterior .hs-ext-color-list-desktop {
        display: none;
    }
    .section-exterior .hs-ext-color-list-mobile {
        display: block;
        width: 100%;
        padding: 0 20px 28px;
    }
    .section-exterior .hs-ext-color-list-mobile .nav-tabs {
        justify-content: center;
        padding: 0;
    }
    .section-exterior .tag-line {
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 575px) {
    .section-exterior .ttl {
        font-size: 26px;
    }
    .section-exterior .color-list .nav-tabs .nav-item .nav-link {
        width: 48px;
        height: 34px;
    }
    .section-exterior .car-view img {
        max-height: 260px;
    }
}
