/* style/promotions.css */

:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark-section: #1a1a1a; /* Darker background for contrast */
    --bg-light-section: #f8f8f8;
    --border-color: #e0e0e0;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--dark-bg-1); /* Assuming --dark-bg-1 is defined in shared.css and is dark */
}

.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: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.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, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-promotions__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark); /* Ensure contrast */
    border: 2px solid var(--primary-color);
}

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

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

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

.page-promotions__btn-large {
    font-size: 1.3em;
    padding: 18px 35px;
}

/* Section Backgrounds & Text Colors */
.page-promotions__dark-bg {
    background-color: var(--bg-dark-section);
    color: var(--text-light);
    padding: 80px 0;
}

.page-promotions__light-bg {
    background-color: var(--bg-light-section);
    color: var(--text-dark);
    padding: 80px 0;
}

.page-promotions__light-bg .page-promotions__section-title {
    color: var(--secondary-color);
}

.page-promotions__light-bg .page-promotions__section-title::after {
    background-color: var(--primary-color);
}

/* Intro Section */
.page-promotions__intro-section .page-promotions__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Featured Promotions Grid */
.page-promotions__featured-promos {
    text-align: center;
}

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

.page-promotions__promo-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    color: var(--text-dark);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-promotions__promo-card h3.page-promotions__card-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin: 20px 20px 10px;
}

.page-promotions__promo-card h3.page-promotions__card-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

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

.page-promotions__card-description {
    font-size: 1em;
    margin: 0 20px 20px;
    flex-grow: 1;
}

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

/* Terms Section */
.page-promotions__terms-section .page-promotions__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-promotions__terms-list {
    list-style-type: disc;
    max-width: 900px;
    margin: 30px auto;
    padding-left: 40px;
}

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

.page-promotions__terms-list strong {
    color: var(--primary-color);
}

/* How To Claim Section */
.page-promotions__how-to-claim .page-promotions__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.page-promotions__steps-list {
    list-style-type: none;
    max-width: 800px;
    margin: 40px auto;
    padding: 0;
    counter-reset: step-counter;
}

.page-promotions__steps-list li {
    position: relative;
    margin-bottom: 30px;
    padding-left: 60px;
    font-size: 1.15em;
    text-align: left;
    color: var(--text-dark);
}

.page-promotions__steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3em;
}

.page-promotions__steps-list li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__steps-list li a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding-bottom: 80px;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ item */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-promotions__faq-item.active .page-promotions__faq-question {
    color: var(--primary-color);
}

.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);
    color: var(--primary-color);
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
}

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

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 1.0em;
    color: var(--text-light);
}

/* CTA Section */
.page-promotions__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-promotions__cta-section .page-promotions__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-promotions__cta-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__cta-section .page-promotions__section-title {
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-promotions__cta-section .page-promotions__text-block {
    max-width: 800px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

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

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

    .page-promotions__hero-section {
        height: 70vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }

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

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

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

    .page-promotions__dark-bg,
    .page-promotions__light-bg {
        padding: 60px 0;
    }

    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__steps-list {
        padding-left: 20px;
    }

    .page-promotions__steps-list li {
        padding-left: 50px;
        font-size: 1.05em;
    }

    .page-promotions__steps-list li::before {
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }

    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-promotions__faq-answer {
        padding: 0 15px;
    }

    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__hero-image,
    .page-promotions__card-image,
    .page-promotions__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Mobile button responsiveness */
    .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-left: 15px;
        padding-right: 15px;
    }

    .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;
    }

    /* Ensure all content containers are responsive */
    .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;
    }

    .page-promotions__hero-content {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__text-block {
        font-size: 0.95em;
    }
    .page-promotions__promo-card h3.page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__card-description {
        font-size: 0.9em;
    }
    .page-promotions__terms-list,
    .page-promotions__steps-list {
        padding-left: 20px;
    }
    .page-promotions__faq-question {
        font-size: 1em;
        padding: 12px;
    }
    .page-promotions__faq-answer p {
        font-size: 0.9em;
    }
}