/* style/affiliate-program.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #000080; /* Dark Blue */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f4f4f4;
    --background-dark: #1a1a2e;
    --accent-color: #DAA520; /* Darker Gold for hover */
    --border-color: #e0e0e0;
}

.page-affiliate-program {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.page-affiliate-program__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a3a 100%);
    color: var(--text-light);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.page-affiliate-program__hero-content {
    max-width: 900px;
    z-index: 2;
    margin-bottom: 40px;
}

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

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

.page-affiliate-program__hero-image {
    width: 100%;
    max-width: 1000px; /* Adjust max-width for the image */
    margin-top: 30px;
    z-index: 1;
}

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

.page-affiliate-program__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    border: 2px solid var(--primary-color);
}

.page-affiliate-program__cta-button:hover {
    background: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-affiliate-program__secondary-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.page-affiliate-program__secondary-button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-affiliate-program__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-affiliate-program__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-affiliate-program__why-join .page-affiliate-program__section-title {
    color: var(--secondary-color);
}

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

.page-affiliate-program__card {
    background: var(--text-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-affiliate-program__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.page-affiliate-program__card-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-affiliate-program__card-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-affiliate-program__card-description {
    font-size: 1.05em;
    color: var(--text-dark);
}

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

.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-item {
    background: var(--text-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-affiliate-program__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    background: var(--secondary-color);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-affiliate-program__step-description {
    font-size: 1em;
    color: var(--text-dark);
}

.page-affiliate-program__center-button {
    margin-top: 50px;
}

.page-affiliate-program__benefits {
    background: linear-gradient(135deg, #1a1a2e 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    border-radius: 20px;
    margin-bottom: 40px;
}

.page-affiliate-program__benefits .page-affiliate-program__section-title {
    color: var(--primary-color);
}

.page-affiliate-program__benefits .page-affiliate-program__section-title::after {
    background: var(--text-light);
}

.page-affiliate-program__benefits-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    gap: 40px;
    margin-top: 40px;
}

.page-affiliate-program__benefits-image {
    flex: 1;
    min-width: 300px;
}

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

.page-affiliate-program__benefits-list {
    flex: 2;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-affiliate-program__benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #e0e0e0;
}

.page-affiliate-program__list-icon {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 15px;
    font-weight: bold;
}

.page-affiliate-program__list-icon + p {
    flex: 1;
}

.page-affiliate-program__faq {
    background-color: var(--background-light);
    padding-bottom: 80px;
}

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

/* FAQ default state - answer hidden */
.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--text-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: var(--secondary-color);
    font-weight: bold;
}

.faq-toggle {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #f9f9f9;
    color: var(--text-dark);
}

.faq-answer p {
    margin: 0;
    padding-bottom: 20px;
    font-size: 1.05em;
}

/* FAQ expanded state */
.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
}

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

.page-affiliate-program__contact-cta {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 80px 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.page-affiliate-program__contact-cta .page-affiliate-program__section-title {
    color: var(--primary-color);
}

.page-affiliate-program__contact-cta .page-affiliate-program__section-title::after {
    background: var(--text-light);
}

.page-affiliate-program__contact-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-affiliate-program__contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-affiliate-program__hero-title {
        font-size: 2.8em;
    }
    .page-affiliate-program__hero-description {
        font-size: 1.2em;
    }
    .page-affiliate-program__benefits-content {
        flex-direction: column;
    }
    .page-affiliate-program__benefits-image, .page-affiliate-program__benefits-list {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-affiliate-program__hero {
        padding: 60px 15px;
    }
    .page-affiliate-program__hero-title {
        font-size: 2.2em;
    }
    .page-affiliate-program__hero-description {
        font-size: 1em;
    }
    .page-affiliate-program__cta-button, .page-affiliate-program__secondary-button {
        padding: 12px 30px;
        font-size: 1em;
        margin: 10px 0;
    }
    .page-affiliate-program__contact-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-affiliate-program__secondary-button {
        margin-left: 0;
    }
    .page-affiliate-program__section {
        padding: 40px 15px;
    }
    .page-affiliate-program__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-affiliate-program__cards-grid, .page-affiliate-program__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-affiliate-program__card-icon {
        width: 80px;
        height: 80px;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 1.8em;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-affiliate-program__hero-title {
        font-size: 1.8em;
    }
    .page-affiliate-program__section-title {
        font-size: 1.8em;
    }
    .page-affiliate-program__hero-image img {
        border-radius: 5px;
    }
    .page-affiliate-program__card, .page-affiliate-program__step-item {
        padding: 20px;
    }
    .page-affiliate-program__card-title {
        font-size: 1.5em;
    }
    .page-affiliate-program__step-title {
        font-size: 1.4em;
    }
    .page-affiliate-program__list-icon {
        font-size: 1.2em;
        margin-right: 10px;
    }
    .page-affiliate-program__benefits-list li {
        font-size: 1em;
    }
}