/* style/affiliate.css */

/* Base styles for the affiliate page */
.page-affiliate {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Explicitly set for content area if needed, but body background is handled by shared.css */
}

.page-affiliate__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-affiliate__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

.page-affiliate__dark-bg {
    background-color: #017439; /* Main brand color */
    color: #ffffff; /* White text for dark background */
}

.page-affiliate__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-affiliate__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

.page-affiliate__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-affiliate__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-affiliate__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 1;
}

/* Buttons */
.page-affiliate__btn-primary,
.page-affiliate__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-affiliate__btn-primary {
    background-color: #C30808; /* Custom color for register/login type buttons */
    color: #FFFF00; /* Custom color for register/login font */
    border: 2px solid #C30808;
}

.page-affiliate__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
}

.page-affiliate__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Main brand color */
    border: 2px solid #017439;
}

.page-affiliate__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

/* Section Titles */
.page-affiliate__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439;
}

/* Intro Section */
.page-affiliate__intro-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-affiliate__text-block {
    margin-bottom: 20px;
    text-align: justify;
}

/* Why Us Section & Benefits Section */
.page-affiliate__why-us-section,
.page-affiliate__benefits-section {
    padding: 60px 0;
}

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

.page-affiliate__card,
.page-affiliate__benefit-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333; /* Ensure dark text on light card background */
}

.page-affiliate__card:hover,
.page-affiliate__benefit-item:hover {
    transform: translateY(-5px);
}

.page-affiliate__card-title,
.page-affiliate__benefit-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-affiliate__card-text,
.page-affiliate__benefit-text {
    font-size: 1em;
    color: #555555;
}

.page-affiliate__content-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* How It Works Section */
.page-affiliate__how-it-works-section {
    padding: 60px 0;
    background-color: #f0f8f0; /* Light green background */
}