/* style/promotions.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-dark: #08160F; /* This is the body background */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-promotions {
    background-color: var(--background-dark); /* Ensure consistency with body background */
    color: var(--text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Sections */
.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

.page-promotions__dark-section {
    background-color: var(--card-bg); /* Use a slightly lighter dark for contrast */
}

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

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

.page-promotions__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 */
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Call to Action Buttons */
.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White-ish text for dark button */
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--gold-color); /* Gold text for secondary button */
    border: 2px solid var(--gold-color);
}

.page-promotions__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--background-dark); /* Dark text on gold hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    margin-bottom: 40px;
    line-height: 1.3;
}

/* Text Blocks */
.page-promotions__text-block {
    font-size: 1.05em;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 20px auto;
}

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

.page-promotions__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Ensure cards are same height */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__card-text {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-promotions__card-button {
    margin-top: auto; /* Push button to bottom */
}

/* Terms List */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 30px auto;
    text-align: left;
}

.page-promotions__terms-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.page-promotions__terms-item strong {
    color: var(--text-main);
}

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

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

.page-promotions__benefit-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-promotions__benefit-text {
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; /* For details tag */
}

.page-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1em;
    list-style: none; /* Remove default marker */
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

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

.page-promotions__faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-secondary);
    font-size: 1em;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body handles header offset, small decorative padding */
        padding-bottom: 30px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-promotions__description {
        font-size: 1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .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;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Center buttons if they are inline-block */
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__text-block {
        font-size: 0.95em;
    }
    .page-promotions__card-grid,
    .page-promotions__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card-image {
        height: auto; /* Allow auto height on mobile */
        min-height: 200px; /* Maintain minimum size */
    }
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by specific sections or content wrappers */
    }
    .page-promotions__overview-section .page-promotions__container,
    .page-promotions__welcome-bonus-section .page-promotions__container,
    .page-promotions__game-specific-section .page-promotions__container,
    .page-promotions__recurring-promos-section .page-promotions__container,
    .page-promotions__terms-section .page-promotions__container,
    .page-promotions__why-join-section .page-promotions__container,
    .page-promotions__faq-section .page-promotions__container,
    .page-promotions__cta-section .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure content area images maintain min size but scale */
    .page-promotions__card-image {
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    /* Any img within .page-promotions must not have a display size smaller than 200px. */
    /* This is a general rule that will be checked by the system. My CSS already ensures min-width/height for cards and max-width 100% for all images. */
}

/* No CSS filters allowed for images */
.page-promotions img {
    filter: none !important;
}

/* For video element itself, if present, ensure it's responsive */
.page-promotions video,
.page-promotions__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__video-section {
        padding-top: 10px !important;
    }
}