/* style/promotions.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho body hoặc hero section */

/* Color variables for easier management */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background-dark: #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;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for dark backgrounds */
    background-color: var(--background-dark); /* Ensure consistency with body background if applicable */
}

/* General typography */
.page-promotions h1, .page-promotions h2, .page-promotions h3 {
    color: var(--color-text-main);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-promotions h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 900px; /* To prevent extremely long lines */
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Clamp for H1 */
}

.page-promotions h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-gold); /* Using gold for section titles for prominence */
}

.page-promotions h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.page-promotions p {
    color: var(--color-text-main);
    margin-bottom: 1em;
}

.page-promotions__text-block {
    color: var(--color-text-secondary);
    font-size: 1.1em;
}

/* Links */
.page-promotions a {
    color: var(--color-primary);
    text-decoration: none;
}

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

.page-promotions__text-link {
    color: var(--color-secondary);
    font-weight: bold;
}

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

/* Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* White text on dark button */
    border: none;
}

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

.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: var(--color-text-main);
    transform: translateY(-2px);
}

/* Layout */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.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: 10px; /* Small top padding, body handles header offset */
    background-color: var(--color-background-dark);
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 12px;
}

.page-promotions__hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

.page-promotions__intro-section,
.page-promotions__how-to-claim,
.page-promotions__terms,
.page-promotions__cta-bottom {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-background-dark); /* Dark background sections */
    color: var(--color-text-main);
}

.page-promotions__light-bg {
    background-color: #ffffff; /* Light background sections */
    color: #333333; /* Dark text for light background */
    padding: 80px 0;
}

.page-promotions__light-bg h2,
.page-promotions__light-bg h3 {
    color: var(--color-gold); /* Gold for titles */
}

.page-promotions__light-bg p,
.page-promotions__light-bg li {
    color: #333333; /* Dark text */
}

.page-promotions__light-bg .page-promotions__text-link {
    color: var(--color-primary);
}

.page-promotions__light-bg .page-promotions__btn-secondary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.page-promotions__light-bg .page-promotions__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.page-promotions__promo-grid {
    padding: 80px 0;
}

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

.page-promotions__promo-card {
    background-color: var(--color-card-bg); /* Dark card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    color: var(--color-text-main);
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
}

.page-promotions__card-image {
    width: 100%;
    height: 250px; /* 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 {
    color: var(--color-gold); /* Gold for card titles */
    font-size: 1.4em;
    margin-bottom: 10px;
}

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

.page-promotions__how-to-claim .page-promotions__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__step-item {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.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: var(--color-text-main);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--color-glow);
}

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

.page-promotions__step-description {
    color: var(--color-text-secondary);
}

.page-promotions__btn-wide {
    margin-top: 40px;
    padding: 18px 40px;
    font-size: 1.2em;
    width: auto;
}

.page-promotions__vip-club .page-promotions__vip-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__vip-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

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

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

.page-promotions__vip-benefits li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #333333; /* Dark text for light background VIP section */
    font-size: 1.1em;
}

.page-promotions__vip-benefits li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.page-promotions__terms {
    padding-bottom: 80px;
}

.page-promotions__faq-section {
    padding: 80px 0;
}

.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__faq-item {
    background-color: var(--color-card-bg); /* Dark background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: var(--color-text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--color-gold); /* Gold for FAQ questions */
    list-style: none; /* Hide default marker */
}

.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;
    width: 100%;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    color: var(--color-text-secondary);
}

.page-promotions__cta-bottom {
    padding-bottom: 80px;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* Ensure container takes full width for responsiveness */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-promotions__hero-image {
        max-width: 90%;
    }
    .page-promotions__vip-content {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__vip-image,
    .page-promotions__vip-text {
        max-width: 100%;
    }
    .page-promotions__vip-benefits {
        text-align: left;
        margin: 20px auto;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .page-promotions h2 {
        font-size: 2em;
    }

    .page-promotions h3 {
        font-size: 1.3em;
    }

    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-promotions__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust clamp for mobile H1 */
    }

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

    .page-promotions__cta-button {
        padding: 12px 20px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* For stacked buttons */
    }
    
    .page-promotions__btn-wide {
        width: 100% !important;
    }

    .page-promotions__intro-section,
    .page-promotions__how-to-claim,
    .page-promotions__vip-club,
    .page-promotions__terms,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom {
        padding: 40px 0;
    }

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

    .page-promotions__grid,
    .page-promotions__how-to-claim .page-promotions__steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-promotions__card-image {
        height: 200px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all image containers are responsive */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__promo-grid,
    .page-promotions__promo-card,
    .page-promotions__how-to-claim,
    .page-promotions__step-item,
    .page-promotions__vip-club,
    .page-promotions__vip-content,
    .page-promotions__faq-section,
    .page-promotions__faq-item,
    .page-promotions__cta-bottom,
    .page-promotions__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px; /* Add padding to prevent content touching edges */
    }

    /* Specific adjustment for sections that might have zero horizontal padding by default */
    .page-promotions__intro-section > .page-promotions__container,
    .page-promotions__terms > .page-promotions__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Video responsiveness (if any, though not in this specific HTML draft, include for robustness) */
    .page-promotions video,
    .page-promotions__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
      overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-promotions h2 {
        font-size: 1.8em;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }
}