/* style/promotions.css */

/* Base styles for the page content */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for main content */
}

.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: #FFD700; /* Accent color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #cccccc;
    text-align: justify;
}

.page-promotions__highlight {
    color: #FFD700;
    font-weight: bold;
}

.page-promotions__brand-name {
    color: #FFD700; /* Use accent color for brand name mentions */
    font-weight: bold;
}

.page-promotions__center-text {
    text-align: center;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    /* No padding-top here as it's already on .page-promotions */
}

.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, 51, 102, 0.7); /* Dark overlay from main color */
    z-index: 2;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    color: #ffffff;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't exceed container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
    background-color: #FFD700; /* Accent color */
    color: #003366; /* Main color for text on accent background */
    border: 2px solid #FFD700;
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Accent color for text */
    border: 2px solid #FFD700;
}

.page-promotions__btn-secondary:hover {
    background-color: #FFD700;
    color: #003366;
}

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

/* Section Styling */
.page-promotions__introduction-section,
.page-promotions__how-to-claim-section,
.page-promotions__responsible-gambling-section,
.page-promotions__cta-final-section {
    padding: 80px 0;
}

.page-promotions__promo-grid-section,
.page-promotions__terms-conditions-section,
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background for contrast with body */
}

.page-promotions__dark-section {
    background-color: #003366; /* Main brand color for dark sections */
    color: #ffffff;
}
.page-promotions__dark-section .page-promotions__section-title {
    color: #FFD700;
}
.page-promotions__dark-section .page-promotions__section-subtitle,
.page-promotions__dark-section .page-promotions__text-block {
    color: #f0f0f0;
}


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

.page-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white for cards on dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text for card content */
}

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

.page-promotions__promo-image {
    width: 100%;
    max-width: 400px; /* Limit image width within card */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Ensure images are not too small */
    min-width: 200px;
}

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

.page-promotions__promo-card-description {
    font-size: 1.05em;
    color: #cccccc;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* How-To-Claim Steps */
.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.08); /* Slightly different background for steps */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__step-icon {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 2px solid #FFD700;
}

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

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

/* Terms & Conditions */
.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    color: #cccccc;
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    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: #003366; /* Main brand color for question background */
    color: #FFD700; /* Accent color for question text */
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-promotions__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #FFD700;
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    font-weight: normal;
    transition: transform 0.3s ease;
    line-height: 1;
    color: #FFD700;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.02); /* Lighter background for answer */
    color: #cccccc;
}

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

.page-promotions__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some padding to the bottom of the paragraph */
}
.page-promotions__faq-answer p:last-child {
    padding-bottom: 0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__hero-description {
        font-size: 1.3em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions {
        padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__container {
        padding: 0 15px; /* Smaller padding on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__hero-section {
        height: 500px;
        padding: 15px;
    }

    .page-promotions__hero-title {
        font-size: 2.5em;
    }

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

    .page-promotions__hero-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: 12px 20px !important; /* Adjust padding for mobile buttons */
        font-size: 1em !important;
    }

    .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: 0;
        padding-right: 0;
        overflow: hidden !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-subtitle {
        font-size: 1em;
    }
    .page-promotions__text-block {
        font-size: 0.95em;
    }

    .page-promotions__promo-grid-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-conditions-section,
    .page-promotions__responsible-gambling-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final-section {
        padding: 50px 0;
    }

    .page-promotions__promo-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .page-promotions__promo-card {
        padding: 20px;
    }

    .page-promotions__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px;
        min-width: 200px;
    }

    .page-promotions__steps-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

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

    /* Ensure all images within page-promotions are responsive */
    .page-promotions img {
        max-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,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}