/* style/index-latest-promotions.css */

/* Biến CSS */
:root {
    --fi88-primary: #4A2780;
    --fi88-secondary: #FFD700;
    --fi88-text-light: #ffffff;
    --fi88-text-dark: #333333;
    --fi88-bg-light: #f5f5f5;
    --fi88-bg-dark: #2c164d;
    --fi88-accent-green: #b5d87f; /* Complementary to primary */
    --fi88-accent-blue: #0028ff; /* Complementary to secondary */
}

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

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

.page-index-latest-promotions__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-index-latest-promotions__section:nth-of-type(even) {
    background-color: var(--fi88-bg-dark);
    color: var(--fi88-text-light);
}

.page-index-latest-promotions__section:nth-of-type(even) h2,
.page-index-latest-promotions__section:nth-of-type(even) h3 {
    color: var(--fi88-secondary);
}

.page-index-latest-promotions__section:nth-of-type(even) p {
    color: var(--fi88-text-light);
}

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

.page-index-latest-promotions__section:nth-of-type(even) .page-index-latest-promotions__section-title {
    color: var(--fi88-secondary);
}

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

.page-index-latest-promotions__section-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-index-latest-promotions__hero-section {
    background: linear-gradient(135deg, var(--fi88-primary) 0%, #6a3c9e 50%, var(--fi88-secondary) 100%);
    color: var(--fi88-text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-index-latest-promotions__hero-section .page-index-latest-promotions__container {
    position: relative;
    z-index: 1;
}

.page-index-latest-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--fi88-text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-latest-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-latest-promotions__cta-button {
    display: inline-block;
    background-color: var(--fi88-secondary);
    color: var(--fi88-primary);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-index-latest-promotions__cta-button--secondary {
    background-color: var(--fi88-primary);
    color: var(--fi88-secondary);
    border: 2px solid var(--fi88-secondary);
}

.page-index-latest-promotions__cta-button--secondary:hover {
    background-color: var(--fi88-bg-dark);
    color: var(--fi88-secondary);
    border-color: var(--fi88-secondary);
}

/* Feature List (Why Choose Us) */
.page-index-latest-promotions__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-index-latest-promotions__feature-item {
    background-color: var(--fi88-text-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
    border-top: 5px solid var(--fi88-primary);
}

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

.page-index-latest-promotions__feature-item h3 {
    color: var(--fi88-primary);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-index-latest-promotions__feature-item p {
    color: var(--fi88-text-dark);
    font-size: 1em;
}

/* Content with Image Layout */
.page-index-latest-promotions__content-with-image {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.page-index-latest-promotions__content-with-image--reverse {
    flex-direction: row-reverse;
}

.page-index-latest-promotions__text-content {
    flex: 1;
}

.page-index-latest-promotions__text-content h3 {
    color: var(--fi88-primary);
    font-size: 1.8em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-index-latest-promotions__text-content p {
    margin-bottom: 15px;
}

.page-index-latest-promotions__text-content ul,
.page-index-latest-promotions__text-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--fi88-text-dark);
}

.page-index-latest-promotions__text-content li {
    margin-bottom: 8px;
}

.page-index-latest-promotions__section:nth-of-type(even) .page-index-latest-promotions__text-content h3 {
    color: var(--fi88-secondary);
}

.page-index-latest-promotions__section:nth-of-type(even) .page-index-latest-promotions__text-content ul,
.page-index-latest-promotions__section:nth-of-type(even) .page-index-latest-promotions__text-content ol,
.page-index-latest-promotions__section:nth-of-type(even) .page-index-latest-promotions__text-content li {
    color: var(--fi88-text-light);
}

.page-index-latest-promotions__image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

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

.page-index-latest-promotions__event-card {
    background-color: var(--fi88-text-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-bottom: 5px solid var(--fi88-secondary);
    transition: transform 0.3s ease;
}

.page-index-latest-promotions__event-card:hover {
    transform: translateY(-5px);
}

.page-index-latest-promotions__event-card h3 {
    color: var(--fi88-primary);
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-index-latest-promotions__event-card p {
    color: var(--fi88-text-dark);
    margin-bottom: 25px;
}

.page-index-latest-promotions__event-button {
    display: inline-block;
    background-color: var(--fi88-primary);
    color: var(--fi88-text-light);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index-latest-promotions__event-button:hover {
    background-color: var(--fi88-bg-dark);
    transform: translateY(-2px);
}

/* How-to-Claim Steps */
.page-index-latest-promotions__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index-latest-promotions__step-item {
    background-color: var(--fi88-text-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    border-left: 5px solid var(--fi88-secondary);
}

.page-index-latest-promotions__step-item h3 {
    color: var(--fi88-primary);
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-index-latest-promotions__step-item p {
    color: var(--fi88-text-dark);
    margin-bottom: 20px;
}

.page-index-latest-promotions__step-button {
    display: inline-block;
    background-color: var(--fi88-secondary);
    color: var(--fi88-primary);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index-latest-promotions__step-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-index-latest-promotions__faq-item {
    background-color: var(--fi88-text-light);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-index-latest-promotions__faq-item h3 {
    margin: 0;
}

.page-index-latest-promotions__faq-question {
    display: block;
    padding: 20px;
    background-color: var(--fi88-primary);
    color: var(--fi88-text-light);
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    padding-right: 50px; /* Space for arrow */
}

.page-index-latest-promotions__faq-question:hover {
    background-color: var(--fi88-bg-dark);
}

.page-index-latest-promotions__faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-index-latest-promotions__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-index-latest-promotions__faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    color: var(--fi88-text-dark);
}

.page-index-latest-promotions__faq-answer.open {
    max-height: 200px; /* Adjust as needed */
    padding: 20px;
}

/* Conclusion Section */
.page-index-latest-promotions__conclusion {
    text-align: center;
    padding: 80px 0;
    background-color: var(--fi88-primary);
    color: var(--fi88-text-light);
}

.page-index-latest-promotions__conclusion .page-index-latest-promotions__section-title {
    color: var(--fi88-secondary);
}

.page-index-latest-promotions__conclusion .page-index-latest-promotions__section-title::after {
    background-color: var(--fi88-text-light);
}

.page-index-latest-promotions__conclusion p {
    font-size: 1.15em;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-index-latest-promotions__conclusion a {
    color: var(--fi88-secondary);
    font-weight: bold;
    text-decoration: underline;
}

.page-index-latest-promotions__conclusion a:hover {
    color: #e6c200;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index-latest-promotions__hero-title {
        font-size: 2.8em;
    }

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

    .page-index-latest-promotions__content-with-image,
    .page-index-latest-promotions__content-with-image--reverse {
        flex-direction: column;
    }

    .page-index-latest-promotions__image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-index-latest-promotions__hero-title {
        font-size: 2.2em;
    }

    .page-index-latest-promotions__hero-description {
        font-size: 1em;
    }

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

    .page-index-latest-promotions__feature-list,
    .page-index-latest-promotions__event-grid,
    .page-index-latest-promotions__steps {
        grid-template-columns: 1fr;
    }

    .page-index-latest-promotions__image {
        max-width: 100%;
    }

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

    .page-index-latest-promotions__hero-section {
        padding: 80px 0;
    }

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

@media (max-width: 480px) {
    .page-index-latest-promotions__hero-title {
        font-size: 1.8em;
    }

    .page-index-latest-promotions__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

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