/* style/promotions.css */

/* Custom Colors */
:root {
    --go88-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --go88-card-bg: #11271B;
    --go88-bg: #08160F;
    --go88-text-main: #F2FFF6;
    --go88-text-secondary: #A7D9B8;
    --go88-border: #2E7A4E;
    --go88-glow: #57E38D;
    --go88-gold: #F2C14E;
    --go88-deep-green: #0A4B2C;
    --go88-primary-color: #11A84E; /* Main color */
    --go88-secondary-color: #22C768; /* Auxiliary color */
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--go88-text-main); /* Default text color for the page content */
    background-color: var(--go88-bg); /* Page background */
    line-height: 1.6;
}

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

.page-promotions__container--flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Hero Section */
.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 as body handles header offset */
    box-sizing: border-box;
    background-color: var(--go88-bg);
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px;
}

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

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    margin-top: 20px;
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--go88-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__intro-description {
    font-size: 1.15rem;
    color: var(--go88-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-promotions__cta-buttons--center {
    justify-content: center;
}

.page-promotions__cta-buttons--single {
    flex-grow: 1;
    max-width: 300px; /* Limit single button width */
    margin: 0 auto;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%;
}

.page-promotions__btn-primary {
    background: var(--go88-btn-gradient);
    color: var(--go88-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--go88-primary-color);
    border: 2px solid var(--go88-primary-color);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.2);
}

.page-promotions__btn-secondary:hover {
    background-color: rgba(17, 168, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.4);
}

/* Section Styling */
.page-promotions__section {
    padding: 80px 0;
    background-color: var(--go88-bg);
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--go88-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-promotions__section-description {
    font-size: 1.05rem;
    color: var(--go88-text-secondary);
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__dark-section {
    background-color: var(--go88-deep-green); /* Use Deep Green for darker sections */
    color: var(--go88-text-main);
}

/* Card Grid */
.page-promotions__card-grid,
.page-promotions__vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__card,
.page-promotions__vip-card {
    background-color: var(--go88-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--go88-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}

.page-promotions__card:hover,
.page-promotions__vip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__card-image,
.page-promotions__vip-image {
    width: 100%;
    height: auto;
    max-height: 250px; /* Constrain image height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block; /* Ensure no extra space below image */
}

.page-promotions__card-title,
.page-promotions__vip-title {
    font-size: 1.5rem;
    color: var(--go88-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__card-text,
.page-promotions__vip-text {
    font-size: 1rem;
    color: var(--go88-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-promotions__card-button {
    margin-top: auto; /* Push button to the bottom */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding-bottom: 80px;
}

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

.page-promotions__faq-item {
    background-color: var(--go88-card-bg);
    border: 1px solid var(--go88-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--go88-text-main);
    cursor: pointer;
    background-color: var(--go88-card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--go88-deep-green);
    color: var(--go88-gold);
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--go88-primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--go88-text-secondary);
    line-height: 1.7;
    /* For details tag, browser handles visibility */
}

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

/* Call to Action Bottom */
.page-promotions__cta-bottom {
    padding: 60px 0;
    background-color: var(--go88-deep-green);
    text-align: center;
}

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

.page-promotions__cta-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--go88-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-promotions__cta-text {
    font-size: 1.1rem;
    color: var(--go88-text-secondary);
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: 0;
    }
    .page-promotions__cta-bottom .page-promotions__container--flex {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__cta-content {
        text-align: center;
        margin-bottom: 30px;
    }
    .page-promotions__cta-buttons--single {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

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

    .page-promotions__intro-description {
        font-size: 1rem;
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-promotions__section {
        padding: 50px 0;
    }

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

    .page-promotions__section-description {
        font-size: 0.95rem;
    }

    .page-promotions__card-grid,
    .page-promotions__vip-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-promotions__card,
    .page-promotions__vip-card {
        padding: 25px;
    }

    .page-promotions__card-image,
    .page-promotions__vip-image {
        max-height: 200px;
    }

    .page-promotions__card-title,
    .page-promotions__vip-title {
        font-size: 1.3rem;
    }

    .page-promotions__card-text,
    .page-promotions__vip-text {
        font-size: 0.9rem;
    }

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

    .page-promotions__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9rem;
    }

    .page-promotions__cta-bottom {
        padding: 40px 15px;
    }

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

    .page-promotions__cta-text {
        font-size: 1rem;
    }

    /* Mobile image and container responsiveness */
    .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-image-wrapper,
    .page-promotions__vip-card,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Apply padding to direct children of a container if needed for text content */
    .page-promotions__container > div:not(.page-promotions__card-grid):not(.page-promotions__vip-grid):not(.page-promotions__faq-list) {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-section .page-promotions__hero-content,
    .page-promotions__cta-bottom .page-promotions__cta-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Override for specific elements if they need tighter control */
    .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-wrap: wrap !important;
        gap: 10px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column; /* Mobile vertical stacking for CTAs */
    }
}