/* style/promotions.css */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg); /* Inherit from shared */
}

.page-promotions__dark-bg {
    background-color: #1A237E;
    color: #ffffff;
}

.page-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

/* Hero Section */
.page-promotions__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    position: relative;
    overflow: hidden;
    background-color: #1A237E; /* Fallback */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 40px;
}

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

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

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    filter: grayscale(50%); /* Allowed for decorative effect, not color change */
}

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

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.page-promotions__btn-primary {
    background-color: #FFD700;
    color: #1A237E;
    border: 2px solid #FFD700;
}

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

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

.page-promotions__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A237E;
}

.page-promotions__btn--large {
    min-width: 250px;
    padding: 18px 35px;
    font-size: 1.2em;
}

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

/* Section common styles */
.page-promotions__intro-section,
.page-promotions__types-section,
.page-promotions__how-to-claim-section,
.page-promotions__video-section,
.page-promotions__why-choose-section,
.page-promotions__faq-section,
.page-promotions__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700;
}

.page-promotions__intro-section .page-promotions__section-title,
.page-promotions__how-to-claim-section .page-promotions__section-title,
.page-promotions__why-choose-section .page-promotions__section-title,
.page-promotions__cta-section .page-promotions__section-title {
    color: #1A237E;
}

.page-promotions__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.page-promotions__section-text {
    font-size: 1em;
    max-width: 900px;
    margin: 0 auto 20px;
    line-height: 1.7;
    color: #f0f0f0; /* For dark sections */
}

.page-promotions__intro-section .page-promotions__section-text,
.page-promotions__how-to-claim-section .page-promotions__section-text,
.page-promotions__why-choose-section .page-promotions__section-text {
    color: #333333; /* For light sections */
}

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

.page-promotions__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.page-promotions__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #FFD700;
}

.page-promotions__card-title a {
    color: #FFD700;
    text-decoration: none;
}

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

.page-promotions__card-text {
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #f0f0f0;
}

/* Steps List */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 60px;
    max-width: 800px;
    text-align: left;
}

.page-promotions__steps-list li {
    background-color: #f9f9f9;
    border-left: 5px solid #FFD700;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-promotions__step-title {
    font-size: 1.5em;
    color: #1A237E;
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

.page-promotions__step-text a {
    color: #1A237E;
    text-decoration: none;
    font-weight: bold;
}

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

/* Video Section */
.page-promotions__video-section {
    background-color: #1A237E;
    padding: 60px 0;
}

.page-promotions__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

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

/* Benefits List */
.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-promotions__benefits-list li {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-promotions__benefit-title {
    font-size: 1.8em;
    color: #1A237E;
    margin-bottom: 10px;
}

.page-promotions__benefit-text {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: #1A237E;
    padding: 60px 0;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-title {
    margin: 0;
    color: #FFD700;
}

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

.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;
    color: #f0f0f0;
    text-align: justify;
}

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

.page-promotions__faq-answer p {
    margin-bottom: 15px;
    line-height: 1.7;
}

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

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

    .page-promotions__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__section-description,
    .page-promotions__section-text {
        font-size: 0.95em;
        padding: 0 15px;
    }

    .page-promotions__card-grid,
    .page-promotions__benefits-list {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-promotions__card,
    .page-promotions__benefits-list li {
        padding: 25px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions 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-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }

    .page-promotions__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 15px;
    }
    
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    /* 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,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .page-promotions__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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

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

    .page-promotions__steps-list {
        padding: 0 15px;
    }
    .page-promotions__steps-list li {
        padding: 20px;
    }
    .page-promotions__step-title {
        font-size: 1.3em;
    }
}