/* style/promotions.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles for promotions page */
.page-promotions {
    color: #ffffff; /* Text color for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is #1a1a2e from shared.css */
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-promotions__section-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__text-block {
    text-align: left;
    color: #f0f0f0;
}

.page-promotions__text-block h3 {
    color: #26A9E0;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-promotions__text-block p {
    margin-bottom: 15px;
}

.page-promotions__list {
    list-style: disc;
    text-align: left;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-promotions__list li {
    margin-bottom: 10px;
}

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

.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;
    border: 2px solid #26A9E0;
}

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

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Important for mobile */
    max-width: 100%; /* Important for mobile */
    box-sizing: border-box; /* Important for mobile */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    text-align: center;
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Slightly darken image for text readability */
}

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

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

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

.page-promotions__hero-button {
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 10px;
}

/* Promotion Types Section */
.page-promotions__intro-promotions {
    background-color: #1a1a2e; /* Dark background for this section */
    padding-bottom: 80px;
}

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

.page-promotions__type-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__type-icon {
    width: 100%;
    height: auto;
    max-height: 200px; /* Constrain image height in card */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

.page-promotions__type-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allow text to grow and push button down */
}

/* Content Grid (Welcome Bonus, Cashback, VIP) */
.page-promotions__welcome-bonus,
.page-promotions__cashback-reload,
.page-promotions__vip-program {
    background-color: #1a1a2e;
    padding-bottom: 80px;
}

.page-promotions__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
    text-align: left;
}

.page-promotions__content-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default order */
}

.page-promotions__content-grid .page-promotions__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
    background-color: #1a1a2e;
    padding-bottom: 80px;
}

.page-promotions__content-block {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 40px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-promotions__content-block h3 {
    color: #26A9E0;
    font-size: 1.8em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-promotions__content-block p {
    margin-bottom: 15px;
}

/* FAQ Section */
.page-promotions__faq {
    background-color: #1a1a2e;
    padding-bottom: 80px;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* For transition */
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1em;
    color: #f0f0f0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 20px;
}

/* For details tag, remove default marker */
.page-promotions__faq-item summary {
    list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Bottom CTA */
.page-promotions__cta-bottom {
    background-color: #26A9E0; /* Brand primary color background */
    color: #ffffff;
    padding: 80px 0;
}

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

.page-promotions__cta-bottom .page-promotions__section-description {
    color: #f0f0f0;
}

.page-promotions__cta-buttons--bottom .page-promotions__btn-primary {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}

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

.page-promotions__cta-buttons--bottom .page-promotions__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

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

/* Image specific styles - ensure no filter is used */
.page-promotions img {
    filter: none; /* Absolutely no CSS filter on images */
}

/* --- Responsive Design --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__hero-description {
        font-size: 1.3em;
    }
    .page-promotions__section-title {
        font-size: 2.5em;
    }
    .page-promotions__section-description {
        font-size: 1.1em;
    }
    .page-promotions__content-grid {
        grid-template-columns: 1fr; /* Stack columns on tablet */
        gap: 40px;
    }
    .page-promotions__content-grid--reverse {
        grid-template-columns: 1fr; /* Maintain stacking */
    }
    .page-promotions__content-grid .page-promotions__image {
        order: -1; /* Image first on mobile for reverse layout */
    }
    .page-promotions__type-card {
        padding: 25px;
    }
    .page-promotions__type-title {
        font-size: 1.6em;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-promotions__faq-answer {
        font-size: 1em;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-promotions__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .page-promotions__hero-button {
        padding: 14px 28px;
        font-size: 1.1em;
    }
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-promotions__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-promotions__container {
        padding: 0 15px;
    }

    /* Images Mobile Responsive - Force max-width 100% */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-promotions__type-card .page-promotions__type-icon {
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Video Mobile Responsive - Force max-width 100% */
    .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;
    }
    /* Fixed header offset for video section if it's the first element */
    .page-promotions__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Buttons Mobile Responsive - Force max-width 100% */
    .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;
    }
    .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;
        gap: 10px;
    }

    /* Content Area Mobile Responsive */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__content-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__faq-list {
        padding: 0 15px;
    }
    .page-promotions__type-card {
        padding: 20px;
    }
    .page-promotions__content-block {
        padding: 25px;
    }
    .page-promotions__faq-question {
        padding: 15px 18px;
        font-size: 1em;
    }
    .page-promotions__faq-answer {
        padding: 0 18px 15px;
    }
}