/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body */
body {
    background-color: #f8f9fa;
    color: #333;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #222;
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    transition: background-color 0.3s ease;
}

header .logo h1 {
    font-size: 2.5rem;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #f8a400;
}

/* Featured Section */
.featured {
    background: url('car-banner.jpg') no-repeat center center/cover;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-top: 60px;
}

.featured-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: fadeIn 1s ease-out;
}

.featured-content p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-out;
}

.cta-btn {
    padding: 15px 30px;
    background-color: #f8a400;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cta-btn:hover {
    background-color: #e78f00;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Posts Section */
.posts {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
}

.posts h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Post Cards */
.post-card {
    display: inline-block;
    width: 300px;
    margin: 15px;
    background-color: #f1f1f1;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.post-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-img {
    transform: scale(1.05);
}

.post-info {
    padding: 20px;
}

.post-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.read-more {
    font-size: 1.1rem;
    text-decoration: none;
    color: #f8a400;
    transition: color 0.3s;
}

.read-more:hover {
    color: #e78f00;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #222;
    color: white;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .posts {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    .posts {
        padding: 40px 10px;
    }

    .post-card {
        width: 100%;
    }
}
