/* style/promotions.css */

.page-promotions {
    color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.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: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 50px;
}

.page-promotions__text-block {
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #017439; /* Using brand primary color for hero background */
    overflow: hidden;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    color: #ffffff;
    padding: 20px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-promotions__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

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

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
    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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-promotions__btn-primary,
.page-promotions__card-button {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-promotions__btn-primary:hover,
.page-promotions__card-button:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

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

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

.page-promotions__btn-large {
    padding: 18px 40px;
    font-size: 1.1em;
}

/* Intro Section */
.page-promotions__intro-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background for contrast */
    color: #ffffff;
}

/* Promotion Categories Section */
.page-promotions__categories-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Default body background */
}

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

.page-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly visible white background on dark body */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
    color: #017439;
}

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

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

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

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

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px;
}

.page-promotions__step-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-promotions__step-description {
    font-size: 0.9em;
    color: #f0f0f0;
}

.page-promotions__step-description a {
    color: #017439; /* Brand color for links */
    text-decoration: underline;
}

.page-promotions__step-description a:hover {
    color: #005f2e;
}

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

/* Terms Section */
.page-promotions__terms-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

.page-promotions__terms-list {
    list-style: disc inside;
    margin-top: 20px;
    padding-left: 20px;
    color: #f0f0f0;
}

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

.page-promotions__terms-list li a {
    color: #017439;
    text-decoration: underline;
}

.page-promotions__terms-list li a:hover {
    color: #005f2e;
}

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

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg);
    color: #ffffff;
}

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

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

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

/* Final CTA Section */
.page-promotions__cta-final-section {
    padding: 80px 0;
    text-align: center;
    background-color: #0a0a0a;
}

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

.page-promotions__cta-final-section .page-promotions__text-block {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* 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__hero-section {
        min-height: 500px;
        padding: 60px 0;
    }
    .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__card-button,
    .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__hero-section,
    .page-promotions__intro-section,
    .page-promotions__categories-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final-section {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__faq-item {
        margin-bottom: 20px;
    }

    /* Image responsiveness */
    .page-promotions img {
        max-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;
    }
    .page-promotions__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section has header offset */
    }
    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__promo-card {
        padding: 20px;
    }
    .page-promotions__card-image {
        height: auto;
        min-height: 200px;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 10px 20px 15px;
    }
    .page-promotions__step-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.5em;
    }
    .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;
    }
}