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

/* Header & 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 {
    font-weight: bold;
    font-size: 24px;
}

.logo img {
    height: 40px;
    vertical-align: middle;
}

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

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

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

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

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

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

/* Hero Section Styles */
.hero {
    background: url('https://placehold.co/1200x400/0056b3/ffffff?text=Find+Your+Perfect+Car+Insurance') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    text-align: center;
}

.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    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.1);
}

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

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

/* About & Content Pages - UPDATED SECTION */
.content-section {
    background: white;
    padding: 30px 40px;
    border-radius: 8px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center; /* This line centers all text inside the container */
}

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

/* Affiliate Page Styles */
.affiliate-hero {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    border-radius: 8px;
}

.affiliate-hero h1 {
    font-size: 42px;
    margin: 0;
}

.affiliate-hero p {
    font-size: 18px;
    margin-top: 10px;
}

.cta-button {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 15px 35px;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 25px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

.reviews-section {
    margin-top: 40px;
    text-align: center;
}

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

.review-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 5px solid #007bff;
    text-align: left; /* Keep review text left-aligned */
}

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

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

/* Contact Page */
.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-info {
    text-align: center;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 18px;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
}

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

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

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #00bfff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.affiliate-disclaimer {
    font-size: 12px;
    color: #ccc;
    margin-top: 15px;
    max-width: 800px;
    margin: 15px auto 0 auto;
}

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

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

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

    .hamburger {
        display: flex;
    }
    
    .main-container {
        padding: 20px 15px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .affiliate-hero h1 {
        font-size: 32px;
    }

    .content-section {
        padding: 20px;
    }
}