body {
    background-color: #000;
    color: #fff;
    font-family: 'Times New Roman', Times, serif;
    /* Fallback to Arial and sans-serif */
}

/* Navbar Styling */
.navbar {
    padding: 15px 30px;
    background-color: #111;
}


/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #ff3b3b;
}

/* News Section */
.news-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual Article */
.article {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background-color: #1b1b1b;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    color: #ffffff !important;

}

.article img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    color: #ffffff !important;

    border-radius: 5px;
}

.article-content {
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.2rem;
    color: #ff3b3b;
    margin: 0;
    text-decoration: none;
}

.article-title:hover {
    text-decoration: underline;
}

.article-date {
    font-size: 0.85rem;
    color: #ccc;
    margin: 5px 0;
}

.article-description {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.5;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ff3b3b;
}

/* Car Comparison Container */
.comparison-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}










/* Individual Car Card */
#car-card {
    background-color: #1b1b1b;
    border: 1px solid #333;
    padding: 20px;
    width: 30%;
    border-radius: 8px;
}

#car-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #d10000;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

#car-card h5 {
    font-size: 1.2rem;
    margin: 10px 0;
}

#car-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

/* VS Text */
.vs-text {
    font-size: 1.2rem;
    color: red;
    text-align: center;
    margin: 20px 0;
}

/* Clear Button */
.clear-btn {
    color: red;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    margin: 20px 0;
    text-align: center;
}

/* Compare Button */
.compare-btn {
    background-color: #ff3b3b;
    border: none;
    padding: 10px 20px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

.compare-btn:hover {
    background-color: #e00000;
}

/* Car Selection Input */
.car-selection {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.car-selection input {
    padding: 10px;
    width: 30%;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.car-selection input::placeholder {
    color: #777;
}

.car-selection-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.car-selection-container .compare-btn {
    margin-left: 20px;
}


/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #ff3b3b;
}

/* Car Comparison Container */
.comparison-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

/* Individual Car Card */
#car-card {
    background-color: #1b1b1b;
    border: 1px solid #333;
    padding: 20px;
    width: 45%;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#car-card img {
    width: 100px;
    height: auto;
    border-bottom: 1px solid #d10000;
    padding-bottom: 10px;
    margin-right: 20px;
}

.car-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.car-info h5 {
    font-size: 1.2rem;
    margin: 10px 0;
}

.car-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

/* VS Text */
.vs-text {
    font-size: 1.5rem;
    color: red;
    text-align: center;
    align-self: center;
    margin: 0 10px;
}

.car-selection div {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.car-selection label {
    margin-bottom: 5px;
    color: #fff; /* Adjust color as per your theme */
    font-size: 0.9rem;
}

.car-selection input {
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
}


.car-selection {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.car-selection div {
    width: 30%;
}

.car-selection input {
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Button container for flex layout */
.button-container {
    display: flex;
    justify-content: space-between;
}

.clear-btn {
    background-color: transparent;
    color: red;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    text-decoration: underline;
}

.compare-btn {
    background-color: #ff3b3b;
    border: none;
    padding: 10px 20px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

.compare-btn:hover {
    background-color: #e00000;
}

/* General Styles */
.car-selection-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.car-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.car-selection div {
    flex: 1;
    min-width: 200px;
}

.button-container {
    display: flex;
    justify-content: space-between;
}

.clear-btn, .compare-btn {
    font-size: 16px;
}

.comparison-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#car-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 10px;
    min-width: 250px; /* Set a minimum width */
    max-width: 350px; /* Set a maximum width */
}

#car-card img {
    width: 100%;
    height: auto;
}

.vs-text {
    font-size: 24px;
    font-weight: bold;
    margin: 0 10px;
    flex-shrink: 0; /* Prevent VS text from shrinking */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .car-selection {
        flex-direction: column;
        align-items: center;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
    }

    .comparison-row {
        flex-direction: column;
        align-items: center;
    }

    #car-card {
        width: 80%; /* Make cards take up more width on small screens */
    }

    .vs-text {
        font-size: 20px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .car-selection-container {
        padding: 10px;
    }

    .car-selection div {
        width: 100%;
    }

    #car-card {
        width: 90%; /* Take almost full width on very small screens */
    }

    .vs-text {
        font-size: 18px;
    }
}


/* General Styles */
/* .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
} */

.news-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.article {
    display: flex;
    flex: 1;
    /* background-color: #f9f9f9; */
    padding: 20px;
    border-radius: 10px;
    color: #ffffff !important;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
}

.article-content {
    display: flex;
    flex-direction: column;
    color: #ffffff !important;

    justify-content: space-between;
}

.article-title {
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 10px;
}

.article-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.article-description {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.5;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .article {
        flex-direction: column; /* Stack the image and content vertically */
        text-align: center; /* Center align the content */
    }

    .article img {
        margin-right: 0; /* Remove the right margin */
        margin-bottom: 15px; /* Add margin to the bottom */
        width: 100%; /* Make the image full-width */
        height: auto; /* Auto adjust the height */
    }

    .article-content {
        align-items: center; /* Center align the text */
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 16px;
    }

    .article-description {
        font-size: 14px;
    }
}




.section-title {
    text-align: center;
    color: white;
    font-size: 24px;
    margin-bottom: 30px;
}

/* Comparison Row for 3 Boxes */
.comparison-row {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Space between the comparison boxes */
}

/* Comparison Box */
.comparison-box {
    flex: 1; /* Let the boxes take up equal space */
    display: flex;
    flex-direction: column; /* Stack the car cards vertically */
    align-items: center;
    background-color: #1e1e1e;
    padding: 15px;
    border: 1px solid #555;
    border-radius: 10px;
}

#car-card {
    width: 70%; /* Take full width of the comparison box */
    text-align: center;
}

#car-card img {
    width: 60%;
    height: auto;
    border-radius: 10px;
}

.car-info h5 {
    font-size: 18px;
    margin-top: 10px;
    color: white;
}

.car-info p {
    font-size: 16px;
    margin: 5px 0;
    color: #ccc;
}

/* VS Divider */
.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vs-divider .vs-text {
    font-size: 24px;
    color: #ff0000;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comparison-row {
        flex-direction: column;
    }

    .comparison-box {
        width: 100%;
        margin-bottom: 20px;
    }
}


.car-selection-container {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: auto;
}

.car-label {
    color: #ff4d4d;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.car-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease-in-out;
}

.car-select:focus {
    border-color: #007bff;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.clear-btn, .compare-btn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


.compare-btn {
    color: #fff;
    height: 50px;
    width: 150px;
}



@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
    }

    .clear-btn, .compare-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .clear-btn:last-child {
        margin-bottom: 0;
    }
}



/* Top Header Styles */
.top-header {
    background: #ff2e00; /* Similar gradient or your own choice */
    color: #fff;
    font-size: 14px;
    position: relative;  /* Add position for z-index to work */
    z-index: 999;  /* Ensures it stays above other elements */
}

.top-header .contact-info,
.top-header .user-actions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.top-header .contact-info li,
.top-header .user-actions li {
    margin-right: 20px;
}

.top-header .contact-info li i,
.top-header .user-actions li i {
    margin-right: 5px;
}

.top-header a {
    color: #fff;
    text-decoration: none;
}

.top-header a:hover {
    text-decoration: underline;
}

/* Navbar Styles */
nav.navbar {
    z-index: 998;  /* Lower than the top-header */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .top-header .contact-info {
        /* justify-content: center; */
        margin-bottom: 10px;
    }

    .top-header .user-actions {
        justify-content: center;
        margin-top: -32px;

    }
}