/* style/promotions.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --btn-login: #EA7C07;
}

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

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    background-color: var(--primary-color); /* Dark section background */
    color: var(--text-light);
    overflow: hidden;
}

.page-promotions__hero-image {
    position: relative; /* Changed to relative to avoid z-index issues if text were overlaid */
    width: 100%;
    height: auto;
    max-height: 675px;
    object-fit: cover;
    display: block;
    margin-bottom: 30px;
}

.page-promotions__hero-content {
    position: relative; /* Ensures content is above image if needed, but in normal flow */
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-promotions__cta-buttons--center {
    margin-top: 40px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button,
.page-promotions__text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

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

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

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

.page-promotions__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.page-promotions__card-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    font-size: 0.95rem;
    padding: 10px 20px;
    margin-top: 15px;
}

.page-promotions__card-button:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-promotions__btn-lg {
    font-size: 1.1rem;
    padding: 15px 30px;
}

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

.page-promotions__text-link:hover {
    color: #1e87c0;
}

.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

.page-promotions__overview-section .page-promotions__image {
    margin-top: 40px;
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
    line-height: 1.3;
}

.page-promotions__text-block {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-promotions__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* Color Contrast Classes */
.page-promotions__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-promotions__dark-section .page-promotions__section-title,
.page-promotions__dark-section .page-promotions__text-block,
.page-promotions__dark-section .page-promotions__step-title,
.page-promotions__dark-section .page-promotions__step-description {
    color: var(--text-light);
}

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

.page-promotions__contrast-fix {
    background: var(--secondary-color) !important;
    color: var(--text-dark) !important;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Featured Promotions Grid */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__promo-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    box-sizing: border-box;
}

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

.page-promotions__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions__card-description {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    flex-grow: 1;
}

/* How to Claim Steps */
.page-promotions__how-to-claim .page-promotions__section-title {
    color: var(--text-dark); /* Overridden by contrast-fix */
}

.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-promotions__step-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-promotions__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Terms and Conditions */
.page-promotions__terms-list {
    list-style: disc;
    text-align: left;
    max-width: 900px;
    margin: 40px auto;
    padding-left: 25px;
    color: var(--text-dark);
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
    font-size: 1rem;
}

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

.page-promotions__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--primary-color);
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-promotions__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
}

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

    .page-promotions__hero-section {
        padding: 10px 15px 40px; /* Adjusted padding */
    }

    .page-promotions__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-promotions__hero-description {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__card-button,
    .page-promotions__text-link,
    .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;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__promo-card,
    .page-promotions__step-card {
        padding: 20px;
    }

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

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

    .page-promotions__faq-toggle {
        font-size: 1.5rem;
    }

    .page-promotions__faq-answer {
        padding: 0 15px 15px;
    }

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-promotions__text-block {
        margin-bottom: 25px;
    }

    .page-promotions__terms-list {
        padding-left: 20px;
    }

    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already has padding-top */
    }
}