/* style/promotions.css */
/* Base styles for the promotions page */
.page-promotions {
    background-color: #0a0a0a; /* Dark background from shared.css */
    color: #ffffff; /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

.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;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for titles */
    text-transform: uppercase;
}

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

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

.page-promotions__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #0a0a0a; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-promotions__btn-secondary:hover {
    background-color: #FFD700;
    color: #0a0a0a; /* Dark text */
}

.page-promotions__btn-small {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
    background-color: #8B0000; /* Dark red */
    color: #ffffff;
    border: 1px solid #8B0000;
}

.page-promotions__btn-small:hover {
    background-color: #a00000;
    border-color: #a00000;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding-top: 0; /* shared has body padding-top */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: #1a1a1a; /* Slightly lighter dark background for hero */
}

.page-promotions__hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.page-promotions__hero-content {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

.page-promotions__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD700; /* Gold title */
}

.page-promotions__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-promotions__hero-image-wrapper {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    min-width: 200px; /* Min size for all images */
    min-height: 200px; /* Min size for all images */
}

/* Promotions Overview Section */
.page-promotions__promotions-overview-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

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

.page-promotions__promotion-card {
    background-color: #1a1a1a; /* Darker background for cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-promotions__promotion-image-wrapper {
    width: 100%;
    height: 220px; /* Fixed height for consistent card images */
    overflow: hidden;
}

.page-promotions__promotion-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size for all images */
    min-height: 200px; /* Min size for all images */
}

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

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

.page-promotions__promotion-description {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.page-promotions__step-card {
    background-color: #0a0a0a;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background-color: #FFD700;
    color: #0a0a0a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

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

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

.page-promotions__step-description a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__step-description a:hover {
    text-decoration: underline;
}

.page-promotions__steps-image-wrapper {
    text-align: center;
    margin-top: 30px;
}

.page-promotions__steps-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min size for all images */
    min-height: 200px; /* Min size for all images */
}

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

.page-promotions__terms-content {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__terms-subtitle {
    font-size: 26px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #8B0000; /* Dark red for subtitles */
}

.page-promotions__terms-text {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

.page-promotions__feature-item {
    background-color: #0a0a0a;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-promotions__feature-text {
    font-size: 16px;
    color: #cccccc;
}

.page-promotions__cta-bottom {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

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

/* FAQ容器样式 */
.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 8px; /* Slightly larger border-radius */
    overflow: hidden;
    background-color: #1a1a1a; /* Dark background for FAQ item */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 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 25px; /* Adjust padding for dark theme */
    opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
    padding: 25px !important; /* Adjust padding for dark theme */
    opacity: 1;
    background: #0a0a0a; /* Match body background for expanded answer */
    border-radius: 0 0 8px 8px; /* Match item border-radius */
    color: #cccccc; /* Light text for answer */
}

/* 问题样式 */
.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px; /* Adjust padding */
    background: #1a1a1a;
    border: 1px solid #333333; /* Darker border */
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #FFD700; /* Gold for question text */
}

.page-promotions__faq-question:hover {
    background: #2a2a2a; /* Slightly lighter on hover */
    border-color: #555555;
}

.page-promotions__faq-question:active {
    background: #3a3a3a;
}

/* 问题标题样式 */
.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px; /* Slightly larger font size */
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* 防止h3标签阻止点击事件 */
    color: inherit; /* Inherit color from parent */
}

/* 切换图标 */
.page-promotions__faq-toggle {
    font-size: 28px; /* Larger icon */
    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: 20px; /* Adjust margin */
    pointer-events: none; /* 防止图标阻止点击事件 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Larger icon area */
    height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    color: #8B0000; /* Dark red when active */
    transform: rotate(45deg); /* Rotate for minus sign effect */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-promotions__hero-content,
    .page-promotions__hero-image-wrapper {
        max-width: 100%;
    }

    .page-promotions__hero-title {
        font-size: 42px;
    }

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

    .page-promotions__hero-cta {
        justify-content: center;
    }

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

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

    .page-promotions__container {
        padding: 0 15px;
    }

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

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

    /* Hero Section */
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__hero-container {
        padding: 30px 15px;
        gap: 30px;
    }

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

    .page-promotions__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

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

    /* Buttons Mobile */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        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;
    }

    .page-promotions__hero-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 15px;
    }

    /* Image Mobile */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure min size on mobile */
        min-height: 200px !important; /* Ensure min size on mobile */
    }

    .page-promotions__hero-image-wrapper,
    .page-promotions__promotion-image-wrapper,
    .page-promotions__steps-image-wrapper,
    .page-promotions__promotion-card,
    .page-promotions__step-card,
    .page-promotions__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Promotions Overview Section */
    .page-promotions__promotions-overview-section {
        padding: 60px 0;
    }

    .page-promotions__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .page-promotions__promotion-description {
        font-size: 15px;
    }

    /* How to Claim Section */
    .page-promotions__how-to-claim-section {
        padding: 60px 0;
    }

    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .page-promotions__step-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
        margin-bottom: 15px;
    }

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

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

    /* Terms and Conditions Section */
    .page-promotions__terms-section {
        padding: 60px 0;
    }

    .page-promotions__terms-content {
        padding: 30px;
    }

    .page-promotions__terms-subtitle {
        font-size: 22px;
        margin-top: 25px;
    }

    .page-promotions__terms-text {
        font-size: 15px;
    }

    /* Why Choose Section */
    .page-promotions__why-choose-section {
        padding: 60px 0;
    }

    .page-promotions__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

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

    .page-promotions__feature-text {
        font-size: 15px;
    }

    .page-promotions__cta-bottom {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    /* FAQ Section */
    .page-promotions__faq-section {
        padding: 60px 0;
    }

    .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;
        margin-left: 15px;
    }

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