/* style/affiliate-program.css */

/* Base styles for the affiliate program page */
.page-affiliate-program {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is #000000 from shared.css */
}

/* Fixed header spacer to prevent content from being hidden by fixed header */
.page-affiliate-program__fixed-header-spacer {
    height: 120px; /* Default for desktop */
    width: 100%;
    display: block;
}

/* General container for content sections */
.page-affiliate-program__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Headings */
.page-affiliate-program__heading {
    font-size: 36px;
    color: #ffc107; /* Auxiliary color for headings */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-affiliate-program__heading--light {
    color: #ffffff; /* White for headings on dark backgrounds */
}

/* Paragraphs */
.page-affiliate-program__paragraph {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
    color: #f0f0f0; /* Slightly off-white for body text */
}

.page-affiliate-program__paragraph--light {
    color: #ffffff; /* Ensure white text on dark sections */
}

/* Buttons */
.page-affiliate-program__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
}

.page-affiliate-program__btn--primary {
    background-color: #ffc107; /* Auxiliary color */
    color: #000000; /* Dark text for light background */
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.page-affiliate-program__btn--primary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
}

.page-affiliate-program__btn--secondary {
    background-color: transparent;
    color: #ffc107; /* Auxiliary color */
    border: 2px solid #ffc107;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.2);
}

.page-affiliate-program__btn--secondary:hover {
    background-color: #ffc107;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.3);
}

.page-affiliate-program__btn--large {
    padding: 18px 40px;
    font-size: 20px;
    min-width: 250px;
}

/* Image wrapper for responsive images */
.page-affiliate-program__image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin: 40px auto;
    text-align: center;
}

.page-affiliate-program__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: 0 auto; /* Center image */
}

/* Hero Section */
.page-affiliate-program__hero-section {
    background: linear-gradient(135deg, #0056b3, #003d80); /* Darker blue gradient */
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-affiliate-program__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-affiliate-program__hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.page-affiliate-program__hero-title {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.page-affiliate-program__hero-description {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-affiliate-program__hero-image {
    flex: 1;
    max-width: 500px;
}

.page-affiliate-program__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-affiliate-program__section {
    padding: 80px 0;
}

.page-affiliate-program__section:nth-of-type(even) {
    background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
}

.page-affiliate-program__dark-bg {
    background-color: #0056b3; /* Main brand color for sections */
    color: #ffffff;
}

.page-affiliate-program__text-center {
    text-align: center;
}

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

.page-affiliate-program__benefit-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark blue */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-affiliate-program__benefit-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-affiliate-program__benefit-title {
    font-size: 24px;
    color: #ffc107;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-affiliate-program__benefit-description {
    font-size: 16px;
    color: #f0f0f0;
}

/* Commission Section */
.page-affiliate-program__commission-table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__commission-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table is readable on smaller screens */
    background-color: rgba(255, 255, 255, 0.08); /* Light background for table on dark section */
    color: #ffffff;
}

.page-affiliate-program__commission-table th,
.page-affiliate-program__commission-table td {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.page-affiliate-program__commission-table th {
    background-color: #0056b3; /* Main brand color for table header */
    font-weight: 700;
    color: #ffc107; /* Auxiliary color for table header text */
    font-size: 18px;
}

.page-affiliate-program__commission-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly different row background */
}

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

.page-affiliate-program__tool-card {
    background-color: rgba(0, 0, 0, 0.3); /* Darker transparent background on dark blue */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 193, 7, 0.3); /* Golden border for contrast */
}

.page-affiliate-program__tool-card:hover {
    transform: translateY(-8px);
    background-color: rgba(0, 0, 0, 0.4);
}

.page-affiliate-program__tool-title {
    font-size: 22px;
    color: #ffc107;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-affiliate-program__tool-description {
    font-size: 16px;
    color: #f0f0f0;
}

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

.page-affiliate-program__step-card {
    background-color: rgba(255, 255, 255, 0.08); /* Light transparent background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.page-affiliate-program__step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background-color: #ffc107;
    color: #000000;
    font-size: 40px;
    font-weight: 900;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-25deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__step-title {
    font-size: 22px;
    color: #ffc107;
    margin-top: 40px; /* Adjust for step number */
    margin-bottom: 15px;
    font-weight: 700;
}

.page-affiliate-program__step-description {
    font-size: 16px;
    color: #f0f0f0;
}

.page-affiliate-program__cta-wrapper {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.page-affiliate-program__faq-section {
    padding: 80px 0;
    background-color: #0056b3; /* Main brand color */
}

.page-affiliate-program__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
}

/* FAQ container style */
.page-affiliate-program__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ default state - answer hidden */
.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, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: #f0f0f0; /* Light text for answer */
    background-color: rgba(0, 0, 0, 0.3); /* Dark background for answer */
}

/* FAQ expanded state - use !important and sufficiently large max-height */
.page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
    max-height: 2000px !important; /* Use !important to ensure priority, large value to fit any content */
    padding: 20px 25px !important;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.3); /* Dark background for answer */
    border-radius: 0 0 8px 8px;
}

/* Question style */
.page-affiliate-program__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #003d80; /* Darker blue for question background */
    border: 1px solid rgba(255, 193, 7, 0.3); /* Golden border */
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-affiliate-program__faq-question:hover {
    background: #004a99;
    border-color: #ffc107;
}

.page-affiliate-program__faq-question:active {
    background: #003066;
}

/* Question title style */
.page-affiliate-program__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffc107; /* Auxiliary color for question title */
    pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-affiliate-program__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #ffc107; /* Auxiliary color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-toggle {
    transform: rotate(180deg); /* Rotate for minus sign visual */
    color: #ffffff;
}


/* Final CTA Section */
.page-affiliate-program__final-cta-section {
    padding: 100px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-affiliate-program__hero-title {
        font-size: 40px;
    }
    .page-affiliate-program__hero-description {
        font-size: 18px;
    }
    .page-affiliate-program__heading {
        font-size: 32px;
    }
    .page-affiliate-program__paragraph {
        font-size: 16px;
    }
    .page-affiliate-program__commission-table th,
    .page-affiliate-program__commission-table td {
        padding: 12px;
        font-size: 15px;
    }
    .page-affiliate-program__step-title,
    .page-affiliate-program__tool-title,
    .page-affiliate-program__benefit-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    /* Mobile fixed header spacer */
    .page-affiliate-program__fixed-header-spacer {
        height: 100px; /* Adjusted for mobile header height */
    }

    .page-affiliate-program__hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .page-affiliate-program__hero-content {
        max-width: 100%;
        text-align: center;
    }
    .page-affiliate-program__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-affiliate-program__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-affiliate-program__hero-image {
        max-width: 100%;
    }

    .page-affiliate-program__section {
        padding: 60px 0;
    }
    .page-affiliate-program__heading {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-affiliate-program__paragraph {
        font-size: 15px;
        text-align: left;
    }

    /* Ensure all image containers and images are fully responsive on mobile */
    .page-affiliate-program img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-affiliate-program__section,
    .page-affiliate-program__container,
    .page-affiliate-program__hero-container,
    .page-affiliate-program__image-wrapper,
    .page-affiliate-program__benefits-grid,
    .page-affiliate-program__tools-grid,
    .page-affiliate-program__steps-grid,
    .page-affiliate-program__faq-list,
    .page-affiliate-program__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-affiliate-program__hero-section {
        padding: 40px 0;
    }
    .page-affiliate-program__hero-container {
        padding: 0 15px;
    }

    .page-affiliate-program__benefits-grid,
    .page-affiliate-program__tools-grid,
    .page-affiliate-program__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-affiliate-program__benefit-card,
    .page-affiliate-program__tool-card,
    .page-affiliate-program__step-card {
        padding: 25px;
    }
    .page-affiliate-program__benefit-title,
    .page-affiliate-program__tool-title,
    .page-affiliate-program__step-title {
        font-size: 20px;
        margin-top: 25px; /* Adjust for step number */
    }
    .page-affiliate-program__step-number {
        width: 60px;
        height: 60px;
        font-size: 35px;
        top: -10px;
        left: -10px;
    }

    .page-affiliate-program__commission-table th,
    .page-affiliate-program__commission-table td {
        font-size: 14px;
        padding: 10px;
    }

    /* FAQ Mobile */
    .page-affiliate-program__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    .page-affiliate-program__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-affiliate-program__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-affiliate-program__faq-answer {
        padding: 0 20px;
    }
    .page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
        padding: 15px 20px !important;
    }
}

/* Contrast fix classes (if needed - applied intelligently by AI) */
.page-affiliate-program__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-affiliate-program__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}