/* style/promotions.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    background-color: var(--color-background); /* Dark background */
    color: var(--color-text-main); /* Light text for contrast */
    line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image first, then text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0; /* No padding-top: var(--header-offset) here */
    background-color: var(--color-deep-green); /* Dark background for hero */
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
    background-color: rgba(8, 22, 15, 0.7); /* Semi-transparent dark background for text readability */
    margin-top: -100px; /* Overlap slightly for design, but content is below image */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-promotions__description {
    font-size: 1.1em;
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__description-secondary {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff; /* White text for contrast on dark button */
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--color-button-gradient-start);
    border: 2px solid var(--color-button-gradient-start);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--color-button-gradient-start);
    color: #ffffff;
}

.page-promotions__btn-center {
    display: block;
    margin: 30px auto 0 auto;
}

/* Sections */
.page-promotions__intro-section,
.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
    background-color: var(--color-background); /* Dark background */
    padding: 60px 0;
    color: var(--color-text-main); /* Light text */
}

.page-promotions__featured-section,
.page-promotions__how-to-claim-section,
.page-promotions__why-choose-section,
.page-promotions__cta-section {
    background-color: var(--color-card-bg); /* Slightly darker background */
    padding: 60px 0;
    color: var(--color-text-main); /* Light text */
}

.page-promotions__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-promotions__text-block {
    font-size: 1em;
    color: var(--color-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

/* Grid for featured promotions */
.page-promotions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    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.4em;
    color: var(--color-text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Feature List (Types of Promotions) */
.page-promotions__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__feature-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-promotions__feature-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.page-promotions__feature-text {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

.page-promotions__feature-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
}

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

.page-promotions__step-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.page-promotions__step-title {
    font-size: 1.3em;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

.page-promotions__guide-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Terms and Conditions */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__list-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--color-text-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-promotions__list-item strong {
    color: var(--color-gold);
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--color-text-main);
    background-color: var(--color-card-bg);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Hide for Webkit */
}

.page-promotions__faq-item summary:hover {
    background-color: var(--color-deep-green);
}

.page-promotions__faq-item[open] summary {
    background-color: var(--color-deep-green);
    color: var(--color-gold);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--color-gold);
}

/* FAQ JS will update content of this span */
/* .page-promotions__faq-item[open] .page-promotions__faq-toggle { content: "−"; } */

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95em;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-divider);
    background-color: var(--color-background);
}

/* CTA Section */
.page-promotions__cta-content {
    text-align: center;
    padding: 60px 20px;
}

/* Links within text */
.page-promotions a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions a:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -50px;
        padding: 30px 20px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }
    .page-promotions__section-title {
        font-size: clamp(1.6em, 3.5vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-content {
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 20px 15px;
        background-color: var(--color-deep-green); /* Full background for text on mobile */
    }
    .page-promotions__hero-image-wrapper {
        max-height: 400px;
    }
    .page-promotions__container {
        padding: 15px;
    }
    .page-promotions__grid,
    .page-promotions__feature-list,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px;
        font-size: 0.9em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .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__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small padding-top for hero on mobile */
    }
    .page-promotions__faq-answer {
        padding: 0 15px 15px 15px;
    }
    .page-promotions__faq-item summary {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-promotions__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
    }
    .page-promotions__hero-content {
        padding: 15px 10px;
    }
    .page-promotions__description,
    .page-promotions__description-secondary,
    .page-promotions__text-block,
    .page-promotions__card-text,
    .page-promotions__feature-text,
    .page-promotions__step-text,
    .page-promotions__list-item {
        font-size: 0.9em;
    }
}