/* style/promotions.css */
.page-promotions {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background from shared.css */
}

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

/* Hero Section */
.page-promotions__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #017439; /* Brand color as hero background */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Make background image subtle */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

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

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

.page-promotions__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* General Section Styling */
.page-promotions__introduction-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
    background-color: #ffffff; /* Light background for contrast */
    color: #333333;
    padding: 60px 0;
}

.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__cta-section {
    background-color: #017439; /* Dark brand background */
    color: #ffffff;
    padding: 60px 0;
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

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

/* Benefit List */
.page-promotions__benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.page-promotions__list-item {
    background-color: rgba(0, 0, 0, 0.05); /* Slightly darker background on light section */
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.05em;
    color: inherit;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.page-promotions__types-section .page-promotions__list-item {
    background-color: rgba(255, 255, 255, 0.1); /* Lighter background on dark section */
}

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

.page-promotions__card {
    background-color: #ffffff; /* White card background for visibility */
    color: #333333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    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.3);
}

.page-promotions__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
}

.page-promotions__card-title {
    font-size: 1.5em;
    padding: 20px 20px 10px;
    font-weight: bold;
    color: #017439; /* Brand color for card titles */
}

.page-promotions__card-text {
    padding: 0 20px 20px;
    font-size: 1em;
    flex-grow: 1; /* Make text block fill available space */
}

.page-promotions__card .page-promotions__btn-primary,
.page-promotions__card .page-promotions__btn-secondary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    text-align: center;
}

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

.page-promotions__process-step {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-promotions__process-step:hover {
    transform: translateY(-5px);
}

.page-promotions__process-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-promotions__step-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__step-description {
    font-size: 1em;
    color: #555555;
}

/* Terms List */
.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.page-promotions__terms-list li {
    margin-bottom: 15px;
    color: #f0f0f0;
}
.page-promotions__terms-list li strong {
    color: #ffffff;
}

/* CTA Center */
.page-promotions__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

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

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

.page-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

.page-promotions__btn-register {
    background-color: #C30808; /* Specific color for register button */
    color: #FFFF00; /* Specific font color for register button */
    border-color: #C30808;
}
.page-promotions__btn-register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-promotions__btn-login {
    background-color: #C30808; /* Specific color for login button */
    color: #FFFF00; /* Specific font color for login button */
    border-color: #C30808;
}
.page-promotions__btn-login:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    color: #333333;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #eee;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    color: #017439;
}

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

.page-promotions__faq-title {
    margin: 0;
    font-size: 1.1em;
    color: inherit;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-promotions__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* CTA Section End */
.page-promotions__cta-buttons--end {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

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

@media (max-width: 768px) {
    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-section {
        min-height: 450px;
        padding: 60px 15px;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__introduction-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding: 0 15px; /* Add padding to container on mobile */
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__card-image,
    .page-promotions__process-image {
        height: auto; /* Allow image height to adjust */
    }
    /* All image containers must ensure no overflow */
    .page-promotions__hero-section,
    .page-promotions__introduction-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section,
    .page-promotions__card,
    .page-promotions__process-step {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-promotions__card .page-promotions__btn-primary,
    .page-promotions__card .page-promotions__btn-secondary {
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }

    /* Buttons responsiveness */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        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__hero-cta-buttons,
    .page-promotions__cta-buttons--end {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }
    .page-promotions__hero-cta-buttons .page-promotions__btn-primary,
    .page-promotions__hero-cta-buttons .page-promotions__btn-secondary,
    .page-promotions__cta-buttons--end .page-promotions__btn-primary {
        width: 100%; /* Full width for stacked buttons */
        margin: 0;
    }
    .page-promotions__hero-cta-buttons,
    .page-promotions__cta-buttons--end,
    .page-promotions__cta-center {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* FAQ specific mobile adjustment */
    .page-promotions__faq-question {
        padding: 15px;
        font-size: 1em;
    }
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 15px;
    }
    .page-promotions__process-step {
        padding: 20px;
    }
    .page-promotions__process-image {
        max-width: 180px; /* Adjust size for smaller screens */
    }
}