/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-color: #0a3d62; /* Deep, trustworthy blue */
    --secondary-color: #2e86de; /* Bright, professional blue */
    --accent-color: #fbc531; /* Vibrant yellow/gold for CTAs */
    --text-color: #333333;
    --light-gray: #f9f9f9;
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- General & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-gray);
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--white-color);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

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

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

.nav-links a {
    color: var(--primary-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

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

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(251, 197, 49, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(251, 197, 49, 0.6);
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(10, 61, 98, 0.85), rgba(10, 61, 98, 0.85)), url('https://placehold.co/1920x1080/cccccc/cccccc') no-repeat center center/cover;
    color: var(--white-color);
    padding: 120px 0;
    text-align: center;
}

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

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

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

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

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

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

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* --- Content Page --- */
.content-section h1, .content-section h2 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}

/* --- Affiliate Page --- */
.affiliate-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/heroimage.png') no-repeat center center/cover;
    text-align: left;
    color: var(--white-color);
    padding: 100px 0;
}

.affiliate-hero .container {
    max-width: 700px;
    margin: 0;
    padding: 0 40px;
}

.affiliate-hero .sub-headline {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.affiliate-hero h1 {
    font-size: 3.2rem;
    color: var(--white-color);
    line-height: 1.2;
}

.affiliate-hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 550px;
}

.affiliate-hero .cta-button {
    font-size: 1.3rem;
    padding: 20px 45px;
}

.disclaimer {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    margin-bottom: 30px;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    text-align: center;
}

/* --- User Reviews --- */
.reviews-section {
    padding-top: 80px;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white-color);
    padding: 25px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: var(--shadow);
    border-radius: 0 8px 8px 0;
}

.review-card p.review-text {
    font-style: italic;
    color: #555;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 15px;
}

.stars {
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-column p, .footer-column li {
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: var(--white-color);
    opacity: 0.8;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
    font-style: italic;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .affiliate-hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: -100%;
        background-color: var(--white-color);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transition: left 0.4s ease-in-out;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
    }
    
    .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);
    }

    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .section-padding { padding: 60px 0; }
    
    .affiliate-hero { text-align: center; }
    .affiliate-hero .container { margin: 0 auto; max-width: 90%; }
    .affiliate-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .logo img { height: 40px; }
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .btn { padding: 10px 22px; }
    .affiliate-hero .cta-button { font-size: 1.1rem; padding: 15px 35px; }
}