/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Header and Navbar */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #007bff;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero.jpeg?text=Car+Insurance') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    background-color: #ffc107;
    color: #333;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #ffca2c;
}

/* Services Section */
.services {
    padding: 2rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Page Content */
.page-content {
    padding: 2rem;
    max-width: 900px;
    margin: auto;
    background: #fff;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.about-us h1, .privacy-policy h1, .terms-of-service h1, .contact-us h1 {
    margin-bottom: 1.5rem;
}

.about-image {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Affiliate Landing Page */
.affiliate-hero {
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
    background-size: cover;
    background-position: center;
}

.affiliate-hero-content {
    background: rgba(0,0,0,0.6);
    padding: 2rem;
    border-radius: 10px;
    display: inline-block;
}

.cta-button-large {
    background-color: #28a745;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.cta-button-large:hover {
    background-color: #218838;
}

.user-reviews {
    padding: 2rem;
    text-align: center;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.review-card {
    background-color: #e9ecef;
    padding: 1.5rem;
    border-left: 5px solid #007bff;
    border-radius: 5px;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 2rem 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffc107;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ffc107;
}

.disclaimer {
    font-size: 0.8rem;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #495057;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Adjust based on header height */
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}