/* Add to your existing styles */

/* General Reset */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}


main {
    max-width: 1500px;
    margin: 20px auto;
    padding: 20px;
    background: #0000006e;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Car Header */
.car-header {
    text-align: center;
}

.car-header h1 {
    font-size: 2.5rem;
    color: #2e93ff;
}

.car-header .subtitle {
    font-size: 1.2rem;
    color: #ffffff79;
}

/* Specifications and Description */
h2 {
    margin-bottom: 15px;
    color: #2e93ff;
}

.car-description h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #2e93ff;
    padding-bottom: 5px;
    color: rgb(255, 255, 255);
}

.car-description p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.651);

}

.car-info ul li {
    color: rgba(255, 255, 255, 0.822);
}

.car-info h2 {
    color: rgb(255, 255, 255);
}

.car-gallery h2{
    color: rgb(255, 255, 255);
}

.car-gallery{
    margin-top: 20px;
}


/* Modifications Section */
.mod-icon {
    max-width: 150px; /* Adjusted size to make it smaller */
    max-height: 150px; /* Adjusted size to make it smaller */
    margin-right: 10px; /* Keep spacing consistent */
    object-fit: contain; /* Ensures the image scales properly without distortion */
    border-radius: 4px; /* Optional: Adds a slight rounding for a polished look */
}

.modifications-container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.modification-category {
    flex: 1;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modification-category h3 {
    margin-bottom: 15px;
    color: #2e93ff;
}

.modification-category ul {
    padding-left: 20px;
}

.modification-category ul li {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #444;
    display: flex;
    align-items: center;
}

/* Image Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Table Styling */
.modification-gains{
    margin-top: 20px;
}

table.gains-table {
    width: 100%;
    border-radius: 10px;
    border-collapse: collapse;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
    background-color: #ffffff;
}

table.gains-table th,
table.gains-table td {
    padding: 15px;
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    font-family: 'Arial', sans-serif;
}

table.gains-table th {
    background-color: #2c3e50;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

table.gains-table td {
    color: #555;
}

table.gains-table tr:hover {
    background-color: #f2f2f2;
    cursor: pointer;
}

table.gains-table td:not(:last-child) {
    text-align: left;
    padding-left: 20px;
}

table.gains-table td:last-child {
    text-align: center;
}

table.gains-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table.gains-table td:first-child {
    font-weight: bold;
}
