/* affiliate-styles.css - Dedicated styles for Color High Club Affiliate Program Page */

/* === Global Page Styles === */
body.affiliate-program-page {
    background-color: #FDFCFB; /* A very light, almost white, premium neutral */
    color: #3D4752; /* Sophisticated dark grey for primary body text */
    font-family: 'Inter', sans-serif;
    line-height: 1.75; /* Generous line height for readability */
}

.aff-main-content {
    padding-top: 0.1px; 
    margin-top: -0.1px;
}

.aff-container {
    max-width: 1140px; 
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Base section styling for this page */
.affiliate-program-page section {
    background: none; /* Ensure no inherited gradient from 01.css */
    padding: 5rem 1rem; 
    text-align: center; 
}

/* Specific background colors for sections - Overriding nth-child for key sections */
.affiliate-program-page .aff-hero-section { /* Hero has its own BG image and overlay */
    background-color: #121E1A; /* Fallback, actual BG is image */
}
.affiliate-program-page .aff-opportunity-section {
    background-color: #FFFFFF; /* Clean white */
}
.affiliate-program-page .aff-how-it-works-section { /* Explicitly dark */
    background-color: #0F2C5B !important; /* Deep sapphire - Forcing with !important for emphasis */
    color: #F0F8FF !important; /* Light text for this section - Forcing */
}
.affiliate-program-page .aff-commission-section {
    background-color: #F8F9FA; /* Very light grey */
}
.affiliate-program-page .aff-product-showcase-section {
    background-color: #FFFFFF; /* Clean white */
}
.affiliate-program-page .aff-testimonials-section {
    background-color: #F8F9FA; /* Very light grey */
}
.affiliate-program-page .aff-final-cta-section { /* Final CTA has its own dark BG */
    background-color: #1A3B32; /* Dark brand green */
    color: #F0F8FF;
}
.affiliate-program-page .aff-faq-section {
    background-color: #FFFFFF; /* Clean white */
}


/* Headings */
.affiliate-program-page h1,
.affiliate-program-page h2,
.affiliate-program-page h3,
.affiliate-program-page h4 {
    font-family: 'Carter One', cursive;
    color: #1A3B32; 
    margin-top: 0;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

.affiliate-program-page h1.aff-hero-headline {
    font-size: clamp(2.8em, 6vw, 4em);
    color: #FFFFFF; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 0.4em;
}

.aff-section-title { 
    font-size: clamp(2.2em, 5vw, 3em);
    margin-bottom: 0.75em;
}
/* Styles for .aff-how-it-works-section specific text colors */
.affiliate-program-page .aff-how-it-works-section .aff-section-title {
    color: #FFFFFF !important;
}
.affiliate-program-page .aff-how-it-works-section .aff-section-intro {
    color: #C0D0CA !important;
}
.affiliate-program-page .aff-how-it-works-section .aff-step-card h3 {
    color: #FFFFFF !important; /* Was #0F2C5B, changed to #FFFFFF for dark BG */
}
.affiliate-program-page .aff-how-it-works-section .aff-step-card p {
    color: #C0D0CA !important; /* Was #000000, changed to light for dark BG */
}


.aff-section-title + .aff-section-intro, 
.affiliate-program-page h2 + p:not([class]) { 
    max-width: 750px;
    margin: -0.25em auto 3em auto; 
    font-size: 1.15em;
    line-height: 1.8;
    color: #525F67; 
}

.affiliate-program-page h3 {
    font-size: clamp(1.5em, 3.5vw, 2.1em);
    color: #1A3B32;
    margin-bottom: 0.6em;
}

/* Paragraphs & Lists */
.affiliate-program-page p {
    font-size: 1.05em; 
    margin-bottom: 1.5em;
    color: #3D4752;
}
.affiliate-program-page ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5em;
}
.affiliate-program-page ul li {
    margin-bottom: 0.75em;
    font-size: 1.05em;
}

/* Buttons */
.aff-btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 32px; 
    border-radius: 8px; 
    font-size: 1.05em;
    text-align: center;
    transition: transform 0.2s ease-out, background-color 0.2s ease-out, box-shadow 0.2s ease-out, color 0.2s ease-out;
    cursor: pointer;
    border: 2px solid transparent;
}
.aff-btn-primary {
    background-color: #ffaf87; 
    color: #1A3B32; 
    box-shadow: 0 5px 15px rgba(255, 175, 135, 0.3);
}
.aff-btn-primary:hover {
    background-color: #e89c71; 
    color: #1A3B32;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 175, 135, 0.4);
}
.aff-btn-secondary {
    background-color: transparent;
    color: #1A3B32;
    border-color: #1A3B32;
}
.aff-btn-secondary:hover {
    background-color: #1A3B32;
    color: #fff;
    transform: translateY(-3px);
}
.aff-btn-large { 
    font-size: 1.2em;
    padding: 16px 40px;
}
.aff-btn .fas { margin-left: 8px; }

/* Inline links within text */
.aff-inline-link {
    color: #1b3b2f; 
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #ffaf87; 
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.aff-inline-link:hover {
    color: #ffaf87;
    text-decoration-color: #1b3b2f;
}

/* === Section Specific Styles === */

/* Hero Section */
.aff-hero-section {
    position: relative;
    min-height: 75vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    /* background-color set above by .affiliate-program-page .aff-hero-section */
}
.aff-hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/affiliate-hero-professional.webp') no-repeat center center/cover; 
    filter: brightness(0.4) contrast(1.1) saturate(0.8); 
    z-index: 1;
}
.aff-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(27, 59, 47, 0.6) 0%, rgba(18, 30, 26, 0.3) 100%); 
    z-index: 2;
}
.aff-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px; 
}
.aff-hero-subheadline {
    font-size: 1.35em;
    max-width: 700px;
    margin: 0.75em auto 2.5em auto;
    color: #E0EFEA; 
    line-height: 1.8;
    font-weight: 400; 
}
.aff-hero-trust-text {
    font-size: 0.95em;
    margin-top: 1.5em;
    color: #A0B2AC; 
    font-style: italic;
}

/* Opportunity Section */
/* .aff-opportunity-section background set by nth-child or specific rule */
.aff-opportunity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2.5em;
}
.aff-opportunity-card {
    background: #F8F9FA; 
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #E9ECEF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); /* Added subtle shadow */
}
.aff-opportunity-icon {
    max-height: 60px;
    margin-bottom: 1.5em;
}
.aff-opportunity-card h3 {
    font-size: 1.4em;
    color: #1b3b2f; 
    margin-bottom: 0.5em;
}
.aff-opportunity-card p {
    font-size: 0.95em;
    color: #495057;
    line-height: 1.7;
}

/* How It Works Section */
/* .aff-how-it-works-section background & text color set by specific rule now */
.aff-steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; 
    gap: 20px;
    margin-top: 3em;
    position: relative; 
}
.aff-step-card {
    /* background set by specific rule */
    padding: 25px;
    border-radius: 10px;
    flex: 1 1 200px; 
    max-width: 260px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease;
}
.aff-step-card:hover {
    background: rgba(255,255,255, 0.1);
}
.aff-step-number {
    font-family: 'Carter One', cursive;
    font-size: 2em;
    /* color set by specific rule */
    margin-bottom: 0.25em;
    display: block;
}
.aff-step-icon {
    max-height: 45px;
    margin-bottom: 1em;
    /* filter set by specific rule */
}
/* .aff-step-card h3 and p colors set by specific rule */


/* Commission Structure Section */
/* .aff-commission-section background set by nth-child or specific rule */
.aff-commission-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2.5em;
}
.aff-commission-tier-card {
    background: #F8F9FA;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #E9ECEF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); /* Added subtle shadow */
}
.aff-tier-icon {
    font-size: 2.5em; 
    color: #ffaf87; 
    margin-bottom: 0.5em;
}
.aff-commission-tier-card h3 {
    font-size: 1.5em;
    margin-bottom: 0.3em;
}
.aff-tier-rate {
    font-family: 'Carter One', cursive;
    font-size: 2.8em;
    color: #1b3b2f;
    margin: 0.2em 0 0.4em 0;
    line-height: 1;
}
.aff-tier-description {
    font-size: 0.95em;
    color: #495057;
}
.aff-commission-footer {
    margin-top: 3em;
    font-size: 0.9em;
    color: #525F67;
}

/* Product Showcase Teaser Section */
/* .aff-product-showcase-section background set by nth-child or specific rule */
.aff-product-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2.5em;
}
.aff-product-teaser-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    text-align: center;
    display: flex;
    flex-direction: column;
}
.aff-product-teaser-card img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
}
.aff-product-teaser-card h3 {
    font-size: 1.4em;
    margin: 1em 1em 0.5em 1em;
}
.aff-product-teaser-card p {
    font-size: 0.9em;
    color: #5a6a70;
    margin: 0 1em 1.5em 1em;
    flex-grow: 1; 
}
.aff-product-teaser-card .aff-btn {
    margin: 0 auto 1.5em auto; 
    display: table; 
}


/* Affiliate Testimonials Section */
/* .aff-testimonials-section background set by nth-child or specific rule */
.aff-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin-top: 2.5em;
    max-width: 900px; 
    margin-left: auto;
    margin-right: auto;
}
.aff-testimonial-card {
    background: #F8F9FA;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    border-left: 5px solid #1b3b2f; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.aff-testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1em;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.aff-testimonial-quote {
    font-style: italic;
    color: #3D4752;
    margin-bottom: 1em;
    line-height: 1.7;
    font-size: 1.05em;
    position: relative; /* For pseudo quote */
    padding-left: 10px; /* Space if using pseudo quote */
}
.aff-testimonial-quote::before { 
    content: "\201C"; /* Left double quote */
    font-size: 2.5em; 
    color: #ffaf87; 
    opacity: 0.6; 
    position: absolute; /* Position quote mark */
    left: -10px;
    top: -10px;
    line-height: 1;
}
.aff-testimonial-author {
    font-weight: 700;
    color: #1A3B32;
}
.aff-author-detail {
    display: block;
    font-size: 0.85em;
    color: #525F67;
    font-weight: 400;
    margin-top: 0.25em;
}


/* In affiliate-styles.css */

/* Final CTA Section - Patched */
.aff-final-cta-section {
    background-color: #1A3B32; /* Dark brand green */
    color: #E0EFEA; /* Default light text for this section (a soft, greenish-white) */
    padding: 5em 1em;
    text-align: center;
    border-bottom: none; /* Ensure no odd border if it's the last content section */
}

.aff-final-cta-icon {
    max-height: 80px; 
    width: auto; /* Maintain aspect ratio */
    margin-bottom: 1.5em;
    display: inline-block; /* Allow margin auto if you want to center it differently */
    /* === ADJUST THIS FILTER BASED ON YOUR SVG === */
    /* Option 1: If your SVG is already light-colored or has its own colors that work on dark BG: */
    filter: none; 
    /* Option 2: If your SVG is DARK and you want to make it PURE WHITE: */
    /* filter: brightness(0) invert(1); */
    /* Option 3: If your SVG is DARK and you want a specific light color (e.g., your accent orange): */
    /* filter: brightness(0) invert(1) sepia(1) saturate(500%) hue-rotate(330deg) brightness(100%) contrast(100%); /* This aims for an orange hue */
}

.aff-final-cta-headline {
    color: #FFFFFF !important; /* Force brightest white for headline */
    font-size: clamp(2em, 4.5vw, 2.8em);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4); /* Softer shadow than hero */
    margin-bottom: 0.5em;
}

.aff-final-cta-subheadline {
    font-size: 1.15em;
    color: #C0D0CA !important; /* Force specific light color for subheadline */
    max-width: 700px;
    margin: 0 auto 2.5em auto; /* Increased bottom margin before button */
    line-height: 1.8;
}

/* Button - ensuring it stands out */
.aff-final-cta-section .aff-btn.aff-btn-primary.aff-btn-cta-final {
    background-color: #ffaf87; /* Accent orange */
    color: #1A3B32; /* Dark text on orange button */
    box-shadow: 0 5px 15px rgba(255, 175, 135, 0.3);
    font-size: 1.2em; /* Ensure it's a good size */
    padding: 16px 40px;
}
.aff-final-cta-section .aff-btn.aff-btn-primary.aff-btn-cta-final:hover {
    background-color: #e89c71; /* Darker orange */
    color: #1A3B32;
    box-shadow: 0 7px 20px rgba(255, 175, 135, 0.45);
    transform: translateY(-3px);
}


.aff-terms-link {
    margin-top: 2em; /* More space above terms */
    font-size: 0.9em; /* Slightly larger for readability */
    color: #A0B2AC !important; /* Force specific light color for terms text */
}
.aff-terms-link a {
    color: #C0D0CA !important; /* Lighter color for the link itself */
    text-decoration: underline;
    font-weight: 600; /* Make link slightly bolder */
}
.aff-terms-link a:hover {
    color: #FFFFFF !important; /* Brightest white on hover */
}


/* FAQ Section (Affiliate Page) - Refined */
/* .aff-faq-section background set by nth-child or specific rule */
.aff-faq-container {
    max-width: 800px;
    margin: 2.5em auto 0 auto;
    text-align: left;
}
.aff-faq-item {
    margin-bottom: 15px;
    border: 1px solid #E0E5EB; 
    border-radius: 10px; 
    overflow: hidden;
    background-color: #FFFFFF; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); 
    transition: box-shadow 0.3s ease;
}
.aff-faq-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07); 
}
.aff-accordion {
    width: 100%;
    background-color: transparent; 
    color: #1A3B32; 
    padding: 20px 25px; 
    border: none;
    text-align: left;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700; 
    font-size: 1.1em; 
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.aff-accordion:hover {
    background-color: #F8F9FA; 
    color: #1b3b2f; 
}
.aff-accordion.active {
     background-color: #F0F5F2; /* Light, cool neutral when active */
     color: #1b3b2f;
}
.aff-accordion-icon {
    font-family: 'Inter', sans-serif; 
    font-size: 1.4em; 
    font-weight: 600; 
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); 
    color: #5a6a70; 
}
.aff-accordion.active .aff-accordion-icon {
    transform: rotate(135deg); /* Makes '+' into a 'x'-like close icon */
    color: #1b3b2f; 
}
.aff-panel {
    background-color: #FFFFFF; 
    color: #3D4752; 
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, opacity 0.3s ease-in-out; 
    max-height: 0;
    padding: 0 25px 0 25px; 
    opacity: 0; 
    border-top: 1px solid #E0E5EB; 
}
.aff-accordion.active + .aff-panel {
    padding-top: 25px;
    padding-bottom: 25px; 
    opacity: 1;
    /* max-height is set by JS */
}
.aff-panel p {
    margin: 0 0 1em 0; 
    font-size: 1em; 
    line-height: 1.75;
}
.aff-panel p:last-child {
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) { /* Tablet */
    .aff-opportunity-grid,
    .aff-commission-tiers,
    .aff-product-showcase-grid,
    .aff-testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    }
    .aff-how-it-works-section .aff-steps-container {
        flex-direction: column;
        align-items: center;
    }
    .aff-step-card {
        max-width: 450px; 
        width:100%;
    }
}

@media (max-width: 768px) { /* Mobile */
    .affiliate-program-page section {
        padding: 3.5rem 1rem;
    }
    .aff-hero-section {
        min-height: auto; 
        padding: 4rem 1rem;
    }
    .affiliate-program-page h1.aff-hero-headline { font-size: clamp(2.2em, 7vw, 2.8em); }
    .aff-hero-subheadline { font-size: 1.1em; }
    .aff-section-title { font-size: clamp(1.8em, 6vw, 2.4em); }
    .aff-section-title + .aff-section-intro,
    .affiliate-program-page h2 + p:not([class]) {
        font-size: 1em;
        margin-bottom: 2em;
    }
    .aff-btn-large { font-size: 1.1em; padding: 14px 30px; }

    .aff-opportunity-grid,
    .aff-commission-tiers,
    .aff-product-showcase-grid,
    .aff-testimonials-grid {
        grid-template-columns: 1fr; 
    }
}