/* style/promotions.css */
/* 
 * CSS for the Promotions page (khuyến mãi)
 * BEM naming convention: .page-promotions__element-name
 * Language: Vietnamese (vi-VN)
 * Colors: #017439 (main), #FFFFFF (accent), #C30808 (register/login), #FFFF00 (register/login font)
 */

/* Base styles for the page content */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default page background */
}

/* Fixed header offset - apply to the first main content section if shared.css doesn't handle body padding */
.page-promotions__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Container for consistent content width */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
    background-color: #017439; /* Brand main color */
    color: #FFFFFF; /* White text for contrast */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.page-promotions__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Register/Login font color for highlight */
    line-height: 1.2;
}

.page-promotions__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    color: #f0f0f0;
}

/* Call to Action Buttons */
.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't increase total width */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
    color: #FFFFFF;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand main color */
    border: 2px solid #017439;
}

.page-promotions__dark-bg .page-promotions__btn-secondary {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.page-promotions__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

.page-promotions__dark-bg .page-promotions__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

/* Content Area Sections */
.page-promotions__content-area {
    padding: 60px 20px;
}

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

.page-promotions__dark-bg {
    background-color: #017439; /* Brand main color */
    color: #FFFFFF; /* White text for contrast */
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand main color */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-promotions__dark-bg .page-promotions__section-title {
    color: #FFFFFF;
}

.page-promotions__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__dark-bg .page-promotions__sub-title {
    color: #FFFF00; /* Highlight sub-titles in dark sections */
}

.page-promotions__paragraph {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Images */
.page-promotions__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover; /* Ensures images cover their area without distortion */
}

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

.page-promotions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Ensure text color is visible on light background */
}

.page-promotions__dark-bg .page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #017439; /* Brand main color */
}

.page-promotions__dark-bg .page-promotions__faq-question {
    background-color: rgba(0, 0, 0, 0.2);
    color: #FFFF00; /* Highlight in dark background */
}

.page-promotions__faq-question:hover {
    background-color: #e0e0e0;
}

.page-promotions__dark-bg .page-promotions__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

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

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

/* Styling for <details> tag for native accordion behavior */
.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change + to x or similar */
}

.page-promotions__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.1em;
    color: #555555;
}

.page-promotions__dark-bg .page-promotions__faq-answer {
    color: #e0e0e0;
}

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