/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --bg-dark-body: #0a0a0a;
    --btn-register-bg: #C30808;
    --btn-login-bg: #C30808;
    --btn-login-register-text: #FFFF00;
    --card-bg-dark-rgba: rgba(255, 255, 255, 0.1);
}

.page-promotions {
    color: var(--text-on-dark); /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark-body);
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

.page-promotions__hero-content {
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(1, 116, 57, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    color: var(--text-on-dark);
    width: 100%;
    box-sizing: border-box;
    margin-top: -5px; /* Slight overlap with image for smooth transition */
}

.page-promotions__hero-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* General Section Styling */
.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--secondary-color);
}

.page-promotions__overview-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--bg-dark-body);
}

.page-promotions__dark-section {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

.page-promotions__dark-section .page-promotions__section-description {
    color: var(--text-on-dark);
}

/* Promotion Types Grid */
.page-promotions__types-section {
    padding: 60px 0;
    background-color: var(--bg-dark-body);
}

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

.page-promotions__promotion-card {
    background: var(--card-bg-dark-rgba);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: var(--text-on-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-promotions__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-promotions__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-on-dark);
}

/* How To Claim Section */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 800px;
}

.page-promotions__step-item {
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__step-title {
    font-size: 1.4em;
    color: var(--btn-login-register-text); /* Yellowish color for emphasis */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__step-text {
    font-size: 1em;
    color: var(--text-on-dark);
}

.page-promotions__step-text a {
    color: var(--btn-login-register-text);
    text-decoration: underline;
}

.page-promotions__step-text a:hover {
    color: var(--secondary-color);
}

/* Terms Section */
.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--bg-dark-body);
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin: 0 auto 40px auto;
    max-width: 900px;
    color: var(--text-on-dark);
}

.page-promotions__terms-item {
    margin-bottom: 15px;
    font-size: 1em;
}

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

.page-promotions__faq-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-on-dark);
}

.page-promotions__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--secondary-color);
    position: relative;
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--btn-login-register-text);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: '−';
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-on-dark);
}

/* CTA Bottom Section */
.page-promotions__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    text-align: center;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background-color: var(--btn-register-bg);
    color: var(--btn-login-register-text);
    border: 2px solid var(--btn-register-bg);
}

.page-promotions__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
    color: var(--secondary-color);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--btn-login-register-text);
    border: 2px solid var(--btn-login-register-text);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--btn-login-register-text);
    color: var(--primary-color);
}

.page-promotions__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.page-promotions__btn-small:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

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

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-promotions__hero-section {
        padding-top: 10px !important;
    }

    .page-promotions__hero-image {
        max-height: 400px;
    }

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

    .page-promotions__hero-title {
        font-size: 2em;
        margin-bottom: 10px;
    }

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

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

    /* 通用内容区 */
    .page-promotions__container {
        padding: 15px;
    }

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

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

    /* 产品展示图区域 (Promotions Grid) */
    .page-promotions__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__promotion-card {
        margin: 0 15px; /* Add horizontal margin */
    }

    .page-promotions__card-image {
        height: 180px;
    }

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

    .page-promotions__card-text {
        font-size: 0.9em;
    }

    /* 通用图片与容器 */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small,
    .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;
        margin: 0 auto; /* Center buttons if they stack */
    }

    .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; /* Stack buttons vertically */
        gap: 10px;
    }

    /* 其他内容模块 (FAQ, Steps, Terms) */
    .page-promotions__steps-list,
    .page-promotions__terms-list,
    .page-promotions__faq-list {
        margin: 0 auto 30px auto;
        padding-left: 0;
    }

    .page-promotions__step-item,
    .page-promotions__faq-item {
        padding: 20px;
        margin-bottom: 15px;
    }

    .page-promotions__step-title,
    .page-promotions__faq-item summary {
        font-size: 1.05em;
    }

    .page-promotions__step-text,
    .page-promotions__faq-answer {
        font-size: 0.9em;
    }
}

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

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

    .page-promotions__hero-cta-buttons {
        gap: 10px;
    }
}