:root {
    --primary-color: #0A2239; /* Dark Blue */
    --secondary-color: #E6B31E; /* Gold/Amber */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0a0a0a; /* From body background info */
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --border-color-light: #e0e0e0;
}

/* Base styles for the page-affiliate-program content */
.page-affiliate-program {
    color: var(--text-light); /* Light text for dark body background */
    background-color: var(--bg-dark); /* Ensure consistency if body background is not set by shared.css */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-affiliate-program__section-title,
.page-affiliate-program__card-title {
    color: var(--secondary-color); /* Use secondary color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: bold;
}

.page-affiliate-program__section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 18px;
    color: #f0f0f0; /* Slightly off-white for body text */
}

/* Hero Section */
.page-affiliate-program__hero-section {
    background: var(--primary-color);
    padding: 80px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-affiliate-program__hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-affiliate-program__main-title {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-affiliate-program__hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.page-affiliate-program__hero-cta {
    margin-top: 30px;
}

/* Primary Button */
.page-affiliate-program__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color); /* Dark text on gold button */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-affiliate-program__btn-primary:hover {
    background: #cc9900; /* Darken gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Secondary Button */
.page-affiliate-program__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--secondary-color); /* Gold text on dark background */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    margin-left: 20px;
}

.page-affiliate-program__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Benefits Section */
.page-affiliate-program__benefits-section {
    padding: 80px 20px;
    background-color: var(--bg-dark); /* Ensure dark background */
}

.page-affiliate-program__benefits-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-affiliate-program__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-affiliate-program__benefit-card {
    background: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light); /* Light text for card content */
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-affiliate-program__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-affiliate-program__benefit-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    max-width: 100%; /* Ensure responsiveness */
    display: block; /* Remove extra space below image */
}

.page-affiliate-program__card-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.page-affiliate-program__card-description {
    font-size: 16px;
    color: #f0f0f0;
}

/* How It Works Section */
.page-affiliate-program__how-it-works-section {
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-affiliate-program__how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-affiliate-program__how-it-works-section .page-affiliate-program__section-title {
    color: var(--secondary-color);
}

.page-affiliate-program__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-affiliate-program__step-card {
    background: var(--card-bg-dark-mode);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
}