/* style/promotions.css */

/* Base Styles for .page-promotions */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
}

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

/* Section Titles */
.page-promotions__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Text Blocks */
.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark sections */
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Default for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

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

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

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

.page-promotions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    color: #ffffff;
    background-color: #0d0d0d; /* Dark background for hero */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5; /* Overlay for text readability */
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

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

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

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

/* Sections with specific background/text colors */
.page-promotions__dark-bg {
    background-color: #0d0d0d; /* Dark background for sections */
    color: #ffffff;
}

.page-promotions__light-bg {
    background-color: #ffffff; /* Light background for sections */
    color: #333333;
}
.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__text-block,
.page-promotions__light-bg .page-promotions__card-title,
.page-promotions__light-bg .page-promotions__card-text,
.page-promotions__light-bg .page-promotions__step-title,
.page-promotions__light-bg .page-promotions__step-description,
.page-promotions__light-bg .page-promotions__terms-item,
.page-promotions__light-bg .page-promotions__benefit-card {
    color: #333333; /* Ensure dark text on light background */
}
.page-promotions__light-bg a {
    color: #26A9E0; /* Link color on light background */
}
.page-promotions__light-bg a:hover {
    color: #1e87b7;
}


/* Overview Section */
.page-promotions__overview-section {
    padding: 80px 0;
}

/* Types of Promotions Section */
.page-promotions__types-section {
    padding: 80px 0;
}

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

.page-promotions__promo-card {
    background-color: #1a1a1a; /* Slightly lighter dark for cards */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have similar height */
}

.page-promotions__promo-card:hover {
    transform: translateY(-10px);
}

.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 size enforcement */
    min-height: 200px; /* Min size enforcement */
}

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

.page-promotions__card-text {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to grow */
}

.page-promotions__promo-card .page-promotions__btn-secondary {
    width: fit-content;
    margin: 0 auto;
}

/* How to Get Promotions Section */
.page-promotions__how-to-section {
    padding: 80px 0;
}

.page-promotions__step-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-promotions__step-item {
    background-color: #f8f8f8;
    border-left: 5px solid #26A9E0;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-promotions__step-description {
    font-size: 1em;
    color: #555555;
}
.page-promotions__step-description a {
    color: #26A9E0;
    text-decoration: underline;
}
.page-promotions__step-description a:hover {
    color: #1e87b7;
}

.page-promotions__cta-button {
    margin-top: 40px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
    padding: 80px 0;
}

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

.page-promotions__terms-item {
    margin-bottom: 10px;
    font-size: 1em;
}

/* Benefits Section */
.page-promotions__benefits-section {
    padding: 80px 0;
}

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

.page-promotions__benefit-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    min-height: 200px; /* Ensure consistent card height */
}

.page-promotions__benefit-card .page-promotions__card-title {
    color: #26A9E0;
    font-size: 1.4em;
}

.page-promotions__benefit-card .page-promotions__card-text {
    color: #555555;
    font-size: 1em;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
}

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

.page-promotions__faq-item {
    background-color: #1a1a1a; /* Darker background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px 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: #26A9E0; /* Primary color for question background */
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

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

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

.page-promotions__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #222222; /* Inner background for answer */
    color: #cccccc;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-promotions__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #cccccc; /* Text color for FAQ answer */
}

/* Final CTA Section */
.page-promotions__cta-final-section {
    padding: 80px 0;
    text-align: center;
}

.page-promotions__cta-final-section .page-promotions__section-title {
    color: #333333;
}

.page-promotions__cta-final-section .page-promotions__text-block {
    color: #555555;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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


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

@media (max-width: 768px) {
    /* Mobile image adaptation */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile video adaptation (if any, though none currently in HTML) */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile button adaptation */
    .page-promotions__cta-button,
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button containers for mobile */
    .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-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    .page-promotions__container {
        padding: 20px 15px;
    }

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

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

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

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

    .page-promotions__promo-grid,
    .page-promotions__benefits-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__promo-card,
    .page-promotions__benefit-card {
        padding: 20px;
        min-height: auto; /* Allow card height to adjust */
    }

    .page-promotions__card-image {
        height: auto !important; /* Override fixed height for mobile */
        max-height: 250px; /* Optional: cap max height on mobile if needed */
    }

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

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

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

/* Ensure content area images maintain min-width/height if not scaled down below 200px due to container size */
.page-promotions img {
    min-width: 200px;
    min-height: 200px;
}
/* Override for card images where design allows them to be smaller if container shrinks */
.page-promotions__promo-card .page-promotions__card-image {
    min-width: unset; /* Allow card images to shrink with their container */
    min-height: unset;
}

/* Color contrast safety checks */
/* Ensure dark text on light backgrounds */
.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__text-block,
.page-promotions__light-bg .page-promotions__step-title,
.page-promotions__light-bg .page-promotions__step-description,
.page-promotions__light-bg .page-promotions__terms-item,
.page-promotions__light-bg .page-promotions__benefit-card .page-promotions__card-title,
.page-promotions__light-bg .page-promotions__benefit-card .page-promotions__card-text {
    color: #333333; /* Dark text for light background */
}

/* Ensure light text on dark backgrounds */
.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-bg .page-promotions__text-block,
.page-promotions__dark-bg .page-promotions__promo-card .page-promotions__card-text,
.page-promotions__dark-bg .page-promotions__terms-item,
.page-promotions__dark-bg .page-promotions__faq-answer p {
    color: #ffffff; /* Light text for dark background */
}

/* Specific card titles on dark bg */
.page-promotions__dark-bg .page-promotions__promo-card .page-promotions__card-title {
    color: #26A9E0; /* Brand color, should have good contrast with dark bg */
}

/* FAQ question on dark bg */
.page-promotions__faq-question {
    background-color: #26A9E0; /* Brand color */
    color: #ffffff; /* White text for good contrast */
}
.page-promotions__faq-item.active .page-promotions__faq-toggle {
    color: #ffffff; /* Ensure toggle is white when active */
}

/* Ensure button text is always visible */
.page-promotions__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
}
.page-promotions__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
}
.page-promotions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}