/* style/promotions.css */
:root {
    --j882-primary-color: #11A84E;
    --j882-secondary-color: #22C768;
    --j882-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --j882-card-bg: #11271B;
    --j882-background: #08160F;
    --j882-text-main: #F2FFF6;
    --j882-text-secondary: #A7D9B8;
    --j882-border-color: #2E7A4E;
    --j882-glow-color: #57E38D;
    --j882-gold-color: #F2C14E;
    --j882-divider-color: #1E3A2A;
    --j882-deep-green: #0A4B2C;
}

.page-promotions {
    color: var(--j882-text-main);
    background-color: var(--j882-background);
    font-family: 'Arial', sans-serif;
}

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

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--j882-deep-green);
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Enforce min size */
    min-height: 200px;
}

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    position: relative;
    color: var(--j882-text-main);
}

.page-promotions__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--j882-gold-color);
    margin-bottom: 20px;
    max-width: 100%;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

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

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    min-width: 180px;
    min-height: 48px;
}

.page-promotions__btn-primary {
    background: var(--j882-button-gradient);
    color: var(--j882-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-promotions__btn-secondary:hover {
    background-color: rgba(34, 199, 104, 0.1);
    transform: translateY(-3px);
}

.page-promotions__intro-section,
.page-promotions__featured-promos-section,
.page-promotions__terms-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section,
.page-promotions__cta-final-section {
    padding: 80px 0;
    background-color: var(--j882-background);
    text-align: center;
}

.page-promotions__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--j882-primary-color);
    margin-bottom: 25px;
    text-shadow: 0 0 8px rgba(17, 168, 78, 0.3);
}

.page-promotions__section-description {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--j882-text-secondary);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__promo-card {
    background-color: var(--j882-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--j882-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-promotions__promo-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px;
}

.page-promotions__promo-title {
    font-size: 1.8em;
    color: var(--j882-gold-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__promo-description {
    font-size: 1em;
    color: var(--j882-text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__text-link {
    color: var(--j882-secondary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-promotions__text-link:hover {
    color: var(--j882-gold-color);
}

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

.page-promotions__step-card {
    background-color: var(--j882-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--j882-border-color);
    transition: transform 0.3s ease;
}

.page-promotions__step-card:hover {
    transform: translateY(-5px);
}

.page-promotions__step-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--j882-gold-color);
    margin-bottom: 15px;
    background: rgba(242, 193, 78, 0.1);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--j882-gold-color);
}

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

.page-promotions__step-description {
    font-size: 1em;
    color: var(--j882-text-secondary);
    line-height: 1.6;
}

.page-promotions__cta-bottom {
    margin-top: 50px;
}

.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: var(--j882-card-bg);
    border: 1px solid var(--j882-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--j882-text-main);
    cursor: pointer;
    background-color: var(--j882-deep-green);
    border-bottom: 1px solid var(--j882-border-color);
    list-style: none;
    position: relative;
}

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

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--j882-gold-color);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--j882-text-secondary);
    background-color: var(--j882-card-bg);
}

.page-promotions__cta-final-section {
    background-color: var(--j882-deep-green);
    padding: 100px 0;
}

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

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

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

    .page-promotions__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-promotions__main-title {
        font-size: 2.2em;
    }

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

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-promotions__intro-section,
    .page-promotions__featured-promos-section,
    .page-promotions__terms-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final-section {
        padding: 50px 0;
    }

    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-promotions__section-description {
        font-size: 0.95em;
    }

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

    .page-promotions__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-promotions__promo-title {
        font-size: 1.5em;
    }

    .page-promotions__step-title {
        font-size: 1.3em;
    }

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

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

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.8em;
    }

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