/* style/promotions.css */

/* Base Styles for page-promotions */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background (default body is white) */
    background-color: #ffffff; /* Explicitly set for consistency */
}

.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-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px; /* Minimum height for hero */
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.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; /* Subtle overlay */
    filter: none; /* Ensure no filter changes color */
}

.page-promotions__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    line-height: 1.2;
}

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

/* Call to Action Button */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-promotions__cta-button--primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-promotions__cta-button--secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

/* Section Common Styles */
.page-promotions__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Primary color for titles */
}

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

.page-promotions__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #333333;
}

.page-promotions__text-block--light {
    color: #f0f0f0;
}

/* Overview Section */
.page-promotions__overview-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
}

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

.page-promotions__feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-promotions__feature-icon {
    width: 100%; /* Ensure large images */
    height: auto;
    max-width: 200px; /* Example max width for icon-like images, but ensure min 200px display */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    filter: none; /* Ensure no filter changes color */
}

.page-promotions__feature-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-promotions__feature-description {
    font-size: 1em;
    color: #555555;
}

/* Detailed Promotions Section */
.page-promotions__detailed-promos {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary color background */
    color: #ffffff;
}

.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 40px;
    margin-top: 40px;
}

.page-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Default for mobile */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    filter: none; /* Ensure no filter changes color */
}

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

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

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

.page-promotions__promo-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-promotions__promo-list li {
    margin-bottom: 10px;
    font-size: 1em;
    color: #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.page-promotions__promo-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.page-promotions__list-highlight {
    color: #FFFFFF;
    font-weight: bold;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.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: #f0f8ff; /* Light blue background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-promotions__step-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 1em;
    color: #555555;
}

.page-promotions__text-link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-promotions__text-link:hover {
    color: #1a7bb0;
}

.page-promotions__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    padding: 80px 0;
    background-color: #333333; /* Dark background */
    color: #ffffff;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
    position: relative;
    padding-left: 25px;
    color: #f0f0f0;
}

.page-promotions__terms-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 0;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333;
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    border-top: 1px solid #e0e0e0;
}

.page-promotions__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.page-promotions__faq-question:hover {
    color: #1a7bb0;
}

.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); /* For '-' symbol */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    font-size: 1em;
}

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

.page-promotions__faq-answer p {
    margin: 0;
    padding-bottom: 15px; /* Add padding to bottom of paragraph within answer */
}

/* Final CTA Section */
.page-promotions__final-cta {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-promotions__promo-card {
        flex-direction: row; /* Horizontal layout for desktop */
        text-align: left;
    }

    .page-promotions__promo-card:nth-child(even) {
        flex-direction: row-reverse; /* Alternate image position */
    }

    .page-promotions__promo-image {
        width: 40%; /* Image takes 40% width */
        height: auto; /* Auto height to maintain aspect ratio */
        min-height: 300px; /* Ensure a minimum height for large images */
    }

    .page-promotions__promo-content {
        width: 60%; /* Content takes 60% width */
    }

    .page-promotions__promo-title {
        text-align: left;
    }

    .page-promotions__promo-description {
        text-align: left;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-promotions__hero-title {
        font-size: 2em;
    }

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

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

    .page-promotions__text-block {
        font-size: 0.95em;
    }

    .page-promotions__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    /* Ensure button containers also adapt */
    .page-promotions__cta-center,
    .page-promotions__promo-content {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-promotions__promo-content .page-promotions__cta-button {
        margin-top: 15px; /* Add margin for stacked buttons in cards */
    }

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

    .page-promotions__promo-grid {
        padding: 0 15px; /* Add horizontal padding to the grid */
    }

    .page-promotions__promo-card {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .page-promotions__promo-image {
        height: 200px; /* Adjust height for mobile */
    }

    .page-promotions__promo-content {
        padding: 20px;
    }

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

    /* All images must be responsive */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none; /* Ensure no filter changes color */
    }
    
    /* All image containers must be responsive and prevent overflow */
    .page-promotions__hero-image-wrapper,
    .page-promotions__feature-card,
    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Specific padding for sections on mobile */
    .page-promotions__overview-section .page-promotions__container,
    .page-promotions__detailed-promos .page-promotions__container,
    .page-promotions__how-to-claim .page-promotions__container,
    .page-promotions__terms-conditions .page-promotions__container,
    .page-promotions__faq-section .page-promotions__container,
    .page-promotions__final-cta .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Fixed header offset for hero section on mobile */
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

/* Color Contrast Safeguards */
.page-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

.page-promotions__text-block--light {
    color: #f0f0f0; /* Slightly lighter white for better contrast on brand blue */
}

/* Button contrast already handled with specific background/color */
/* Ensure all text elements inherit or set a high contrast color */
.page-promotions h1, .page-promotions h2, .page-promotions h3, .page-promotions h4, .page-promotions h5, .page-promotions h6 {
    color: inherit; /* Inherit from parent section to ensure contrast */
}

/* Specific overrides for contrast in dark sections */
.page-promotions__dark-bg .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__dark-bg .page-promotions__text-block {
    color: #f0f0f0;
}