/* --- Global Styles & Variables --- */
:root {
    --primary-color: #005A9C; /* Professional Blue */
    --secondary-color: #2D3748; /* Dark Gray for Text */
    --accent-color: #48BB78; /* Vibrant Green for CTAs */
    --accent-hover-color: #38A169;
    --light-gray: #F7FAFC;
    --border-color: #E2E8F0;
    --white: #FFFFFF;
    --font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
p { margin-bottom: 1rem; }

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
}

/* --- Header & Navigation --- */
.main-header {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

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

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

.nav-links a {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in-out;
}

/* --- Call to Action (CTA) Button --- */
.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

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

/* --- Hero Section --- */
.hero {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 2rem;
}

/* --- Services Grid (Home Page) --- */
.services-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* ICON SIZE IS NOW 48px */
.service-card img {
    height: 48px;
    width: 48px;
    object-fit: contain;
}

.service-card h3 {
    margin-top: 1rem;
}

/* --- Standard Page Content --- */
.content-page {
    padding: 60px 0;
}

.content-page h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.content-page .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-page .content-wrapper h2 {
    margin-top: 2rem;
}

/* --- Affiliate Landing Page --- */
.affiliate-hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.affiliate-hero::after { /* Overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 44, 83, 0.7);
    z-index: 1;
}

.affiliate-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.affiliate-hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
}

.affiliate-hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.affiliate-hero-content .cta-button {
    font-size: 1.4rem;
    padding: 18px 40px;
}

.reviews-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--white);
    border-left: 5px solid var(--accent-color);
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

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

.review-card .reviewer {
    font-weight: bold;
    margin-top: 1rem;
    color: var(--primary-color);
}

.disclaimer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    padding: 20px;
}

/* --- Footer --- */
.main-footer {
    background: var(--secondary-color);
    color: var(--light-gray);
    text-align: center;
    padding: 40px 20px;
}

.main-footer .footer-content {
    max-width: 700px;
    margin: 0 auto;
}

.main-footer .footer-links {
    margin: 1rem 0;
}

.main-footer .footer-links a {
    color: var(--white);
    margin: 0 10px;
    text-decoration: underline;
}

.main-footer .company-info {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* --- Responsive Design --- */
@media(max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .affiliate-hero-content h1 { font-size: 2.5rem; }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 71px; /* Height of header */
        left: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
    }

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

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

    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }

    .hamburger {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}