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

/* Header and Navigation */
.header {
    background-color: #ffffff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container .logo {
    height: 50px;
}

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

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Hero Section */
.hero {
    background: url('images/hero.jpeg?text=Find+Your+Perfect+Car+Insurance') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #ffc107;
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #ffca2c;
    transform: translateY(-2px);
}

/* Main Content Area */
.main-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

.page-title {
    text-align: center;
    color: #0056b3;
    margin-bottom: 40px;
    font-size: 2.5em;
}

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

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card .icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #0056b3;
    margin-bottom: 10px;
}

/* About & Generic Page Styles */
.content-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.content-section h2 {
    color: #0056b3;
}

/* Contact Page */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form button {
    background-color: #007bff;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #0056b3;
}

/* Affiliate Page */
.affiliate-hero {
    background: url('images/hero.jpeg?text=Save+Big+on+Car+Insurance') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.affiliate-hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.affiliate-hero .subheadline {
    font-size: 1.8em;
    margin-bottom: 25px;
    font-weight: 300;
}

.affiliate-hero .description {
    font-size: 1.2em;
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.affiliate-cta {
    background-color: #ffc107;
    color: #333;
    padding: 20px 40px;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.affiliate-cta:hover {
    background-color: #ffca2c;
    transform: scale(1.05);
}

.reviews-section {
    padding: 50px 20px;
    background-color: #e9ecef;
}

.reviews-title {
    text-align: center;
    color: #0056b3;
    font-size: 2.2em;
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.review-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.review-card p {
    font-style: italic;
}

.review-card .reviewer {
    font-weight: bold;
    color: #0056b3;
    margin-top: 15px;
    text-align: right;
}

.affiliate-disclaimer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #666;
    background-color: #f8f9fa;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
}

.footer-content h3 {
    color: #ffc107;
    margin-bottom: 15px;
}

.footer-content p {
    margin: 5px 0;
    line-height: 1.8;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #495057;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        position: absolute;
        top: 80px;
        left: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .affiliate-hero h1 {
        font-size: 2.2em;
    }

    .affiliate-hero .subheadline {
        font-size: 1.5em;
    }

    .contact-container {
        flex-direction: column;
    }
}