.page-affiliate {
    color: #333333; /* Default text color for light body background */
}

.page-affiliate__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background-color: #000000; /* Fallback background for hero */
}

.page-affiliate__hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

.page-affiliate__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
}

.page-affiliate__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

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

.page-affiliate__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-affiliate__cta-button {
    display: inline-block;
    background-color: #FCBC45;
    color: #000000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-affiliate__cta-button:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-affiliate__cta-button--centered {
    margin-top: 40px;
}

.page-affiliate__cta-button--large {
    padding: 18px 35px;
    font-size: 1.3em;
}

.page-affiliate__intro-section, 
.page-affiliate__benefits-section, 
.page-affiliate__how-it-works-section, 
.page-affiliate__products-section, 
.page-affiliate__faq-section, 
.page-affiliate__cta-bottom-section {
    padding: 60px 20px;
    background-color: #FFFFFF;
}

.page-affiliate__content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.page-affiliate__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-affiliate__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FCBC45;
    border-radius: 2px;
}

.page-affiliate__section-description {
    font-size: 1.1em;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

.page-affiliate__benefits-grid, .page-affiliate__steps-grid, .page-affiliate__products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-affiliate__benefit-card, .page-affiliate__step-card, .page-affiliate__product-card, .page-affiliate__tool-item {
    background-color: #F8F8F8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 350px;
}

.page-affiliate__benefit-card:hover, .page-affiliate__step-card:hover, .page-affiliate__product-card:hover, .page-affiliate__tool-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-affiliate__benefit-icon, .page-affiliate__product-image, .page-affiliate__tool-image {
    width: 100%;
    max-width: 400px; /* Ensure images are not too small */
    height: auto;
    min-height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-affiliate__card-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-affiliate__card-text {
    font-size: 1em;
    line-height: 1.6;
    color: #666666;
    flex-grow: 1;
}

.page-affiliate__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #FCBC45;
    margin-bottom: 20px;
    background-color: #000000;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #FCBC45;
}

.page-affiliate__faq-section {
    background-color: #F0F0F0;
}

.page-affiliate__faq-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-affiliate__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-affiliate__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-affiliate__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-affiliate__faq-answer {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding-top: 0;
}

.page-affiliate__faq-answer.open {
    max-height: 500px; /* Adjust as needed */
    padding-top: 15px;
}

.page-affiliate__cta-bottom-section {
    text-align: center;
    background-color: #000000;
    color: #FFFFFF;
}

.page-affiliate__cta-bottom-section .page-affiliate__section-title {
    color: #FCBC45;
}

.page-affiliate__cta-bottom-section .page-affiliate__section-title::after {
    background-color: #FFFFFF;
}

.page-affiliate__cta-bottom-section .page-affiliate__section-description {
    color: #DDDDDD;
    margin-bottom: 30px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-affiliate__hero-section {
        min-height: 400px;
        padding: 40px 15px;
    }

    .page-affiliate__hero-title {
        font-size: 2.2em;
    }

    .page-affiliate__hero-description {
        font-size: 1em;
    }

    .page-affiliate__section-title {
        font-size: 2em;
    }

    .page-affiliate__benefits-grid, .page-affiliate__steps-grid, .page-affiliate__products-grid {
        grid-template-columns: 1fr;
    }

    .page-affiliate__benefit-card, .page-affiliate__step-card, .page-affiliate__product-card, .page-affiliate__tool-item {
        padding: 20px;
        min-height: auto;
    }

    .page-affiliate__faq-question {
        font-size: 1.1em;
    }

    /* Ensure images in content area are responsive and not smaller than 200px */
    .page-affiliate img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-affiliate__hero-title {
        font-size: 1.8em;
    }

    .page-affiliate__cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .page-affiliate__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .page-affiliate__section-title {
        font-size: 1.8em;
    }
}