/* style/index-b52-exclusive-promo-codes.css */

/* Base styles for the page content */
.page-index-b52-exclusive-promo-codes {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Text color for dark background */
    background-color: var(--dark-bg-1); /* Inherit from shared.css, assuming dark */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.page-index-b52-exclusive-promo-codes__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.page-index-b52-exclusive-promo-codes__hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    filter: brightness(0.7); /* Darken video for text readability */
}

.page-index-b52-exclusive-promo-codes__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1;
}

.page-index-b52-exclusive-promo-codes__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-index-b52-exclusive-promo-codes__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-b52-exclusive-promo-codes__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-index-b52-exclusive-promo-codes__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-index-b52-exclusive-promo-codes__btn-primary,
.page-index-b52-exclusive-promo-codes__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-index-b52-exclusive-promo-codes__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-index-b52-exclusive-promo-codes__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-index-b52-exclusive-promo-codes__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #017439; /* Main color */
}

.page-index-b52-exclusive-promo-codes__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Content Sections */
.page-index-b52-exclusive-promo-codes__content-section {
    padding: 60px 20px;
}

.page-index-b52-exclusive-promo-codes__dark-bg {
    background-color: #0d0d0d; /* A slightly different dark background for contrast with body if needed, or use main brand color */
    color: #ffffff;
}

.page-index-b52-exclusive-promo-codes__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.page-index-b52-exclusive-promo-codes__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Adjusted for contrast on dark background */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-index-b52-exclusive-promo-codes__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439; /* Brand color for underline */
    border-radius: 2px;
}

.page-index-b52-exclusive-promo-codes__text-block {
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-index-b52-exclusive-promo-codes__text-block p {
    margin-bottom: 15px;
}

.page-index-b52-exclusive-promo-codes__list-ordered,
.page-index-b52-exclusive-promo-codes__list-unordered {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-index-b52-exclusive-promo-codes__list-ordered li,
.page-index-b52-exclusive-promo-codes__list-unordered li {
    margin-bottom: 10px;
}

/* Image styles */
.page-index-b52-exclusive-promo-codes img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-b52-exclusive-promo-codes__image-full {
    width: 100%;
    object-fit: cover;
}

.page-index-b52-exclusive-promo-codes__image-right {
    float: right;
    margin-left: 30px;
    margin-bottom: 15px;
    max-width: 50%; /* Adjust as needed for layout */
}

.page-index-b52-exclusive-promo-codes__image-left {
    float: left;
    margin-right: 30px;
    margin-bottom: 15px;
    max-width: 50%; /* Adjust as needed for layout */
}

.page-index-b52-exclusive-promo-codes__image-center {
    margin-left: auto;
    margin-right: auto;
    display: block;
}


/* Grid Layout for Cards */
.page-index-b52-exclusive-promo-codes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-b52-exclusive-promo-codes__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-index-b52-exclusive-promo-codes__card-title {
    font-size: 1.8em;
    color: #ffffff; /* Adjusted for contrast on dark background */
    margin-bottom: 15px;
}

.page-index-b52-exclusive-promo-codes__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-index-b52-exclusive-promo-codes__card p {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take up available space */
}

.page-index-b52-exclusive-promo-codes__card .page-index-b52-exclusive-promo-codes__btn-primary,
.page-index-b52-exclusive-promo-codes__card .page-index-b52-exclusive-promo-codes__btn-secondary {
    width: auto;
    margin-top: auto;
    padding: 10px 20px;
    font-size: 0.9em;
}

/* FAQ Section */
.page-index-b52-exclusive-promo-codes__faq-section {
    padding: 60px 20px;
    background-color: #1a1a1a; /* A slightly darker background for FAQ section */
    color: #ffffff;
}

.page-index-b52-exclusive-promo-codes__faq-list {
    margin-top: 40px;
}

.page-index-b52-exclusive-promo-codes__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Lighter background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-index-b52-exclusive-promo-codes__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-index-b52-exclusive-promo-codes__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
}

.page-index-b52-exclusive-promo-codes__faq-text {
    flex-grow: 1;
    margin-right: 15px;
}

.page-index-b52-exclusive-promo-codes__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439; /* Main brand color for toggle icon */
}

.page-index-b52-exclusive-promo-codes__faq-item.active .page-index-b52-exclusive-promo-codes__faq-toggle {
    transform: rotate(45deg); /* Rotate to form 'x' or '-' */
}

.page-index-b52-exclusive-promo-codes__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-index-b52-exclusive-promo-codes__faq-item.active .page-index-b52-exclusive-promo-codes__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to reveal content */
    padding: 15px 25px 25px;
}

.page-index-b52-exclusive-promo-codes__faq-answer p {
    margin-bottom: 0;
}

/* Clear floats after image-left/right */
.page-index-b52-exclusive-promo-codes__content-section::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-b52-exclusive-promo-codes__main-title {
        font-size: 3em;
    }
    .page-index-b52-exclusive-promo-codes__section-title {
        font-size: 2em;
    }
    .page-index-b52-exclusive-promo-codes__image-right,
    .page-index-b52-exclusive-promo-codes__image-left {
        max-width: 100%;
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
}

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

    .page-index-b52-exclusive-promo-codes__hero-section {
        height: auto;
        min-height: 70vh;
        padding: 80px 20px;
    }

    .page-index-b52-exclusive-promo-codes__main-title {
        font-size: 2.2em;
    }

    .page-index-b52-exclusive-promo-codes__intro-text {
        font-size: 1em;
    }

    .page-index-b52-exclusive-promo-codes__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-index-b52-exclusive-promo-codes__btn-primary,
    .page-index-b52-exclusive-promo-codes__btn-secondary {
        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-index-b52-exclusive-promo-codes__content-section {
        padding: 40px 15px;
    }
    
    .page-index-b52-exclusive-promo-codes__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-index-b52-exclusive-promo-codes__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-index-b52-exclusive-promo-codes img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto !important;
    }
    
    .page-index-b52-exclusive-promo-codes__card-image {
        height: auto; /* Allow card images to scale */
    }

    .page-index-b52-exclusive-promo-codes__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index-b52-exclusive-promo-codes__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-index-b52-exclusive-promo-codes__faq-answer {
        padding: 0 20px;
    }

    .page-index-b52-exclusive-promo-codes__faq-item.active .page-index-b52-exclusive-promo-codes__faq-answer {
        padding: 10px 20px 20px;
    }
    
    /* Ensure video wrapper is responsive */
    .page-index-b52-exclusive-promo-codes__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-index-b52-exclusive-promo-codes__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        position: relative; /* Change to relative for mobile to prevent overflow */
        transform: none;
        left: auto;
        top: auto;
    }
}