/* style/promotions.css */

/* Base styles for the page promotions section */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Assuming body has dark background from shared.css */
}

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

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__dark-bg {
    background-color: #26A9E0; /* Primary brand color for dark sections */
    color: #ffffff;
}

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff; /* Default for light text on dark background */
}

.page-promotions__section-title--light {
    color: #ffffff;
}

.page-promotions__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #f0f0f0; /* Slightly lighter for descriptions */
}

.page-promotions__section-description--light {
    color: #f0f0f0;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    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;
    cursor: pointer;
    margin: 10px;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-promotions__btn-primary {
    background-color: #EA7C07; /* Login color for primary actions */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    background-color: #d16b06;
}

.page-promotions__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Primary brand color for secondary actions */
    border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b7;
    border-color: #1e87b7;
}

/* Hero Section */
.page-promotions__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 80px 0;
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.page-promotions__hero-section .page-promotions__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-promotions__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

.page-promotions__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Offer Types Section */
.page-promotions__offer-types {
    background-color: #FFFFFF; /* Light background for contrast */
    color: #333333; /* Dark text for contrast */
}

.page-promotions__offer-types .page-promotions__section-title,
.page-promotions__offer-types .page-promotions__section-description {
    color: #333333;
}

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

.page-promotions__card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    color: #333333; /* Dark text for cards */
}

.page-promotions__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-promotions__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #26A9E0; /* Primary color for card titles */
}

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

/* How To Claim Section */
.page-promotions__how-to-claim {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-promotions__step-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.page-promotions__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

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

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    background-color: #FFFFFF;
    color: #333333;
}

.page-promotions__terms-conditions .page-promotions__section-title,
.page-promotions__terms-conditions .page-promotions__section-description {
    color: #333333;
}

/* FAQ Section */
.page-promotions__faq {
    background-color: #f0f8ff; /* Light blue background for FAQ */
    color: #333333;
}

.page-promotions__faq .page-promotions__section-title {
    color: #26A9E0;
}

.page-promotions__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #f5f5f5;
}

.page-promotions__faq-question h3 {
    margin: 0;
    font-size: 1.1em; /* Ensure h3 within faq-question is not too large */
    color: #333333;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 20px !important; /* Padding when active */
}

.page-promotions__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #555555;
}

.page-promotions__faq-contact-btn {
    margin-top: 30px;
}

/* Bottom CTA Section */
.page-promotions__cta-bottom {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 80px 0;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-promotions__hero-content {
        max-width: 100%;
        text-align: center;
    }
    .page-promotions__hero-image-wrapper {
        max-width: 100%;
        margin-top: 30px;
    }
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__card-title,
    .page-promotions__step-title {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 60px 0;
        min-height: auto;
    }
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding: 0 15px; /* Add padding for mobile content */
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__hero-image-wrapper,
    .page-promotions__grid-layout,
    .page-promotions__step-grid,
    .page-promotions__card,
    .page-promotions__step-card,
    .page-promotions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0px !important; /* Reset padding to be handled by container */
        padding-right: 0px !important; /* Reset padding to be handled by container */
    }
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-promotions__hero-section .page-promotions__container {
        flex-direction: column;
    }
    .page-promotions__hero-content {
        max-width: 100%;
    }
    .page-promotions__hero-image-wrapper {
        max-width: 100%;
    }

    /* Button responsiveness */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 10px 0 !important; /* Stack buttons vertically */
    }

    .page-promotions__cta-buttons {
        flex-direction: column !important; /* Stack buttons in mobile */
        gap: 10px;
    }

    .page-promotions__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-promotions__faq-question h3 {
        font-size: 1em;
    }
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
}