/* style/affiliate-program.css */

/* Base styles for the page content wrapper */
.page-affiliate-program {
    color: #333333; /* Dark text on light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

/* Section Titles */
.page-affiliate-program__section-title {
    font-size: 2.5em;
    color: #000000; /* Main brand color */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
    font-weight: bold;
}

.page-affiliate-program__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* Hero Section */
.page-affiliate-program__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text on dark background */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

.page-affiliate-program__hero-container {
    position: relative;
    max-width: 100%; /* Ensure container doesn't overflow */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px; /* Add horizontal padding */
}

.page-affiliate-program__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.3; /* Make image subtle background */
}

.page-affiliate-program__hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0; /* Adjust padding for content */
    max-width: 900px;
}

.page-affiliate-program__hero-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

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

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

/* Buttons */
.page-affiliate-program__button {
    display: inline-block;
    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, transform 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.page-affiliate-program__button--primary {
    background-color: #FCBC45; /* Login color as primary action */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-affiliate-program__button--primary:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
    transform: translateY(-2px);
}

.page-affiliate-program__button--secondary {
    background-color: transparent;
    color: #FFFFFF; /* Register color as secondary action in hero */
    border: 2px solid #FFFFFF;
}

.page-affiliate-program__button--secondary:hover {
    background-color: #FFFFFF;
    color: #000000;
    transform: translateY(-2px);
}

.page-affiliate-program__button--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

/* Why Partner Section */
.page-affiliate-program__why-partner-section {
    background-color: #FFFFFF;
    padding: 60px 0;
}

.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: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-affiliate-program__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__benefit-icon {
    width: 400px; /* Display width */
    height: 300px; /* Display height */
    object-fit: cover; /* Ensure image covers the area */
    margin: 0 auto 20px auto;
    border-radius: 8px; /* Slightly rounded corners for images */
}

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

.page-affiliate-program__benefit-description {
    font-size: 1em;
    color: #666666;
}

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

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

.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.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-affiliate-program__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__step-image {
    width: 600px; /* Display width */
    height: 400px; /* Display height */
    object-fit: cover;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
}

.page-affiliate-program__step-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-affiliate-program__step-description {
    font-size: 1em;
    color: #666666;
}

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

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

.page-affiliate-program__commission-details {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-affiliate-program__commission-paragraph {
    font-size: 1.1em;
    color: #333333;
    text-align: center;
    max-width: 900px;
}

.page-affiliate-program__commission-image {
    width: 800px; /* Display width */
    height: 600px; /* Display height */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__sub-title {
    font-size: 2em;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.page-affiliate-program__commission-table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
    margin: 30px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden; /* Ensures rounded corners apply to table */
}

.page-affiliate-program__commission-table th,
.page-affiliate-program__commission-table td {
    border: 1px solid #e0e0e0;
    padding: 15px;
    text-align: center;
    font-size: 1.05em;
}

.page-affiliate-program__commission-table th {
    background-color: #000000;
    color: #FFFFFF;
    font-weight: bold;
    text-transform: uppercase;
}

.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.9em;
    color: #777777;
    text-align: center;
    margin-top: 20px;
    max-width: 900px;
}

/* Marketing Tools Section */
.page-affiliate-program__marketing-tools-section {
    background-color: #f5f5f5;
    padding: 60px 0;
}

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

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

.page-affiliate-program__tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__tool-image {
    width: 600px; /* Display width */
    height: 400px; /* Display height */
    object-fit: cover;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
}

.page-affiliate-program__tool-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-affiliate-program__tool-description {
    font-size: 1em;
    color: #666666;
}

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

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

.page-affiliate-program__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-affiliate-program__faq-question {
    font-size: 1.3em;
    color: #000000;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eeeeee;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
    font-weight: bold;
}

.page-affiliate-program__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

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

.page-affiliate-program__faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: #555555;
}

.page-affiliate-program__faq-answer p {
    margin: 15px 0;
    font-size: 1em;
}

.page-affiliate-program__faq-answer.active {
    max-height: 500px; /* Arbitrary large value to allow content to expand */
    padding: 20px;
}

/* Final CTA Section */
.page-affiliate-program__cta-final-section {
    background-color: #000000; /* Dark background */
    color: #FFFFFF; /* Light text */
    padding: 80px 0;
    text-align: center;
}

.page-affiliate-program__cta-final-section .page-affiliate-program__section-title {
    color: #FFFFFF;
}

.page-affiliate-program__cta-final-section .page-affiliate-program__section-intro {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Adjust secondary button for dark background in final CTA */
.page-affiliate-program__cta-final-section .page-affiliate-program__button--secondary {
    color: #FCBC45; /* Yellow text for contrast */
    border-color: #FCBC45;
}

.page-affiliate-program__cta-final-section .page-affiliate-program__button--secondary:hover {
    background-color: #FCBC45;
    color: #000000;
}


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

    .page-affiliate-program__section-title {
        font-size: 2em;
    }
}