/* style/promotions.css */

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

/* Base styles for the page-promotions scope */
.page-promotions {
    background-color: var(--promotions-background); /* Dark background */
    color: var(--promotions-text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Container for main content */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__section-title {
    font-size: clamp(2rem, 5vw, 2.8rem); /* Responsive font size for H2 */
    color: var(--promotions-gold); /* Gold for important titles */
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for aesthetic */
    margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    color: var(--promotions-text-main);
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--promotions-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-promotions__intro-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--promotions-text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.page-promotions__cta-button {
    display: inline-block;
    background: var(--promotions-button-gradient);
    color: #ffffff; /* White text for button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__cta-button--wide {
    min-width: 300px;
}

.page-promotions__cta-button--large {
    padding: 18px 40px;
    font-size: 1.25rem;
}

/* General Intro */
.page-promotions__general-intro {
    background-color: var(--promotions-deep-green); /* Slightly different dark background */
    color: var(--promotions-text-main);
}

.page-promotions__general-intro p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--promotions-text-secondary);
}

/* Highlight Offers Grid */
.page-promotions__offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background-color: var(--promotions-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--promotions-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(87, 227, 141, 0.2);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
}

.page-promotions__card-title {
    font-size: 1.5rem;
    color: var(--promotions-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card p {
    font-size: 0.95rem;
    color: var(--promotions-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to take up available space */
}

.page-promotions__card-button {
    display: inline-block;
    background: var(--promotions-button-gradient);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    margin-top: auto; /* Push button to bottom */
}

.page-promotions__card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

/* How-to-Join Section */
.page-promotions__how-to-join {
    background-color: var(--promotions-deep-green);
    color: var(--promotions-text-main);
}

.page-promotions__step-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__step-item {
    background-color: var(--promotions-card-bg);
    border-radius: 12px;
    padding: 30px;
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--promotions-border);
}

.page-promotions__step-title {
    font-size: 1.6rem;
    color: var(--promotions-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__step-item p {
    font-size: 1rem;
    color: var(--promotions-text-secondary);
}

.page-promotions__step-item a {
    color: var(--promotions-glow); /* Highlight links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__step-item a:hover {
    text-decoration: underline;
    color: var(--promotions-gold);
}

/* Terms and Conditions */
.page-promotions__terms-conditions {
    color: var(--promotions-text-main);
}

.page-promotions__terms-conditions p {
    font-size: 1rem;
    color: var(--promotions-text-secondary);
    margin-bottom: 20px;
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__list li {
    background-color: var(--promotions-card-bg);
    border: 1px solid var(--promotions-divider);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    color: var(--promotions-text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.page-promotions__list li:last-child {
    margin-bottom: 0;
}

.page-promotions__list li strong {
    color: var(--promotions-gold);
    margin-right: 8px;
    flex-shrink: 0;
}

.page-promotions__terms-conditions a {
    color: var(--promotions-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__terms-conditions a:hover {
    text-decoration: underline;
    color: var(--promotions-gold);
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--promotions-deep-green);
    color: var(--promotions-text-main);
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--promotions-gold);
    cursor: pointer;
    background-color: var(--promotions-deep-green);
    border-bottom: 1px solid var(--promotions-border);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--promotions-background); /* Slightly darker when open */
    border-bottom: none;
}

.page-promotions__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.5); /* Lighter hover for question */
}

/* Hide default marker for details/summary */
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-promotions__faq-item summary::marker {
    display: none;
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--promotions-glow);
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--promotions-text-secondary);
    background-color: var(--promotions-card-bg);
}

.page-promotions__faq-answer p {
    margin-bottom: 10px;
    color: var(--promotions-text-secondary);
}

.page-promotions__faq-answer a {
    color: var(--promotions-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__faq-answer a:hover {
    text-decoration: underline;
    color: var(--promotions-gold);
}


/* Conclusion Section */
.page-promotions__conclusion {
    padding-top: 40px;
    padding-bottom: 80px;
}

.page-promotions__conclusion p {
    font-size: 1.1rem;
    color: var(--promotions-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__conclusion a {
    color: var(--promotions-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__conclusion a:hover {
    text-decoration: underline;
    color: var(--promotions-gold);
}

/* --- Responsive Design --- */

/* Mobile Adaptations */
@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__section {
        padding: 40px 0;
    }

    .page-promotions__section-title {
        font-size: 2rem; /* Adjusted for mobile */
        margin-bottom: 20px;
    }

    .page-promotions__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }

    .page-promotions__hero-image {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-promotions__main-title {
        font-size: 2.2rem; /* Adjusted for mobile */
        margin-bottom: 15px;
    }

    .page-promotions__intro-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* All images must be responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All image containers must be responsive */
    .page-promotions__card,
    .page-promotions__step-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add internal padding */
        padding-right: 15px; /* Add internal padding */
    }

    /* All buttons must be responsive */
    .page-promotions__cta-button,
    .page-promotions__card-button,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button containers for mobile */
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px; /* Space between buttons if they wrap */
    }

    /* If buttons use flex layout, ensure vertical stack or wrapping */
    .page-promotions__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    .page-promotions__offer-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-promotions__card {
        padding: 20px;
    }

    .page-promotions__card-image {
        height: 180px; /* Slightly smaller on mobile */
    }

    .page-promotions__card-title {
        font-size: 1.3rem;
    }

    .page-promotions__step-list {
        flex-direction: column;
        gap: 20px;
    }

    .page-promotions__step-item {
        max-width: 100%;
        padding: 20px;
    }

    .page-promotions__step-title {
        font-size: 1.4rem;
    }

    .page-promotions__list li {
        padding: 12px 15px;
        font-size: 0.95rem;
        flex-direction: column; /* Stack strong and text */
        align-items: flex-start;
    }
    .page-promotions__list li strong {
        margin-bottom: 5px;
    }

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

    .page-promotions__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    .page-promotions__faq-toggle {
        font-size: 1.5rem;
    }
}