/* style/promotions.css */

/* Base styles for the page content, assuming dark body background from shared.css */
.page-promotions {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Rely on body background from shared.css */
}

/* Fixed header offset for the first content section */
.page-promotions__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 600px; /* Minimum height for hero section */
    background-color: #017439; /* Primary brand color for hero background */
    color: #ffffff;
}

.page-promotions__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-promotions__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video to improve text readability */
    cursor: pointer; /* Indicate video is clickable */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* General container for content sections */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    color: #FFFF00; /* Use for highlight */
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: #f0f0f0; /* Light text for dark sections */
}

/* Background color variants for sections */
.page-promotions__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
}

.page-promotions__light-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast with body #121212 */
    color: #ffffff;
}

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

.page-promotions__promotion-card {
    background-color: #2c2c2c; /* Dark card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: #ffffff; /* Light text for card content */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card image size */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__card-title {
    font-size: 1.5em;
    padding: 20px 20px 10px;
    color: #FFFF00; /* Highlight card titles */
}

.page-promotions__card-text {
    padding: 0 20px 20px;
    flex-grow: 1; /* Make text content take available space */
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions__promotion-card .page-promotions__btn-primary {
    margin: 0 20px 20px;
    width: calc(100% - 40px); /* Button takes full width of card content area */
}

/* How-to-claim section */
.page-promotions__step-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__step-item {
    background-color: #2c2c2c; /* Dark step item background */
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-promotions__step-title {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions__step-description a {
    color: #FFFF00; /* Link color for steps */
    text-decoration: none;
}

.page-promotions__step-description a:hover {
    text-decoration: underline;
}

.page-promotions__note-text {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: #f0f0f0;
}

/* Terms and Conditions section */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__terms-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark bg */
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #FFFF00; /* Highlight with yellow */
    color: #ffffff;
}

.page-promotions__terms-subtitle {
    font-size: 1.3em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-promotions__terms-item-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions__text-center {
    text-align: center;
    margin-top: 40px;
}

/* Why Choose section */
.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-promotions__benefits-item {
    background-color: #2c2c2c; /* Dark background for benefits */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #ffffff;
}

.page-promotions__benefits-subtitle {
    font-size: 1.4em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-promotions__benefits-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ section */
.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: #2c2c2c; /* Dark background for FAQ item */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Primary brand color for question header */
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-question:hover {
    background-color: #015f2f; /* Slightly darker on hover */
}

.page-promotions__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em; /* Ensure consistent font size */
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Yellow toggle */
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change to 'X' or '-' like effect */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #2c2c2c;
    color: #f0f0f0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-promotions__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* Final CTA section */
.page-promotions__cta-final-section {
    padding: 60px 20px;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
}

.page-promotions__cta-final-section .page-promotions__section-title {
    color: #FFFF00;
}

.page-promotions__cta-final-section .page-promotions__section-description {
    color: #f0f0f0;
}

.page-promotions__cta-buttons-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
}

/* Register/Login button colors */
.page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #a80707;
    border-color: #a80707;
}

/* Secondary button colors */
.page-promotions__btn-secondary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-promotions__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    border-color: #017439;
}

/* Text links within content */
.page-promotions a {
    color: #FFFF00; /* Highlight links with yellow */
    text-decoration: none;
}

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

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

    .page-promotions__hero-section {
        min-height: 400px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-promotions__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-promotions__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-promotions__hero-cta-buttons .page-promotions__btn-primary,
    .page-promotions__hero-cta-buttons .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-promotions__section-description {
        font-size: 0.95em;
    }

    .page-promotions__promotion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__card-image {
        height: 200px; /* Adjust height for mobile cards */
    }

    .page-promotions__card-title {
        font-size: 1.3em;
        padding: 15px 15px 5px;
    }

    .page-promotions__card-text {
        padding: 0 15px 15px;
    }

    .page-promotions__promotion-card .page-promotions__btn-primary {
        margin: 0 15px 15px;
        width: calc(100% - 30px);
    }

    .page-promotions__step-item {
        padding: 20px;
    }

    .page-promotions__step-title {
        font-size: 1.2em;
    }

    .page-promotions__terms-item {
        padding: 15px;
    }

    .page-promotions__terms-subtitle {
        font-size: 1.1em;
    }

    .page-promotions__benefits-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__benefits-item {
        padding: 25px;
    }

    .page-promotions__benefits-subtitle {
        font-size: 1.2em;
    }

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

    .page-promotions__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-promotions__cta-final-section {
        padding: 40px 15px;
    }

    .page-promotions__cta-buttons-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-promotions__cta-buttons-group .page-promotions__btn-primary,
    .page-promotions__cta-buttons-group .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images and Videos specific mobile rules */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__hero-video-wrapper,
    .page-promotions__promotion-card,
    .page-promotions__step-item,
    .page-promotions__terms-item,
    .page-promotions__benefits-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
}