/* style/promotions.css */

/* Custom Colors */
:root {
    --hbet-primary: #11A84E;
    --hbet-secondary: #22C768;
    --hbet-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --hbet-card-bg: #11271B;
    --hbet-bg: #08160F;
    --hbet-text-main: #F2FFF6;
    --hbet-text-secondary: #A7D9B8;
    --hbet-border: #2E7A4E;
    --hbet-glow: #57E38D;
    --hbet-gold: #F2C14E;
    --hbet-divider: #1E3A2A;
    --hbet-deep-green: #0A4B2C;
}

.page-promotions {
    font-family: Arial, sans-serif;
    color: var(--hbet-text-main); /* Main text color for the page, as body background is dark */
    background-color: var(--hbet-bg); /* Ensure main content area respects overall dark background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
    background-color: var(--hbet-deep-green); /* A darker green for the hero section background */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image wrapper */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive H1 font size */
    color: var(--hbet-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

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

/* General Section Styling */
.page-promotions__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--hbet-divider);
}

.page-promotions__section:last-of-type {
    border-bottom: none;
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--hbet-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-promotions__text-block {
    font-size: 1rem;
    color: var(--hbet-text-main);
    margin-bottom: 20px;
}

.page-promotions__text-block p {
    margin-bottom: 15px;
}

.page-promotions__text-block a {
    color: var(--hbet-secondary);
    text-decoration: underline;
}

.page-promotions__image-content {
    width: 100%;
    height: auto;
    display: block;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--hbet-button-gradient);
    color: var(--hbet-text-main);
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--hbet-glow);
    transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
    background: var(--hbet-secondary);
    color: var(--hbet-bg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Featured Offers Grid */
.page-promotions__offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__offer-card {
    background-color: var(--hbet-card-bg); /* Dark card background */
    border: 1px solid var(--hbet-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it respects max-width 100% */
}

.page-promotions__card-title {
    font-size: 1.4rem;
    color: var(--hbet-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* How to Join Section */
.page-promotions__how-to-join {
    background-color: var(--hbet-deep-green); /* A slightly different dark background */
}

.page-promotions__step-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.page-promotions__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--hbet-button-gradient);
    color: var(--hbet-text-main);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__step-description {
    font-size: 0.95rem;
    color: var(--hbet-text-secondary);
}

.page-promotions__step-description a {
    color: var(--hbet-secondary);
    text-decoration: underline;
}

/* Terms and Conditions */
.page-promotions__terms-conditions {
    background-color: var(--hbet-bg);
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    color: var(--hbet-text-main);
    margin-bottom: 20px;
}

.page-promotions__terms-item {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* FAQ Section */
.page-promotions__faq {
    background-color: var(--hbet-deep-green);
}

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

.page-promotions__faq-item {
    background-color: var(--hbet-card-bg);
    border: 1px solid var(--hbet-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
    color: var(--hbet-gold);
    border-bottom: 1px solid var(--hbet-secondary);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--hbet-secondary);
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

/* Hide default details marker */
.page-promotions__faq-item > summary {
    list-style: none;
}
.page-promotions__faq-item > summary::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--hbet-text-secondary);
    background-color: var(--hbet-card-bg); /* Card background for answer */
}

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

/* Final CTA */
.page-promotions__cta-final {
    padding: 80px 0;
    text-align: center;
    background-color: var(--hbet-bg);
}

.page-promotions__cta-final .page-promotions__container {
    background-color: var(--hbet-deep-green); /* Darker background for this specific CTA block */
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--hbet-border);
}

.page-promotions__cta-final .page-promotions__section-title {
    color: var(--hbet-gold);
    margin-bottom: 25px;
}

.page-promotions__cta-final .page-promotions__text-block {
    font-size: 1.1rem;
    color: var(--hbet-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    .page-promotions__description {
        font-size: 1rem;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
    .page-promotions__offers-grid,
    .page-promotions__step-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-promotions__description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    .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;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__container {
        padding: 0 15px;
    }

    /* Mobile specific image 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__hero-image-wrapper { /* Added hero image wrapper */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure content doesn't overflow */
    }
    .page-promotions__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-promotions__hero-content {
        padding: 0 15px; /* Adjust padding for hero content on mobile */
    }
    .page-promotions__video-section {
        padding-top: 10px !important; /* body already has --header-offset */
    }

    /* Video responsive rules (if any, though not in this page) */
    .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;
    }

    .page-promotions__cta-final .page-promotions__container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .page-promotions__offers-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__step-list {
        grid-template-columns: 1fr;
    }
    .page-promotions__offer-card,
    .page-promotions__step-item {
        padding: 20px;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}