/* style/promotion.css */

/* Base styles for the page-promotion scope */
.page-promotion {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f8f9fa; /* Light text for dark body background */
    background-color: transparent; /* Inherit from body/shared */
}

.page-promotion__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: #1a1a1a; /* Dark background for content areas */
    color: #f8f9fa;
}

.page-promotion__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff; /* White text for brand color background */
}

.page-promotion__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-promotion__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: #cccccc;
}

.page-promotion__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: #f8f9fa;
}

.page-promotion__text-block a {
    color: #FFFF00; /* Yellow for links in dark sections */
    text-decoration: underline;
}

/* Hero Section */
.page-promotion__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Default height for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    box-sizing: border-box;
}

.page-promotion__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-promotion__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 2;
}

.page-promotion__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-promotion__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-promotion__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-promotion__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.page-promotion__btn-primary,
.page-promotion__btn-secondary {
    display: inline-block;
    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-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

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

.page-promotion__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-promotion__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

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

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

.page-promotion__promo-card {
    background-color: #2a2a2a; /* Slightly lighter dark for cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #f8f9fa;
}

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

.page-promotion__promo-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-promotion__promo-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotion__promo-card-title {
    font-size: 1.6em;
    color: #FFFF00; /* Yellow for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotion__promo-card-description {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotion__promo-card-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
    margin-top: auto; /* Push button to bottom */
}

.page-promotion__promo-card-buttons-group {
    display: flex;
    flex-direction: column; /* Stack buttons by default */
    gap: 10px;
    margin-top: auto;
}

/* How to Claim Section */
.page-promotion__how-to-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotion__how-to-item {
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent dark for list items */
    border-left: 5px solid #FFFF00; /* Yellow accent */
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #f8f9fa;
}

.page-promotion__how-to-step-title {
    font-size: 1.8em;
    color: #FFFF00; /* Yellow for step titles */
    margin-bottom: 10px;
}

.page-promotion__how-to-item p {
    font-size: 1.05em;
    color: #cccccc;
}

.page-promotion__how-to-item a {
    color: #C30808; /* Red for links in light text context */
    text-decoration: underline;
}

.page-promotion__how-to-cta {
    margin-top: 60px;
}

/* Terms & Conditions Section */
.page-promotion__terms-section a {
    color: #FFFF00; /* Yellow for links */
    text-decoration: underline;
}

/* FAQ Section */
.page-promotion__faq-container {
    margin-top: 40px;
}

.page-promotion__faq-item {
    background-color: #2a2a2a; /* Darker background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotion__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Brand primary color for question background */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-promotion__faq-question:hover {
    background-color: #005f2f;
}

.page-promotion__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
}

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

.page-promotion__faq-item.active .page-promotion__faq-toggle {
    transform: rotate(45deg); /* Rotate for '−' effect */
}

.page-promotion__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #3a3a3a; /* Lighter dark for answer background */
    color: #cccccc;
}

.page-promotion__faq-item.active .page-promotion__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px 25px;
}

.page-promotion__faq-answer p {
    margin: 0;
    color: #cccccc;
}

.page-promotion__faq-answer a {
    color: #FFFF00; /* Yellow for links in FAQ answers */
    text-decoration: underline;
}

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

.page-promotion__cta-final-section .page-promotion__section-title {
    margin-bottom: 20px;
}

.page-promotion__cta-final-section .page-promotion__text-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotion__hero-title {
        font-size: 3em;
    }
    .page-promotion__hero-description {
        font-size: 1.2em;
    }
    .page-promotion__section-title {
        font-size: 2em;
    }
    .page-promotion__promo-card-title {
        font-size: 1.4em;
    }
    .page-promotion__how-to-step-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-promotion {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotion__content-area {
        padding: 40px 15px;
    }

    .page-promotion__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }

    .page-promotion__hero-title {
        font-size: 2.2em;
    }
    .page-promotion__hero-description {
        font-size: 1em;
    }
    .page-promotion__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-promotion__btn-primary,
    .page-promotion__btn-secondary,
    .page-promotion a[class*="button"],
    .page-promotion 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: 12px 15px; /* Adjust padding for mobile buttons */
    }

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

    .page-promotion__promo-card-buttons-group {
        flex-direction: column;
    }

    .page-promotion__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-promotion__section-description {
        margin-bottom: 40px;
    }
    .page-promotion__how-to-item {
        padding: 20px 25px;
    }
    .page-promotion__how-to-step-title {
        font-size: 1.4em;
    }
    .page-promotion__faq-question {
        padding: 15px 20px;
    }
    .page-promotion__faq-title {
        font-size: 1.1em;
    }
    .page-promotion__faq-answer {
        padding: 0 20px;
    }
    .page-promotion__faq-item.active .page-promotion__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-promotion img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Mobile video responsiveness */
    .page-promotion video,
    .page-promotion__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All containing elements for images/videos must be constrained */
    .page-promotion__section,
    .page-promotion__card,
    .page-promotion__container,
    .page-promotion__video-section,
    .page-promotion__video-container,
    .page-promotion__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-promotion__cta-buttons,
    .page-promotion__button-group,
    .page-promotion__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;
    }
    .page-promotion__hero-cta-buttons {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-promotion__hero-title {
        font-size: 1.8em;
    }
    .page-promotion__hero-description {
        font-size: 0.9em;
    }
    .page-promotion__section-title {
        font-size: 1.5em;
    }
    .page-promotion__how-to-step-title {
        font-size: 1.2em;
    }
}