/* style/promotions-referral-program.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F; /* Body background */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-promotions-referral-program {
    background-color: var(--background-color);
    color: var(--text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-promotions-referral-program__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body handles padding-top, this is decorative */
    background-color: var(--background-color);
    text-align: center;
    overflow: hidden;
}

.page-promotions-referral-program__hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1920px; /* Ensure it covers full width */
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-promotions-referral-program__hero-content {
    padding: 0 20px;
    max-width: 900px;
}

.page-promotions-referral-program__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--gold-color);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-promotions-referral-program__hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-referral-program__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-promotions-referral-program__btn-primary,
.page-promotions-referral-program__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions-referral-program__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions-referral-program__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions-referral-program__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions-referral-program__btn-secondary:hover {
    background-color: rgba(17, 168, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions-referral-program__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--gold-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    line-height: 1.3;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-promotions-referral-program__content-area,
.page-promotions-referral-program__benefits-section,
.page-promotions-referral-program__guide-section,
.page-promotions-referral-program__terms-section,
.page-promotions-referral-program__why-choose-us-section,
.page-promotions-referral-program__faq-section,
.page-promotions-referral-program__cta-section {
    padding: 40px 0;
}

.page-promotions-referral-program__text-block {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-referral-program__benefits-grid,
.page-promotions-referral-program__guide-steps,
.page-promotions-referral-program__reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-promotions-referral-program__benefit-card,
.page-promotions-referral-program__guide-card,
.page-promotions-referral-program__reason-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-referral-program__benefit-card:hover,
.page-promotions-referral-program__guide-card:hover,
.page-promotions-referral-program__reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions-referral-program__benefit-icon,
.page-promotions-referral-program__guide-icon {
    width: 250px;
    height: 187.5px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-referral-program__benefit-title,
.page-promotions-referral-program__guide-step-title,
.page-promotions-referral-program__reason-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions-referral-program__benefit-description,
.page-promotions-referral-program__guide-description,
.page-promotions-referral-program__reason-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

.page-promotions-referral-program__terms-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-promotions-referral-program__term-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions-referral-program__term-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.page-promotions-referral-program__term-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-promotions-referral-program__term-list li {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-promotions-referral-program__term-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-promotions-referral-program__btn-block {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    padding: 15px 40px;
}

.page-promotions-referral-program__platform-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

.page-promotions-referral-program__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-referral-program__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions-referral-program__faq-item summary {
    list-style: none;
}

.page-promotions-referral-program__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-promotions-referral-program__faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(17, 168, 78, 0.1);
    transition: background-color 0.3s ease;
}

.page-promotions-referral-program__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.2);
}

.page-promotions-referral-program__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold-color);
}

.page-promotions-referral-program__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: max-height 0.3s ease-out;
}

.page-promotions-referral-program__faq-answer p {
    margin: 0;
    padding-top: 15px;
}

.page-promotions-referral-program__cta-section {
    background-color: var(--deep-green);
    text-align: center;
    padding-bottom: 80px;
}

.page-promotions-referral-program__cta-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-promotions-referral-program__hero-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-promotions-referral-program {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions-referral-program__container {
        padding: 0 15px;
    }

    .page-promotions-referral-program__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-promotions-referral-program__main-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .page-promotions-referral-program__hero-description {
        font-size: 1.1rem;
    }

    .page-promotions-referral-program__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions-referral-program__btn-primary,
    .page-promotions-referral-program__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-promotions-referral-program__section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-promotions-referral-program__content-area,
    .page-promotions-referral-program__benefits-section,
    .page-promotions-referral-program__guide-section,
    .page-promotions-referral-program__terms-section,
    .page-promotions-referral-program__why-choose-us-section,
    .page-promotions-referral-program__faq-section,
    .page-promotions-referral-program__cta-section {
        padding: 30px 0;
    }

    .page-promotions-referral-program__text-block {
        font-size: 1rem;
    }

    .page-promotions-referral-program__benefits-grid,
    .page-promotions-referral-program__guide-steps,
    .page-promotions-referral-program__reason-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions-referral-program__benefit-card,
    .page-promotions-referral-program__guide-card,
    .page-promotions-referral-program__reason-card {
        padding: 20px;
    }

    .page-promotions-referral-program__benefit-icon,
    .page-promotions-referral-program__guide-icon,
    .page-promotions-referral-program__platform-image,
    .page-promotions-referral-program__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }

    .page-promotions-referral-program__terms-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions-referral-program__term-title {
        font-size: 1.2rem;
    }

    .page-promotions-referral-program__term-list li {
        font-size: 0.95rem;
    }

    .page-promotions-referral-program__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-promotions-referral-program__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

/* Ensure content images meet minimum size requirements and are responsive */
.page-promotions-referral-program img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

/* Ensure all image containers are responsive and prevent overflow */
.page-promotions-referral-program__hero-section,
.page-promotions-referral-program__benefits-section .page-promotions-referral-program__container,
.page-promotions-referral-program__guide-section .page-promotions-referral-program__container,
.page-promotions-referral-program__terms-section .page-promotions-referral-program__container,
.page-promotions-referral-program__why-choose-us-section .page-promotions-referral-program__container,
.page-promotions-referral-program__faq-section .page-promotions-referral-program__container,
.page-promotions-referral-program__cta-section .page-promotions-referral-program__container,
.page-promotions-referral-program__benefit-card,
.page-promotions-referral-program__guide-card,
.page-promotions-referral-program__reason-card,
.page-promotions-referral-program__term-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Mobile specific overrides for images and containers */
@media (max-width: 768px) {
    .page-promotions-referral-program img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions-referral-program__section,
    .page-promotions-referral-program__card,
    .page-promotions-referral-program__container,
    .page-promotions-referral-program__hero-section,
    .page-promotions-referral-program__benefits-section .page-promotions-referral-program__container,
    .page-promotions-referral-program__guide-section .page-promotions-referral-program__container,
    .page-promotions-referral-program__terms-section .page-promotions-referral-program__container,
    .page-promotions-referral-program__why-choose-us-section .page-promotions-referral-program__container,
    .page-promotions-referral-program__faq-section .page-promotions-referral-program__container,
    .page-promotions-referral-program__cta-section .page-promotions-referral-program__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Ensure button containers are also responsive */
    .page-promotions-referral-program__hero-cta-buttons,
    .page-promotions-referral-program__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-promotions-referral-program__hero-section {
        padding-top: 10px !important; /* body already has padding-top */
    }
}