/* style/promotions.css */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #E74C3C;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f1f3f5;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

.page-promotions {
    background-color: var(--dark-bg-1); /* Kế thừa từ shared.css, thường là nền tối */
    color: var(--text-light); /* Chữ màu sáng trên nền tối */
    padding-top: 120px; /* Đảm bảo không bị header cố định che khuất */
}

.page-promotions__hero-banner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 180px; /* Desktop: Đảm bảo nội dung không bị fixed nav che khuất */
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2a3a 100%); /* Nền gradient tối cho banner */
    color: var(--text-light);
    overflow: hidden;
}

.page-promotions__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.page-promotions__hero-content {
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #e0e0e0;
}

.page-promotions__highlight-text {
    color: #FFD700; /* Màu vàng nổi bật */
    font-weight: bold;
}

.page-promotions__section {
    padding: 60px 20px;
    background-color: var(--bg-light);
    color: var(--text-dark); /* Chữ tối trên nền sáng */
}

.page-promotions__section:nth-of-type(even) {
    background-color: #ffffff;
}

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

.page-promotions__card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.page-promotions__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-promotions__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.page-promotions__text-block {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* CTA Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.page-promotions__btn-primary {
    background: var(--secondary-color);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.page-promotions__btn-primary:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.page-promotions__btn-secondary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
    margin-top: 15px;
}

.page-promotions__btn-secondary:hover {
    background: #1a2a3a;
    border-color: #1a2a3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.4);
}

/* Promotional Activities Grid */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__promo-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
}

.page-promotions__promo-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-promotions__promo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions__promo-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* How-to-Claim Section */
.page-promotions__how-to-claim .page-promotions__card {
    padding: 50px;
}

.page-promotions__numbered-list {
    list-style: none;
    counter-reset: my-awesome-counter;
    padding: 0;
    margin: 30px 0;
}

.page-promotions__list-item {
    counter-increment: my-awesome-counter;
    margin-bottom: 20px;
    position: relative;
    padding-left: 50px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-promotions__list-item strong {
    color: var(--primary-color);
}

.page-promotions__list-item::before {
    content: counter(my-awesome-counter);
    background-color: var(--secondary-color);
    color: var(--text-light);
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

/* Latest News & Promotions */
.page-promotions__latest-news {
    background-color: var(--bg-light);
}

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

.page-promotions__news-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

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

.page-promotions__news-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__news-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-promotions__news-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__news-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions__news-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-promotions__read-more {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-top: 10px;
}

.page-promotions__read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.page-promotions__view-all-button {
    text-align: center;
    margin-top: 40px;
}

.page-promotions__link-secondary {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-promotions__link-secondary:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: #ffffff;
}

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

.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none;
}

.page-promotions__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #fcfcfc;
    color: var(--text-dark);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* Đủ lớn để chứa mọi nội dung */
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid #f0f0f0;
}

.page-promotions__faq-answer p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 38px;
    }

    .page-promotions__section-title {
        font-size: 32px;
    }

    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

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

@media (max-width: 768px) {
    .page-promotions {
        padding-top: 100px !important; /* Mobile: Đảm bảo nội dung không bị fixed nav che khuất */
    }

    .page-promotions__hero-banner {
        padding-top: 160px !important; /* Mobile: Đảm bảo nội dung không bị fixed nav che khuất */
        padding: 40px 15px;
    }

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

    .page-promotions__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }

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

    .page-promotions__container, .page-promotions__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 25px 20px;
    }

    .page-promotions__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-promotions__text-block, .page-promotions__promo-description, .page-promotions__list-item p, .page-promotions__news-excerpt, .page-promotions__faq-answer p {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-promotions__promo-grid, .page-promotions__news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-promotions__promo-card {
        padding: 20px;
    }

    .page-promotions__promo-image {
        max-width: 250px;
    }

    .page-promotions__promo-title {
        font-size: 22px;
    }

    .page-promotions__numbered-list {
        margin: 20px 0;
    }

    .page-promotions__list-item {
        padding-left: 45px;
    }

    .page-promotions__list-item::before {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .page-promotions__news-image {
        height: 180px;
    }

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

    .page-promotions__faq-question {
        padding: 15px 20px;
    }

    .page-promotions__faq-question h3 {
        font-size: 16px;
    }

    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }

    .page-promotions__faq-answer {
        padding: 0 20px;
    }

    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px !important;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}