/* style/affiliate-program-promotion-tools.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --login-button-color: #EA7C07;
    --background-color: #FFFFFF;
    --dark-bg-color: #0d0d0d; /* Assuming --bg-dark from shared.css is dark */
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

.page-affiliate-program-promotion-tools {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--dark-bg-color); /* Assuming shared body background is dark */
}

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

.page-affiliate-program-promotion-tools__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Adjusted padding-top to account for header-offset */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
}

.page-affiliate-program-promotion-tools__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Subtle background */
}

.page-affiliate-program-promotion-tools__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-affiliate-program-promotion-tools__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color);
}

.page-affiliate-program-promotion-tools__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-affiliate-program-promotion-tools__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-affiliate-program-promotion-tools__content-section,
.page-affiliate-program-promotion-tools__how-to-use-section,
.page-affiliate-program-promotion-tools__faq-section {
    padding: 80px 0;
    color: var(--text-dark);
    background-color: var(--background-color);
}

.page-affiliate-program-promotion-tools__tools-overview-section,
.page-affiliate-program-promotion-tools__commission-section,
.page-affiliate-program-promotion-tools__cta-bottom-section {
    padding: 80px 0;
    color: var(--text-light);
    background-color: var(--primary-color);
}

.page-affiliate-program-promotion-tools__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-affiliate-program-promotion-tools__light-bg {
    background-color: var(--background-color);
    color: var(--text-dark);
}

/* Buttons */
.page-affiliate-program-promotion-tools__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-affiliate-program-promotion-tools__cta-buttons--center {
    text-align: center;
    margin-top: 40px;
}

.page-affiliate-program-promotion-tools__btn-primary,
.page-affiliate-program-promotion-tools__btn-secondary,
.page-affiliate-program-promotion-tools__btn-text {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-affiliate-program-promotion-tools__btn-primary {
    background-color: var(--login-button-color); /* Login color for primary action */
    color: var(--secondary-color);
    border: 2px solid var(--login-button-color);
}

.page-affiliate-program-promotion-tools__btn-primary:hover {
    background-color: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
}

.page-affiliate-program-promotion-tools__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-affiliate-program-promotion-tools__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-affiliate-program-promotion-tools__btn-text {
    color: var(--primary-color);
    padding: 0;
    border: none;
    background: none;
    text-decoration: underline;
    font-size: 1em;
}

.page-affiliate-program-promotion-tools__btn-text:hover {
    color: darken(var(--primary-color), 10%);
}

/* Cards */
.page-affiliate-program-promotion-tools__card {
    background-color: var(--card-bg-dark); /* Light transparent background for cards on dark sections */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-affiliate-program-promotion-tools__feature-card,
.page-affiliate-program-promotion-tools__tool-card,
.page-affiliate-program-promotion-tools__detail-item {
    background-color: var(--secondary-color); /* White background for cards on light sections */
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.page-affiliate-program-promotion-tools__dark-bg .page-affiliate-program-promotion-tools__card {
    background-color: var(--card-bg-dark);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Features Section */
.page-affiliate-program-promotion-tools__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-affiliate-program-promotion-tools__feature-icon {
    width: 100%; /* Ensure large image, not icon */
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-affiliate-program-promotion-tools__feature-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-affiliate-program-promotion-tools__feature-text {
    font-size: 1em;
}

/* Tools Overview Section */
.page-affiliate-program-promotion-tools__tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-affiliate-program-promotion-tools__tool-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-top: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-affiliate-program-promotion-tools__tool-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-affiliate-program-promotion-tools__tool-text {
    font-size: 1em;
}

/* How to Use Section */
.page-affiliate-program-promotion-tools__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: step-counter;
}

.page-affiliate-program-promotion-tools__step-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
    color: var(--text-dark);
}

.page-affiliate-program-promotion-tools__step-number {
    counter-increment: step-counter;
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.page-affiliate-program-promotion-tools__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-affiliate-program-promotion-tools__step-text {
    font-size: 1em;
    margin-bottom: 20px;
}

/* Commission Section */
.page-affiliate-program-promotion-tools__commission-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-affiliate-program-promotion-tools__detail-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-affiliate-program-promotion-tools__detail-text {
    font-size: 1em;
}

/* FAQ Section */
.page-affiliate-program-promotion-tools__faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-affiliate-program-promotion-tools__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    color: var(--text-dark);
    text-align: left;
}

.page-affiliate-program-promotion-tools__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--border-color);
    list-style: none; /* For details tag */
}

.page-affiliate-program-promotion-tools__faq-question::-webkit-details-marker {
    display: none;
}

.page-affiliate-program-promotion-tools__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-affiliate-program-promotion-tools__faq-item[open] .page-affiliate-program-promotion-tools__faq-toggle {
    content: '−';
}

.page-affiliate-program-promotion-tools__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
}

.page-affiliate-program-promotion-tools__faq-item:not([open]) .page-affiliate-program-promotion-tools__faq-answer {
    display: none;
}

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

@media (max-width: 768px) {
    .page-affiliate-program-promotion-tools {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-affiliate-program-promotion-tools__hero-section {
        padding: var(--header-offset, 120px) 0 40px;
        min-height: 500px;
    }
    .page-affiliate-program-promotion-tools__hero-title {
        font-size: 2.2em;
    }
    .page-affiliate-program-promotion-tools__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-affiliate-program-promotion-tools__section-title {
        font-size: 1.8em;
    }
    .page-affiliate-program-promotion-tools__section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-affiliate-program-promotion-tools__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-affiliate-program-promotion-tools__btn-primary,
    .page-affiliate-program-promotion-tools__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
    }
    .page-affiliate-program-promotion-tools__content-section,
    .page-affiliate-program-promotion-tools__tools-overview-section,
    .page-affiliate-program-promotion-tools__how-to-use-section,
    .page-affiliate-program-promotion-tools__commission-section,
    .page-affiliate-program-promotion-tools__faq-section,
    .page-affiliate-program-promotion-tools__cta-bottom-section {
        padding: 50px 0;
    }

    /* Mobile Image Responsiveness */
    .page-affiliate-program-promotion-tools img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-affiliate-program-promotion-tools__section,
    .page-affiliate-program-promotion-tools__card,
    .page-affiliate-program-promotion-tools__container,
    .page-affiliate-program-promotion-tools__features,
    .page-affiliate-program-promotion-tools__tool-grid,
    .page-affiliate-program-promotion-tools__steps,
    .page-affiliate-program-promotion-tools__commission-details,
    .page-affiliate-program-promotion-tools__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-affiliate-program-promotion-tools__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset */
    }
    
    /* Ensure button text wraps */
    .page-affiliate-program-promotion-tools__btn-primary,
    .page-affiliate-program-promotion-tools__btn-secondary,
    .page-affiliate-program-promotion-tools a[class*="button"],
    .page-affiliate-program-promotion-tools a[class*="btn"] {
      white-space: normal !important;
      word-wrap: break-word !important;
    }
    /* Ensure button containers allow wrap */
    .page-affiliate-program-promotion-tools__cta-buttons,
    .page-affiliate-program-promotion-tools__button-group,
    .page-affiliate-program-promotion-tools__btn-container {
      flex-wrap: wrap !important;
      gap: 10px;
    }
}

/* Ensure images are at least 200px */
.page-affiliate-program-promotion-tools__feature-icon,
.page-affiliate-program-promotion-tools__tool-image {
    min-width: 200px;
    min-height: 200px;
}

.page-affiliate-program-promotion-tools__hero-image {
    min-width: 100%; /* Hero image should fill width */
    min-height: 100%;
}