/* style/affiliate-program.css */

/* Base styles for the page content, ensuring dark text on light body background */
.page-affiliate-program {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #f4f4f4 */
    background-color: #f4f4f4; /* Explicitly setting for consistency, though body handles it */
}

/* Fade-in animation for sections */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.page-affiliate-program__hero-section {
    background: linear-gradient(135deg, #1A237E, #FFD700);
    color: #ffffff; /* White text for dark background */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

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

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

.page-affiliate-program__hero-description {
    font-size: 1.25em;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #f0f0f0;
}

.page-affiliate-program__hero-button {
    display: inline-block;
    background-color: #FFD700; /* Accent gold color */
    color: #1A237E; /* Dark blue text for gold button */
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__hero-button:hover {
    background-color: #e5c300; /* Slightly darker gold on hover */
    transform: translateY(-3px);
}

.page-affiliate-program__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.2; /* Subtle background image */
}

.page-affiliate-program__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* General Container */
.page-affiliate-program__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section Titles and Descriptions */
.page-affiliate-program__section-title {
    font-size: 2.5em;
    color: #1A237E; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Benefits Section */
.page-affiliate-program__benefits-section {
    background-color: #ffffff; /* White background for this section */
    padding: 60px 0;
}

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

.page-affiliate-program__benefit-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-affiliate-program__benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-affiliate-program__benefit-icon {
    width: 120px; /* Larger size for content images, not small icons */
    height: 120px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

.page-affiliate-program__card-text {
    font-size: 1em;
    color: #666666;
}

/* How It Works Section */
.page-affiliate-program__how-it-works-section {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.page-affiliate-program__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
}

.page-affiliate-program__step-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have similar height */
}

.page-affiliate-program__step-number {
    font-size: 3.5em;
    font-weight: bold;
    color: #FFD700; /* Accent color for numbers */
    margin-bottom: 20px;
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.7;
    line-height: 1;
}

.page-affiliate-program__step-card .page-affiliate-program__card-title {
    margin-top: 60px; /* Adjust for step number */
    font-size: 1.6em;
}

.page-affiliate-program__step-card .page-affiliate-program__card-text {
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-affiliate-program__step-button {
    display: inline-block;
    background-color: #1A237E; /* Main brand color for buttons */
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto; /* Push button to bottom */
}

.page-affiliate-program__step-button:hover {
    background-color: #0d125e; /* Darker blue on hover */
    transform: translateY(-2px);
}

.page-affiliate-program__step-image {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: contain;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Commission Section */
.page-affiliate-program__commission-section {
    background-color: #ffffff;
    padding: 60px 0;
}

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

.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 #e0e0e0;
    padding: 15px;
    text-align: center;
    font-size: 1em;
}

.page-affiliate-program__commission-table th {
    background-color: #1A237E;
    color: #ffffff;
    font-weight: bold;
    white-space: nowrap;
}

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

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

.page-affiliate-program__commission-note {
    font-size: 0.95em;
    color: #777777;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.page-affiliate-program__commission-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Tools and Support Section */
.page-affiliate-program__tools-support-section {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.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-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-affiliate-program__feature-item:hover {
    transform: translateY(-5px);
}

.page-affiliate-program__item-title {
    font-size: 1.4em;
    color: #1A237E;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-affiliate-program__item-text {
    font-size: 1em;
    color: #666666;
}

.page-affiliate-program__tools-image {
    max-width: 1000px;
    width: 100%;
    height: auto;
    display: block;
    margin: 60px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-affiliate-program__faq-section {
    background-color: #ffffff;
    padding: 60px 0;
}

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

.page-affiliate-program__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-affiliate-program__faq-question {
    font-size: 1.25em;
    color: #1A237E;
    margin-bottom: 10px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-affiliate-program__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    color: #FFD700;
    transition: transform 0.3s ease;
}

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

.page-affiliate-program__faq-answer {
    font-size: 1em;
    color: #555555;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-affiliate-program__faq-answer.active {
    max-height: 500px; /* Sufficiently large for content */
}

/* Call to Action Section */
.page-affiliate-program__cta-section {
    background: linear-gradient(45deg, #1A237E, #0d125e); /* Darker gradient for CTA */
    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__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700; /* Gold accent for CTA title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-affiliate-program__cta-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1A237E;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.page-affiliate-program__cta-button:hover {
    background-color: #e5c300;
    transform: translateY(-5px);
}

.page-affiliate-program__cta-image {
    max-width: 90%;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}

/* Responsive Design */
@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-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-affiliate-program__hero-title {
        font-size: 2.2em;
    }
    .page-affiliate-program__hero-description {
        font-size: 1.1em;
    }
    .page-affiliate-program__section-title {
        font-size: 1.8em;
    }
    .page-affiliate-program__section-description {
        font-size: 1em;
    }
    .page-affiliate-program__benefits-grid,
    .page-affiliate-program__steps-grid,
    .page-affiliate-program__features-grid {
        grid-template-columns: 1fr;
    }
    .page-affiliate-program__step-card {
        min-height: auto; /* Allow height to adjust */
    }
    .page-affiliate-program__cta-title {
        font-size: 2em;
    }
    .page-affiliate-program__cta-description {
        font-size: 1.1em;
    }
    .page-affiliate-program__hero-section,
    .page-affiliate-program__cta-section {
        padding: 60px 15px;
    }
    .page-affiliate-program__container {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .page-affiliate-program__hero-title {
        font-size: 1.8em;
    }
    .page-affiliate-program__hero-description {
        font-size: 1em;
    }
    .page-affiliate-program__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-affiliate-program__section-title {
        font-size: 1.5em;
    }
    .page-affiliate-program__card-title {
        font-size: 1.3em;
    }
    .page-affiliate-program__step-number {
        font-size: 3em;
    }
    .page-affiliate-program__cta-title {
        font-size: 1.8em;
    }
    .page-affiliate-program__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .page-affiliate-program__faq-question {
        font-size: 1.1em;
    }
}