/* style/promotions.css */

/* Custom Colors */
:root {
    --onbet-primary: #11A84E;
    --onbet-secondary: #22C768;
    --onbet-button-gradient-start: #2AD16F;
    --onbet-button-gradient-end: #13994A;
    --onbet-card-bg: #11271B;
    --onbet-background: #08160F;
    --onbet-text-main: #F2FFF6;
    --onbet-text-secondary: #A7D9B8;
    --onbet-border: #2E7A4E;
    --onbet-glow: #57E38D;
    --onbet-gold: #F2C14E;
    --onbet-divider: #1E3A2A;
    --onbet-deep-green: #0A4B2C;
}

.page-promotions {
    font-family: Arial, sans-serif;
    color: var(--onbet-text-main); /* Default text color for the page */
    background-color: var(--onbet-background); /* Page background from custom colors */
    line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--onbet-background);
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
    max-width: 1920px; /* Ensure it doesn't get too wide on very large screens */
}

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    position: relative; /* Ensure text is not overlaid on image */
    z-index: 1;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 4vw, 3.2rem); /* Responsive H1 font size */
    font-weight: 700;
    color: var(--onbet-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.1rem;
    color: var(--onbet-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styles */
.page-promotions__section {
    padding: 60px 0;
    background-color: var(--onbet-background);
}

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

.page-promotions__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--onbet-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-promotions__text-block {
    font-size: 1rem;
    color: var(--onbet-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-promotions__mt-large {
    margin-top: 50px;
}

/* CTA Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--onbet-text-main); /* Text main for buttons */
    background: linear-gradient(180deg, var(--onbet-button-gradient-start) 0%, var(--onbet-button-gradient-end) 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-promotions__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--onbet-button-gradient-start) 0%, var(--onbet-button-gradient-end) 100%);
    color: var(--onbet-text-main);
}

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

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

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
}

.page-promotions__btn-large {
    padding: 16px 35px;
    font-size: 1.2rem;
}

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

.page-promotions__card {
    background-color: var(--onbet-card-bg); /* Card background from custom colors */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--onbet-text-main); /* Ensure text is main color on card bg */
    border: 1px solid var(--onbet-border);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    display: block;
}

.page-promotions__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--onbet-gold); /* Gold for titles */
    margin-bottom: 15px;
}

.page-promotions__card-description {
    font-size: 0.95rem;
    color: var(--onbet-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Make description take available space */
}

/* How-to-Claim Steps */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-promotions__step-card {
    background-color: var(--onbet-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--onbet-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--onbet-primary);
    color: var(--onbet-text-main);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--onbet-glow);
}

.page-promotions__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--onbet-gold);
    margin-bottom: 15px;
}

.page-promotions__step-description {
    font-size: 0.95rem;
    color: var(--onbet-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__faq-item {
    background-color: var(--onbet-card-bg);
    border: 1px solid var(--onbet-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--onbet-text-main);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--onbet-text-main);
    background-color: var(--onbet-deep-green);
    border-bottom: 1px solid transparent; /* default */
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: 1px solid var(--onbet-border);
    background-color: var(--onbet-primary);
}

.page-promotions__faq-question:hover {
    background-color: var(--onbet-primary);
}

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

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--onbet-text-main);
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--onbet-text-secondary);
}

.page-promotions__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2.2rem, 5vw, 2.8rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    }
    .page-promotions__card-image {
        height: 180px;
    }
}

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

    .page-promotions__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-promotions__hero-image {
        margin-bottom: 20px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__hero-content {
        padding: 0 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-promotions__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section {
        padding: 40px 0;
    }

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

    .page-promotions__section-title {
        font-size: clamp(1.6rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-promotions__text-block {
        font-size: 0.95rem;
    }

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

    .page-promotions__card {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-promotions__card-title {
        font-size: 1.3rem;
    }

    .page-promotions__card-description {
        font-size: 0.9rem;
    }

    .page-promotions__step-card {
        padding: 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-promotions__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    /* Ensure all images adhere to responsive rules */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__step-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .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__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
    .page-promotions__video-section {
        padding-top: 10px !important;
    }
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        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;
    }
}