/* style/promotions.css */
/* body đã có padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --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;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Light text on dark body background */
    background-color: var(--color-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: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-glow);
    border-radius: 2px;
}

.page-promotions__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 50px; /* Space for content below image */
}

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

.page-promotions__hero-content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 900px;
    width: 100%;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-sizing: border-box;
    text-align: center;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    color: var(--color-text-main);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__cta-buttons--center {
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

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

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

.page-promotions__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Overview Section */
.page-promotions__overview-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--color-card-bg);
}

.page-promotions__dark-bg {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
}

/* Types Section */
.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__cta-final-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

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

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

.page-promotions__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.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;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-promotions__card-btn {
    width: 100%;
    margin-top: auto;
}

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

.page-promotions__step-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-divider);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-title {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

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

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

.page-promotions__terms-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.page-promotions__terms-item::before {
    content: '•';
    color: var(--color-glow);
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 1;
    top: 0;
}

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

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-text-main);
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--color-text-main);
}

.page-promotions__faq-item[open] .page-promotions__faq-qtext {
    color: var(--color-gold);
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 20px;
    color: var(--color-glow);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    color: var(--color-gold);
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Final CTA Section */
.page-promotions__cta-final-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-background);
}

/* Global Image/Video/Button Responsive */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-promotions video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-promotions__cta-button,
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions a[class*="button"],
.page-promotions a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-buttons,
.page-promotions__button-group,
.page-promotions__btn-container,
.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 30px 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-promotions__hero-description {
        font-size: 1.1em;
    }

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

@media (max-width: 768px) {
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-promotions__container,
    .page-promotions__promo-grid,
    .page-promotions__step-list,
    .page-promotions__faq-list,
    .page-promotions__overview-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__faq-section,
    .page-promotions__types-section,
    .page-promotions__terms-section,
    .page-promotions__cta-final-section,
    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__faq-item,
    .page-promotions__hero-section,
    .page-promotions__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__hero-content {
        position: static;
        transform: none;
        border-radius: 0;
        background: var(--color-card-bg);
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .page-promotions__hero-image {
        margin-bottom: 0;
    }

    .page-promotions__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 10px;
    }

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-promotions__text-block {
        font-size: 0.95em;
    }

    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
    }

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

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

    .page-promotions__step-list {
        grid-template-columns: 1fr;
    }

    .page-promotions__terms-item {
        font-size: 0.95em;
    }

    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-promotions__faq-answer {
        font-size: 0.9em;
        padding: 0 20px 15px 20px;
    }
}

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