﻿/* ================= Body ================= */
body {
    background-color: #f8f9fa;
    color: #212529;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ================= Navbar ================= */
.navbar {
    background-color: #343a40 !important;
}

    .navbar .nav-link,
    .navbar .navbar-brand {
        color: #FFD700 !important;
        font-weight: bold;
    }

        .navbar .nav-link:hover,
        .navbar .navbar-brand:hover {
            color: #FFEC8B !important;
            text-decoration: none !important;
        }

    /* Thanh tìm kiếm */
    .navbar .form-control {
        width: 180px;
        transition: width 0.3s ease;
    }

        .navbar .form-control:focus {
            width: 250px;
        }

    .navbar .btn-warning {
        color: #000;
        font-weight: bold;
        transition: all 0.3s ease;
    }

        .navbar .btn-warning:hover {
            background-color: #FFEC8B !important;
            color: #000 !important;
        }

/* ================= Footer ================= */
.footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 1.5rem 0;
    text-align: center;
}

    .footer hr {
        border-color: #6c757d;
    }

/* ================= Carousel ================= */
.carousel-img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-img {
    transform: scale(1.03);
}

/* ================= Xe đang bán / Card ================= */
.row.row-cols-1.row-cols-md-3.g-4 .col .card,
.card-hover {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

    .row.row-cols-1.row-cols-md-3.g-4 .col .card:hover,
    .card-hover:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    }

    .row.row-cols-1.row-cols-md-3.g-4 .col .card img,
    .card-hover img {
        transition: transform 0.3s ease;
    }

    .row.row-cols-1.row-cols-md-3.g-4 .col .card:hover img,
    .card-hover:hover img {
        transform: scale(1.05);
    }

    .row.row-cols-1.row-cols-md-3.g-4 .col .card-title,
    .card-hover .card-title {
        font-weight: 700;
        color: #212529;
    }

    .row.row-cols-1.row-cols-md-3.g-4 .col .card-text,
    .card-hover .card-text {
        font-size: 0.95rem;
        color: #495057;
    }

/* Buttons */
.row.row-cols-1.row-cols-md-3.g-4 .col .btn-outline-primary,
.row.row-cols-1.row-cols-md-3.g-4 .col .btn-danger,
.btn-offer {
    border-radius: 50px;
    transition: all 0.3s ease;
}

    .row.row-cols-1.row-cols-md-3.g-4 .col .btn-outline-primary:hover {
        background-color: #007bff;
        color: #fff;
        transform: scale(1.05);
    }

    .row.row-cols-1.row-cols-md-3.g-4 .col .btn-danger:hover,
    .btn-offer:hover {
        transform: scale(1.05);
    }

    .row.row-cols-1.row-cols-md-3.g-4 .col .btn-danger:hover {
        background-color: #dc3545;
    }

.btn-offer {
    background-color: #0d6efd;
    color: #fff;
    font-weight: bold;
    padding: 0.75rem 2rem;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .btn-offer:hover {
        background-color: #0b5ed7;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        color: #fff;
    }

/* ================= Section ================= */
section {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    section:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    }

h2.fw-bold.section-title {
    font-size: 2.5rem;
    color: #212529;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Section giới thiệu riêng */
#gioi-thieu {
    background-color: #f8f9fa;
}

/* Section ưu đãi */
.offer-section {
    background-color: #f8f9fa;
    color: #212529;
}

/* Nút nhấp nháy */
.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px 5px rgba(255, 193, 7, 0.4);
    }
}

/* Promo box hover */
.promo-box {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .promo-box:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 10px 25px rgba(255, 193, 7, 0.6);
    }

/* History section */
.history-section {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
}

    .history-section h2 {
        font-size: 2rem;
        position: relative;
        display: inline-block;
    }

        .history-section h2::after {
            content: "";
            display: block;
            width: 60px;
            height: 4px;
            background: #ffc107;
            margin: 10px auto 0;
            border-radius: 5px;
        }

/* Responsive */
@media (max-width: 767px) {
    h2.fw-bold.section-title {
        font-size: 2rem;
    }

    .btn-offer {
        font-size: 1rem;
        padding: 0.5rem 1.5rem;
    }
}

/* ================= Timeline Lịch Sử Xe Cổ Điển ================= */
.history-section {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    padding: 5rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .history-section h2 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 4rem;
        font-weight: bold;
        color: #212529;
        position: relative;
    }

        .history-section h2::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: #ffc107;
            margin: 0.5rem auto 0;
            border-radius: 3px;
        }

/* Timeline container */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Timeline items */
.timeline-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    gap: 2rem;
}

    .timeline-item.show {
        opacity: 1;
        transform: translateY(0);
    }

    /* Alternate layout */
    .timeline-item:nth-child(odd) {
        flex-direction: row-reverse;
    }

    /* Image */
    .timeline-item img {
        width: 45%;
        border-radius: 15px;
        box-shadow: 0 12px 25px rgba(0,0,0,0.15);
        transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
        filter: grayscale(20%);
    }

        .timeline-item img:hover {
            transform: scale(1.05);
            box-shadow: 0 15px 35px rgba(0,0,0,0.25);
            filter: grayscale(0%);
        }

/* Content box */
.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    flex: 1;
    transition: transform 0.3s ease, background 0.3s ease;
}

    .timeline-content:hover {
        transform: translateY(-5px);
        background: rgba(255, 250, 240, 0.95); /* nhẹ ánh vàng */
    }

    .timeline-content h5 {
        font-size: 1.6rem;
        font-weight: bold;
        margin-bottom: 1rem;
        color: #212529;
    }

    .timeline-content p {
        font-size: 1rem;
        color: #495057;
        line-height: 1.5;
    }

/* Responsive */
@media (max-width: 767px) {
    .timeline-item, .timeline-item:nth-child(odd) {
        flex-direction: column;
        text-align: center;
    }

        .timeline-item img {
            width: 100%;
        }
}

