/* style/affiliate-program.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --bg-dark: #000000;
    --bg-light: #f1f3f5;
    --border-color: #e0e0e0;
}

.page-affiliate-program {
    background-color: var(--bg-dark); /* Body background is dark */
    color: var(--text-on-dark); /* Default text color for page content */
    padding-top: 120px; /* Fixed navigation bar spacing for desktop */
}

@media (max-width: 768px) {
    .page-affiliate-program {
        padding-top: 100px; /* Fixed navigation bar spacing for mobile */
    }
}

.page-affiliate-program__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-on-dark);
}

.page-affiliate-program__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-affiliate-program__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-affiliate-program__hero-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-affiliate-program__hero-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-affiliate-program__hero-description {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-on-dark);
}

.page-affiliate-program__hero-description a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-affiliate-program__hero-description a:hover {
    text-decoration: underline;
}

.page-affiliate-program__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color);
}

.page-affiliate-program__cta-button:hover {
    background: var(--secondary-color);
    color: var(--text-on-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--text-on-dark);
}

.page-affiliate-program__section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
}

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

.page-affiliate-program__section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-affiliate-program__section-description {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--text-on-dark);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-affiliate-program__section-description a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-affiliate-program__section-description a:hover {
    text-decoration: underline;
}

.page-affiliate-program__why-join-section {
    background-color: var(--bg-dark);
}

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

.page-affiliate-program__feature-item {
    background: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark);
}

.page-affiliate-program__feature-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

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

.page-affiliate-program__feature-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-affiliate-program__feature-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-on-dark);
}

.page-affiliate-program__feature-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-affiliate-program__feature-text a:hover {
    text-decoration: underline;
}

.page-affiliate-program__how-it-works-section {
    background-color: var(--bg-dark);
}

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

.page-affiliate-program__step-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark);
    position: relative;
    text-align: left;
}

.page-affiliate-program__step-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.page-affiliate-program__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__step-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-affiliate-program__step-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-on-dark);
}

.page-affiliate-program__step-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-affiliate-program__step-text a:hover {
    text-decoration: underline;
}

.page-affiliate-program__commission-section {
    background-color: var(--bg-dark);
}

.page-affiliate-program__commission-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
    margin-bottom: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__commission-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table is wide enough for mobile scroll */
    background: rgba(255, 255, 255, 0.05);
}

.page-affiliate-program__commission-table th,
.page-affiliate-program__commission-table td {
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-on-dark);
}

.page-affiliate-program__commission-table th {
    background: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-on-dark);
    white-space: nowrap;
}

.page-affiliate-program__commission-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.page-affiliate-program__commission-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.page-affiliate-program__commission-note {
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-affiliate-program__commission-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-affiliate-program__commission-note a:hover {
    text-decoration: underline;
}

.page-affiliate-program__commission-chart {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__promotions-for-players-section {
    background-color: var(--bg-dark);
}

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

.page-affiliate-program__promotion-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-affiliate-program__promotion-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.page-affiliate-program__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-affiliate-program__promotion-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-affiliate-program__promotion-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-on-dark);
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-affiliate-program__promotion-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-affiliate-program__promotion-text a:hover {
    text-decoration: underline;
}

.page-affiliate-program__promotion-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 2px solid var(--primary-color);
}

.page-affiliate-program__promotion-button:hover {
    background: var(--secondary-color);
    color: var(--text-on-dark);
    transform: translateY(-2px);
    border-color: var(--text-on-dark);
}

.page-affiliate-program__faq-section {
    background-color: var(--bg-dark);
}

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

.page-affiliate-program__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-affiliate-program__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 5px 5px;
    color: var(--text-on-dark);
}

.page-affiliate-program__faq-answer p {
    color: var(--text-on-dark);
    line-height: 1.7;
}

.page-affiliate-program__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-affiliate-program__faq-answer a:hover {
    text-decoration: underline;
}

.page-affiliate-program__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-on-dark);
}

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

.page-affiliate-program__faq-question:active {
    background: rgba(255, 255, 255, 0.2);
}

.page-affiliate-program__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-affiliate-program__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

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

.page-affiliate-program__cta-final-section {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    padding: 80px 20px;
    color: var(--text-on-dark);
}

.page-affiliate-program__cta-final-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-affiliate-program__cta-final-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--text-on-dark);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-affiliate-program__cta-final-description {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-on-dark);
}

.page-affiliate-program__cta-final-description a {
    color: var(--text-on-dark);
    text-decoration: underline;
    font-weight: bold;
}

.page-affiliate-program__cta-final-description a:hover {
    color: var(--primary-color);
}

.page-affiliate-program__cta-button--large {
    padding: 18px 50px;
    font-size: 1.2em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-affiliate-program__hero-title {
        font-size: 2.8em;
    }
    .page-affiliate-program__section-title {
        font-size: 2.2em;
    }
    .page-affiliate-program__cta-final-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-affiliate-program__hero-section {
        padding: 40px 15px;
    }
    .page-affiliate-program__hero-title {
        font-size: 2.2em;
    }
    .page-affiliate-program__hero-description {
        font-size: 1em;
    }
    .page-affiliate-program__cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-affiliate-program__section {
        padding: 50px 15px;
    }
    .page-affiliate-program__section-title {
        font-size: 1.8em;
    }
    .page-affiliate-program__section-description {
        font-size: 0.95em;
    }
    .page-affiliate-program__feature-item,
    .page-affiliate-program__step-item,
    .page-affiliate-program__promotion-card {
        padding: 20px;
    }
    .page-affiliate-program__feature-title,
    .page-affiliate-program__step-title,
    .page-affiliate-program__promotion-title {
        font-size: 1.3em;
    }
    .page-affiliate-program__feature-icon {
        width: 120px;
        height: 120px;
    }
    .page-affiliate-program__promotion-image {
        height: 150px;
    }
    .page-affiliate-program__commission-table th,
    .page-affiliate-program__commission-table td {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .page-affiliate-program__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-affiliate-program__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-affiliate-program__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-affiliate-program__faq-answer {
        padding: 0 15px;
    }
    .page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
        padding: 15px !important;
    }
    .page-affiliate-program__cta-final-title {
        font-size: 2em;
    }
    .page-affiliate-program__cta-final-description {
        font-size: 1em;
    }
    .page-affiliate-program__cta-button--large {
        padding: 15px 35px;
        font-size: 1.1em;
    }
}

@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__feature-icon {
        width: 100px;
        height: 100px;
    }
    .page-affiliate-program__promotion-image {
        height: 120px;
    }
    .page-affiliate-program__cta-final-title {
        font-size: 1.8em;
    }
}