/* style/promotions.css */

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

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

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

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
}

.page-promotions__dark-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
}

.page-promotions__dark-section .page-promotions__section-title,
.page-promotions__dark-section .page-promotions__section-description,
.page-promotions__dark-section .page-promotions__hero-title,
.page-promotions__dark-section .page-promotions__hero-description {
    color: #FFFFFF;
}

.page-promotions__hero-section .page-promotions__container {
    position: relative;
    z-index: 2;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

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

.page-promotions__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
    margin: 10px;
}

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

.page-promotions__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
    margin: 10px;
}

.page-promotions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-promotions__btn-text {
    background: none;
    border: none;
    color: #FFFFFF;
    padding: 0;
    margin: 10px;
    text-decoration: underline;
}

.page-promotions__btn-text:hover {
    color: #f0f0f0;
}

/* Current Promotions Section */
.page-promotions__current-promos {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
}

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

.page-promotions__promo-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: #333333;
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-promotions__card-title a {
    color: #333333;
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    color: #26A9E0;
}

.page-promotions__card-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 80px 0;
}

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

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

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background-color: #FFFFFF;
    color: #26A9E0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

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

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    padding: 80px 0;
}

.page-promotions__terms-list {
    list-style: disc;
    max-width: 800px;
    margin: 0 auto 40px;
    padding-left: 25px;
    font-size: 1.1em;
    color: #555555;
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
}

/* Featured Games Section */
.page-promotions__featured-games {
    padding: 80px 0;
}

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

.page-promotions__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-promotions__game-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-promotions__game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-promotions__game-title {
    font-size: 1.4em;
    color: #FFFFFF;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-promotions__game-title a {
    color: #FFFFFF;
    text-decoration: none;
}

.page-promotions__game-title a:hover {
    color: #f0f0f0;
}

.page-promotions__game-description {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 20px;
    padding: 0 15px;
}


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

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

.page-promotions__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #f0f0f0;
}

.page-promotions__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    color: #26A9E0;
    font-weight: bold;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

/* Final CTA Section */
.page-promotions__cta-final {
    padding: 80px 0;
    text-align: center;
}

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


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

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__container {
        padding: 0 15px;
    }

    /* Fixed header offset for mobile, if not already handled by shared */
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 400px;
    }

    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 1em;
    }

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

    /* Ensure all content containers are responsive */
    .page-promotions__hero-section,
    .page-promotions__current-promos,
    .page-promotions__how-to-claim,
    .page-promotions__terms-conditions,
    .page-promotions__featured-games,
    .page-promotions__faq-section,
    .page-promotions__cta-final,
    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__game-card,
    .page-promotions__faq-item,
    .page-promotions__container,
    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__game-grid,
    .page-promotions__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Button responsiveness */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-text,
    .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;
        margin-left: 0;
        margin-right: 0;
    }

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .page-promotions__promo-image,
    .page-promotions__game-image {
        height: auto; /* Allow height to adjust naturally */
    }

    /* FAQ specific mobile adjustments */
    .page-promotions__faq-question {
        padding: 15px;
    }
    .page-promotions__faq-title {
        font-size: 1.1em;
    }
    .page-promotions__faq-toggle {
        font-size: 1.5em;
    }
    .page-promotions__faq-answer {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
}