﻿/* ================== SLIDER ================== */
.slider-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #000; /* màu nền hai bên */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    height: 480px;
    object-fit: cover;
}

/* Buttons left-right */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    z-index: 10;
}

.prev { left: 20px; }
.next { right: 20px; }
.prev:hover, .next:hover { background: rgba(255,0,0,0.7); }

/* ================== DÒNG XE ================== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 10px;
}

.dongxe {
    width: 100%;
    margin-top: 60px;
}

.tieudexe {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.dongxe-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.dongxe-tabs .tab {
    background: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: black;
    transition: 0.3s;
}

.dongxe-tabs .tab:hover {
    background: #f1f1f1;
}

.dongxe-tabs .active {
    background: red;
    color: white;
}

/* LIST XE — 4 cột đều nhau */
.xe-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    padding: 0 20px;
}

.xe {
    width: 200px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.xe:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.hidden { display: none !important; }

.tenxe {
    font-weight: bold;
    color: red;
    margin: 10px 0 5px 0;
}

.gia {
    font-size: 14px;
    margin-bottom: 10px;
}

.btn-xem {
    display: inline-block;
    padding: 6px 12px;
    background: red;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-xem:hover {
    background: darkred;
}

/* ================== TIN TỨC ================== */
.tintuc {
    margin-top: 60px;
}

.tieudetintuc {
    font-size: 32px;
    font-weight: bold;
    color: #333; /* chữ tiêu đề chính màu tối */
    text-align: center;
    margin-bottom: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-item {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    transition: 0.3s;
    border: 1px solid #ddd
}

    .news-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 17px rgba(0,0,0,0.1);
    }

    .news-item img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 12px;
    }

    .news-item h3 {
        font-size: 20px;
        color: #000;
        margin-bottom: 8px;
    }

    .news-item p {
        color: #555; /* chữ mô tả màu xám đậm hơn */
        font-size: 15px;
        line-height: 1.5;
    }

    .news-item a {
        text-decoration: none;
    }

.btn-detail {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    background: #0a84ff;
    color: #fff;
    font-size: 14px;
    border-radius: 6px;
    transition: 0.3s;
    text-decoration: none;
    font-weight: 600;
}

    .btn-detail:hover {
        background: #0066cc;
        box-shadow: 0 0 5px #fff;
        color: black;
    }

.btn-detail3 {
    display: inline-block;
    margin-top: 36px;
    padding: 8px 14px;
    background: #0a84ff;
    color: #fff;
    font-size: 14px;
    border-radius: 6px;
    transition: 0.3s;
    text-decoration: none;
    font-weight: 600;
}

    .btn-detail3:hover {
        background: #0066cc;
        box-shadow: 0 0 5px #fff;
        color: black;
    }

/* ================== RESPONSIVE ================== */
@media screen and (max-width: 992px) {
    .xe-list { grid-template-columns: repeat(2, 1fr); }
    .tintuc-list { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 576px) {
    .xe-list { grid-template-columns: 1fr; }
    .tintuc-list { grid-template-columns: 1fr; }
    .slider-container { height: 300px; }
    .slide { height: 300px; }
    .prev, .next { font-size: 20px; padding: 10px 14px; }
}
