/* style/promotions.css */

/* Base styles for the page-promotions scope */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Explicitly set to match body if not inherited correctly */
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand green for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-promotions__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-promotions__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff; /* White text for dark overlay */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
}

.page-promotions__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.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/border are included in width */
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

/* Custom button colors based on requirements */
.page-promotions__btn-primary {
    background: #C30808; /* Đăng ký/Login color */
    color: #FFFF00; /* Đăng ký/Login font color */
    border: 2px solid #C30808;
}

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

.page-promotions__btn-secondary {
    background: #017439; /* Brand green */
    color: #ffffff; /* White text for contrast */
    border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
    background: #005a2e;
    border-color: #005a2e;
}

.page-promotions__center-align {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

/* Intro Section */
.page-promotions__intro-section {
    padding: 60px 0;
}

/* Promotion Types Section */
.page-promotions__promo-types {
    padding: 60px 0;
    background-color: #017439; /* Brand green background */
    color: #ffffff; /* White text for dark background */
}

.page-promotions__promo-types .page-promotions__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-promotions__promo-types .page-promotions__section-text {
    color: #f0f0f0; /* Slightly off-white for body text */
}

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

.page-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card for dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* White text for card */
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    color: #FFFF00; /* Yellow for card titles */
    margin-bottom: 15px;
}

.page-promotions__card-description {
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
    flex-grow: 1; /* Make description take available space */
}

/* How to Join Section */
.page-promotions__how-to-join {
    padding: 60px 0;
}

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

.page-promotions__step-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-promotions__step-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 15px;
}

.page-promotions__step-description {
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    padding: 60px 0;
    background-color: #017439; /* Brand green background */
    color: #ffffff;
}

.page-promotions__terms-conditions .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__terms-conditions .page-promotions__section-text {
    color: #f0f0f0;
}

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

.page-promotions__terms-list .page-promotions__list-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-promotions__terms-list .page-promotions__list-item-title {
    font-size: 1.3em;
    color: #FFFF00; /* Yellow for sub-titles */
    margin-bottom: 10px;
}

.page-promotions__terms-list .page-promotions__list-item-description {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
}

/* Tips Section */
.page-promotions__tips {
    padding: 60px 0;
}

.page-promotions__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__tips-list .page-promotions__list-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__tips-list .page-promotions__list-item-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
}

.page-promotions__tips-list .page-promotions__list-item-description {
    font-size: 1em;
    line-height: 1.6;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: #017439; /* Brand green background */
    color: #ffffff;
}

.page-promotions__faq-section .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__faq-section .page-promotions__section-text {
    color: #f0f0f0;
}

.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for FAQ questions */
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-promotions__faq-title {
    margin: 0;
    flex-grow: 1;
}

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Plus to X for active */
}