/* style/promotions.css */

:root {
    --lucky8-primary: #2F6BFF;
    --lucky8-secondary: #6FA3FF;
    --lucky8-button-gradient-start: #4A8BFF;
    --lucky8-button-gradient-end: #2F6BFF;
    --lucky8-card-bg: #FFFFFF;
    --lucky8-background: #F4F7FB;
    --lucky8-text-main: #1F2D3D;
    --lucky8-border: #D6E2FF;
    --lucky8-glow: #A5C4FF;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--lucky8-text-main);
    background-color: var(--lucky8-background);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--lucky8-background);
}

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

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--lucky8-background);
    border-radius: 8px;
    margin-top: -80px; /* Overlap slightly with image for visual appeal */
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-promotions__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em);
    color: var(--lucky8-primary);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-promotions__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--lucky8-text-main);
    margin-bottom: 30px;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--lucky8-primary-rgb), 0.3);
}

.page-promotions__btn-secondary {
    background-color: var(--lucky8-card-bg);
    color: var(--lucky8-primary);
    border: 2px solid var(--lucky8-primary);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--lucky8-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--lucky8-primary-rgb), 0.3);
}

/* General Section Styling */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--lucky8-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

.page-promotions__text-block--white {
    color: #ffffff;
}

.page-promotions__overview-section {
    padding: 80px 0;
    background-color: var(--lucky8-background);
}

.page-promotions__overview-section .page-promotions__btn-primary {
    margin-top: 30px;
}

/* Featured Promotions */
.page-promotions__featured-promotions {
    padding: 80px 0;
    background-color: var(--lucky8-primary);
    color: #ffffff;
}

.page-promotions__featured-promotions .page-promotions__section-title {
    color: #ffffff;
}

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

.page-promotions__promo-card {
    background-color: var(--lucky8-card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-promotions__promo-card-title {
    font-size: 1.4em;
    color: var(--lucky8-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__promo-card-title a {
    color: var(--lucky8-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__promo-card-title a:hover {
    color: var(--lucky8-secondary);
}

.page-promotions__promo-card-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--lucky8-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* VIP Section */
.page-promotions__vip-section {
    padding: 80px 0;
    background-color: var(--lucky8-background);
}

.page-promotions__vip-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-promotions__vip-text {
    flex: 1;
}

.page-promotions__vip-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-promotions__vip-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Terms & Conditions */
.page-promotions__terms-conditions {
    padding: 80px 0;
    background-color: var(--lucky8-primary);
    color: #ffffff;
}

.page-promotions__terms-conditions .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__terms-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

.page-promotions__terms-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-promotions__terms-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: block;
}

.page-promotions__terms-text {
    flex: 1;
}

.page-promotions__terms-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-promotions__terms-text ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-promotions__terms-text ul li::before {
    content: '•';
    color: var(--lucky8-secondary);
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

/* Guide Section */
.page-promotions__guide-section {
    padding: 80px 0;
    background-color: var(--lucky8-background);
}

.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__guide-item {
    background-color: var(--lucky8-card-bg);
    border: 1px solid var(--lucky8-border);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-promotions__guide-item h3 {
    color: var(--lucky8-primary);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-promotions__guide-item p {
    color: var(--lucky8-text-main);
    line-height: 1.6;
}

.page-promotions__cta-banner {
    position: relative;
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__cta-banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-promotions__cta-banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(var(--lucky8-primary-rgb), 0.7);
    text-align: center;
    padding: 20px;
}

.page-promotions__cta-banner-title {
    color: #ffffff;
    font-size: clamp(1.5em, 2.5vw, 2.2em);
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
}

/* Why Choose Us */
.page-promotions__why-choose-us {
    padding: 80px 0;
    background-color: var(--lucky8-primary);
    color: #ffffff;
}

.page-promotions__why-choose-us .page-promotions__section-title {
    color: #ffffff;
}

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

.page-promotions__reason-card {
    background-color: var(--lucky8-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-promotions__reason-card--white {
    color: var(--lucky8-text-main);
}

.page-promotions__reason-title {
    font-size: 1.4em;
    color: var(--lucky8-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__reason-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--lucky8-text-main);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--lucky8-background);
}

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

.page-promotions__faq-item {
    background-color: var(--lucky8-card-bg);
    border: 1px solid var(--lucky8-border);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-item details > summary {
    list-style: none;
}

.page-promotions__faq-item details > summary::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-question {
    padding: 20px 25px;
    font-size: 1.15em;
    color: var(--lucky8-primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-question,
.page-promotions__faq-item details[open] .page-promotions__faq-question {
    background-color: var(--lucky8-primary);
    color: #ffffff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.page-promotions__faq-question:hover {
    background-color: var(--lucky8-secondary);
    color: #ffffff;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

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

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--lucky8-text-main);
}

.page-promotions__faq-item:not(details) .page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* Sufficiently large value */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-promotions__hero-content {
        margin-top: -50px;
        padding: 30px 15px;
    }

    .page-promotions__main-title {
        font-size: 2.5em;
    }

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

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

    .page-promotions__vip-image-wrapper,
    .page-promotions__terms-image-wrapper {
        order: -1; /* Image above text on smaller screens */
        margin-bottom: 30px;
    }

    .page-promotions__cta-banner-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    /* All images */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers with images/content */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-image-wrapper,
    .page-promotions__hero-content,
    .page-promotions__overview-section,
    .page-promotions__featured-promotions,
    .page-promotions__promo-grid,
    .page-promotions__promo-card,
    .page-promotions__vip-section,
    .page-promotions__vip-content,
    .page-promotions__vip-text,
    .page-promotions__vip-image-wrapper,
    .page-promotions__terms-conditions,
    .page-promotions__terms-content,
    .page-promotions__terms-image-wrapper,
    .page-promotions__guide-section,
    .page-promotions__guide-list,
    .page-promotions__guide-item,
    .page-promotions__cta-banner,
    .page-promotions__cta-banner-content,
    .page-promotions__why-choose-us,
    .page-promotions__reasons-grid,
    .page-promotions__reason-card,
    .page-promotions__faq-section,
    .page-promotions__faq-list,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions 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;
    }

    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    .page-promotions__hero-section {
        padding: 40px 0 20px;
        padding-top: 10px !important; /* Small top padding */
    }

    .page-promotions__hero-content {
        margin-top: -30px;
        padding: 20px 10px;
    }

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

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

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

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

    .page-promotions__promo-card-image {
        height: auto;
    }

    .page-promotions__vip-content,
    .page-promotions__terms-content {
        gap: 20px;
    }

    .page-promotions__guide-item {
        padding: 20px;
    }

    .page-promotions__cta-banner-title {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
}