/* style/promotions.css */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--black-color); /* Inherit from shared.css */
}

.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;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Adjust as needed */
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    background-color: #26A9E0; /* Main brand color for hero background */
    color: #ffffff;
    overflow: hidden;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    text-align: center;
}

.page-promotions__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-promotions__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-promotions__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: #26A9E0;
    color: #ffffff;
    border: 1px solid #26A9E0;
    border-radius: 5px;
}

.page-promotions__btn-small:hover {
    background-color: #1e87bb;
    border-color: #1e87bb;
}

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* Section Title & Description */
.page-promotions__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Light text for dark background */
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Current Promotions Section */
.page-promotions__current-promos {
    padding: 80px 0;
    background-color: var(--black-color); /* Dark background */
}

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

.page-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: #ffffff;
    transition: transform 0.3s ease;
}

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

.page-promotions__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-promotions__card-title {
    font-size: 1.3em;
    margin: 20px 20px 10px;
    color: #26A9E0;
}

.page-promotions__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    text-decoration: underline;
}

.page-promotions__card-text {
    font-size: 0.95em;
    color: #cccccc;
    margin: 0 20px 20px;
    flex-grow: 1;
}

.page-promotions__promo-card .page-promotions__btn-small {
    margin: 0 20px 20px;
    align-self: flex-start;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions__step-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
}

.page-promotions__step-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-promotions__step-text {
    color: #cccccc;
}

.page-promotions__step-text a {
    color: #EA7C07; /* Highlight links in steps */
    text-decoration: none;
}

.page-promotions__step-text a:hover {
    text-decoration: underline;
}

.page-promotions__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    padding: 80px 0;
    background-color: var(--black-color); /* Dark background */
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 40px;
    color: #cccccc;
    max-width: 900px;
    margin: 0 auto 40px;
}

.page-promotions__terms-item {
    margin-bottom: 15px;
    font-size: 1.05em;
}

/* FAQ Section */
.page-promotions__faq {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #26A9E0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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;
    background-color: rgba(255, 255, 255, 0.05);
    color: #cccccc;
}

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

.page-promotions__faq-answer p {
    margin: 0;
    color: #cccccc;
}

/* Final CTA Section */
.page-promotions__cta-final {
    padding: 80px 0;
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
    text-align: center;
}

.page-promotions__cta-final .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__cta-final .page-promotions__section-description {
    color: #f0f0f0;
}

.page-promotions__cta-final .page-promotions__cta-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: auto;
    }

    .page-promotions__hero-content {
        padding: 20px 0;
        margin-bottom: 20px;
    }

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

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

    .page-promotions__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        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__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__hero-image-wrapper {
        position: relative;
        height: 250px; /* Smaller on mobile */
        margin-top: 20px;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-top: 30px;
    }

    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-promotions__current-promos,
    .page-promotions__how-to-claim,
    .page-promotions__terms-conditions,
    .page-promotions__faq,
    .page-promotions__cta-final {
        padding: 40px 0;
    }

    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* FAQ Specific */
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 15px 20px;
    }
}

/* Ensure no filter on images */
.page-promotions img {
    filter: none;
}

/* Text color contrast for specific elements on dark background */
.page-promotions a {
    color: #26A9E0; /* Default link color */
}
.page-promotions a:hover {
    color: #1e87bb;
}

.page-promotions__promo-card a {
    color: #26A9E0;
}
.page-promotions__promo-card a:hover {
    color: #1e87bb;
}
.page-promotions__step-text a {
    color: #EA7C07;
}
.page-promotions__step-text a:hover {
    text-decoration: underline;
}

/* Ensure all text elements have sufficient contrast */
.page-promotions h1, .page-promotions h2, .page-promotions h3, .page-promotions h4, .page-promotions h5, .page-promotions h6 {
    color: #ffffff; /* Default for dark background */
}
.page-promotions p, .page-promotions li, .page-promotions span {
    color: #cccccc; /* Default for dark background */
}
/* Override for specific sections with brand color background */
.page-promotions__hero-section .page-promotions__hero-title,
.page-promotions__hero-section .page-promotions__hero-description {
    color: #ffffff;
}
.page-promotions__cta-final .page-promotions__section-title,
.page-promotions__cta-final .page-promotions__section-description {
    color: #ffffff;
}
.page-promotions__faq-question {
    color: #ffffff;
}