/* style/promotions.css */

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

.page-promotions__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    color: var(--text-light);
    background-color: var(--bg-dark);
    overflow: hidden;
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2;
}

.page-promotions__hero-section .page-promotions__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.page-promotions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--secondary-color);
}

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

.page-promotions__section-description {
    font-size: 1.1em;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
}

.page-promotions__overview-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__cta-section {
    padding: 80px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-promotions__types-section .page-promotions__section-title,
.page-promotions__terms-section .page-promotions__section-title,
.page-promotions__cta-section .page-promotions__section-title {
    color: var(--secondary-color);
}

.page-promotions__types-section .page-promotions__section-description,
.page-promotions__terms-section .page-promotions__section-description,
.page-promotions__cta-section .page-promotions__section-description {
    color: var(--secondary-color);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: center;
    cursor: pointer;
}

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

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

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

.page-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87c0;
    border-color: #1e87c0;
}

.page-promotions__cta-btn {
    margin-top: 30px;
    margin-bottom: 20px;
}

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

.page-promotions__feature-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e0e0e0;
}

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

.page-promotions__feature-card .page-promotions__card-text {
    color: var(--text-dark);
    line-height: 1.6;
}

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

.page-promotions__promo-card {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
}

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

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

.page-promotions__promo-card .page-promotions__card-text {
    color: var(--text-dark);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* How-To Steps */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-promotions__step-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e0e0e0;
}

.page-promotions__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.page-promotions__step-text {
    color: var(--text-dark);
    line-height: 1.6;
}

.page-promotions__how-to-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Terms List */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__terms-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-promotions__terms-subtitle {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-promotions__terms-text {
    line-height: 1.7;
    color: var(--secondary-color);
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
    border-bottom: 1px solid #e0e0e0;
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: 1px solid var(--primary-color);
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: '−';
}

.page-promotions__faq-answer {
    padding: 20px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Ensure details summary marker is hidden */
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-promotions__faq-item summary {
    list-style: none;
}

/* CTA Section */
.page-promotions__cta-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-promotions__cta-section .page-promotions__btn-primary,
.page-promotions__cta-section .page-promotions__btn-secondary {
    margin: 15px;
}

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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 0.95em;
    }
    .page-promotions__overview-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__faq-section,
    .page-promotions__types-section,
    .page-promotions__terms-section,
    .page-promotions__cta-section {
        padding: 50px 15px;
    }
    
    .page-promotions__feature-cards,
    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .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;
        margin: 10px 0 !important;
    }
    .page-promotions__hero-section .page-promotions__btn-primary {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .page-promotions__cta-section .page-promotions__btn-primary,
    .page-promotions__cta-section .page-promotions__btn-secondary {
        margin: 10px auto !important;
        display: block !important;
    }

    /* Images responsive */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__promo-image {
        height: auto !important;
        max-height: 250px;
    }

    /* Content area overflow */
    .page-promotions__container,
    .page-promotions__promo-card,
    .page-promotions__feature-card,
    .page-promotions__step-item,
    .page-promotions__terms-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-promotions__hero-section .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Content area image size check (min 200px) */
    /* These rules ensure content images are not smaller than 200px */
    .page-promotions__promo-image, .page-promotions__how-to-image {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.6em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-promotions__feature-card .page-promotions__card-title,
    .page-promotions__promo-card .page-promotions__card-title,
    .page-promotions__step-title,
    .page-promotions__terms-subtitle {
        font-size: 1.3em;
    }
    .page-promotions__faq-question {
        font-size: 1em;
    }
}

/* Color Contrast Fixes (if needed, based on body default white bg) */
.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__section-description,
.page-promotions__light-bg .page-promotions__card-title,
.page-promotions__light-bg .page-promotions__card-text,
.page-promotions__light-bg .page-promotions__step-title,
.page-promotions__light-bg .page-promotions__step-text,
.page-promotions__light-bg .page-promotions__faq-question,
.page-promotions__light-bg .page-promotions__faq-answer {
    color: var(--text-dark); /* Ensure dark text on light background */
}

.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-bg .page-promotions__section-description,
.page-promotions__dark-bg .page-promotions__terms-subtitle,
.page-promotions__dark-bg .page-promotions__terms-text {
    color: var(--text-light); /* Ensure light text on dark background */
}

.page-promotions__promo-card.page-promotions__light-bg .page-promotions__card-title,
.page-promotions__promo-card.page-promotions__light-bg .page-promotions__card-text {
    color: var(--text-dark);
}

.page-promotions__promo-card.page-promotions__light-bg .page-promotions__btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: var(--secondary-color);
}

.page-promotions__promo-card.page-promotions__light-bg .page-promotions__btn-secondary:hover {
    color: var(--secondary-color);
    background-color: var(--primary-color);
}