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

/* General Page Styles */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set body-like background */
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

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

.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;
    color: #ffffff;
    line-height: 1.2;
}

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

.page-promotions__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping for primary/secondary on desktop */
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Custom color for Register */
    color: #FFFF00; /* Custom font color for Register */
    border: 2px solid #C30808;
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom font color for Login */
    border: 2px solid #C30808; /* Custom color for Login */
}

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

.page-promotions__btn-tertiary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 0.9em;
    white-space: normal; /* Allow text wrapping for tertiary buttons */
}

.page-promotions__btn-tertiary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}


/* Current Promotions Section */
.page-promotions__current-promotions {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background for contrast */
}

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

.page-promotions__promo-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__promo-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-promotions__promo-card-title {
    font-size: 1.5em;
    color: #017439;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-promotions__promo-card-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__promo-card-title a:hover {
    color: #005f2e;
    text-decoration: underline;
}

.page-promotions__promo-card-description {
    font-size: 1em;
    color: #555555;
    padding: 0 20px;
    flex-grow: 1; /* Ensures description takes available space */
}

.page-promotions__promo-card .page-promotions__btn-tertiary {
    margin: 20px;
    align-self: flex-start; /* Aligns button to the start */
}


/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

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

.page-promotions__how-to-claim .page-promotions__section-description {
    color: #f0f0f0;
}

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

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-promotions__step-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-promotions__step-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions__step-description a {
    color: #FFFF00; /* Highlight links in dark sections */
    text-decoration: underline;
}

.page-promotions__step-description a:hover {
    color: #ffffff;
}

/* Promotion Categories Section */
.page-promotions__promo-categories {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-promotions__category-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-promotions__category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-promotions__category-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    padding: 0 20px;
    font-weight: bold;
}

.page-promotions__category-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px;
    flex-grow: 1;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

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

.page-promotions__terms-conditions .page-promotions__section-description {
    color: #f0f0f0;
}

.page-promotions__terms-list {
    max-width: 800px;
    margin: 40px auto;
    list-style: disc;
    padding-left: 40px;
    color: #f0f0f0;
}

.page-promotions__terms-list li {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-promotions__terms-cta {
    text-align: center;
    margin-top: 40px;
}

.page-promotions__terms-cta .page-promotions__btn-primary {
    background-color: #ffffff;
    color: #017439;
    border-color: #ffffff;
}

.page-promotions__terms-cta .page-promotions__btn-primary:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    color: #005f2e;
}


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

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

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

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

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

.page-promotions__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
    font-weight: bold;
}

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

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

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

.page-promotions__faq-answer p {
    margin: 0;
    color: #555555;
    font-size: 1em;
}

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

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

.page-promotions__cta-final .page-promotions__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-promotions__cta-final .page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

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

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

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

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

    .page-promotions__hero-cta-buttons,
    .page-promotions__cta-final .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    /* Buttons responsive */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-tertiary,
    .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; /* Add padding for better look on mobile */
        padding-right: 15px; /* Add padding for better look on 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-wrap: wrap !important;
        gap: 10px;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

    /* Images responsive */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__container,
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__categories-grid,
    .page-promotions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__promo-card-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-promotions__step-item {
        padding: 20px;
    }

    .page-promotions__step-image {
        max-width: 200px;
    }

    .page-promotions__category-image {
        height: 150px;
    }

    .page-promotions__terms-list {
        padding-left: 25px;
    }

    .page-promotions__faq-question {
        padding: 15px;
    }

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

    .page-promotions__faq-toggle {
        font-size: 1.3em;
    }

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

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__promo-card-title {
        font-size: 1.3em;
    }
    .page-promotions__step-title {
        font-size: 1.5em;
    }
    .page-promotions__category-title {
        font-size: 1.2em;
    }
}