/* style/promotions.css */

/* Variables from custom color palette */
:root {
    --page-promotions-primary-color: #11A84E;
    --page-promotions-secondary-color: #22C768;
    --page-promotions-card-bg: #11271B;
    --page-promotions-background: #08160F;
    --page-promotions-text-main: #F2FFF6;
    --page-promotions-text-secondary: #A7D9B8;
    --page-promotions-border: #2E7A4E;
    --page-promotions-glow: #57E38D;
    --page-promotions-gold: #F2C14E;
    --page-promotions-divider: #1E3A2A;
    --page-promotions-deep-green: #0A4B2C;

    /* Button gradient */
    --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions {
    font-family: Arial, sans-serif;
    color: var(--page-promotions-text-main); /* Main text color for the page, contrasting with body background */
    background-color: var(--page-promotions-background); /* Page specific background, if different from body */
    line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--page-promotions-deep-green); /* Fallback background for hero */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Adjust based on hero image max width */
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-promotions__hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    box-sizing: border-box;
    color: var(--page-promotions-text-main);
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size */
    color: var(--page-promotions-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--page-promotions-text-secondary);
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    min-width: 160px; /* Ensure minimum width for buttons */
}

.page-promotions__btn-primary {
    background: var(--page-promotions-btn-gradient);
    color: var(--page-promotions-text-main); /* White text on dark green gradient */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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: transparent;
    color: var(--page-promotions-primary-color);
    border: 2px solid var(--page-promotions-primary-color);
    box-shadow: none;
}

.page-promotions__btn-secondary:hover {
    background: var(--page-promotions-primary-color);
    color: var(--page-promotions-text-main);
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
    background: var(--page-promotions-btn-gradient);
    color: var(--page-promotions-text-main);
    border: none;
}

.page-promotions__btn-small:hover {
    opacity: 0.9;
}

/* Section Titles and Descriptions */
.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--page-promotions-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__section-title--light {
    color: var(--page-promotions-text-main);
}

.page-promotions__section-description {
    font-size: 1.05rem;
    color: var(--page-promotions-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-promotions__section-description--light {
    color: var(--page-promotions-text-secondary);
}

/* Current Promotions Section */
.page-promotions__current-promos-section {
    padding: 60px 0;
    background-color: var(--page-promotions-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(--page-promotions-card-bg); /* Darker background for cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--page-promotions-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__promo-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for consistent card images */
    overflow: hidden;
}

.page-promotions__promo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min-size for display */
    min-height: 200px;
}

.page-promotions__promo-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: var(--page-promotions-text-main);
}

.page-promotions__promo-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__promo-title a {
    color: var(--page-promotions-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__promo-title a:hover {
    color: var(--page-promotions-gold);
}

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

/* Claim Guide Section */
.page-promotions__claim-guide-section {
    padding: 60px 0;
    background-color: var(--page-promotions-deep-green);
}

.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: guide-step;
}

.page-promotions__guide-item {
    background-color: var(--page-promotions-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid var(--page-promotions-border);
    text-align: center;
}

.page-promotions__guide-item::before {
    counter-increment: guide-step;
    content: "Bước " counter(guide-step);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--page-promotions-btn-gradient);
    color: var(--page-promotions-text-main);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__guide-step-title {
    font-size: 1.25rem;
    color: var(--page-promotions-gold);
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__guide-text {
    font-size: 0.95rem;
    color: var(--page-promotions-text-secondary);
}

.page-promotions__guide-text a {
    color: var(--page-promotions-primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__guide-text a:hover {
    text-decoration: underline;
}

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

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

.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__faq-item {
    background-color: var(--page-promotions-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--page-promotions-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-item summary {
    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-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--page-promotions-text-main);
    background-color: var(--page-promotions-card-bg);
    border-bottom: 1px solid var(--page-promotions-divider);
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--page-promotions-primary-color);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-promotions__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1rem;
    color: var(--page-promotions-text-secondary);
    background-color: var(--page-promotions-card-bg);
}

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

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

.page-promotions__cta-bottom-section .page-promotions__container {
    background-color: var(--page-promotions-card-bg); /* Darker background for the CTA box */
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--page-promotions-border);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-promotions__hero-content {
        padding: 0 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }
    .page-promotions__description {
        font-size: 1rem;
    }
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 3.8vw, 2.3rem);
    }
    .page-promotions__section-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 15px !important;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }
    .page-promotions__hero-image-wrapper {
        margin-bottom: 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-promotions__description {
        font-size: 0.95rem;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 0.95rem;
        min-width: unset;
    }

    .page-promotions__current-promos-section,
    .page-promotions__claim-guide-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        padding: 40px 0;
    }
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__promo-image-wrapper {
        height: 180px; /* Adjust height for mobile */
    }
    .page-promotions__promo-title {
        font-size: 1.15rem;
    }
    .page-promotions__promo-text {
        font-size: 0.9rem;
    }
    .page-promotions__guide-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__guide-item {
        padding: 25px;
    }
    .page-promotions__guide-step-title {
        font-size: 1.1rem;
    }
    .page-promotions__guide-text {
        font-size: 0.9rem;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px 15px 20px;
        font-size: 0.9rem;
    }
    .page-promotions__cta-bottom-section .page-promotions__container {
        padding: 40px 20px;
    }
    .page-promotions__cta-bottom-section .page-promotions__cta-buttons {
        max-width: 100%;
        padding: 0 15px;
    }

    /* Images and Videos responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions video,
    .page-promotions__video {
        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,
    .page-promotions__promo-image-wrapper,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-promotions__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }
}

/* Specific color contrast adjustments */
.page-promotions__dark-section {
    background: var(--page-promotions-deep-green);
    color: var(--page-promotions-text-main); /* White text on deep green */
}

/* Links within text */
.page-promotions p a, .page-promotions li a {
    color: var(--page-promotions-primary-color);
    text-decoration: underline;
}
.page-promotions p a:hover, .page-promotions li a:hover {
    color: var(--page-promotions-gold);
}