.page-affiliate-program {
    background-color: #0A0A0A;
    color: #FFF6D6;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-affiliate-program__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-affiliate-program__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per rules */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
}

.page-affiliate-program__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height to prevent overly tall hero */
}

.page-affiliate-program__hero-content {
    position: relative; /* Ensure content is not absolutely positioned over image */
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, #0A0A0A 100%);
    width: 100%;
    box-sizing: border-box;
}

.page-affiliate-program__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp as per h1 font size rule */
    color: #FFD36B;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-affiliate-program__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-affiliate-program__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-affiliate-program__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.page-affiliate-program__btn--primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A;
}

.page-affiliate-program__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-affiliate-program__btn--secondary {
    background: none;
    border: 2px solid #FFD36B;
    color: #FFD36B;
}

.page-affiliate-program__btn--secondary:hover {
    background-color: rgba(255, 211, 107, 0.1);
    transform: translateY(-2px);
}

.page-affiliate-program__section-title {
    font-size: 2.5em;
    color: #FFD36B;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-affiliate-program__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.page-affiliate-program__about-section,
.page-affiliate-program__how-it-works-section,
.page-affiliate-program__faq-section {
    padding: 60px 0;
}

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

.page-affiliate-program__feature-card,
.page-affiliate-program__step-card {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-affiliate-program__feature-card:hover,
.page-affiliate-program__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 0 15px #FFD36B;
}

.page-affiliate-program__feature-icon {
    width: 200px; /* Ensure minimum size */
    height: 200px; /* Ensure minimum size */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-affiliate-program__feature-title,
.page-affiliate-program__step-title {
    font-size: 1.5em;
    color: #FFD36B;
    margin-bottom: 15px;
}

.page-affiliate-program__feature-text,
.page-affiliate-program__step-text {
    font-size: 1em;
    color: #FFF6D6;
}

.page-affiliate-program__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-affiliate-program__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

.page-affiliate-program__faq-list {
    margin-top: 40px;
}

.page-affiliate-program__faq-item {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__faq-question {
    font-size: 1.3em;
    color: #FFD36B;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-affiliate-program__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-affiliate-program__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg);
}

.page-affiliate-program__faq-answer {
    font-size: 1em;
    color: #FFF6D6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding-top: 0;
}

.page-affiliate-program__faq-answer.open {
    max-height: 200px; /* Adjust as needed for content */
    padding-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-affiliate-program__container {
        padding: 15px;
    }

    .page-affiliate-program__hero-content {
        padding: 30px 15px;
    }

    .page-affiliate-program__main-title {
        font-size: clamp(2em, 8vw, 3em);
    }

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

    .page-affiliate-program__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-affiliate-program__btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-affiliate-program__section-title {
        font-size: 2em;
        padding-top: 30px;
    }

    .page-affiliate-program__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-affiliate-program__features-grid,
    .page-affiliate-program__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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