/* style/promotions.css */

/* Base styles for the page content */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Ensure this matches shared.css body background */
}

/* Fixed header spacing */
.page-promotions__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff; /* White text for contrast */
    overflow: hidden;
    padding: 40px 20px;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-promotions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay effect for background image */
}

/* CTA Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-promotions__cta-button--primary {
    background-color: #C30808; /* Red for primary action (Register/Login/Claim) */
    color: #FFFF00; /* Yellow font for contrast */
    border: 2px solid #C30808;
}

.page-promotions__cta-button--primary:hover {
    background-color: #e00b0b;
    transform: translateY(-2px);
}

.page-promotions__cta-button--secondary {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #017439;
    margin-top: 10px;
}

.page-promotions__cta-button--secondary:hover {
    background-color: #005a2d;
    transform: translateY(-2px);
}

/* General Section Styles */
.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #017439; /* Brand primary color for titles */
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* Image styles for content sections */
.page-promotions__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Grid for promotion types */
.page-promotions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* Ensure cards have similar height */
    color: #333333;
}

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

.page-promotions__card-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take available space */
}

/* Steps Grid for "How to find" section */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__step-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 25px;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-promotions__step-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__step-text {
    font-size: 0.95em;
    line-height: 1.5;
}

/* Terms and Conditions List */
.page-promotions__terms-list {
    list-style: none;
    text-align: left;
    max-width: 900px;
    margin: 40px auto;
    padding: 0;
}

.page-promotions__terms-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.6;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promotions__terms-item strong {
    color: #017439;
}

/* FAQ Section */
.page-promotions__faq {
    background-color: #f0f8f0; /* Light green background for FAQ */
    padding-bottom: 80px;
}

.page-promotions__faq-list {
    max-width: 900px;
    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;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-promotions__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #017439;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: "−"; /* Changed by JS */
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__grid,
    .page-promotions__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        flex-direction: column;
        text-align: center;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

    .page-promotions__hero-title {
        font-size: 2.2em;
        margin-top: 20px;
    }

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

    .page-promotions__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__cta-button--secondary {
        margin-top: 15px;
    }

    .page-promotions__section {
        padding: 40px 15px;
    }

    .page-promotions__container {
        padding: 0; /* Remove horizontal padding, let section handle it */
    }

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

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

    .page-promotions__grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__card,
    .page-promotions__step-item,
    .page-promotions__terms-item,
    .page-promotions__faq-item {
        padding: 20px;
    }

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

    .page-promotions__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

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

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for content within sections, if not already handled by container */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure buttons within containers are responsive */
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}

/* Ensure no filter is applied to images */
.page-promotions img {
    filter: none !important;
}

/* Color contrast fixes if needed, though default should be good */
.page-promotions__dark-section {
    background: #017439;
    color: #ffffff;
}

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

.page-promotions__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-promotions__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}