/* General page layout */
.page-affiliate-program {
    background-color: #F4F7FB;
    color: #1F2D3D;
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure some space at the bottom */
}

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

/* Hero Section */
.page-affiliate-program__hero-section {
    display: flex;
    flex-direction: column; /* Image first, then text */
    align-items: center;
    text-align: center;
    padding: 0 20px 40px; /* Add bottom padding */
    background-color: #F4F7FB; /* Use background color from palette */
}

.page-affiliate-program__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image wrapper max width */
    margin-bottom: 20px;
}

.page-affiliate-program__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure image is not too small */
    min-height: 200px;
}

.page-affiliate-program__hero-content {
    max-width: 800px;
}

.page-affiliate-program__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 font size */
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-affiliate-program__hero-description {
    font-size: 1.15rem;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
}

.page-affiliate-program__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Section Titles */
.page-affiliate-program__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #000000; /* Custom Color_1776249996415 */
    text-align: center;
    margin: 60px 0 40px;
    font-weight: 700;
}

/* Advantages Section */
.page-affiliate-program__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-affiliate-program__advantage-card {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #D6E2FF; /* Border color */
}

.page-affiliate-program__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__advantage-icon {
    width: 300px; /* Set to HTML width attribute */
    height: 200px; /* Set to HTML height attribute */
    object-fit: contain; /* Ensure image fits without cropping */
    margin: 0 auto 20px auto; /* Center image */
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-affiliate-program__card-title {
    font-size: 1.5rem;
    color: #2F6BFF; /* Main Color */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-affiliate-program__card-description {
    font-size: 1rem;
    color: #1F2D3D; /* Text Main */
}

/* How It Works Section */
.page-affiliate-program__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-affiliate-program__step-card {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #D6E2FF; /* Border color */
    position: relative;
    overflow: hidden;
}

.page-affiliate-program__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #6FA3FF; /* Auxiliary Color */
    color: #FFFFFF;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__call-to-action-bottom {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: #E6F0FF; /* Lighter shade of blue for contrast with the main colors */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-affiliate-program__cta-text {
    font-size: 1.3rem;
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 25px;
    font-weight: 500;
}

.page-affiliate-program__cta-button--secondary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Same as primary for consistency */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-affiliate-program__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-affiliate-program__main-title {
        font-size: 2rem;
    }

    .page-affiliate-program__hero-description {
        font-size: 1rem;
    }

    .page-affiliate-program__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .page-affiliate-program__section-title {
        font-size: 1.8rem;
        margin: 40px 0 30px;
    }

    .page-affiliate-program__advantages-grid,
    .page-affiliate-program__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Ensure all images inside .page-affiliate-program are responsive and don't overflow */
    .page-affiliate-program img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* All images must be at least 200px wide */
        min-height: 200px; /* All images must be at least 200px tall */
        object-fit: contain; /* Ensure images scale down properly */
    }

    .page-affiliate-program__advantage-icon {
        width: 100%; /* Override explicit width for responsiveness */
        height: auto;
        max-width: 300px; /* Constrain max width for smaller screens */
        margin: 0 auto 20px auto;
    }

    .page-affiliate-program__cta-text {
        font-size: 1.1rem;
    }
}