/* style/promotions.css */

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

/* Base styles for the page content, assuming dark body background from shared.css */
.page-promotions {
    font-family: 'Arial', sans-serif; /* Or a suitable Vietnamese font */
    color: var(--color-text-main); /* Light text on dark background */
    background-color: var(--color-background); /* Explicitly set for main content if body is not covering */
    line-height: 1.6;
    padding-bottom: 50px; /* Ensure space before footer */
}

/* Section general styles */
.page-promotions__section-title {
    font-size: clamp(28px, 4vw, 42px); /* H1 rules applied, but for H2 */
    font-weight: 700;
    color: var(--color-gold); /* Using gold for titles for emphasis */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    padding-top: 20px;
}

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

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* Remove padding here, let hero-content control spacing */
    overflow: hidden;
    background-color: var(--color-deep-green); /* Fallback background for hero */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
}

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

.page-promotions__hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px 60px;
    text-align: center;
    box-sizing: border-box;
    background-color: var(--color-deep-green); /* Background behind text */
    margin-top: -5px; /* Slightly overlap with image to blend */
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.page-promotions__main-title {
    font-size: clamp(32px, 5vw, 56px); /* H1 font size control */
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-promotions__intro-text {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping by default */
    word-wrap: break-word; /* Allow text wrapping if needed */
    box-sizing: border-box;
}

.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-ish text on green gradient */
    border: 2px solid var(--color-button-gradient-start);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
    transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background); /* Dark text on gold hover */
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
    transform: translateY(-2px);
}

.page-promotions__card-button {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    width: fit-content;
    margin-top: auto; /* Push button to bottom of card */
}

.page-promotions__card-button:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    box-shadow: 0 4px 10px rgba(87, 227, 141, 0.3);
}

.page-promotions__card-button--small {
    padding: 8px 18px;
    font-size: 14px;
}


/* Overview Section */
.page-promotions__overview-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

/* Promotion Types Section */
.page-promotions__types-section {
    padding: 60px 0;
    background-color: var(--color-deep-green);
}

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

.page-promotions__promotion-card {
    background-color: var(--color-card-bg); /* Darker green background for cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(87, 227, 141, 0.2);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-promotions__card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-gold);
    margin: 20px 20px 10px;
    line-height: 1.3;
}

.page-promotions__card-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    padding: 0 20px 20px;
    flex-grow: 1; /* Allow description to take available space */
}


/* How-To-Claim Section */
.page-promotions__how-to-claim-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

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

.page-promotions__step-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--color-border);
}

.page-promotions__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-gold);
    color: var(--color-background); /* Dark text on gold number */
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-promotions__step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
}

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


/* Terms and Conditions Section */
.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--color-deep-green);
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__terms-list li {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__terms-item-title {
    color: var(--color-gold);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.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;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-main);
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-border);
    list-style: none; /* Hide default marker */
}

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

.page-promotions__faq-item summary:hover {
    background-color: var(--color-primary); /* Slightly lighter green on hover */
}

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

.page-promotions__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: var(--color-gold);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-promotions__faq-answer {
    padding: 20px;
    font-size: 16px;
    color: var(--color-text-secondary);
    background-color: var(--color-card-bg);
}

.page-promotions__faq-answer p {
    margin-bottom: 0;
}

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

/* Responsive Design */
/* Mobile first approach, adjustments for larger screens */

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 15px !important; /* Force padding for mobile */
    }

    .page-promotions__hero-content {
        padding: 30px 15px 40px !important;
    }

    .page-promotions__main-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 15px;
    }

    .page-promotions__intro-text {
        font-size: clamp(16px, 4vw, 20px);
        margin-bottom: 25px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__card-button {
        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__section-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 30px;
    }

    .page-promotions__promotion-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-promotions__card-image {
        height: 180px; /* Slightly smaller card image on mobile */
    }

    .page-promotions__card-title {
        font-size: 20px;
        margin: 15px 15px 8px;
    }

    .page-promotions__card-description {
        font-size: 14px;
        padding: 0 15px 15px;
    }

    .page-promotions__step-card {
        padding: 25px;
    }

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

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

    .page-promotions__terms-list li {
        padding: 15px;
        font-size: 14px;
    }

    .page-promotions__faq-item summary {
        padding: 15px;
        font-size: 16px;
    }

    .page-promotions__faq-answer {
        padding: 15px;
        font-size: 14px;
    }

    /* Image responsive adaptions */
    .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,
    .page-promotions__hero-image-wrapper { /* Added hero image wrapper */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding left/right already handled by .page-promotions__container */
    }

    /* Video responsive adaptions (if any video is used) */
    .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;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

/* Desktop specific adjustments */
@media (min-width: 769px) {
    .page-promotions__hero-section {
        padding-top: 10px; /* Small top padding for hero section */
    }
    .page-promotions__hero-content {
        padding-top: 60px;
        padding-bottom: 80px;
    }
    .page-promotions__hero-image {
        /* On desktop, image can be a bit taller to fill space */
        max-height: 500px;
    }
}