/* style/affiliate.css */
/* BEM Naming: .page-affiliate__element-name */

/* Root variables for consistent styling */
:root {
    --primary-color: #F2C14E; /* Main brand color */
    --secondary-color: #FFD36B; /* Auxiliary brand color */
    --background-dark: #0A0A0A; /* Page background */
    --card-background-dark: #111111; /* Card background */
    --text-light: #FFF6D6; /* Main text color for dark backgrounds */
    --text-dark: #333333; /* Default dark text for light backgrounds */
    --border-color: #3A2A12; /* Border color */
    --glow-color: #FFD36B; /* Glow color */
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
}

.page-affiliate {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for the page, assuming dark body background */
    background-color: var(--background-dark); /* Ensure page background is consistent */
    min-height: 100vh;
}

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

/* Hero Section */
.page-affiliate__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    padding-bottom: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-affiliate__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit image height */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-affiliate__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Ensure image doesn't get too tall */
    filter: none; /* No CSS filter */
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-affiliate__hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-affiliate__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.page-affiliate__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-affiliate__hero-cta {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* General Section Styling */
.page-affiliate__section {
    padding: 60px 0;
    position: relative;
}

.page-affiliate__section:nth-of-type(even) {
    background-color: var(--card-background-dark); /* Alternating background for sections */
}

.page-affiliate__section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-affiliate__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--text-light);
}

.page-affiliate__sub-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Content Grid */
.page-affiliate__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-affiliate__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-affiliate__text-block {
    flex: 1;
    min-width: 0;
}

.page-affiliate__text-block p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-affiliate__text-block strong {
    color: var(--secondary-color);
}

.page-affiliate__image-card {
    flex: 1;
    min-width: 0;
    background-color: var(--card-background-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-affiliate__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none; /* No CSS filter */
    min-width: 200px;
    min-height: 200px;
}

/* Benefits List */
.page-affiliate__benefits-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-affiliate__benefit-item {
    background-color: var(--card-background-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-affiliate__benefit-item::before {
    content: '✅';
    font-size: 1.2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}