/* style/promotions.css */

/* Variables for consistent styling based on provided palette */
:root {
    --pq88-primary-color: #11A84E;
    --pq88-secondary-color: #22C768;
    --pq88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --pq88-card-bg: #11271B;
    --pq88-background: #08160F;
    --pq88-text-main: #F2FFF6;
    --pq88-text-secondary: #A7D9B8;
    --pq88-border-color: #2E7A4E;
    --pq88-glow-color: #57E38D;
    --pq88-gold-color: #F2C14E;
    --pq88-divider-color: #1E3A2A;
    --pq88-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-khuynmi {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--pq88-text-main); /* Default text color for dark backgrounds */
    background-color: var(--pq88-background); /* Default background from palette */
}

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

.page-khuynmi__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--pq88-gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-khuynmi__text-block {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--pq88-text-secondary);
}

.page-khuynmi__text-block a {
    color: var(--pq88-secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-khuynmi__text-block a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-khuynmi__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-bottom: 50px; /* Space below content */
}

.page-khuynmi__hero-image-wrapper {
    width: 100%;
    order: 1; /* Image first */
}

.page-khuynmi__hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-khuynmi__hero-content {
    order: 2; /* Content after image */
    padding: 20px;
    max-width: 900px;
    margin-top: 20px; /* Space between image and content */
    color: var(--pq88-text-main);
}

.page-khuynmi__main-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--pq88-gold-color);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--pq88-text-secondary);
}

/* Buttons */
.page-khuynmi__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-khuynmi__btn-primary {
    background: var(--pq88-button-gradient);
    color: var(--pq88-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-khuynmi__btn-secondary {
    background-color: transparent;
    color: var(--pq88-gold-color);
    border: 2px solid var(--pq88-gold-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__btn-secondary:hover {
    background-color: var(--pq88-gold-color);
    color: var(--pq88-background);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Section Backgrounds for Contrast */
.page-khuynmi__dark-bg {
    background-color: var(--pq88-background);
    color: var(--pq88-text-main);
    padding: 60px 0;
}

.page-khuynmi__light-bg {
    background-color: var(--pq88-card-bg);
    color: var(--pq88-text-main);
    padding: 60px 0;
}

/* Overview Section */
.page-khuynmi__overview-section {
    text-align: center;
}

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

.page-khuynmi__card {
    background-color: var(--pq88-background);
    border: 1px solid var(--pq88-border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.page-khuynmi__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

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

.page-khuynmi__card-title {
    font-size: 24px;
    color: var(--pq88-gold-color);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-khuynmi__card-description {
    font-size: 16px;
    color: var(--pq88-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-khuynmi__card-button {
    margin-top: auto; /* Push button to bottom */
}

/* Welcome Bonus Section */
.page-khuynmi__welcome-bonus-section {
    text-align: center;
}

.page-khuynmi__bonus-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-khuynmi__bonus-item {
    background-color: var(--pq88-card-bg);
    border: 1px solid var(--pq88-border-color);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px;
}

.page-khuynmi__bonus-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__item-title {
    font-size: 26px;
    color: var(--pq88-gold-color);
    margin-bottom: 15px;
}

.page-khuynmi__item-description {
    font-size: 17px;
    color: var(--pq88-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Daily/Weekly Section */
.page-khuynmi__daily-weekly-section {
    text-align: center;
}

.page-khuynmi__promos-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.page-khuynmi__promo-item {
    background-color: var(--pq88-background);
    border: 1px solid var(--pq88-border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuynmi__promo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__promo-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 30px;
    flex-shrink: 0;
    display: block;
}

.page-khuynmi__promo-content {
    text-align: left;
    flex-grow: 1;
}

/* Events & Tournaments Section */
.page-khuynmi__events-tournaments-section {
    text-align: center;
}

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

.page-khuynmi__card--event .page-khuynmi__card-image {
    height: 220px;
}

/* VIP Program Section */
.page-khuynmi__vip-program-section {
    text-align: center;
}

.page-khuynmi__vip-benefits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.page-khuynmi__benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    flex: 1;
    min-width: 300px;
    background-color: var(--pq88-background);
    border: 1px solid var(--pq88-border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-khuynmi__list-item {
    font-size: 18px;
    color: var(--pq88-text-main);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-khuynmi__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.page-khuynmi__vip-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block;
}

/* Terms & Conditions Section */
.page-khuynmi__terms-conditions-section {
    text-align: center;
}

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

.page-khuynmi__term-item {
    background-color: var(--pq88-card-bg);
    border: 1px solid var(--pq88-border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-khuynmi__term-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

/* FAQ Section */
.page-khuynmi__faq-section {
    text-align: center;
}

.page-khuynmi__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-khuynmi__faq-item {
    background-color: var(--pq88-background);
    border: 1px solid var(--pq88-border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.page-khuynmi__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 20px;
    font-weight: bold;
    color: var(--pq88-gold-color);
    cursor: pointer;
    background-color: var(--pq88-card-bg);
    border-bottom: 1px solid var(--pq88-border-color);
    list-style: none; /* For details/summary */
}

.page-khuynmi__faq-question::-webkit-details-marker {
    display: none;
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-question {
    border-bottom: 1px solid var(--pq88-divider-color);
}

.page-khuynmi__faq-qtext {
    flex-grow: 1;
}

.page-khuynmi__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--pq88-gold-color);
}

.page-khuynmi__faq-answer {
    padding: 15px 25px 20px;
    font-size: 17px;
    color: var(--pq88-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-answer {
    max-height: 1000px; /* Sufficiently large value */
    transition: max-height 0.5s ease-in;
}

.page-khuynmi__faq-answer p {
    margin-bottom: 0;
}

.page-khuynmi__faq-answer a {
    color: var(--pq88-secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-khuynmi__faq-answer a:hover {
    text-decoration: underline;
}

/* Conclusion Section */
.page-khuynmi__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-khuynmi__hero-content {
        margin-top: 0;
    }
}

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

    .page-khuynmi__dark-bg, .page-khuynmi__light-bg {
        padding: 40px 0;
    }

    .page-khuynmi__hero-section {
        padding-bottom: 30px;
    }

    .page-khuynmi__hero-content {
        padding: 15px;
        margin-top: 15px;
    }

    .page-khuynmi__main-title {
        font-size: clamp(28px, 8vw, 42px);
        margin-bottom: 15px;
    }

    .page-khuynmi__description {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .page-khuynmi__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 30px;
    }

    .page-khuynmi__text-block {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-khuynmi__promotions-grid,
    .page-khuynmi__event-cards,
    .page-khuynmi__terms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-khuynmi__bonus-details {
        flex-direction: column;
        gap: 20px;
    }

    .page-khuynmi__bonus-item {
        padding: 20px;
        min-width: unset;
    }

    .page-khuynmi__promo-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .page-khuynmi__promo-image {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .page-khuynmi__promo-content {
        text-align: center;
    }

    .page-khuynmi__vip-benefits {
        flex-direction: column;
        gap: 30px;
    }

    .page-khuynmi__benefits-list {
        padding: 20px;
        min-width: unset;
    }

    .page-khuynmi__vip-image {
        max-width: 100%;
    }

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

    .page-khuynmi__item-description {
        font-size: 16px;
    }

    .page-khuynmi__faq-question {
        font-size: 18px;
        padding: 15px 20px;
    }

    .page-khuynmi__faq-answer {
        font-size: 16px;
        padding: 10px 20px 15px;
    }

    /* Mobile image responsiveness */
    .page-khuynmi img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-khuynmi__section,
    .page-khuynmi__card,
    .page-khuynmi__container,
    .page-khuynmi__hero-image-wrapper,
    .page-khuynmi__promo-item,
    .page-khuynmi__bonus-item,
    .page-khuynmi__vip-benefits,
    .page-khuynmi__terms-grid,
    .page-khuynmi__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-khuynmi__cta-button, 
    .page-khuynmi__btn-primary, 
    .page-khuynmi__btn-secondary, 
    .page-khuynmi a[class*="button"],
    .page-khuynmi a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 10px;
    }

    .page-khuynmi__cta-buttons,
    .page-khuynmi__button-group,
    .page-khuynmi__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column;
    }

    .page-khuynmi__hero-section {
        padding-top: 10px !important;
    }
}

/* Ensure no filter on images */
.page-khuynmi img {
    filter: none !important;
}