/* style/promotions.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #FFFFFF;
    --bg-dark: #26A9E0;
    --border-color: #e0e0e0;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--bg-light);
}

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

.page-promotions__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-promotions__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit; /* Inherit color from parent section */
}

/* Hero Section */
.page-promotions__hero-section {
    padding-top: 10px;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions__hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Constrain content width */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px;
}

.page-promotions__hero-text-container {
    text-align: center;
    padding-bottom: 60px;
    max-width: 800px;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for responsive H1 */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* CTA Button */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: var(--login-color);
    color: var(--text-light);
    border: 2px solid var(--login-color);
}

.page-promotions__btn-primary:hover {
    background-color: darken(var(--login-color), 10%);
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Why Choose Section */
.page-promotions__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__benefit-item {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.page-promotions__benefit-item:hover {
    transform: translateY(-5px);
}

.page-promotions__benefit-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions__benefit-text {
    font-size: 1em;
    color: var(--text-dark);
}

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

.page-promotions__promotion-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    color: var(--text-dark);
}

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

.page-promotions__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin: 20px 15px 10px 15px;
}

.page-promotions__card-text {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

.page-promotions__promotion-card .page-promotions__cta-button {
    margin: 0 15px 20px 15px;
}

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

.page-promotions__type-item {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
}

.page-promotions__type-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions__type-text {
    font-size: 1em;
    color: var(--text-dark);
}

/* How to Claim Section */
.page-promotions__steps-container {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-promotions__process-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.page-promotions__steps-list {
    flex: 1;
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-promotions__step-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.page-promotions__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background-color: var(--login-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
}

.page-promotions__step-title {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 5px;
}

.page-promotions__step-text {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.9);
}

/* Terms Section */
.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

.page-promotions__term-item {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-promotions__text-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-promotions__text-link:hover {
    color: darken(var(--primary-color), 10%);
}

.page-promotions__read-more-terms {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: var(--text-dark);
}

/* FAQ Section */
.page-promotions__faq-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    list-style: none; /* For details/summary */
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-promotions__faq-question::marker { /* Hide default marker for Firefox */
    display: none;
}

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
}

.page-promotions__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

/* Final CTA Section */
.page-promotions__final-cta-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 80px 20px;
    text-align: left;
}

.page-promotions__final-cta-content {
    flex: 1;
}

.page-promotions__final-cta-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* General Image Styling */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

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

    .page-promotions__steps-container {
        flex-direction: column;
    }

    .page-promotions__process-image {
        max-width: 80%;
        margin-bottom: 30px;
    }

    .page-promotions__final-cta-section {
        flex-direction: column;
        text-align: center;
    }

    .page-promotions__final-cta-image {
        max-width: 80%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 10px !important;
    }

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

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

    .page-promotions__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
        line-height: 1.3;
    }

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

    /* General Image & Container Adaptation */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Promotion Cards Grid */
    .page-promotions__promotions-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__card-image {
        height: 180px;
    }

    /* Buttons & Button Containers Adaptation */
    .page-promotions__cta-button,
    .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__hero-text-container .page-promotions__cta-button {
        margin-left: 0;
        margin-right: 0;
    }

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

    .page-promotions__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* Other Content Modules Adaptation */
    .page-promotions__benefits-list,
    .page-promotions__types-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__hero-text-container {
        padding-bottom: 40px;
    }

    .page-promotions__process-image {
        max-width: 100%;
    }

    .page-promotions__step-item {
        padding-left: 40px;
    }

    .page-promotions__step-item::before {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }

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

    .page-promotions__faq-answer {
        padding: 10px 20px 15px 20px;
        font-size: 0.9em;
    }

    .page-promotions__final-cta-image {
        max-width: 100%;
    }

    .page-promotions__final-cta-section .page-promotions__cta-button {
        margin-left: 0;
        margin-right: 0;
    }
}