/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Ensure consistency with body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-promotions__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Gold title */
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.2;
}

.page-promotions__section-description {
    font-size: 18px;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-promotions__btn-primary {
    display: inline-block;
    background-color: #FFD700; /* Gold background */
    color: #121212; /* Dark text for contrast */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-promotions__btn-primary:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    color: #000000;
}

.page-promotions__btn-secondary {
    display: inline-block;
    background-color: #1E90FF; /* Royal blue background */
    color: #ffffff; /* White text */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-promotions__btn-secondary:hover {
    background-color: #187ceb; /* Slightly darker blue on hover */
    transform: translateY(-2px);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 0; /* Shared CSS handles body padding-top */
    margin-top: 0;
}

.page-promotions__hero-container {
    position: relative;
    width: 100%;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability, not changing color */
}

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text contrast */
    padding: 20px;
    box-sizing: border-box;
}

.page-promotions__hero-title {
    font-size: 56px;
    font-weight: 900;
    color: #FFD700; /* Gold title */
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 90%;
}

.page-promotions__hero-description {
    font-size: 24px;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 80%;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Intro Section */
.page-promotions__intro-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

/* Categories Section */
.page-promotions__categories-section {
    padding: 80px 0;
    background-color: #121212;
}

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

.page-promotions__category-card {
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px; /* Ensure cards have consistent height */
    box-sizing: border-box;
}

.page-promotions__category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__dark-bg {
    background-color: #1E90FF; /* Royal blue */
    color: #ffffff;
}

.page-promotions__medium-bg {
    background-color: #2c2c2c; /* Dark grey */
    color: #ffffff;
}

.page-promotions__category-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFD700; /* Gold for titles */
}

.page-promotions__category-text {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Featured Promotions Section */
.page-promotions__featured-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-promotions__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.page-promotions__promo-card {
    background-color: #2c2c2c; /* Dark grey card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__promo-card img {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
}

.page-promotions__promo-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__promo-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700; /* Gold title */
    margin-bottom: 15px;
}

.page-promotions__promo-description {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* How To Claim Section */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
    background-color: #121212;
}

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

.page-promotions__step-item {
    background-color: #2c2c2c;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 280px;
    box-sizing: border-box;
}

.page-promotions__step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #FFD700;
    color: #121212;
    border-radius: 50%;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-promotions__step-description {
    font-size: 16px;
    color: #f0f0f0;
    flex-grow: 1;
}

.page-promotions__cta-bottom {
    text-align: center;
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
    padding: 80px 0;
    background-color: #1E90FF; /* Royal blue background */
    color: #ffffff;
}

.page-promotions__terms-list {
    list-style: disc;
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding-left: 25px;
    font-size: 16px;
    color: #f0f0f0;
}

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

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #2c2c2c; /* Dark grey for FAQ items */
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #3a3a3a; /* Slightly lighter dark grey for question background */
    border: 1px solid #444444;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-promotions__faq-question:hover {
    background: #4a4a4a;
    border-color: #555555;
}

.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #ffffff; /* White text for question */
}

.page-promotions__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign effect */
    color: #1E90FF; /* Blue when active */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background-color: #3a3a3a; /* Darker background for answer */
    border-top: 1px solid #444444;
    border-radius: 0 0 8px 8px;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 16px;
    color: #f0f0f0;
}

/* Contact CTA Section */
.page-promotions__contact-cta {
    padding: 80px 0;
    background-color: #121212;
    text-align: center;
}

/* --- Responsive Styles --- */

/* General Image Responsive */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* General Button Responsive */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Button containers responsive */
.page-promotions__cta-bottom {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 48px;
    }

    .page-promotions__hero-description {
        font-size: 20px;
    }

    .page-promotions__section-title {
        font-size: 32px;
    }

    .page-promotions__section-description {
        font-size: 16px;
    }

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

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-promotions__hero-section {
        padding-top: 0 !important; /* Ensures no double padding if shared adds it to body */
    }

    .page-promotions__hero-overlay {
        padding: 15px;
    }

    .page-promotions__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
        max-width: 100%;
    }

    .page-promotions__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
        max-width: 100%;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="btn"] {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 按钮容器移动端适配 */
    .page-promotions__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container itself */
    }

    /* 其他内容模块 */
    .page-promotions__container {
        padding: 0 15px;
    }

    .page-promotions__intro-section,
    .page-promotions__categories-section,
    .page-promotions__featured-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__contact-cta {
        padding: 40px 0;
    }

    .page-promotions__section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .page-promotions__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-promotions__category-grid,
    .page-promotions__promotion-grid,
    .page-promotions__steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__category-card,
    .page-promotions__step-item {
        padding: 25px;
        min-height: auto;
    }

    .page-promotions__category-title,
    .page-promotions__step-title {
        font-size: 20px;
    }

    .page-promotions__category-text,
    .page-promotions__step-description,
    .page-promotions__promo-description {
        font-size: 15px;
    }

    .page-promotions__promo-card img {
        height: 200px;
    }

    .page-promotions__promo-title {
        font-size: 20px;
    }

    .page-promotions__terms-list {
        font-size: 15px;
        padding-left: 20px;
    }

    /* FAQ */
    .page-promotions__faq-item {
        margin-bottom: 10px;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 16px;
    }
    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px !important;
    }
    .page-promotions__faq-answer p {
        font-size: 15px;
    }

    /* 通用图片与容器 */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__hero-image {
        /* Specific hero image might need to be less wide if container has padding,
           but generally max-width: 100% ensures it fits */
        width: 100%;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__categories-section,
    .page-promotions__featured-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__contact-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}