.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set body background for page content */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-promotions__hero-content {
    max-width: 600px;
    z-index: 1;
    flex: 1;
    min-width: 300px;
}

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

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

.page-promotions__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure no extra space below image */
}

/* General Section Styling */
.page-promotions__section {
    padding: 60px 20px;
    background-color: #FFFFFF;
    color: #333333;
}

.page-promotions__dark-section {
    background-color: #017439;
    color: #FFFFFF;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add some horizontal padding */
}

.page-promotions__section-title {
    font-size: 2.2em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section-title--light {
    color: #FFFFFF;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-promotions__section-title--light::after {
    background-color: #FFFFFF;
}

.page-promotions__sub-title {
    font-size: 1.6em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-promotions__text-block {
    font-size: 1em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-promotions__text-block--light {
    color: #F0F0F0;
}

/* CTA Buttons */
.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__cta-buttons--center {
    justify-content: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.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: #e02020;
    border-color: #e02020;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #FFFFFF; /* For dark background */
    border: 2px solid #FFFFFF;
}

.page-promotions__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Adjust secondary button for light background, if used */
/* (Currently all buttons are primary style for promo links, but keeping this for robustness) */
.page-promotions__section:not(.page-promotions__dark-section) .page-promotions__btn-secondary {
    color: #017439;
    border-color: #017439;
}

.page-promotions__section:not(.page-promotions__dark-section) .page-promotions__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}


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

.page-promotions__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 25px; /* Add padding for button */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-promotions__card-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow and push button to bottom */
}

.page-promotions__card-button {
    margin: 0 auto; /* Center button */
    max-width: 80%; /* Ensure button fits within card */
    width: auto; /* Allow width to be determined by content, but respect max-width */
}

/* Lists */
.page-promotions__list,
.page-promotions__numbered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 0;
}

.page-promotions__numbered-list {
    list-style-type: decimal;
}

.page-promotions__list-item {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #333333;
}

.page-promotions__list-item--light {
    color: #F0F0F0;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: #f9f9f9;
}

.page-promotions__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-title {
    font-size: 1.1em;
    color: #017439;
    margin: 0;
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    color: #017439;
    font-weight: bold;
    margin-left: 20px;
    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-out, padding 0.3s ease-out;
}

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

.page-promotions__faq-answer .page-promotions__text-block {
    margin-bottom: 0; /* Remove bottom margin for text inside answer */
    color: #555555;
}

/* CTA Bottom */
.page-promotions__cta-bottom {
    text-align: center;
    background-color: #f0f8f0; /* Light green background */
    padding: 80px 20px;
}

.page-promotions__cta-content {
    max-width: 900px;
}

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

    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        flex-direction: column;
        padding: 60px 20px;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

    .page-promotions__hero-content {
        order: 2; /* Put content below image on mobile */
    }

    .page-promotions__hero-image-wrapper {
        order: 1; /* Put image above content on mobile */
        margin-bottom: 30px;
    }

    .page-promotions__hero-title {
        font-size: 2em;
    }

    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__section {
        padding: 40px 15px;
    }

    .page-promotions__container {
        padding: 0;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .page-promotions__sub-title {
        font-size: 1.4em;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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;
    }

    .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;
        overflow: hidden !important; /* Prevent horizontal scroll from button groups */
    }
    
    .page-promotions__card-grid {
        grid-template-columns: 1fr;
    }

    /* Image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__hero-section,
    .page-promotions__hero-image-wrapper,
    .page-promotions__faq-item,
    .page-promotions__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.6em;
    }
    .page-promotions__sub-title {
        font-size: 1.2em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* Ensure content area images are not too small */
.page-promotions img:not(.shared-header__logo-image):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    min-width: 200px;
    min-height: 200px;
}