/* style/affiliate-program.css */
.page-affiliate-program {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg-1);
}

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

.page-affiliate-program__dark-section {
    background-color: #CC0000; /* Primary brand color */
    color: #ffffff;
    padding: 60px 0;
}

.page-affiliate-program__light-bg {
    background-color: #f8f9fa;
    color: #333333;
    padding: 60px 0;
}

/* Hero Section */
.page-affiliate-program__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-affiliate-program__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
}

.page-affiliate-program__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-affiliate-program__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Secondary brand color for highlight */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-affiliate-program__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-affiliate-program__btn-primary {
    background-color: #FFD700;
    color: #CC0000;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    border: 2px solid #FFD700;
}

.page-affiliate-program__btn-primary:hover {
    background-color: #CC0000;
    color: #FFD700;
    border-color: #FFD700;
}

/* General Section Styling */
.page-affiliate-program__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-affiliate-program__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-affiliate-program__highlight {
    color: #FFD700;
    font-weight: bold;
}

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

.page-affiliate-program__benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-affiliate-program__benefit-card:hover {
    transform: translateY(-10px);
}

.page-affiliate-program__benefit-icon {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-affiliate-program__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFD700;
}

/* Commission Section */
.page-affiliate-program__commission-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.page-affiliate-program__commission-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #ffffff;
    color: #333333;
    border-radius: 8px;
    overflow: hidden;
}

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

.page-affiliate-program__commission-table th {
    background-color: #CC0000;
    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: #e6e6e6;
}

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

.page-affiliate-program__tool-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-affiliate-program__tool-card:hover {
    transform: translateY(-10px);
}

.page-affiliate-program__tool-icon {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-affiliate-program__step-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
    position: relative;
    padding-top: 60px;
}

.page-affiliate-program__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #CC0000;
    color: #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid #FFD700;
}

/* FAQ Section */
.page-affiliate-program__faq-list {
    margin-top: 40px;
}

.page-affiliate-program__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-affiliate-program__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-affiliate-program__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-affiliate-program__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFD700;
}

.page-affiliate-program__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-toggle {
    transform: rotate(45deg);
}

.page-affiliate-program__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 20px;
}

.page-affiliate-program__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* CTA Section */
.page-affiliate-program__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-affiliate-program__cta-content {
    max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-affiliate-program__hero-title {
        font-size: 3em;
    }
    .page-affiliate-program__hero-description {
        font-size: 1.2em;
    }
    .page-affiliate-program__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-affiliate-program {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-affiliate-program__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-affiliate-program__hero-title {
        font-size: 2.5em;
    }
    .page-affiliate-program__hero-description {
        font-size: 1em;
    }
    .page-affiliate-program__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-affiliate-program__section-title {
        font-size: 1.8em;
    }
    .page-affiliate-program__benefits-grid,
    .page-affiliate-program__tools-grid,
    .page-affiliate-program__process-steps {
        grid-template-columns: 1fr;
    }
    .page-affiliate-program__container {
        padding: 15px;
    }

    /* Images responsive */
    .page-affiliate-program img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure all image-containing sections/divs are also responsive */
    .page-affiliate-program__section,
    .page-affiliate-program__card,
    .page-affiliate-program__container,
    .page-affiliate-program__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Buttons responsive */
    .page-affiliate-program__cta-button,
    .page-affiliate-program__btn-primary,
    .page-affiliate-program__btn-secondary,
    .page-affiliate-program a[class*="button"],
    .page-affiliate-program a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-affiliate-program__cta-buttons,
    .page-affiliate-program__button-group,
    .page-affiliate-program__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-affiliate-program__cta-buttons {
        display: flex;
        flex-direction: column;
    }
    .page-affiliate-program__commission-table {
        display: block;
        width: 100%;
    }
    .page-affiliate-program__commission-table thead,
    .page-affiliate-program__commission-table tbody,
    .page-affiliate-program__commission-table th,
    .page-affiliate-program__commission-table td,
    .page-affiliate-program__commission-table tr {
        display: block;
    }
    .page-affiliate-program__commission-table th {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .page-affiliate-program__commission-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #ddd;
    }
    .page-affiliate-program__commission-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
    .page-affiliate-program__commission-table tbody tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }
    .page-affiliate-program__commission-table td:last-child {
        border-bottom: none;
    }
}