.page-affiliate-program {
    color: #333333;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px);
}

.page-affiliate-program__hero-section {
    background-color: #007BFF;
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-affiliate-program__hero-content {
    max-width: 900px;
    margin: 0 auto 40px auto;
    position: relative;
    z-index: 2;
}

.page-affiliate-program__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFC107;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.8;
}

.page-affiliate-program__button {
    display: inline-block;
    background-color: #FFC107;
    color: #007BFF;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-affiliate-program__button:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
}

.page-affiliate-program__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-affiliate-program__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.8); /* Allow brightness for background effect */
}

.page-affiliate-program__why-partner-section,
.page-affiliate-program__commission-section,
.page-affiliate-program__how-it-works-section,
.page-affiliate-program__faq-section,
.page-affiliate-program__cta-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-affiliate-program__section-title {
    font-size: 2.8em;
    color: #007BFF;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.page-affiliate-program__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFC107;
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

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

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

.page-affiliate-program__benefit-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-affiliate-program__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-affiliate-program__benefit-icon {
    width: 200px; /* Min size 200px */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: none; /* Ensure no color change */
}

.page-affiliate-program__benefit-title {
    font-size: 1.6em;
    color: #007BFF;
    margin-bottom: 15px;
}

.page-affiliate-program__benefit-text {
    color: #666666;
}

.page-affiliate-program__commission-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
}

.page-affiliate-program__commission-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    min-width: 600px; /* Ensure table is readable on smaller screens */
}

.page-affiliate-program__commission-table th,
.page-affiliate-program__commission-table td {
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    text-align: left;
}

.page-affiliate-program__commission-table th {
    background-color: #007BFF;
    color: #ffffff;
    font-weight: bold;
}

.page-affiliate-program__commission-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.page-affiliate-program__commission-table tbody tr:hover {
    background-color: #e9ecef;
}

.page-affiliate-program__commission-note {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #777777;
    font-style: italic;
}

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

.page-affiliate-program__step-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: relative;
    padding-top: 60px;
}

.page-affiliate-program__step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFC107;
    color: #007BFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid #007BFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__step-title {
    font-size: 1.8em;
    color: #007BFF;
    margin-bottom: 15px;
}

.page-affiliate-program__step-text {
    color: #666666;
}

.page-affiliate-program__how-it-works-cta {
    text-align: center;
    margin-top: 50px;
}

.page-affiliate-program__button--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

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

.page-affiliate-program__faq-item {
    background-color: #f8f9fa;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.page-affiliate-program__faq-question {
    font-size: 1.2em;
    color: #007BFF;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    background-color: #e9f5ff;
    border-bottom: 1px solid #cfe8ff;
    transition: background-color 0.3s ease;
}

.page-affiliate-program__faq-question:hover {
    background-color: #dbeaff;
}

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

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

.page-affiliate-program__faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #ffffff;
}

.page-affiliate-program__faq-answer.active {
    max-height: 500px; /* Adjust as needed */
    padding: 20px;
}

.page-affiliate-program__faq-answer p {
    color: #555555;
}

.page-affiliate-program__cta-section {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFC107;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.page-affiliate-program__button--primary {
    background-color: #FFC107;
    color: #007BFF;
}

.page-affiliate-program__button--primary:hover {
    background-color: #e0a800;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-affiliate-program__hero-title {
        font-size: 2.8em;
    }
    .page-affiliate-program__section-title {
        font-size: 2.2em;
    }
    .page-affiliate-program__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-affiliate-program__hero-section {
        padding: 60px 15px;
    }
    .page-affiliate-program__hero-title {
        font-size: 2.2em;
    }
    .page-affiliate-program__hero-description {
        font-size: 1em;
    }
    .page-affiliate-program__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-affiliate-program__why-partner-section,
    .page-affiliate-program__commission-section,
    .page-affiliate-program__how-it-works-section,
    .page-affiliate-program__faq-section,
    .page-affiliate-program__cta-section {
        margin: 40px auto;
        padding: 30px 15px;
    }
    .page-affiliate-program__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-affiliate-program__section-title::after {
        margin-top: 10px;
    }
    .page-affiliate-program__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-affiliate-program__benefits-grid,
    .page-affiliate-program__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-affiliate-program__benefit-card,
    .page-affiliate-program__step-card {
        padding: 25px;
        padding-top: 50px;
    }
    .page-affiliate-program__step-number {
        top: -20px;
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }
    .page-affiliate-program__benefit-title,
    .page-affiliate-program__step-title {
        font-size: 1.4em;
    }
    .page-affiliate-program__commission-table th,
    .page-affiliate-program__commission-table td {
        padding: 10px;
        font-size: 0.9em;
    }
    .page-affiliate-program__cta-title {
        font-size: 2em;
    }
    .page-affiliate-program__cta-description {
        font-size: 1em;
    }
    .page-affiliate-program__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-affiliate-program__faq-answer {
        padding: 0 15px;
    }
    .page-affiliate-program__faq-answer.active {
        padding: 15px;
    }

    /* Ensure images in content area do not overflow */
    .page-affiliate-program img {
        max-width: 100%;
        height: auto;
        filter: none; /* Ensure no color change */
    }
    .page-affiliate-program__benefit-icon {
        width: 150px; /* Adjust for smaller screens, but still > 200px if original is larger */
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-affiliate-program__hero-title {
        font-size: 1.8em;
    }
    .page-affiliate-program__section-title {
        font-size: 1.5em;
    }
    .page-affiliate-program__cta-title {
        font-size: 1.8em;
    }
    .page-affiliate-program__button--large {
        padding: 10px 20px;
        font-size: 1em;
    }
}