/* style/promotions.css */

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

    /* Body background is from shared.css, assuming it's dark based on brand colors */
    /* If body is dark, text should be light. If body is light, text should be dark. */
    /* Given custom colors are dark green, assuming body background is also dark. */
    --page-promotions-text-color-light: var(--king52win-text-main); /* For dark backgrounds */
    --page-promotions-text-color-dark: #333333; /* For light backgrounds */
}

.page-promotions {
    font-family: Arial, sans-serif;
    color: var(--page-promotions-text-color-light); /* Default text color for the page, assuming dark body bg */
    background-color: var(--king52win-background); /* Specific background for promotions content */
}

/* Page content wrapper for consistent max-width and padding */
.page-promotions__content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Sections */
.page-promotions__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Ensure no content overflow */
}

.page-promotions__dark-section {
    background-color: var(--king52win-background);
    color: var(--page-promotions-text-color-light);
}

.page-promotions__light-bg {
    background-color: #ffffff; /* Use a light background for contrast */
    color: var(--page-promotions-text-color-dark);
}

.page-promotions__card-bg {
    background-color: var(--king52win-card-bg);
    color: var(--page-promotions-text-color-light);
}

/* Hero Section */
.page-promotions__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small padding-top as body handles header offset */
    position: relative;
    color: var(--page-promotions-text-color-light);
    background-color: var(--king52win-background); /* Ensure dark background for hero */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* No filter allowed */
}

.page-promotions__hero-content {
    position: relative; /* Ensure content is above image effect if any */
    z-index: 2;
    padding: 0 20px; /* Adjust padding for content inside wrapper */
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--king52win-gold);
    max-width: 900px;
}

.page-promotions__description {
    font-size: 1.125rem; /* 18px */
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    color: var(--king52win-text-secondary);
}

.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 3rem); /* Responsive font size for H2 */
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: var(--king52win-gold); /* Gold for titles */
}

.page-promotions__light-bg .page-promotions__section-title {
    color: var(--king52win-primary); /* Primary green for titles on light bg */
}

.page-promotions__text-block {
    font-size: 1rem; /* 16px */
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit; /* Inherit from section */
}

/* Images */
.page-promotions__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    /* No filter allowed */
}

/* Lists */
.page-promotions__list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: inherit;
}

.page-promotions__list-item {
    margin-bottom: 10px;
    line-height: 1.6;
    color: inherit;
}

.page-promotions__grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    list-style: none;
    padding-left: 0;
}

/* Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width */
    max-width: 350px; /* Limit button width on desktop */
    margin: 10px auto;
}

.page-promotions__btn-primary {
    background: var(--king52win-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--king52win-button-gradient-start) 0%, var(--king52win-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1); /* Only brightness, not color change */
}

.page-promotions__btn-secondary {
    background-color: #ffffff;
    color: var(--king52win-primary);
    border: 2px solid var(--king52win-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

/* Promo Grid for game-specific promotions */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: center;
}

.page-promotions__promo-item {
    background-color: var(--king52win-deep-green);
    border: 1px solid var(--king52win-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-promotions-text-color-light);
}

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

.page-promotions__promo-subtitle {
    font-size: 1.5rem; /* 24px */
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--king52win-gold);
}

.page-promotions__promo-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--king52win-text-secondary);
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__faq-item {
    background-color: var(--king52win-card-bg); /* Dark background for FAQ items */
    border: 1px solid var(--king52win-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-promotions-text-color-light);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.125rem; /* 18px */
    font-weight: bold;
    cursor: pointer;
    background-color: var(--king52win-deep-green); /* Slightly darker for question header */
    color: var(--king52win-text-main);
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: var(--king52win-primary);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--king52win-primary);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--king52win-gold);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: "−"; /* Changes to minus sign when open */
}

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

/* Details tag specific styles to remove default marker */
.page-promotions__faq-item summary {
    list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}


/* --- Responsive Design --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-promotions__content-wrapper {
        padding: 30px 15px;
    }

    .page-promotions__hero-section {
        padding-bottom: 40px;
    }

    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-promotions__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .page-promotions__promo-grid {
        grid-template-columns: 1fr; /* Stack promo items on smaller screens */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 0;
    }

    .page-promotions__content-wrapper {
        padding: 20px 15px; /* Ensure padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small padding-top as body handles header offset */
        padding-bottom: 30px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-promotions__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 20px;
    }

    .page-promotions__text-block,
    .page-promotions__list-item,
    .page-promotions__promo-item p,
    .page-promotions__faq-answer p {
        font-size: 0.9rem; /* Smaller text for mobile readability */
    }

    .page-promotions__cta-button,
    .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; /* Add horizontal padding for buttons */
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }

    /* Button containers for multiple buttons */
    .page-promotions__hero-content, /* If hero has multiple buttons, they should stack */
    .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; /* Space between stacked buttons */
        display: flex; /* Ensure flex context for column direction */
        align-items: center; /* Center buttons */
    }
    .page-promotions__promo-item .page-promotions__btn-secondary {
        max-width: 250px !important; /* Smaller max-width for internal card buttons */
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Ensure image containers also adapt */
    .page-promotions__hero-image-wrapper,
    .page-promotions__image-container {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* FAQ */
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
    }
}