/* --- Global Variables --- */
:root {
    --primary-color: #005A9C; /* Professional Blue */
    --secondary-color: #003F6B; /* Darker Blue */
    --accent-color: #FFC107; /* Vibrant Yellow/Gold */
    --text-color: #333;
    --light-text-color: #FFFFFF;
    --bg-color: #FFFFFF;
    --light-gray-bg: #f8f9fa;
    --border-color: #dee2e6;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1; /* Ensures footer stays at the bottom */
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Increased gap */
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.logo svg {
    flex-shrink: 0; /* Prevents SVG from shrinking */
}

.logo:hover {
    color: var(--secondary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

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

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: #ffda47;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- Hero Section (Home Page) --- */
.hero {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

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

/* --- Services Grid Section --- */
.services-grid {
    padding: 80px 0;
    background-color: var(--light-gray-bg);
}

.services-grid h2, .reviews-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-grid .section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    color: #6c757d;
}

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

.service-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: #adb5bd;
    padding: 50px 0 20px 0;
    font-size: 0.9rem;
    margin-top: auto; /* Pushes footer to bottom */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #495057;
}

.footer-about {
    flex: 2;
    min-width: 250px;
}
.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-about h4, .footer-links h4 {
    color: var(--light-text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-about p {
    margin-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #adb5bd;
}

.footer-links a:hover {
    color: var(--light-text-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.affiliate-disclaimer {
    font-size: 0.8rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    font-style: italic;
}

.affiliate-disclaimer strong {
    color: #999;
}

/* --- Generic Text Page Styles (About, Privacy, etc.) --- */
.text-page {
    padding: 60px 0;
}
.text-page .container {
    max-width: 800px; /* Constrain width for readability */
}
.text-page h1 {
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}
.text-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.text-page p, .text-page li {
    margin-bottom: 1rem;
    line-height: 1.7;
}
.contact-info {
    margin-top: 2rem;
    background: var(--light-gray-bg);
    padding: 2rem;
    border-radius: 8px;
}
.contact-email {
    font-size: 1.2rem;
    font-weight: 500;
}

/* --- Affiliate Landing Page --- */
.affiliate-hero {
    position: relative;
    min-height: 60vh;
    padding: 60px 0;
    background-image: url('https://images.pexels.com/photos/164634/pexels-photo-164634.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-size: cover;
    background-position: center;
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.affiliate-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0, 50, 90, 0.85), rgba(0, 30, 60, 0.85));
}

.affiliate-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    text-align: center;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border-radius: 10px;
}

.affiliate-hero .headline {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--light-text-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.affiliate-hero .title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--light-text-color);
    margin: 1rem 0 1.5rem 0;
    opacity: 0.95;
}

.affiliate-hero .description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.cta-button {
    font-size: 1.6rem !important;
    padding: 20px 45px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4);
}
.cta-button i {
    margin-right: 12px;
}
.affiliate-hero .disclaimer {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Reviews Section --- */
.reviews-section {
    padding: 80px 0;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.review-card {
    background-color: var(--light-gray-bg);
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}
.review-card .stars {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.review-card .review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.review-card .reviewer-name {
    font-weight: 600;
    text-align: right;
    color: var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 75px; /* Adjust based on header height */
        left: 0;
        background-color: var(--bg-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        text-align: center;
        padding: 1rem 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        padding: 1rem 0;
    }
    .hamburger {
        display: block;
    }
    .footer-content {
        text-align: center;
    }
    .footer-about, .footer-links {
        text-align: center;
        width: 100%;
    }
    .hero h1, .affiliate-hero .headline {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1, .affiliate-hero .headline {
        font-size: 2.1rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .services-grid h2, .reviews-section h2 {
        font-size: 2rem;
    }
    .cta-button {
        font-size: 1.2rem !important;
        padding: 18px 35px !important;
    }
    .affiliate-hero .hero-content {
        padding: 1.5rem;
    }
}