/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Body background is white by default */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* Assuming shared.css handles body padding-top for header offset */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: none !important; /* Ensure no image filter */
}

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 0 20px;
}

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

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Primary color for titles */
}

.page-promotions__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

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

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

.page-promotions__card,
.page-promotions__step-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    filter: none !important; /* Ensure no image filter */
}

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

.page-promotions__card-text,
.page-promotions__step-text {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Make text content grow to fill space */
}

.page-promotions__card .page-promotions__btn-primary,
.page-promotions__card .page-promotions__btn-secondary {
    margin-top: auto; /* Push buttons to the bottom */
    width: auto; /* Allow buttons to size naturally within card */
    display: inline-block; /* For side-by-side buttons */
    margin-right: 10px; /* Spacing between buttons in a card */
    margin-bottom: 10px; /* For stacked buttons on mobile */
}

/* Dark Background Section */
.page-promotions__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff; /* White text for contrast */
}

.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-bg .page-promotions__section-description,
.page-promotions__dark-bg .page-promotions__step-title,
.page-promotions__dark-bg .page-promotions__step-text {
    color: #ffffff;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for max-width 100% on mobile */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

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

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

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

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

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

.page-promotions__terms-item {
    background: #f9f9f9;
    border-left: 5px solid #26A9E0;
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 5px;
    color: #444444;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-promotions__faq-item {
    background: #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: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details summary */
}

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

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-promotions__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #e0e0e0;
}

/* Call to Action Section */
.page-promotions__call-to-action {
    padding: 80px 20px;
}

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

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

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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__section,
    .page-promotions__container,
    .page-promotions__card,
    .page-promotions__step-card,
    .page-promotions__faq-item,
    .page-promotions__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-promotions__promotion-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no image filter */
    }

    .page-promotions__card-image {
        height: auto; /* Allow image height to adjust */
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Ensure button containers wrap */
    .page-promotions__hero-cta-buttons,
    .page-promotions__cta-buttons,
    .page-promotions__card .page-promotions__btn-primary,
    .page-promotions__card .page-promotions__btn-secondary {
        display: flex;
        flex-direction: column; /* Stack buttons */
        gap: 10px;
    }
    .page-promotions__card .page-promotions__btn-primary,
    .page-promotions__card .page-promotions__btn-secondary {
        margin-right: 0; /* Remove horizontal margin */
    }

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

/* Content area images CSS dimensions lower bound check */
/* This rule is to prevent small images in the content area. */
/* It targets any img within .page-promotions and ensures its display size is not smaller than 200px. */
/* This is a general safeguard; specific image classes might override it with larger values. */
.page-promotions img:not(.page-promotions__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific card image minimums */
.page-promotions__card-image {
    min-width: 200px;
    min-height: 200px;
}