/* style/resources-latest-promotions.css */

.page-resources-latest-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-resources-latest-promotions__text-center {
    text-align: center;
}

.page-resources-latest-promotions__dark-bg {
    background-color: #1A202C;
    color: #ffffff;
}

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

/* Hero Section */
.page-resources-latest-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px);
    overflow: hidden;
    text-align: center;
}

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

.page-resources-latest-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.page-resources-latest-promotions__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-resources-latest-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources-latest-promotions__btn-primary {
    background-color: #FFD700;
    color: #1A202C;
    border: 2px solid #FFD700;
}

.page-resources-latest-promotions__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-resources-latest-promotions__btn-secondary {
    background-color: #1A202C;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-resources-latest-promotions__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
    transform: translateY(-2px);
}

/* General Section Styling */
.page-resources-latest-promotions__why-section, 
.page-resources-latest-promotions__promotions-type-section, 
.page-resources-latest-promotions__how-to-claim-section, 
.page-resources-latest-promotions__terms-section, 
.page-resources-latest-promotions__faq-section, 
.page-resources-latest-promotions__cta-final-section {
    padding: 80px 0;
}

.page-resources-latest-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: inherit;
}

.page-resources-latest-promotions__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: inherit;
}

.page-resources-latest-promotions__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Why Section */
.page-resources-latest-promotions__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-latest-promotions__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-resources-latest-promotions__feature-item:hover {
    transform: translateY(-5px);
}

.page-resources-latest-promotions__feature-title {
    font-size: 1.5em;
    color: #1A202C;
    margin-bottom: 15px;
}

.page-resources-latest-promotions__feature-description {
    color: #555;
}

/* Promotions Type Section */
.page-resources-latest-promotions__promo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources-latest-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-resources-latest-promotions__promo-card:hover {
    transform: translateY(-5px);
}

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

.page-resources-latest-promotions__card-content {
    padding: 25px;
    color: #ffffff;
}

.page-resources-latest-promotions__card-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-resources-latest-promotions__card-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: #e0e0e0;
}

/* How to Claim Section */
.page-resources-latest-promotions__steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
}

.page-resources-latest-promotions__step-item {
    background-color: #f9f9f9;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
    padding-left: 70px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources-latest-promotions__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #FFD700;
    color: #1A202C;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3em;
}

.page-resources-latest-promotions__step-title {
    font-size: 1.3em;
    color: #1A202C;
    margin-bottom: 5px;
}

.page-resources-latest-promotions__step-item p {
    color: #555;
}

.page-resources-latest-promotions__step-item a {
    color: #FFD700;
    text-decoration: underline;
}

/* Terms Section */
.page-resources-latest-promotions__terms-list {
    list-style: disc;
    max-width: 900px;
    margin: 40px auto;
    padding-left: 40px;
    color: #f0f0f0;
}

.page-resources-latest-promotions__term-item {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-resources-latest-promotions__button-group {
    text-align: center;
    margin-top: 40px;
}

.page-resources-latest-promotions__button-group .page-resources-latest-promotions__cta-button {
    margin: 0 10px;
}

/* FAQ Section */
.page-resources-latest-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto;
}

.page-resources-latest-promotions__faq-item {
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-resources-latest-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #1A202C;
    cursor: pointer;
    background-color: #eee;
    transition: background-color 0.3s ease;
}

.page-resources-latest-promotions__faq-question:hover {
    background-color: #e0e0e0;
}

.page-resources-latest-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources-latest-promotions__faq-item.active .page-resources-latest-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-latest-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555;
}

.page-resources-latest-promotions__faq-item.active .page-resources-latest-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 15px 25px;
}

/* Final CTA Section */
.page-resources-latest-promotions__cta-final-section .page-resources-latest-promotions__section-title {
    color: #FFD700;
}

.page-resources-latest-promotions__cta-final-section .page-resources-latest-promotions__section-intro {
    color: #f0f0f0;
}

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

@media (max-width: 768px) {
    .page-resources-latest-promotions__hero-section {
        min-height: 450px;
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-latest-promotions__hero-content {
        padding: 15px;
    }

    .page-resources-latest-promotions__main-title {
        font-size: 2.5em;
    }

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

    .page-resources-latest-promotions__cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-latest-promotions__button-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources-latest-promotions__button-group .page-resources-latest-promotions__cta-button {
        margin: 0;
    }

    .page-resources-latest-promotions__why-section, 
    .page-resources-latest-promotions__promotions-type-section, 
    .page-resources-latest-promotions__how-to-claim-section, 
    .page-resources-latest-promotions__terms-section, 
    .page-resources-latest-promotions__faq-section, 
    .page-resources-latest-promotions__cta-final-section {
        padding: 50px 0;
    }

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

    .page-resources-latest-promotions__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-resources-latest-promotions__features-grid, 
    .page-resources-latest-promotions__promo-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-latest-promotions__feature-item, 
    .page-resources-latest-promotions__promo-card {
        padding: 20px;
    }

    .page-resources-latest-promotions__card-image {
        height: 200px;
    }

    .page-resources-latest-promotions__steps-list, 
    .page-resources-latest-promotions__terms-list, 
    .page-resources-latest-promotions__faq-list {
        padding: 0 15px;
    }

    .page-resources-latest-promotions__step-item {
        padding-left: 60px;
        padding: 20px;
    }

    .page-resources-latest-promotions__step-item::before {
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }

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

    .page-resources-latest-promotions__faq-answer {
        padding: 0 20px;
    }

    .page-resources-latest-promotions__faq-item.active .page-resources-latest-promotions__faq-answer {
        padding: 10px 20px;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-resources-latest-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-latest-promotions__section,
    .page-resources-latest-promotions__card,
    .page-resources-latest-promotions__container,
    .page-resources-latest-promotions__hero-section,
    .page-resources-latest-promotions__why-section,
    .page-resources-latest-promotions__promotions-type-section,
    .page-resources-latest-promotions__how-to-claim-section,
    .page-resources-latest-promotions__terms-section,
    .page-resources-latest-promotions__faq-section,
    .page-resources-latest-promotions__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
}