/* style/promotions.css */
/* body đã padding-top: var(--header-offset) từ shared.css */
/* Do đó, không thêm padding-top: var(--header-offset) vào đây để tránh nhân đôi */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-promotions {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color);
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 60px;
    background-color: var(--background-color);
    overflow: hidden; /* Ensure no overflow from images */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for the hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 1920px; /* Ensure image doesn't stretch too wide */
    min-height: 200px; /* Minimum size requirement */
}

.page-promotions__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual flow, but text is below image in DOM */
    position: relative; /* For z-index if needed, but no overlaying text */
    z-index: 1;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--text-main-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-promotions__lead-text {
    font-size: 1.1em;
    color: var(--text-secondary-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    min-width: 180px; /* Minimum width for buttons */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-promotions__btn-primary,
.page-promotions__card-button {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: none;
}

.page-promotions__btn-primary:hover,
.page-promotions__card-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--background-color);
    transform: translateY(-2px);
}

/* General Sections */
.page-promotions__overview-section,
.page-promotions__promotion-categories,
.page-promotions__vip-section,
.page-promotions__how-to-claim,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__download-cta {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

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

.page-promotions__promotion-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-promotions__card-description {
    font-size: 1em;
    color: var(--text-secondary-color);
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1; /* Allows description to take available space */
}

/* VIP Section */
.page-promotions__vip-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions__vip-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-promotions__vip-text {
    flex: 1;
    min-width: 300px;
}

.page-promotions__vip-benefits-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-promotions__vip-benefits-list li {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.page-promotions__list-icon {
    color: var(--glow-color);
    font-size: 1.2em;
    margin-right: 10px;
    font-weight: bold;
}

/* How To Claim */
.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-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--deep-green-color);
    color: var(--glow-color);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
}

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

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

.page-promotions__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

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

.page-promotions__terms-list li {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.page-promotions__terms-list .page-promotions__list-icon {
    color: var(--glow-color);
    font-size: 1.1em;
    margin-right: 10px;
    margin-top: 2px; /* Align icon with text */
}

.page-promotions__text-link {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__text-link:hover {
    text-decoration: underline;
}

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

.page-promotions__faq-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    color: var(--text-main-color);
    font-weight: bold;
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

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

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

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

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary-color);
    line-height: 1.6;
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 500px; /* Adjust as needed for content length */
    padding-top: 15px;
}

/* Download CTA */
.page-promotions__download-cta .page-promotions__cta-buttons {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__hero-content {
        margin-top: -80px;
    }
    .page-promotions__vip-content {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__vip-image {
        max-width: 100%;
    }
    .page-promotions__vip-text {
        min-width: unset;
    }
    .page-promotions__vip-benefits-list {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 15px;
    }

    .page-promotions__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

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

    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust clamp for mobile */
    }

    .page-promotions__lead-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .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;
    }

    .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;
        overflow: hidden !important;
    }

    .page-promotions__overview-section,
    .page-promotions__promotion-categories,
    .page-promotions__vip-section,
    .page-promotions__how-to-claim,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__download-cta {
        padding: 40px 0;
    }

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

    .page-promotions__text-block,
    .page-promotions__card-description,
    .page-promotions__step-description,
    .page-promotions__terms-list li,
    .page-promotions__faq-answer p {
        font-size: 0.95em;
    }

    .page-promotions__card-image,
    .page-promotions__vip-image,
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size is maintained */
        min-height: 200px !important; /* Ensure minimum size is maintained */
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-image-wrapper,
    .page-promotions__promotion-card,
    .page-promotions__vip-content,
    .page-promotions__step-card,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content from touching edges */
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

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

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

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.6em, 8vw, 2em);
    }
    .page-promotions__section-title {
        font-size: 1.6em;
    }
    .page-promotions__hero-content {
        margin-top: -40px;
    }
}

/* Ensure contrast for text on various backgrounds */
.page-promotions__dark-bg {
  color: var(--text-main-color);
  background: var(--primary-color);
}

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

.page-promotions__medium-bg {
  color: #000000;
  background: var(--secondary-color);
}

/* Contrast fix for specific elements if needed */
.page-promotions__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-promotions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* No CSS filters for images */
.page-promotions img {
    filter: none; /* Explicitly ensure no filters are applied */
}