/* style/promotions.css */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f8f8; /* Light background for the page content */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #0A2463, #2A487E); /* Blend of primary color */
    color: #ffffff;
    overflow: hidden; /* Prevent image overflow */
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Ensure image is responsive */
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.page-promotions__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #E0B700; /* Gold for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-promotions__description {
    font-size: 18px;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-button--primary {
    background: #E0B700; /* Gold button */
    color: #0A2463; /* Dark blue text for contrast */
    border: 2px solid #E0B700;
}

.page-promotions__cta-button--primary:hover {
    background: #FFD700;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--secondary {
    background: #0A2463; /* Dark blue button */
    color: #E0B700; /* Gold text for contrast */
    border: 2px solid #E0B700;
}

.page-promotions__cta-button--secondary:hover {
    background: #1A3B80;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-promotions__section-title {
    font-size: 36px;
    color: #0A2463;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-promotions__text-block {
    font-size: 17px;
    color: #555555;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.page-promotions__dark-section {
    background-color: #0A2463;
    color: #ffffff;
}

.page-promotions__dark-section .page-promotions__section-title {
    color: #E0B700;
}

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

.page-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-promotions__light-bg .page-promotions__section-title {
    color: #0A2463;
}

.page-promotions__light-bg .page-promotions__text-block {
    color: #555555;
}

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

.page-promotions__feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.page-promotions__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-promotions__feature-item img {
    width: 100%;
    height: auto;
    max-width: 300px; /* Example size, adjust as needed */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__feature-title {
    font-size: 22px;
    color: #0A2463;
    margin-bottom: 15px;
}

.page-promotions__feature-description {
    font-size: 16px;
    color: #666666;
}

/* Promotion Types Section - Promo Grid */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__promo-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__promo-card img {
    width: 100%;
    height: auto;
    max-width: 400px; /* Example size */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__card-title {
    font-size: 22px;
    color: #0A2463;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-description {
    font-size: 16px;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1;
    text-align: justify;
}

.page-promotions__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: #E0B700;
    color: #0A2463;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #E0B700;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary:hover {
    background: #FFD700;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #0A2463;
    color: #E0B700;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #E0B700;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-secondary:hover {
    background: #1A3B80;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* How to Claim Section */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__step-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.page-promotions__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #E0B700;
    color: #0A2463;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    border: 3px solid #0A2463;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
    font-size: 20px;
    color: #0A2463;
    margin-bottom: 15px;
}

.page-promotions__step-description {
    font-size: 16px;
    color: #666666;
}

.page-promotions__step-description a {
    color: #0A2463;
    font-weight: bold;
    text-decoration: underline;
}

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

.page-promotions__center-button {
    margin-top: 40px;
    text-align: center;
}

/* Terms Section */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
    text-align: left;
}

.page-promotions__terms-list li {
    background: #f0f0f0;
    margin-bottom: 15px;
    padding: 15px 20px;
    border-left: 5px solid #E0B700;
    border-radius: 5px;
    font-size: 16px;
    color: #555555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

/* FAQ容器样式 */
.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* FAQ默认状态 - 答案隐藏 */
.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 20px; /* Adjusted padding */
    opacity: 0;
    color: #666666;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* 🚨 Use !important for priority, large enough value */
    padding: 20px !important; /* Adjusted padding */
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #0A2463; /* Dark blue for question header */
    color: #ffffff; /* White text for contrast */
    border: 1px solid #0A2463;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-promotions__faq-question:hover {
    background: #1A3B80; /* Slightly lighter dark blue on hover */
    border-color: #1A3B80;
}

.page-promotions__faq-question:active {
    background: #2A487E;
}

/* 问题标题样式 */
.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #ffffff; /* White text for contrast */
}

/* 切换图标 */
.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #E0B700; /* Gold for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    color: #FFD700; /* Brighter gold when active */
    transform: rotate(180deg); /* Rotate for minus sign */
}

/* Latest News Section */
.page-promotions__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__news-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

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

.page-promotions__news-card img {
    width: 100%;
    height: auto;
    max-width: 400px; /* Example size */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-promotions__news-card .page-promotions__card-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0A2463;
    text-align: left;
    flex-grow: 1; /* Allow title to take available space */
}

.page-promotions__news-link {
    text-decoration: none;
    color: #0A2463;
    transition: color 0.3s ease;
}

.page-promotions__news-link:hover {
    color: #E0B700;
}

.page-promotions__news-date {
    font-size: 14px;
    color: #999999;
    margin-bottom: 10px;
}

.page-promotions__news-card .page-promotions__card-description {
    font-size: 15px;
    color: #666666;
    margin-bottom: 15px;
    text-align: justify;
}

.page-promotions__read-more {
    display: inline-block;
    color: #E0B700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-promotions__read-more:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-promotions__main-title {
        font-size: 40px;
    }

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

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

    /* Hero Section */
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__hero-image {
        border-radius: 4px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-promotions__description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-promotions__hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Section */
    .page-promotions__section {
        padding: 40px 15px;
    }

    .page-promotions__container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .page-promotions__text-block {
        font-size: 16px;
        margin-bottom: 30px;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Image responsiveness for all content images */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Enforce minimum size even on mobile */
        min-height: 200px !important;
    }

    .page-promotions__feature-item,
    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__news-card {
        padding: 20px;
    }

    .page-promotions__feature-item img,
    .page-promotions__promo-card img,
    .page-promotions__news-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-promotions__card-title,
    .page-promotions__feature-title,
    .page-promotions__step-title {
        font-size: 18px;
    }

    .page-promotions__card-description,
    .page-promotions__feature-description,
    .page-promotions__step-description {
        font-size: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 10px 20px;
        font-size: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Button containers */
    .page-promotions__hero-buttons,
    .page-promotions__center-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Section */
    .page-promotions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-promotions__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-promotions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

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

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

    .page-promotions__terms-list li {
        padding: 12px 15px;
        font-size: 15px;
    }
}