/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Explicitly set for content area, assuming shared body background is light */
}

/* Fixed header spacing */
.page-promotions {
    padding-top: var(--header-offset, 120px);
}

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

/* Section titles */
.page-promotions__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Section descriptions */
.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

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

.page-promotions__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-promotions__btn-primary:hover {
    background-color: #005a2e; /* Darker green on hover */
    border-color: #005a2e;
}

.page-promotions__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

/* Custom button styles for register/login */
.page-promotions__btn-register { /* Using this for register CTA */
    background-color: #C30808; /* Custom Register color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}
.page-promotions__btn-register:hover {
    background-color: #a00606;
    border-color: #a00606;
}
.page-promotions__btn-login { /* Not explicitly used but defined for consistency if needed */
    background-color: #C30808; /* Custom Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}
.page-promotions__btn-login:hover {
    background-color: #a00606;
    border-color: #a00606;
}


/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Fallback */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-promotions__hero-section > .page-promotions__container {
    position: relative;
    z-index: 3;
    color: #FFFFFF;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-weight: bold;
}

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

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

/* Promotions Overview Section */
.page-promotions__promotions-overview {
    padding: 80px 0;
    background-color: #FFFFFF; /* Explicit light background */
    color: #333333;
}

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

.page-promotions__promotion-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    box-sizing: border-box;
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
}

.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 size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-promotions__card-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* How To Claim Section */
.page-promotions__how-to-claim {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    color: #FFFFFF;
}

.page-promotions__how-to-claim .page-promotions__section-title,
.page-promotions__how-to-claim .page-promotions__section-description {
    color: #FFFFFF;
}

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

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

.page-promotions__step-icon {
    font-size: 3em;
    color: #FFFF00; /* Custom font color for register/login, used as highlight */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__step-title {
    font-size: 1.6em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Why Choose Section */
.page-promotions__why-choose {
    padding: 80px 0;
    background-color: #FFFFFF; /* Explicit light background */
    color: #333333;
}

.page-promotions__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-promotions__feature-item {
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-promotions__feature-icon {
    width: 200px; /* Display at minimum 200x200 */
    height: 200px;
    object-fit: contain;
    margin: 0 auto 15px auto;
}

.page-promotions__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__feature-text {
    font-size: 0.95em;
    color: #555555;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    color: #FFFFFF;
}

.page-promotions__faq-section .page-promotions__section-title {
    color: #FFFFFF;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* For '-' symbol */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px; /* Padding when active */
}

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #f0f0f0;
}

/* Other Games Section */
.page-promotions__other-games {
    padding: 80px 0;
    background-color: #FFFFFF; /* Explicit light background */
    color: #333333;
}

.page-promotions__game-types {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__game-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333333;
    transition: transform 0.3s ease;
    width: 150px; /* Fixed width for game icons */
    text-align: center;
}

.page-promotions__game-link:hover {
    transform: translateY(-5px);
    color: #017439;
}

.page-promotions__game-icon {
    width: 200px; /* Enforce 200x200 min-size */
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-promotions__game-name {
    font-size: 1.1em;
    font-weight: bold;
}

/* Final CTA Section */
.page-promotions__cta-final {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    color: #FFFFFF;
    text-align: center;
}

.page-promotions__cta-final .page-promotions__section-title,
.page-promotions__cta-final .page-promotions__section-description {
    color: #FFFFFF;
}

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

@media (max-width: 768px) {
    /* General mobile padding and overflow */
    .page-promotions__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Fixed header spacing for mobile */
    .page-promotions {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-promotions__hero-section {
        height: 450px;
        padding-top: 0 !important; /* Already handled by .page-promotions */
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .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 !important;
        font-size: 1em !important;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-promotions__promotions-overview,
    .page-promotions__how-to-claim,
    .page-promotions__why-choose,
    .page-promotions__faq-section,
    .page-promotions__other-games,
    .page-promotions__cta-final {
        padding: 50px 0;
    }

    .page-promotions__promotion-grid,
    .page-promotions__steps-grid,
    .page-promotions__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__card-image {
        height: 180px;
    }

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

    /* Containers for images */
    .page-promotions__promotion-card,
    .page-promotions__feature-item,
    .page-promotions__game-link,
    .page-promotions__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific adjustment for feature/game icons to adhere to 200px min-size if possible, but allow scaling */
    .page-promotions__feature-item .page-promotions__feature-icon,
    .page-promotions__game-link .page-promotions__game-icon {
        width: 200px !important; /* Enforce 200x200 */
        height: 200px !important;
        margin: 0 auto 15px auto !important;
    }
    /* Ensure no content causes horizontal scroll */
    .page-promotions__other-games .page-promotions__game-types {
        justify-content: center;
        gap: 15px;
    }

    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__step-icon {
        font-size: 2.5em;
    }
    .page-promotions__step-title {
        font-size: 1.4em;
    }
    .page-promotions__feature-title {
        font-size: 1.3em;
    }
    .page-promotions__game-link {
        width: 100%; /* Take full width on very small screens */
    }
    .page-promotions__game-icon {
        width: 200px;
        height: 200px;
    }
    .page-promotions__other-games .page-promotions__game-types {
        flex-direction: column;
        align-items: center;
    }
    .page-promotions__game-link .page-promotions__game-icon {
        width: 200px !important; /* Enforce 200x200 */
        height: 200px !important;
    }
}