/* style/promotions.css */

/* Base Styles for the Promotions Page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.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;
    filter: brightness(0.5); /* Darken image for text readability, not changing color */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-promotions__hero-title {
    font-size: 3em;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-promotions__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* Section Titles and Descriptions */
.page-promotions__section-title {
    font-size: 2.5em;
    color: #FFFFFF; /* Light color for dark body bg */
    text-align: center;
    margin-bottom: 20px;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly lighter for description */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Dark Section Background */
.page-promotions__dark-section {
    background-color: #0a0a0a; /* Match body background */
    padding: 60px 0;
    color: #ffffff; /* Ensure light text on dark background */
}

.page-promotions__dark-bg {
    background-color: #017439; /* Primary brand color as background */
    color: #ffffff; /* White text on brand color */
    padding: 60px 0;
}

/* Current Offers Section */
.page-promotions__current-offers-section {
    padding: 60px 0;
}

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

.page-promotions__offer-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark bg */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: #ffffff; /* Light text for card content */
    transition: transform 0.3s ease;
}

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

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

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__card-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
    color: #FFFF00; /* Yellow for hover, matches login/register text */
}

.page-promotions__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    padding: 60px 0;
    color: #ffffff;
}

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

.page-promotions__step-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-promotions__step-title {
    font-size: 1.4em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-promotions__step-text {
    font-size: 0.95em;
    color: #f0f0f0;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
    padding: 60px 0;
    background-color: #017439; /* Primary brand color as background */
    color: #ffffff;
}

.page-promotions__why-choose-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-promotions__why-choose-text {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-promotions__why-choose-text p {
    margin-bottom: 20px;
}

.page-promotions__why-choose-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-promotions__why-choose-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: #0a0a0a; /* Match body background */
    color: #ffffff;
}

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

.page-promotions__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    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 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-promotions__faq-answer p {
    margin-bottom: 15px;
}

.page-promotions__faq-answer a {
    color: #FFFF00; /* Yellow for links in FAQ */
    text-decoration: underline;
}

/* CTA Bottom Section */
.page-promotions__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

.page-promotions__cta-bottom-content {
    max-width: 800px;
}

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

/* Button Styles */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary,
.page-promotions__btn-link {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login text color */
    border: 2px solid #C30808;
}

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

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

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

.page-promotions__btn-tertiary {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-promotions__btn-tertiary:hover {
    background-color: #005f2f;
    border-color: #005f2f;
}

.page-promotions__btn-link {
    background: none;
    border: none;
    color: #FFFF00;
    text-decoration: underline;
    padding: 5px 10px;
}

.page-promotions__btn-link:hover {
    color: #FFFFFF;
}

/* Image optimization (Global for content area images) */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

    .page-promotions__why-choose-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-promotions__hero-cta-buttons,
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-tertiary,
    .page-promotions__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

    .page-promotions__offer-card,
    .page-promotions__step-card {
        margin: 0 15px;
    }

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

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile video responsiveness (if any) */
    .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__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

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