/* style/promotions.css */

/* Custom Colors */
:root {
    --yg88-primary-color: #11A84E;
    --yg88-secondary-color: #22C768;
    --yg88-button-gradient-start: #2AD16F;
    --yg88-button-gradient-end: #13994A;
    --yg88-card-bg: #11271B;
    --yg88-page-bg: #08160F;
    --yg88-text-main: #F2FFF6;
    --yg88-text-secondary: #A7D9B8;
    --yg88-border-color: #2E7A4E;
    --yg88-glow-color: #57E38D;
    --yg88-gold-color: #F2C14E;
    --yg88-divider-color: #1E3A2A;
    --yg88-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with shared body background */
.page-promotions {
    color: var(--yg88-text-main); /* Default text color for the page */
    background-color: var(--yg88-page-bg); /* Page specific background */
}

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px;
}

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

.page-promotions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--yg88-border-color);
    transform: translateY(-40px); /* Slightly overlap the image for visual flow */
    z-index: 1;
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--yg88-gold-color);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-promotions__description {
    font-size: 1.1rem;
    color: var(--yg88-text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--yg88-button-gradient-start) 0%, var(--yg88-button-gradient-end) 100%);
    color: var(--yg88-text-main);
    border: 2px solid var(--yg88-button-gradient-start);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, var(--yg88-button-gradient-end) 0%, var(--yg88-button-gradient-start) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--yg88-gold-color);
    border: 2px solid var(--yg88-gold-color);
}

.page-promotions__btn-secondary:hover {
    background: var(--yg88-gold-color);
    color: var(--yg88-page-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
}

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

.page-promotions__dark-bg {
    background-color: var(--yg88-deep-green);
    color: var(--yg88-text-main);
}

.page-promotions__light-bg {
    background-color: var(--yg88-card-bg);
    color: var(--yg88-text-main);
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--yg88-gold-color);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-promotions__text-block {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--yg88-text-main);
}

.page-promotions__text-main {
    color: var(--yg88-text-main);
}

.page-promotions__text-secondary {
    color: var(--yg88-text-secondary);
}

.page-promotions__note {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--yg88-text-secondary);
    margin-top: 30px;
}

.page-promotions__card-grid {
    padding: 60px 20px;
    box-sizing: border-box;
}

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

.page-promotions__card {
    background-color: var(--yg88-card-bg);
    border: 1px solid var(--yg88-border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__card-title {
    font-size: 1.4rem;
    color: var(--yg88-gold-color);
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-promotions__card-description {
    font-size: 0.95rem;
    color: var(--yg88-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 900px;
    text-align: left;
}

.page-promotions__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--yg88-text-main);
    line-height: 1.6;
}

.page-promotions__list li::before {
    content: '★'; /* Star bullet point */
    position: absolute;
    left: 0;
    color: var(--yg88-gold-color);
    font-size: 1.2rem;
    line-height: 1;
}

.page-promotions__vip-section {
    padding: 80px 20px;
    box-sizing: border-box;
}

.page-promotions__vip-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.page-promotions__vip-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-promotions__vip-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.page-promotions__vip-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__faq-section {
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 30px auto 0;
    text-align: left;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--yg88-gold-color);
    cursor: pointer;
    background-color: var(--yg88-deep-green);
    border-bottom: 1px solid var(--yg88-divider-color);
}

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

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 0.95rem;
    color: var(--yg88-text-secondary);
    line-height: 1.7;
}

.page-promotions__conclusion-section {
    padding: 80px 20px;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section,
    .page-promotions__section,
    .page-promotions__card-grid,
    .page-promotions__vip-section,
    .page-promotions__faq-section,
    .page-promotions__conclusion-section {
        padding: 40px 15px;
    }

    .page-promotions__hero-content {
        padding: 15px;
        transform: translateY(-10px);
    }

    .page-promotions__main-title {
        font-size: 2rem;
    }

    .page-promotions__description {
        font-size: 1rem;
    }

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 0.95rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__grid-container {
        grid-template-columns: 1fr;
    }

    .page-promotions__card {
        padding: 20px;
    }

    .page-promotions__vip-content {
        flex-direction: column;
        text-align: center;
    }

    .page-promotions__vip-text,
    .page-promotions__vip-image-wrapper {
        max-width: 100%;
    }

    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__hero-image-wrapper,
    .page-promotions__vip-section,
    .page-promotions__vip-content,
    .page-promotions__vip-text,
    .page-promotions__vip-image-wrapper,
    .page-promotions__faq-section,
    .page-promotions__faq-list,
    .page-promotions__conclusion-section,
    .page-promotions__cta-buttons,
    .page-promotions__grid-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .page-promotions__hero-section {
        padding-top: 10px !important;
    }
    
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

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

    .page-promotions__list li {
        font-size: 0.95rem;
    }
}