:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --text-color-on-dark: #FFFFFF;
    --text-color-on-light: #333333;
    --register-login-font-color: #FFFF00;
}

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

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(1, 116, 57, 0.7) 70%, var(--secondary-color) 100%);
    color: var(--text-color-on-dark);
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-color-on-dark);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-promotions__intro-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-on-dark);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--register-button-color); /* Using register color for CTA */
    color: var(--register-login-font-color); /* Using register/login font color */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-promotions__cta-button:hover {
    background: #A80707; /* Darkened #C30808 */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-button--centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    text-align: center;
}

/* Section Styles */
.page-promotions__section {
    padding: 80px 0;
}

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

.page-promotions__dark-section .page-promotions__section-title {
    color: var(--text-color-on-dark);
}

.page-promotions__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.page-promotions__dark-section {
    background: var(--primary-color);
    color: var(--text-color-on-dark);
}

/* Feature Cards */
.page-promotions__feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions__card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-on-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__card img {
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

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

.page-promotions__card-text {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.page-promotions__card-button:hover {
    background: #016632; /* Darkened #017439 */
}

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

.page-promotions__promo-item {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark green */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-color-on-dark);
}

.page-promotions__promo-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--text-color-on-dark);
    font-weight: 700;
}

.page-promotions__promo-description {
    font-size: 1em;
    line-height: 1.7;
}

/* Button Group */
.page-promotions__button-group {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.page-promotions__btn-primary {
    background: var(--primary-color);
    color: var(--text-color-on-dark);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
    background: #016632; /* Darkened #017439 */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__btn-secondary:hover {
    background: #f0f0f0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* How to Claim Steps */
.page-promotions__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.page-promotions__step-item {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    color: var(--text-color-on-light);
}

.page-promotions__step-item img {
    width: 100%;
    
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

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

.page-promotions__step-description {
    font-size: 1em;
    line-height: 1.7;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--text-color-on-dark);
}

.page-promotions__faq-section .page-promotions__section-title {
    color: var(--text-color-on-dark);
}

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

.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-color-on-light);
}

.page-promotions__faq-item.active .page-promotions__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary-color);
    background: #f0f8f0; /* Light green tint when active */
}

.page-promotions__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
    background: #eeeeee;
}

.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-color-on-light);
}

.page-promotions__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9;
    color: var(--text-color-on-light);
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
    background: #f0f8f0; /* Light green tint when active */
}

/* Final CTA Section */
.page-promotions__final-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color) 70%);
}

.page-promotions__final-cta .page-promotions__section-title {
    color: var(--primary-color);
}

.page-promotions__final-cta .page-promotions__text-block {
    margin-bottom: 40px;
    color: var(--text-color-on-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 2.8em;
    }
    .page-promotions__intro-text {
        font-size: 1.2em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__cta-button {
        padding: 15px 35px;
        font-size: 1.2em;
    }
}

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

    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-promotions__intro-text {
        font-size: 1.1em;
        margin-bottom: 25px;
    }
    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 1.1em;
        width: 100% !important; /* Ensure buttons are full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section {
        padding: 50px 0;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-promotions__text-block {
        margin-bottom: 30px;
        font-size: 1em;
    }

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

    .page-promotions__feature-cards,
    .page-promotions__promo-grid,
    .page-promotions__steps {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .page-promotions__card,
    .page-promotions__promo-item,
    .page-promotions__step-item {
        padding: 25px;
    }

    .page-promotions__card img,
    .page-promotions__step-item img {
        height: auto; /* Allow height to adjust naturally */
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        object-fit: contain; /* Ensure image fits without cropping too much */
    }

    .page-promotions__card-title,
    .page-promotions__promo-title,
    .page-promotions__step-title {
        font-size: 1.4em;
    }

    .page-promotions__button-group {
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
    }

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

    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 1em;
    }
    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px !important;
    }
}