/* 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; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-affiliate-program__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section Styling */
.page-affiliate-program__hero-section,
.page-affiliate-program__introduction,
.page-affiliate-program__commission,
.page-affiliate-program__tools,
.page-affiliate-program__join-us,
.page-affiliate-program__faq-section,
.page-affiliate-program__video-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

.page-affiliate-program__dark-bg {
    background-color: #0a0a0a; /* Dark background from shared.css */
    color: #ffffff; /* Light text for dark background */
}

.page-affiliate-program__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-affiliate-program__hero-section {
    padding: 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    position: relative;
}

.page-affiliate-program__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-affiliate-program__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

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

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

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

/* Titles & Descriptions */
.page-affiliate-program__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand primary color for titles */
}

.page-affiliate-program__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: inherit; /* Inherit from section, either white or dark grey */
}

.page-affiliate-program__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand primary color for subtitles */
}

.page-affiliate-program__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand primary color for card titles */
}

/* Buttons */
.page-affiliate-program__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-affiliate-program__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-affiliate-program__btn-primary:hover {
    background-color: #1e87b7;
    transform: translateY(-3px);
}

.page-affiliate-program__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin-left: 20px;
}

.page-affiliate-program__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

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

/* Introduction Section */
.page-affiliate-program__intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-affiliate-program__intro-text p {
    margin-bottom: 15px;
}

.page-affiliate-program__intro-image-wrapper {
    text-align: center;
}

.page-affiliate-program__intro-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-affiliate-program__benefits-list li {
    /* Placeholder for check icon */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2326A9E0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #333333;
}

/* Commission Section */
.page-affiliate-program__commission {
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff; /* Light text */
}

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

.page-affiliate-program__commission-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
}

.page-affiliate-program__commission-card p {
    font-size: 1em;
    color: #f0f0f0;
}

/* Tools Section */
.page-affiliate-program__tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-affiliate-program__tool-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
    transition: transform 0.3s ease;
}

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

.page-affiliate-program__tool-icon {
    width: 100%; /* Ensure large image, not icon */
    max-width: 250px; /* Max size for display */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* How to Join Section */
.page-affiliate-program__join-us {
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff; /* Light text */
}

.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); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-affiliate-program__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
}

/* FAQ Section */
.page-affiliate-program__faq-section {
    background-color: #ffffff;
    color: #333333;
}

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

.page-affiliate-program__faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.page-affiliate-program__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #333333;
    transition: color 0.3s ease;
}

.page-affiliate-program__faq-question:hover {
    color: #26A9E0;
}

.page-affiliate-program__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-toggle {
    transform: rotate(45deg); /* Change + to X (or use a minus sign) */
}

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

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px;
}

/* Video Section */
.page-affiliate-program__video-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ffffff;
    text-align: center;
}

.page-affiliate-program__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-affiliate-program__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.page-affiliate-program__video-cta {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-affiliate-program__hero-title {
        font-size: 3em;
    }
    .page-affiliate-program__hero-description {
        font-size: 1.1em;
    }
    .page-affiliate-program__section-title {
        font-size: 2em;
    }
    .page-affiliate-program__sub-title {
        font-size: 1.6em;
    }
    .page-affiliate-program__card-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-affiliate-program__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
    }
    .page-affiliate-program__hero-title {
        font-size: 2.2em;
    }
    .page-affiliate-program__hero-description {
        font-size: 1em;
    }
    .page-affiliate-program__cta-button {
        display: block;
        margin: 10px auto !important;
        width: calc(100% - 30px) !important; /* Account for padding */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-affiliate-program__btn-secondary {
        margin-left: auto !important;
    }

    .page-affiliate-program__intro-grid {
        grid-template-columns: 1fr;
    }
    .page-affiliate-program__commission-grid,
    .page-affiliate-program__tools-grid,
    .page-affiliate-program__steps-grid {
        grid-template-columns: 1fr;
    }
    
    .page-affiliate-program__introduction,
    .page-affiliate-program__commission,
    .page-affiliate-program__tools,
    .page-affiliate-program__join-us,
    .page-affiliate-program__faq-section,
    .page-affiliate-program__video-section {
        padding: 40px 0;
    }

    /* Mobile image responsiveness */
    .page-affiliate-program img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness */
    .page-affiliate-program video,
    .page-affiliate-program__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-affiliate-program__video-section,
    .page-affiliate-program__video-container,
    .page-affiliate-program__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* General container padding for mobile */
    .page-affiliate-program__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-affiliate-program__intro-text,
    .page-affiliate-program__commission-card,
    .page-affiliate-program__tool-item,
    .page-affiliate-program__step-card,
    .page-affiliate-program__faq-list {
        padding-left: 0;
        padding-right: 0;
    }
    .page-affiliate-program__faq-question, .page-affiliate-program__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}