/* style/promotions.css */

/* Biến CSS */
:root {
    --primary-color: #0A2647;
    --secondary-color: #FFC107;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --background-light: #F8F9FA;
    --background-dark: #071C30;
    --border-color: #E0E0E0;
}

/* Base styles for the promotions page */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-light);
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-promotions__hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1A3E6C 100%);
    color: var(--text-light);
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.page-promotions__hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
    padding: 0 20px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.page-promotions__hero-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__hero-btn:hover {
    background-color: #FFD700; /* Slightly lighter yellow */
    transform: translateY(-3px);
}

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.page-promotions__intro, .page-promotions__terms, .page-promotions__guide, .page-promotions__why-choose, .page-promotions__faq, .page-promotions__cta {
    padding: 60px 0;
}

.page-promotions__intro p, .page-promotions__terms p, .page-promotions__guide p, .page-promotions__why-choose p {
    font-size: 1.1em;
    text-align: justify;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-promotions__types {
    background-color: var(--background-dark);
    padding: 80px 0;
}

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

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

.page-promotions__card {
    background-color: var(--text-light);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.page-promotions__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-promotions__card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin: 25px 20px 15px;
    font-weight: bold;
}

.page-promotions__card-description {
    font-size: 1em;
    color: var(--text-dark);
    padding: 0 20px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__card-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-promotions__card-btn:hover {
    background-color: #FFD700;
    transform: translateY(-2px);
}

.page-promotions__list {
    list-style-type: disc;
    padding-left: 30px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-promotions__list li {
    margin-bottom: 10px;
}

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

.page-promotions__content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-item {
    background-color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.page-promotions__faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    font-size: 1.1em;
    color: var(--text-dark);
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
    display: none;
}

.page-promotions__faq-answer.open {
    display: block;
}

.page-promotions__cta {
    background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
    color: var(--primary-color);
    text-align: center;
    padding: 80px 0;
    border-radius: 15px;
    margin: 60px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-promotions__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--primary-color);
}

.page-promotions__cta-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--primary-color);
}

.page-promotions__cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-btn:hover {
    background-color: #071C30; /* Slightly darker primary */
    transform: translateY(-3px);
}

/* Floating Ad */
.page-promotions__floating-ad {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.page-promotions__floating-btn {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-promotions__floating-btn:hover {
    transform: scale(1.05);
    background-color: #FFD700;
}

.page-promotions__floating-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    filter: brightness(0) saturate(100%) invert(8%) sepia(21%) saturate(2420%) hue-rotate(193deg) brightness(97%) contrast(100%); /* Primary color filter */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-promotions__cta-title {
        font-size: 2.5em;
    }
    .page-promotions__cta-description {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero {
        padding: 60px 0;
        min-height: 350px;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-promotions__intro, .page-promotions__terms, .page-promotions__guide, .page-promotions__why-choose, .page-promotions__faq, .page-promotions__cta {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-promotions__card-title {
        font-size: 1.4em;
    }
    .page-promotions__card-description {
        font-size: 0.95em;
    }
    .page-promotions__card-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-promotions__cta-title {
        font-size: 2em;
    }
    .page-promotions__cta-description {
        font-size: 1em;
    }
    .page-promotions__cta-btn {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .page-promotions__floating-btn {
        padding: 8px 12px;
        font-size: 1em;
    }
    .page-promotions__floating-icon {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__cta-title {
        font-size: 1.8em;
    }
    .page-promotions__cta-description {
        font-size: 0.9em;
    }
    .page-promotions__floating-ad {
        bottom: 15px;
        right: 15px;
    }
    .page-promotions__floating-text {
        display: none;
    }
    .page-promotions__floating-btn {
        padding: 10px;
        border-radius: 50%;
    }
    .page-promotions__floating-icon {
        margin-right: 0;
    }
}