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

/* Header and Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo img {
    height: 50px;
}

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

.nav-item {
    margin-left: 20px;
}

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

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

.cta-button {
    background-color: #ff6f61;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero.jpeg?text=Find+Your+Rate');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Services Section */
.services {
    padding: 40px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Text Pages (About, Privacy, Terms) */
.text-page {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
}

/* Affiliate Page */
.affiliate-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 20px;
    background-color: #eaf6ff;
}

.affiliate-hero .hero-image {
    flex: 1;
    padding: 20px;
}

.affiliate-hero .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.affiliate-headline {
    font-size: 2.8rem;
    color: #007bff;
}

.affiliate-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.affiliate-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.large-cta {
    font-size: 1.5rem;
    padding: 15px 30px;
    display: inline-block;
    margin-bottom: 15px;
}

/* User Reviews Section */
.user-reviews {
    padding: 40px 20px;
    background-color: #fff;
}

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

.review-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 5px solid #007bff;
}

.reviewer {
    font-weight: bold;
    margin-top: 10px;
    text-align: right;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

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

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

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        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: 2.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);
    }

    .affiliate-hero {
        flex-direction: column;
    }
}}