/* style/promotions.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #1a1a2e; /* From body background info */
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --login-color: #EA7C07;
}

.page-promotions {
    color: var(--light-text-color); /* Default text color for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: var(--header-offset, 120px) 20px 60px;
    text-align: center;
    overflow: hidden;
    background-color: var(--dark-bg-color);
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--light-text-color);
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.page-promotions__btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-promotions__btn-primary:hover {
    background-color: #1e87b7;
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Sections */
.page-promotions__intro-section, 
.page-promotions__how-to-claim-section, 
.page-promotions__terms-section, 
.page-promotions__faq-section, 
.page-promotions__cta-final {
    padding: 80px 0;
}

.page-promotions__intro-section, .page-promotions__terms-section {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

.page-promotions__how-to-claim-section, .page-promotions__cta-final {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

.page-promotions__faq-section {
    background-color: #f8f9fa; /* Light background for FAQ */
    color: var(--dark-text-color);
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-promotions__intro-section .page-promotions__section-title, 
.page-promotions__terms-section .page-promotions__section-title, 
.page-promotions__faq-section .page-promotions__section-title {
    color: var(--primary-color);
}

.page-promotions__how-to-claim-section .page-promotions__section-title, 
.page-promotions__cta-final .page-promotions__section-title {
    color: var(--secondary-color);
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-promotions__text-block a:hover {
    color: #1e87b7;
}

/* Promotions Grid */
.page-promotions__promotions-grid {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
    padding: 80px 0;
}

.page-promotions__grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
    color: var(--dark-text-color);
}

.page-promotions__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions__card-description {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__card-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-promotions__card-button:hover {
    background-color: #1e87b7;
}

/* How to Claim Section */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 50px;
}

.page-promotions__step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.page-promotions__step-number {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    flex-shrink: 0;
}

.page-promotions__step-content h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-promotions__step-content p {
    font-size: 1em;
    color: var(--light-text-color);
}

.page-promotions__step-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-promotions__step-content a:hover {
    color: #1e87b7;
}

/* Video Section */
.page-promotions__cta-video-wrapper {
    max-width: 800px;
    margin: 40px auto 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.page-promotions__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    cursor: pointer;
}

.page-promotions__video-caption {
    text-align: center;
    font-style: italic;
    margin-top: 15px;
    color: var(--light-text-color);
    opacity: 0.8;
}

/* Terms Section */
.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    font-size: 1em;
    color: var(--dark-text-color);
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
}

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

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--dark-text-color);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #e0e0e0;
}

.page-promotions__faq-question h3 {
    margin: 0;
    color: var(--primary-color);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

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

.page-promotions__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

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

.page-promotions__faq-answer a:hover {
    color: #1e87b7;
}

/* Final CTA Section */
.page-promotions__cta-final {
    text-align: center;
    padding: 80px 20px;
}

.page-promotions__cta-final .page-promotions__text-block {
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-promotions__cta-final a {
    color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__hero-description {
        font-size: 1.2em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__btn-primary, .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 15px; /* Add spacing for stacked buttons */
    }
    .page-promotions__hero-content .page-promotions__btn-primary {
        margin-bottom: 0;
    }

    .page-promotions__promotions-grid, .page-promotions__how-to-claim-section, .page-promotions__terms-section, .page-promotions__faq-section, .page-promotions__cta-final {
        padding: 50px 0;
    }

    .page-promotions__grid-wrapper {
        grid-template-columns: 1fr;
    }

    .page-promotions__card {
        padding: 20px;
    }

    .page-promotions__card-image {
        height: 180px;
    }

    .page-promotions__card-title {
        font-size: 1.5em;
    }

    .page-promotions__step-item {
        flex-direction: column;
        text-align: center;
    }

    .page-promotions__step-number {
        margin-bottom: 15px;
    }

    .page-promotions__step-content h3 {
        font-size: 1.3em;
    }

    .page-promotions__cta-video-wrapper {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

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

    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px !important;
    }

    .page-promotions__container {
        padding: 0 15px;
    }

    /* Ensure all images are responsive */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .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;
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}

/* Color Contrast Specifics */
.page-promotions__dark-bg {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

.page-promotions__light-bg {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

/* Ensure links within text blocks are visible */
.page-promotions__text-block a {
    color: var(--primary-color);
}
.page-promotions__text-block a:hover {
    color: #1e87b7;
}

/* Specific button colors */
.page-promotions__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* FAQ colors */
.page-promotions__faq-question {
    background-color: #f0f0f0;
    color: var(--primary-color);
}
.page-promotions__faq-item.active .page-promotions__faq-question {
    background-color: #e0e0e0;
}
.page-promotions__faq-answer {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}