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

/* Base styles for the page content */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--ev99-text-main); /* Main text color for dark background */
    background-color: var(--ev99-background); /* Body background from shared.css is #08160F */
    line-height: 1.6;
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--ev99-text-main);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--ev99-text-secondary);
    text-align: center;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    background-color: var(--ev99-deep-green); /* Fallback background for hero */
    overflow: hidden;
}

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

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    z-index: 1;
}

.page-promotions__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--ev99-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.page-promotions__description {
    font-size: 1.2em;
    color: var(--ev99-text-secondary);
    margin-bottom: 30px;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow on mobile */
}

.page-promotions__btn-primary {
    background: var(--ev99-button-gradient);
    color: var(--ev99-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--ev99-text-main);
    border: 2px solid var(--ev99-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__btn-secondary:hover {
    background: var(--ev99-primary-color);
    color: var(--ev99-text-main);
    border-color: var(--ev99-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Section specific backgrounds and colors */
.page-promotions__intro-section,
.page-promotions__how-to-join-section,
.page-promotions__faq-section {
    background-color: var(--ev99-background); /* Using background color for consistency with body */
    padding: 60px 0;
}

.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__cta-bottom-section {
    background-color: var(--ev99-deep-green); /* Darker green for contrast sections */
    padding: 60px 0;
}

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

.page-promotions__promo-card {
    background-color: var(--ev99-card-bg); /* Card BG color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card images */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: var(--ev99-text-main);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-promotions__card-text {
    font-size: 1em;
    color: var(--ev99-text-secondary);
    padding: 0 15px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-promotions__card-button {
    margin-top: 20px;
    width: calc(100% - 30px); /* Adjust button width within card */
    max-width: 250px;
}

/* How-To-Join Section */
.page-promotions__step-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
}

.page-promotions__list-item {
    background-color: var(--ev99-card-bg);
    border: 1px solid var(--ev99-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--ev99-text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__list-item strong {
    color: var(--ev99-gold);
}

.page-promotions__list-item a {
    color: var(--ev99-primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__list-item a:hover {
    text-decoration: underline;
}

.page-promotions__cta-buttons--center {
    margin-top: 40px;
}

/* Terms and Conditions Section */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
}

.page-promotions__terms-list .page-promotions__list-item {
    background-color: var(--ev99-background); /* Slightly different background for terms list items */
    border: 1px solid var(--ev99-divider);
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__faq-item {
    background-color: var(--ev99-card-bg);
    border: 1px solid var(--ev99-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.page-promotions__faq-item[open] {
    background-color: var(--ev99-deep-green); /* Slightly darker when open */
    border-color: var(--ev99-primary-color);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--ev99-text-main);
    cursor: pointer;
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    list-style: none; /* Hide default marker for summary */
    transition: color 0.3s ease;
}

/* 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-question:hover {
    color: var(--ev99-primary-color);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--ev99-gold);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    color: var(--ev99-text-main);
}

.page-promotions__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.05em;
    color: var(--ev99-text-secondary);
    border-top: 1px solid var(--ev99-divider);
}

.page-promotions__faq-answer p {
    margin: 0;
    padding-top: 15px;
}

/* Bottom CTA Section */
.page-promotions__cta-bottom-section {
    text-align: center;
    padding: 80px 0;
}

.page-promotions__cta-bottom-section .page-promotions__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
}

.page-promotions__cta-bottom-section .page-promotions__description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-promotions__hero-image-wrapper {
        max-height: 400px;
        margin-bottom: 20px;
    }
    .page-promotions__hero-content {
        padding: 0 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-promotions__description {
        font-size: 1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .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;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-promotions__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-promotions__faq-answer {
        font-size: 0.95em;
        padding: 0 15px 15px 15px;
    }
    .page-promotions__cta-bottom-section {
        padding: 60px 0;
    }
    .page-promotions__cta-bottom-section .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6em, 7vw, 2em);
    }
    .page-promotions__hero-image-wrapper {
        max-height: 250px;
    }
    .page-promotions__promo-card {
        padding-bottom: 15px;
    }
    .page-promotions__card-image {
        height: 150px;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__list-item {
        font-size: 1em;
        padding: 15px;
    }
}