/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --register-login-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
}

/* Base styles for the page-promotions scope */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for the page, assuming dark body background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css, typically dark */
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
    color: var(--text-light); /* Default for dark sections */
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.8;
}

.page-promotions__highlight {
    color: var(--register-login-font-color);
    font-weight: bold;
}

.page-promotions a {
    color: var(--register-login-font-color);
    text-decoration: none;
}

.page-promotions a:hover {
    text-decoration: underline;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    text-decoration: none;
}

.page-promotions__btn-primary {
    background-color: var(--register-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-color);
}

.page-promotions__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}

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

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

.page-promotions__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    padding-bottom: 80px;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_main:1920x1080:sun789,promotions,casino,sports,welcome_bonus]');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-light);
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Intro Section */
.page-promotions__intro-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-promotions__intro-section .page-promotions__section-title,
.page-promotions__intro-section .page-promotions__text-block {
    color: var(--text-dark);
}

.page-promotions__image-full-width {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Featured Section (Promo Grid) */
.page-promotions__featured-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-promotions__featured-section .page-promotions__section-title,
.page-promotions__featured-section .page-promotions__text-block {
    color: var(--text-light);
}

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

.page-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-light);
}

.page-promotions__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--text-light);
}

.page-promotions__card-text {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1;
    color: var(--text-light);
}

/* Terms Section */
.page-promotions__terms-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-promotions__terms-section .page-promotions__section-title,
.page-promotions__terms-section .page-promotions__text-block {
    color: var(--text-dark);
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-list li {
    background-color: #f9f9f9;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 5px;
    color: var(--text-dark);
}

.page-promotions__terms-list li p {
    margin: 0;
    color: var(--text-dark);
}

.page-promotions__terms-list li strong {
    color: var(--primary-color);
}

/* How-To-Claim Section */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-promotions__how-to-claim-section .page-promotions__section-title,
.page-promotions__how-to-claim-section .page-promotions__text-block {
    color: var(--text-light);
}

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

.page-promotions__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: var(--text-light);
}

.page-promotions__step-icon {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--register-login-font-color);
    margin-bottom: 15px;
    display: block;
}

.page-promotions__step-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--text-light);
}

.page-promotions__step-text {
    font-size: 1em;
    color: var(--text-light);
}

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

.page-promotions__faq-section .page-promotions__section-title {
    color: var(--text-dark);
}

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

.page-promotions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-dark);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: var(--text-dark);
    list-style: none; /* For details/summary */
}

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

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

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

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

.page-promotions__faq-answer p {
    margin: 0;
    color: var(--text-dark);
}

/* CTA Section */
.page-promotions__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.page-promotions__cta-section .page-promotions__section-title,
.page-promotions__cta-section .page-promotions__text-block {
    color: var(--text-light);
}

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

/* Image specific CSS */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
    /* No filter properties to change image color */
}

.page-promotions__card-image {
    width: 100%; /* Make sure card images take full width of card */
    min-height: 200px; /* Enforce min size */
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
    }
    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__hero-cta,
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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-wrap: wrap !important;
        gap: 10px;
    }
    .page-promotions__intro-section,
    .page-promotions__featured-section,
    .page-promotions__terms-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-promotions__text-block {
        font-size: 1em;
    }
    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__promo-card,
    .page-promotions__step-card {
        padding: 20px;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px;
        font-size: 1em;
    }
    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__featured-section,
    .page-promotions__terms-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__image-full-width {
        min-height: 200px !important;
    }
    .page-promotions__card-image {
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-promotions__btn-large {
        padding: 15px 25px;
        font-size: 1.1em;
    }
}