/* style/promotions.css */

/* Base Styles & Global Resets within scope */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.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-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-promotions__main-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* General Section Styling */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-promotions__intro-section,
.page-promotions__how-to-claim,
.page-promotions__terms-conditions {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background for these sections */
    color: #333333; /* Dark text for light background */
}

.page-promotions__dark-section {
    padding: 60px 0;
    background-color: #017439; /* Brand color background */
    color: #FFFFFF; /* White text for brand color background */
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Default title color */
}

.page-promotions__section-title--light {
    color: #FFFFFF; /* Title color for dark sections */
}

.page-promotions__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-promotions__text-block--light {
    color: #f0f0f0;
}

/* CTA Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
}

.page-promotions__cta-button--primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-promotions__cta-button--primary:hover {
    background-color: #e00b0b;
    transform: translateY(-2px);
}

.page-promotions__cta-button--secondary {
    background-color: #017439; /* Brand color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-promotions__cta-button--secondary:hover {
    background-color: #005a2d;
    transform: translateY(-2px);
}

.page-promotions__center-cta {
    text-align: center;
    margin-top: 40px;
}

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

.page-promotions__card {
    background-color: #FFFFFF;
    color: #333333;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-promotions__card-title {
    font-size: 1.5em;
    margin: 20px 15px 10px 15px;
    color: #017439;
}

.page-promotions__card-description {
    font-size: 1em;
    padding: 0 15px 20px 15px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-promotions__card .page-promotions__cta-button {
    margin: 0 15px 20px 15px;
    width: calc(100% - 30px); /* Full width within card padding */
}

/* How To Claim Steps */
.page-promotions__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-promotions__step-item {
    background-color: #f9f9f9;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: #017439;
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

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

.page-promotions__step-description {
    font-size: 1em;
    color: #555555;
}

/* Featured Games */
.page-promotions__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

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

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

.page-promotions__game-item a {
    text-decoration: none;
    color: inherit; /* Inherit color from parent for link text */
    display: block; /* Make the whole card clickable */
}

.page-promotions__game-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

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

.page-promotions__game-description {
    font-size: 0.95em;
    color: #e0e0e0;
}

/* FAQ Section */
.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;
    color: #FFFFFF;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    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-question-text {
    font-size: 1.2em;
    margin: 0;
    color: #FFFFFF;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px 25px 25px;
}

.page-promotions__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: #f0f0f0;
}

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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }

    .page-promotions__main-title {
        font-size: 2.2em;
    }

    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .page-promotions__grid-cards,
    .page-promotions__steps,
    .page-promotions__game-list {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }

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

    /* All containers with images/videos/buttons */
    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__promotions-grid,
    .page-promotions__how-to-claim,
    .page-promotions__featured-games,
    .page-promotions__terms-conditions,
    .page-promotions__faq-section,
    .page-promotions__container,
    .page-promotions__card,
    .page-promotions__step-item,
    .page-promotions__game-item,
    .page-promotions__faq-item,
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container,
    .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; /* Add padding to prevent content touching edges */
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* 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__card .page-promotions__cta-button {
        width: calc(100% - 30px) !important; /* Adjust for mobile padding */
    }

    /* If multiple buttons are in a flex container, stack them */
    .page-promotions__center-cta {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}