/* style/promotions.css */
/* Base styles for the promotions page, ensuring contrast and responsiveness */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
    background-color: var(--bg-color, #08160F); /* Default background color from custom palette */
    line-height: 1.6;
}

/* Ensure all images are responsive by default */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px; /* Consistent styling */
}

/* Section styling */
.page-promotions__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-promotions__hero-section {
    position: relative;
    padding: 0; /* Hero section itself doesn't need top padding due to body padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color, #08160F);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    border-radius: 0; /* Hero image usually full width, no rounded corners */
}

.page-promotions__hero-content {
    padding: 40px 20px;
    max-width: 800px;
    margin-top: -100px; /* Overlap slightly for visual effect, but not covering image */
    position: relative;
    z-index: 2;
    background-color: rgba(17, 39, 27, 0.8); /* Card BG with transparency for content readability */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color, #2E7A4E);
}

.page-promotions__main-title {
    color: var(--text-main, #F2FFF6);
    font-size: clamp(2em, 5vw, 2.8em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.page-promotions__intro-text {
    color: var(--text-secondary, #A7D9B8);
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #FFFFFF;
    border: none;
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--glow, #57E38D);
    border: 2px solid var(--glow, #57E38D);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--glow, #57E38D);
    color: #08160F;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #FFFFFF;
    border: none;
    margin-top: 15px;
}

.page-promotions__btn-small:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}


.page-promotions__section-title {
    color: var(--text-main, #F2FFF6);
    font-size: clamp(1.8em, 4vw, 2.5em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.page-promotions__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color, #11A84E), var(--aux-color, #22C768));
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-promotions__section-description {
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
    font-size: 1.05em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__promo-card,
.page-promotions__step-card,
.page-promotions__benefit-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards are same height */
    box-sizing: border-box;
}

.page-promotions__promo-card:hover,
.page-promotions__step-card:hover,
.page-promotions__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.page-promotions__promo-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-promotions__card-title,
.page-promotions__step-title,
.page-promotions__benefit-title {
    color: var(--gold, #F2C14E); /* Gold for titles */
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__card-text,
.page-promotions__step-text,
.page-promotions__benefit-text {
    color: var(--text-secondary, #A7D9B8);
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1; /* Push button to bottom */
}

.page-promotions__card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    color: var(--text-secondary, #A7D9B8);
    font-size: 0.9em;
}

.page-promotions__card-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.page-promotions__card-list li::before {
    content: '✓';
    color: var(--glow, #57E38D);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Benefits Section */
.page-promotions__benefit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__benefit-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: left;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--deep-green, #0A4B2C); /* Darker background for contrast */
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-promotions__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    background-color: rgba(17, 39, 27, 0.7); /* Slightly lighter than card background */
    border-bottom: 1px solid var(--divider, #1E3A2A);
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details summary */
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--main-color, #11A84E); /* Highlight when open */
    border-bottom-color: transparent;
}

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow, #57E38D);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    color: #FFFFFF;
}

.page-promotions__faq-answer {
    padding: 15px 25px 20px;
    color: var(--text-secondary, #A7D9B8);
    font-size: 0.95em;
    line-height: 1.7;
}

/* App Download Section */
.page-promotions__app-download {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    background-color: var(--main-color, #11A84E);
    border-radius: 15px;
    padding: 50px;
    margin-top: 60px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color, #2E7A4E);
}

.page-promotions__app-content {
    flex: 1;
    text-align: left;
}

.page-promotions__app-download .page-promotions__section-title {
    text-align: left;
    color: #FFFFFF;
}

.page-promotions__app-download .page-promotions__section-title::after {
    margin-left: 0;
    background: linear-gradient(90deg, #FFFFFF, var(--glow, #57E38D));
}

.page-promotions__app-download .page-promotions__section-description {
    text-align: left;
    color: #E0FFE5; /* Lighter green for readability on green background */
    margin-bottom: 30px;
}

.page-promotions__app-cta {
    color: #FFFFFF;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 25px;
}

.page-promotions__app-image-wrapper {
    flex: 0 0 auto; /* Don't grow, don't shrink, base on content */
    width: 400px; /* Fixed width for desktop */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__app-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure image doesn't exceed its wrapper */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-promotions__hero-content {
        margin-top: -50px;
        padding: 30px 20px;
    }
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__benefit-list {
        grid-template-columns: 1fr; /* Stack cards on medium screens */
        gap: 25px;
    }
    .page-promotions__app-download {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }
    .page-promotions__app-content {
        text-align: center;
    }
    .page-promotions__app-download .page-promotions__section-title,
    .page-promotions__app-download .page-promotions__section-description {
        text-align: center;
    }
    .page-promotions__app-download .page-promotions__section-title::after {
        margin-left: auto;
        margin-right: auto;
    }
    .page-promotions__app-image-wrapper {
        width: 100%;
        max-width: 300px; /* Smaller image on tablet */
    }
}

@media (max-width: 768px) {
    /* Mobile specific overrides with !important */
    .page-promotions {
        font-size: 15px;
        line-height: 1.5;
    }
    .page-promotions__section {
        padding: 30px 15px;
    }
    .page-promotions__hero-content {
        margin-top: -30px;
        padding: 25px 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
    }
    .page-promotions__intro-text {
        font-size: 1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        font-size: 0.95em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__promo-image {
        height: 180px; /* Adjust image height for mobile */
    }
    .page-promotions__app-image-wrapper {
        width: 100%;
        max-width: 250px; /* Even smaller image on mobile */
    }

    /* General mobile image/video/container 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__promo-card,
    .page-promotions__step-card,
    .page-promotions__benefit-item,
    .page-promotions__app-download {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.9em;
    }
    .page-promotions__app-download {
        padding: 30px 15px;
    }
    .page-promotions__app-download .page-promotions__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }
}