/* components.css - Reusable Components */

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 3em;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-heading p {
    font-size: 1.2em;
    color: #666;
    max-width: 700px;
    margin: 15px auto 0;
}

/* Car Listing Card */
.car-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--shadow-color) 0px 4px 12px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;
}

.car-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.car-card-content {
    padding: 20px;
}

.car-card-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.car-card-content p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}

.car-card-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #777;
}

.car-card-features span {
    display: flex;
    align-items: center;
}

.car-card-features span i {
    margin-right: 5px;
    color: var(--accent-color);
}

.car-card-price {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.car-card-price span {
    font-size: 0.6em;
    font-weight: normal;
    color: #888;
}

/* Grid Layouts */
.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Feature Boxes */
.feature-box {
    text-align: center;
    padding: 30px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--shadow-color) 0px 4px 12px;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 0.95em;
    color: #666;
}

/* Testimonial Card */
.testimonial-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--shadow-color) 0px 4px 12px;
    padding: 30px;
    text-align: center;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-card .author {
    font-weight: bold;
    color: var(--primary-color);
}

.testimonial-card .rating i {
    color: gold;
    margin-right: 2px;
}

/* Call to Action Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: white;
    font-size: 3em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}