/* style/promotions.css */

/* Biến CSS */
:root {
    --page-promotions-primary-color: #007BFF;
    --page-promotions-secondary-color: #FFC107;
    --page-promotions-dark-text: #212529;
    --page-promotions-light-text: #f8f9fa;
    --page-promotions-grey-bg: #f2f2f2;
    --page-promotions-card-bg: #ffffff;
    --page-promotions-border-color: #e0e0e0;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-promotions-dark-text);
    background-color: var(--page-promotions-grey-bg);
}

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

/* Hero Section */
.page-promotions__hero {
    background: linear-gradient(135deg, var(--page-promotions-primary-color) 0%, #0056b3 100%); /* Darker blue for better contrast */
    color: var(--page-promotions-light-text);
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
    position: relative; /* For image positioning */
    overflow: hidden;
    border-bottom: 5px solid var(--page-promotions-secondary-color);
}

.page-promotions__hero-content {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    z-index: 1;
}

.page-promotions__title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-promotions-light-text); /* Ensure high contrast */
}

.page-promotions__subtitle {
    font-size: 1.4em;
    margin-bottom: 30px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9); /* Slightly muted for readability */
}

.page-promotions__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.page-promotions__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__section:nth-of-type(even) {
    background-color: var(--page-promotions-grey-bg);
}

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--page-promotions-primary-color);
    font-weight: 700;
}

.page-promotions__text {
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: var(--page-promotions-dark-text);
}

.page-promotions__text--center {
    text-align: center;
}

.page-promotions .highlight {
    color: var(--page-promotions-secondary-color);
}

.page-promotions .keyword {
    font-weight: bold;
    color: var(--page-promotions-primary-color);
}

/* Buttons */
.page-promotions__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    text-align: center;
}

.page-promotions__btn--primary {
    background-color: var(--page-promotions-secondary-color);
    color: var(--page-promotions-dark-text); /* Ensure good contrast with yellow */
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.page-promotions__btn--primary:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
}

.page-promotions__btn--secondary {
    background-color: var(--page-promotions-primary-color);
    color: var(--page-promotions-light-text);
    border: 2px solid var(--page-promotions-primary-color);
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.page-promotions__btn--secondary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.page-promotions__btn--tertiary {
    background-color: var(--page-promotions-grey-bg);
    color: var(--page-promotions-primary-color);
    border: 2px solid var(--page-promotions-primary-color);
    padding: 10px 20px;
    font-size: 1em;
}

.page-promotions__btn--tertiary:hover {
    background-color: var(--page-promotions-primary-color);
    color: var(--page-promotions-light-text);
    transform: translateY(-2px);
}

.page-promotions__btn--link {
    background: none;
    border: none;
    color: var(--page-promotions-primary-color);
    text-decoration: underline;
    padding: 0;
    font-size: 1em;
}

.page-promotions__btn--link:hover {
    color: #0056b3;
}

.page-promotions__btn--large {
    padding: 18px 40px;
    font-size: 1.2em;
    margin-top: 30px;
}

/* Promo Categories Grid */
.page-promotions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions__promo-card {
    background-color: var(--page-promotions-card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-promotions__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__promo-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-promotions__promo-card-description {
    font-size: 1em;
    color: var(--page-promotions-dark-text);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Detailed Promotions List */
.page-promotions__detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__detail-item {
    background-color: var(--page-promotions-card-bg);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    padding: 25px;
    border-left: 5px solid var(--page-promotions-secondary-color);
    display: flex;
    flex-direction: column;
}

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

.page-promotions__detail-title a {
    color: var(--page-promotions-primary-color);
    text-decoration: none;
}

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

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

/* Why Join Section */
.page-promotions__why-join {
    background-color: var(--page-promotions-primary-color);
    color: var(--page-promotions-light-text);
}

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

.page-promotions__why-join .highlight {
    color: var(--page-promotions-secondary-color);
}

.page-promotions__why-join .page-promotions__text {
    color: rgba(255, 255, 255, 0.9);
}

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

.page-promotions__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-promotions__feature-item:hover {
    transform: translateY(-5px);
}

.page-promotions__feature-item h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--page-promotions-secondary-color);
}

.page-promotions__feature-item p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.85);
}

/* FAQ Section */
.page-promotions__faq {
    background-color: var(--page-promotions-card-bg);
}

.page-promotions__faq-item {
    background-color: var(--page-promotions-grey-bg);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    text-align: left;
    border: 1px solid var(--page-promotions-border-color);
}

.page-promotions__faq-question {
    font-size: 1.3em;
    color: var(--page-promotions-primary-color);
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-promotions__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-promotions__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-promotions__faq-answer {
    font-size: 1em;
    color: var(--page-promotions-dark-text);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 15px;
}

.page-promotions__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding: 15px;
}

/* Final CTA Section */
.page-promotions__cta-final {
    background: linear-gradient(45deg, #007BFF, #0056b3);
    color: var(--page-promotions-light-text);
    padding: 80px 0;
    text-align: center;
}

.page-promotions__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-promotions__cta-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-promotions__cta-final .page-promotions__text {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-promotions__hero {
        flex-direction: column;
        text-align: center;
    }

    .page-promotions__hero-content {
        order: 2;
    }

    .page-promotions__hero-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }

    .page-promotions__title {
        font-size: 2.8em;
    }

    .page-promotions__subtitle {
        font-size: 1.2em;
    }

    .page-promotions__section-title {
        font-size: 2em;
    }

    .page-promotions__grid, .page-promotions__detail-list {
        grid-template-columns: 1fr;
    }

    .page-promotions__promo-card, .page-promotions__detail-item {
        text-align: center;
        align-items: center;
    }

    .page-promotions__btn--secondary {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero {
        padding: 60px 0;
    }

    .page-promotions__title {
        font-size: 2.2em;
    }

    .page-promotions__subtitle {
        font-size: 1em;
    }

    .page-promotions__section {
        padding: 40px 0;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .page-promotions__btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-promotions__btn--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .page-promotions__faq-question {
        font-size: 1.1em;
    }

    .page-promotions__faq-answer {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .page-promotions__title {
        font-size: 1.8em;
    }

    .page-promotions__subtitle {
        font-size: 0.9em;
    }

    .page-promotions__section-title {
        font-size: 1.5em;
    }

    .page-promotions__btn {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 10px;
    }

    .page-promotions__hero-content .page-promotions__btn--secondary {
        margin-top: 15px;
    }

    .page-promotions__promo-card, .page-promotions__detail-item, .page-promotions__feature-item, .page-promotions__faq-item {
        padding: 20px;
    }
}