/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    color: #ffffff; /* Default text color for dark background */
    background-color: var(--dark-bg-1); /* Inherited from shared, assuming dark */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Header offset to prevent content being hidden by fixed header */
.page-promotions__hero-section {
    padding-top: var(--header-offset, 120px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    background-color: #017439; /* Use primary brand color for hero background */
    color: #ffffff;
    padding-bottom: 60px;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Use custom color for prominent title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

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

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* General Section Styles */
.page-promotions__overview-section,
.page-promotions__new-member-section,
.page-promotions__rebate-section,
.page-promotions__special-offers-section,
.page-promotions__vip-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section,
.page-promotions__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-promotions__dark-section {
    background-color: #0d0d0d;
    color: #ffffff;
}

.page-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #017439;
    position: relative;
    padding-bottom: 10px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFFF00;
    border-radius: 2px;
}

.page-promotions__dark-section .page-promotions__section-title {
    color: #ffffff;
}
.page-promotions__dark-section .page-promotions__section-title::after {
    background-color: #017439;
}


.page-promotions__text-block {
    max-width: 900px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    line-height: 1.8;
}

/* Feature Grid */
.page-promotions__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-promotions__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-promotions__feature-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__feature-title {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-promotions__feature-description {
    color: #f0f0f0;
}

/* Content Wrapper for sections with image and text */
.page-promotions__content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    text-align: left;
}

.page-promotions__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-promotions__image-card {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-promotions__text-card {
    flex: 1;
    min-width: 300px;
}

.page-promotions__card-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #017439;
}

.page-promotions__light-bg .page-promotions__card-title {
    color: #017439;
}
.page-promotions__dark-section .page-promotions__card-title {
    color: #FFFF00;
}

/* Rebate Grid */
.page-promotions__rebate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-promotions__rebate-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-promotions__rebate-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

/* List styles */
.page-promotions__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-promotions__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-promotions__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFFF00;
    font-size: 1.2em;
    line-height: 1;
}

.page-promotions__light-bg .page-promotions__list-item {
    color: #333333;
}
.page-promotions__light-bg .page-promotions__list-item::before {
    color: #017439;
}


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

.page-promotions__step-card {
    background-color: #f8f8f8;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: left;
}

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

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

.page-promotions__terms-info {
    margin-top: 60px;
    background-color: #f0f0f0;
    color: #333333;
    padding: 40px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-promotions__terms-info .page-promotions__card-title {
    color: #C30808;
}


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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-title {
    font-size: 1.3em;
    color: #ffffff;
    margin: 0;
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00;
    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 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.02);
    color: #f0f0f0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important;
    padding: 20px 30px;
}

.page-promotions__faq-answer .page-promotions__text-block {
    margin: 0;
}


/* CTA Section */
.page-promotions__cta-section {
    background-color: #017439;
    color: #ffffff;
    padding: 80px 0;
}

.page-promotions__cta-container {
    max-width: 1000px;
}

.page-promotions__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFF00;
}

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

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

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

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

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

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

.page-promotions__btn-secondary:hover {
    background-color: #FFFF00;
    color: #017439;
}

.page-promotions__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-promotions__btn-register:hover {
    background-color: #9c0606;
    border-color: #9c0606;
}

.page-promotions__btn-login {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-promotions__btn-login:hover {
    background-color: #9c0606;
    border-color: #9c0606;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__card-title {
        font-size: 1.8em;
    }
    .page-promotions__cta-title {
        font-size: 2.5em;
    }
    .page-promotions__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-promotions__content-wrapper--reverse {
        flex-direction: column;
    }
    .page-promotions__image-card,
    .page-promotions__text-card {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Mobile-specific adjustments */
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__card-title {
        font-size: 1.5em;
    }
    .page-promotions__cta-title {
        font-size: 2em;
    }
    .page-promotions__overview-section,
    .page-promotions__new-member-section,
    .page-promotions__rebate-section,
    .page-promotions__special-offers-section,
    .page-promotions__vip-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding: 0 15px;
    }

    /* Image responsiveness for all images in content area */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video responsiveness (if any video is added later) */
    .page-promotions video,
    .page-promotions__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-promotions__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }

    /* Button responsiveness */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-register,
    .page-promotions__btn-login {
        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-buttons,
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* General containers for mobile padding/overflow */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__content-wrapper,
    .page-promotions__feature-grid,
    .page-promotions__rebate-grid,
    .page-promotions__steps-grid,
    .page-promotions__faq-list,
    .page-promotions__terms-info {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific adjustment for FAQ item padding */
    .page-promotions__faq-question,
    .page-promotions__faq-answer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}