/* style/promotions.css */

/* Custom properties from the provided color scheme */
:root {
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C; /* Note: this is also very dark, similar to background */

    /* General text and background for contrast, assuming body background is dark */
    --page-text-color: var(--color-text-main);
    --page-secondary-text-color: var(--color-text-secondary);
    --page-bg-color: var(--color-background);
    --page-card-bg-color: var(--color-card-bg);
}

.page-promotions {
    font-family: Arial, sans-serif;
    color: var(--page-text-color); /* Main text color for the page */
    background-color: var(--page-bg-color); /* Matches body background if not overridden by shared */
    line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 20px; /* Small padding */
    padding-top: 10px; /* Small top padding as body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1600px; /* Max width for the image */
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Use clamp for H1 font size */
    font-weight: 700;
    color: var(--color-gold); /* Use gold for main title for emphasis */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-description {
    font-size: 1.1rem;
    color: var(--page-secondary-text-color);
    margin-bottom: 30px;
}

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

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.page-promotions__section-description {
    font-size: 1.05rem;
    color: var(--page-secondary-text-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-promotions__sub-title {
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* CTA Button Styling */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-promotions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

/* Primary and Secondary Buttons */
.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
}

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

.page-promotions__btn-secondary:hover {
    background: var(--color-primary);
    color: #ffffff;
}


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

.page-promotions__promotion-card {
    background-color: var(--page-card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-image-wrapper {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-promotions__card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum display size */
    min-height: 200px;
}

.page-promotions__card-content {
    padding: 25px;
}

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

.page-promotions__card-text {
    font-size: 0.95rem;
    color: var(--page-secondary-text-color);
    margin-bottom: 20px;
}

.page-promotions__card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-promotions__card-features li {
    font-size: 0.9rem;
    color: var(--page-text-color);
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.page-promotions__card-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.page-promotions__card-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-promotions__card-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* VIP Program Section */
.page-promotions__vip-program {
    background-color: var(--color-deep-green); /* Slightly different dark background */
    border-radius: 15px;
    padding: 80px 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
}

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

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

.page-promotions__vip-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-promotions__vip-list li {
    font-size: 1rem;
    color: var(--page-text-color);
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
}

.page-promotions__vip-list li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

.page-promotions__vip-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-glow);
}

.page-promotions__vip-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum display size */
    min-height: 200px;
}

.page-promotions__vip-button {
    margin-top: 20px;
}

/* Game Specific Promotions */
.page-promotions__game-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__game-promo-item {
    background-color: var(--page-card-bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-divider);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-promotions__game-promo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.page-promotions__game-promo-title {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__game-promo-text {
    font-size: 0.95rem;
    color: var(--page-secondary-text-color);
    margin-bottom: 20px;
}

.page-promotions__game-promo-link {
    display: inline-block;
    color: var(--color-gold);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-promotions__game-promo-link:hover {
    color: var(--color-glow);
    border-color: var(--color-glow);
}

/* Terms and Conditions */
.page-promotions__terms-conditions {
    background-color: var(--color-background); /* Explicitly set background for contrast */
    border-radius: 15px;
    padding: 80px 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
}

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

.page-promotions__term-item {
    background-color: var(--page-card-bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-divider);
}

.page-promotions__term-item p {
    color: var(--page-secondary-text-color);
    font-size: 0.95rem;
}

.page-promotions__terms-button {
    margin-top: 40px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

.page-promotions__faq-question:hover {
    background-color: var(--color-deep-green);
}

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

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

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

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

/* For details tag, hide default marker */
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-promotions__faq-item summary {
    list-style: none;
}

/* Call to Action at the bottom */
.page-promotions__call-to-action {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promotions__cta-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        max-width: 700px;
    }
    .page-promotions__vip-content {
        flex-direction: column;
    }
    .page-promotions__vip-text,
    .page-promotions__vip-image-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 7vw, 2.5rem);
    }
    .page-promotions__hero-description {
        font-size: 1rem;
    }

    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
    .page-promotions__section-description {
        font-size: 0.95rem;
    }

    /* Images 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-section,
    .page-promotions__hero-image-wrapper,
    .page-promotions__hero-content,
    .page-promotions__promotions-grid,
    .page-promotions__promotion-card,
    .page-promotions__card-image-wrapper,
    .page-promotions__vip-program,
    .page-promotions__vip-content,
    .page-promotions__vip-text,
    .page-promotions__vip-image-wrapper,
    .page-promotions__game-specific-promos,
    .page-promotions__game-promo-grid,
    .page-promotions__game-promo-item,
    .page-promotions__terms-conditions,
    .page-promotions__terms-content,
    .page-promotions__term-item,
    .page-promotions__faq-section,
    .page-promotions__faq-list,
    .page-promotions__faq-item,
    .page-promotions__call-to-action,
    .page-promotions__cta-buttons-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    /* Specific overrides for padding that should remain small */
    .page-promotions__hero-section,
    .page-promotions__vip-program,
    .page-promotions__terms-conditions,
    .page-promotions__call-to-action {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }


    /* Buttons responsiveness */
    .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;
        padding-right: 15px;
    }
    
    .page-promotions__cta-buttons-wrapper {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    .page-promotions__card-button {
        width: 100%;
    }
}

/* Ensure content area images are not too small by CSS */
.page-promotions__promotions-grid img,
.page-promotions__vip-image,
.page-promotions__game-promo-item img {
    min-width: 200px; /* Enforce minimum display size */
    min-height: 200px;
}

/* Contrast Fix (if needed, but design should prevent) */
.page-promotions__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-promotions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}