/* style/promotions.css */

/* Base Styles */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: #ffffff; /* White text on dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #005f2c); /* Brand color gradient */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.page-promotions__hero-section .page-promotions__container {
    position: relative;
    z-index: 2;
}

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

.page-promotions__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image for text contrast */
}

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

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

.page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFFFF; /* White text for contrast on red */
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
    transform: translateY(-2px);
}

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

/* Video Section */
.page-promotions__intro-video-section {
    background-color: #1a1a2e; /* Dark background */
    padding: 60px 0;
    text-align: center;
}

.page-promotions__video-wrapper {
    position: relative;
    max-width: 800px; /* Max width for the video */
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__video {
    width: 100%;
    height: auto;
    display: block;
}

.page-promotions__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* Benefits Section */
.page-promotions__benefits-section {
    background-color: #FFFFFF; /* Light background */
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
}

.page-promotions__benefits-section .page-promotions__section-title,
.page-promotions__benefits-section .page-promotions__section-description {
    color: #333333;
}

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

.page-promotions__benefit-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-promotions__benefit-icon {
    width: 200px; /* Minimum size 200px */
    height: 150px; /* Minimum size 200px */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
}

/* Promotion Types Section */
.page-promotions__types-section {
    background-color: #1a1a2e; /* Dark background */
    padding: 80px 0;
    color: #ffffff;
}

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

.page-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-promotions__promo-image {
    width: 100%;
    height: 250px; /* Ensure sufficient height for content image */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    background-color: #FFFFFF; /* Light background */
    padding: 80px 0;
    color: #333333;
}

.page-promotions__how-to-claim-section .page-promotions__section-title,
.page-promotions__how-to-claim-section .page-promotions__section-description {
    color: #333333;
}

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

.page-promotions__step-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-number {
    background-color: #017439;
    color: #FFFFFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
}

.page-promotions__terms-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #017439;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.05em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: #FFFFFF; /* Light background */
    padding: 80px 0;
    color: #333333;
}

.page-promotions__faq-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-description {
    color: #333333;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #e9e9e9;
    border-bottom: 1px solid #dcdcdc;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: #017439;
    margin-left: 15px;
    line-height: 1;
}

/* Details element specific styling */
.page-promotions__faq-item[open] > .page-promotions__faq-question {
    background-color: #dcdcdc;
    border-bottom: 1px solid #c0c0c0;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: "−"; /* Changed by JS */
}

.page-promotions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

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

/* Dark/Light Background Specifics for Contrast */
.page-promotions__dark-bg {
    color: #ffffff;
}

.page-promotions__light-bg {
    color: #333333;
}

/* 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 {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        padding: 60px 0;
        min-height: 500px;
    }
    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Images responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__hero-image-wrapper,
    .page-promotions__benefits-grid,
    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__faq-list,
    .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;
    }

    /* Video responsive */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__intro-video-section {
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset to mobile video section */
    }
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; /* Handled by container */
        padding-right: 0; /* Handled by container */
        overflow: hidden !important;
    }

    .page-promotions__benefit-icon {
        width: 150px;
        height: 100px;
    }
    .page-promotions__promo-image {
        height: 200px;
    }

    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__hero-description {
        font-size: 0.95em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}