/* style/promotions.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-promotions {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Container for consistent content width */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Fallback if image not loaded */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    color: #FFFF00; /* Register/Login font color for emphasis */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

/* Section Titles */
.page-promotions__section-title {
    font-size: 2.5em;
    color: #FFFF00; /* Use yellow for titles for contrast and brand identity */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* Promotion Cards Section */
.page-promotions__current-promotions-section {
    padding: 60px 0;
    background-color: rgba(1, 116, 57, 0.1); /* Subtle brand color background */
}

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

.page-promotions__promotion-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-promotions__card-title {
    font-size: 1.5em;
    color: #FFFF00; /* Yellow for card titles */
    margin-bottom: 15px;
}

.page-promotions__card-description {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    padding: 60px 0;
    background-color: rgba(1, 116, 57, 0.2);
}

.page-promotions__claim-steps {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__claim-step-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #017439;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-promotions__claim-step-item p {
    color: #e0e0e0;
}

.page-promotions__claim-step-item p a {
    color: #C30808; /* Register/Login button color for links */
    text-decoration: underline;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions-section {
    padding: 60px 0;
    background-color: rgba(1, 116, 57, 0.15);
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 30px;
    margin-top: 40px;
    color: #e0e0e0;
}

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

/* Why Choose Section */
.page-promotions__why-choose-section {
    padding: 60px 0;
    background-color: rgba(1, 116, 57, 0.25);
}

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

.page-promotions__advantage-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(1, 116, 57, 0.5);
}

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

.page-promotions__advantage-description {
    color: #e0e0e0;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: rgba(1, 116, 57, 0.1);
}

.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background: rgba(255, 255, 255, 0.05);
    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;
    background-color: rgba(1, 116, 57, 0.5); /* Brand color for question background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-question:hover {
    background-color: rgba(1, 116, 57, 0.7);
}

.page-promotions__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00;
    margin-left: 20px;
    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-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.03);
}

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

.page-promotions__faq-answer p {
    color: #e0e0e0;
    margin: 0;
}

/* Call to Action Section */
.page-promotions__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Strong brand color background */
}

.page-promotions__cta-section .page-promotions__container {
    background-color: transparent; /* Container itself doesn't need background here */
    padding: 20px;
}

.page-promotions__cta-title {
    font-size: 2.8em;
    color: #FFFF00;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__cta-description {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Button Styles (General) */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding in width */
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

.page-promotions__btn-primary:hover {
    background-color: #e31a1a;
    border-color: #e31a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-promotions__hero-section {
        min-height: 400px;
        padding: 60px 0;
    }

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

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

    .page-promotions__hero-buttons,
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

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

    .page-promotions__promotions-grid,
    .page-promotions__advantages-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-promotions__card-image {
        height: 180px;
    }

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

    .page-promotions__claim-step-item,
    .page-promotions__advantage-card,
    .page-promotions__faq-item {
        padding: 20px;
    }

    .page-promotions__step-title,
    .page-promotions__advantage-title {
        font-size: 1.2em;
    }

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

    .page-promotions__faq-title {
        font-size: 1.1em;
    }

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

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

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

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

    /* Mobile image responsiveness for all images within .page-promotions */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Video section specific adjustment */
    }
}