/*-----------------------------------*\
  Cars Page Styles
\*-----------------------------------*/

/* Banner */
.banner-section {
    width: 100%;
    overflow: hidden;
    margin-bottom: 50px;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.cars-page {
  padding-top: 50px;
}

@media (max-width: 767px) {
  .cars-page {
    padding-top: 150px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .cars-page {
    padding-top: 150px;
  }
}

/* Section Headings */
.cars-page .h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;       /* larger heading */
    text-align: center;
    margin-bottom: 25px;
    color: #ff5f1f;
}

.cars-page .cars-text {
    font-family: 'Rubik', sans-serif;
    font-size: 1.5rem;       /* larger paragraph */
    text-align: center;
    margin-bottom: 35px;
    color: #555555;
    line-height: 1.6;
}

/* Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 50px auto;
    padding: 0 15px;
}

.car-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.car-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.car-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;      /* larger car name */
    margin-bottom: 8px;
    color: #111;
}

.car-type {
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;      /* larger car type */
    margin-bottom: 10px;
    color: #555;
}

.car-price {
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;      /* larger price */
    font-weight: 500;
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .car-img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .cars-grid {
        grid-template-columns: 1fr; /* 1 card per row on tablets */
    }

    .car-img {
        height: 200px;
    }

    .cars-page .h2 {
        font-size: 2.2rem;
        color: #ff5f1f;
    }

    .cars-page .cars-text {
        font-size: 1.1rem;
    }

    .car-name {
        font-size: 1.4rem;
    }

    .car-type {
        font-size: 1rem;
    }

    .car-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .cars-page .h2 {
        font-size: 1.8rem;
        color: #ff5f1f;
    }

    .cars-page .cars-text {
        font-size: 1rem;
    }

    .car-name {
        font-size: 1.3rem;
    }

    .car-type {
        font-size: 0.95rem;
    }

    .car-price {
        font-size: 1rem;
    }
}
