/* style/promotions.css */
/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though body is default white */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF; /* White text for dark background */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-promotions__hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-promotions__hero-content {
    flex: 1;
    text-align: center;
}

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

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

.page-promotions__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px; /* Constrain image width on larger screens */
}

.page-promotions__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure no extra space below image */
}

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

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent inner padding */
    box-sizing: border-box;
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand primary color for titles */
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333;
}

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

.page-promotions__text-block a:hover {
    color: #1a7bb7; /* Darker shade for hover */
}

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

.page-promotions__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #333333;
}

.page-promotions__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover; /* Ensure image covers the area */
}

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

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

.page-promotions__card-text a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-promotions__card-text a:hover {
    color: #1a7bb7;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.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: #d16b06;
    border-color: #d16b06;
}

.page-promotions__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

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

/* Dark Background Sections */
.page-promotions__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF; /* White text for dark background */
}

.page-promotions__dark-bg .page-promotions__section-title {
    color: #FFFFFF; /* White title for dark background */
}

.page-promotions__dark-bg .page-promotions__text-block,
.page-promotions__dark-bg .page-promotions__list-item {
    color: #FFFFFF;
}

.page-promotions__dark-bg .page-promotions__text-block a,
.page-promotions__dark-bg .page-promotions__list-item a {
    color: #FFFFFF; /* White link text on dark background */
    text-decoration: underline;
}

.page-promotions__dark-bg .page-promotions__text-block a:hover,
.page-promotions__dark-bg .page-promotions__list-item a:hover {
    color: #f0f0f0; /* Slightly lighter white for hover */
}

/* List Styles */
.page-promotions__steps-list,
.page-promotions__terms-list,
.page-promotions__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__list-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items on dark bg */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-promotions__dark-bg .page-promotions__list-item {
    background: rgba(0, 0, 0, 0.1); /* Slightly transparent black for items on primary color bg */
    color: #FFFFFF;
}

.page-promotions__list-item strong {
    color: #FFFFFF; /* Ensure strong text is white on dark background */
}

/* FAQ Section */
.page-promotions__section--faq {
    background-color: #f8f9fa; /* Light background for FAQ */
    color: #333333;
}

.page-promotions__section--faq .page-promotions__section-title {
    color: #26A9E0; /* Primary color for title on light background */
}

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

.page-promotions__faq-item {
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-promotions__faq-title {
    margin: 0;
    color: #333333;
}

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Plus to Minus */
    color: #EA7C07; /* Orange for active toggle */
}

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

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

.page-promotions__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Spacing for paragraphs within answer */
    color: #555555;
}

.page-promotions__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-promotions__faq-answer a:hover {
    color: #1a7bb7;
}

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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header */
    }
    .page-promotions__hero-container {
        flex-direction: column;
        gap: 30px;
    }
    .page-promotions__hero-content {
        order: 1; /* Keep content below image on mobile for better flow */
    }
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-image-wrapper {
        order: 0; /* Move image above content on mobile */
    }

    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__container {
        padding: 0; /* Remove horizontal padding, sections already have it */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-promotions__text-block {
        font-size: 0.95em;
    }

    .page-promotions__cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card {
        padding: 20px;
    }
    .page-promotions__card-title {
        font-size: 1.4em;
    }

    /* Mobile specific image adaptation */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__hero-image {
        min-width: unset;
        min-height: unset;
    }
    .page-promotions__card-image {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    /* Mobile specific button adaptation */
    .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;
    }

    /* Containers for buttons or images in mobile */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__hero-container,
    .page-promotions__hero-content,
    .page-promotions__hero-image-wrapper,
    .page-promotions__cards-grid,
    .page-promotions__faq-list,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal overflow */
    }

    /* Specific padding for sections on mobile */
    .page-promotions__section--introduction .page-promotions__container,
    .page-promotions__section--types .page-promotions__container,
    .page-promotions__section--claim-bonus .page-promotions__container,
    .page-promotions__section--terms .page-promotions__container,
    .page-promotions__section--faq .page-promotions__container,
    .page-promotions__section--why-choose .page-promotions__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-promotions__list-item {
        font-size: 1em;
        padding: 15px;
    }

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