/* style/promotions.css */

/* Base styles for the promotions page content */
.page-promotions {
    color: #ffffff; /* Light text for dark body background */
    background-color: #1a1a2e; /* Inherit from body or explicitly set for consistency */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 100px 20px 60px; /* Adjust top padding for header offset */
    background: url('[GALLERY:hero_main:1920x1080:app_tai_xiu,promotions,hero_banner,bonus_coins]') center/cover no-repeat;
    text-align: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
}

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

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__dark-bg {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 60px 0;
}

/* Image Styles */
.page-promotions__image-wrapper {
    text-align: center;
    margin: 40px 0;
}

.page-promotions__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center the image */
}

/* Promotion Types Section */
.page-promotions__promotion-types {
    padding: 60px 0;
    background-color: #f0f2f5; /* Lighter background for contrast with dark body */
    color: #333333; /* Dark text for light background */
}

.page-promotions__promotion-types .page-promotions__section-title {
    color: #1a1a2e; /* Darker title on light background */
}

.page-promotions__promotion-types .page-promotions__text-block {
    color: #333333;
}

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

.page-promotions__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text on light card background */
}

.page-promotions__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-promotions__card-title {
    font-size: 1.6em;
    color: #26A9E0; /* Brand color for card titles */
    margin-bottom: 15px;
    flex-grow: 1; /* Allow title to take up available space */
}

.page-promotions__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 60px 0;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}

.page-promotions__how-to-claim .page-promotions__section-title {
    color: #26A9E0;
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__list-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for list items */
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-promotions__list-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-promotions__list-item p {
    color: #f0f0f0;
}

.page-promotions__list-item a {
    color: #EA7C07; /* Login color for emphasis */
    text-decoration: underline;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    padding: 60px 0;
    background-color: #f0f2f5; /* Lighter background */
    color: #333333;
}

.page-promotions__terms-conditions .page-promotions__section-title {
    color: #1a1a2e;
}

.page-promotions__terms-conditions .page-promotions__text-block {
    color: #333333;
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-list .page-promotions__list-item {
    background-color: transparent; /* Override list item background */
    box-shadow: none;
    padding: 5px 0;
    margin-bottom: 10px;
    color: #555555;
}

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

/* Benefits Section */
.page-promotions__benefits {
    padding: 60px 0;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}

.page-promotions__benefits .page-promotions__section-title {
    color: #26A9E0;
}

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

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

.page-promotions__benefit-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-promotions__benefit-item:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__benefit-image {
    width: 100%;
    height: 200px; /* Consistent image height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-promotions__benefit-text {
    font-size: 1em;
    color: #f0f0f0;
}


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

.page-promotions__faq-section .page-promotions__section-title {
    color: #1a1a2e;
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-promotions__faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question h3 {
    font-size: 1.3em;
    color: #1a1a2e;
    margin: 0;
}

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding, will be adjusted when active */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-promotions__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: #555555;
}

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

/* Final CTA Section */
.page-promotions__cta-final {
    padding: 60px 0;
    text-align: center;
    background-color: #1a1a2e;
    color: #ffffff;
}

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

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

/* 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-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
}

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

.page-promotions__btn-primary:hover {
    background-color: #1f8ac7;
    border-color: #1f8ac7;
    transform: translateY(-3px);
}

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

.page-promotions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-3px);
}

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

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

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

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

    .page-promotions__cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 80px 15px 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }

    .page-promotions__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

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

    .page-promotions__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        padding-top: 30px;
    }

    .page-promotions__content-section,
    .page-promotions__promotion-types,
    .page-promotions__how-to-claim,
    .page-promotions__terms-conditions,
    .page-promotions__benefits,
    .page-promotions__faq-section,
    .page-promotions__cta-final {
        padding: 40px 0;
    }

    .page-promotions__container {
        padding: 0 15px; /* Add padding to container on mobile */
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__image-wrapper,
    .page-promotions__benefits-grid,
    .page-promotions__cards-grid,
    .page-promotions__cta-buttons,
    .page-promotions__faq-list,
    .page-promotions__list-item,
    .page-promotions__terms-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-promotions__container already for main sections */
        /* Individual elements might need specific padding */
    }

    .page-promotions__card-image,
    .page-promotions__benefit-image {
        height: 150px; /* Adjust height for mobile cards */
    }

    .page-promotions__faq-question,
    .page-promotions__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 15px 20px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }

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

    .page-promotions__card-title {
        font-size: 1.3em;
    }

    .page-promotions__list-title {
        font-size: 1.2em;
    }

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

/* Ensure no content causes horizontal scroll on mobile */
.page-promotions {
    overflow-x: hidden;
}
.page-promotions__container {
    overflow-x: hidden;
}
.page-promotions__image-wrapper,
.page-promotions__video-wrapper {
    overflow-x: hidden;
}

/* Specific CSS for color contrast on dark background for general text */
.page-promotions p,
.page-promotions li,
.page-promotions h1,
.page-promotions h2,
.page-promotions h3,
.page-promotions h4,
.page-promotions h5,
.page-promotions h6 {
    color: #ffffff; /* Default light text for dark background sections */
}

/* Override for sections with light background */
.page-promotions__promotion-types p,
.page-promotions__promotion-types li,
.page-promotions__promotion-types h1,
.page-promotions__promotion-types h2,
.page-promotions__promotion-types h3,
.page-promotions__promotion-types h4,
.page-promotions__promotion-types h5,
.page-promotions__promotion-types h6,
.page-promotions__promotion-types .page-promotions__text-block,
.page-promotions__promotion-types .page-promotions__card-text,
.page-promotions__promotion-types .page-promotions__card-title {
    color: #333333; /* Dark text for light background sections */
}

.page-promotions__faq-section p,
.page-promotions__faq-section li,
.page-promotions__faq-section h1,
.page-promotions__faq-section h2,
.page-promotions__faq-section h3,
.page-promotions__faq-section h4,
.page-promotions__faq-section h5,
.page-promotions__faq-section h6,
.page-promotions__faq-section .page-promotions__faq-question h3,
.page-promotions__faq-section .page-promotions__faq-answer p {
    color: #333333; /* Dark text for light background sections */
}

/* Adjust link colors for contrast */
.page-promotions a {
    color: #26A9E0; /* Brand color for links */
}
.page-promotions a:hover {
    color: #1f8ac7;
}

/* Ensure images do not use filters */
.page-promotions img {
    filter: none;
}

/* Content area images CSS dimensions lower bound */
/* This rule is crucial to prevent content images from being too small */
.page-promotions img:not([class*="icon"]):not([class*="logo"]) {
    min-width: 200px;
    min-height: 200px;
}
@media (max-width: 768px) {
    .page-promotions img:not([class*="icon"]):not([class*="logo"]) {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}