/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color, #08160F); /* Fallback to custom color if --background-color is not set */
    color: #F2FFF6; /* Main text color for dark background */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on wider elements */
}

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

.page-promotions__section-title {
    font-size: 2.5rem;
    color: #F2FFF6; /* Main text color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 0.05em;
    padding-top: 20px;
}

.page-promotions__section-title--dark {
    color: #0A4B2C; /* Deep Green for titles on light background */
}

.page-promotions__section-description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Secondary text color */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-promotions__section-description--dark {
    color: #333333; /* Dark text for descriptions on light background */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: #08160F; /* Ensure background matches body for seamless look */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height to prevent image being too tall */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-promotions__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: #F2FFF6;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

.page-promotions__description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #A7D9B8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--dark {
    background: #0A4B2C; /* Deep Green */
    color: #F2FFF6;
}

.page-promotions__cta-button--dark:hover {
    background: #063a20;
}

/* Current Promotions Section */
.page-promotions__current-promotions {
    padding: 80px 20px;
    background-color: #08160F; /* Background for dark section */
}

.page-promotions__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-promotions__promotion-card {
    background-color: #11271B; /* Card background color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__card-title {
    font-size: 1.5rem;
    color: #F2FFF6;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 1rem;
    color: #A7D9B8;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__card-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button fits card width */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 80px 20px;
    background-color: #F2FFF6; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.page-promotions__step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.page-promotions__step-text-wrapper {
    flex-grow: 1;
}

.page-promotions__step-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #11A84E; /* Main brand color */
    flex-shrink: 0;
    line-height: 1;
}

.page-promotions__step-title {
    font-size: 1.8rem;
    color: #0A4B2C; /* Deep Green */
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 1rem;
    color: #333333;
}

/* Terms and Conditions Summary Section */
.page-promotions__terms-summary {
    padding: 80px 20px;
    background-color: #08160F; /* Dark background */
}

.page-promotions__terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.page-promotions__term-item {
    background-color: #11271B; /* Card background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__term-title {
    font-size: 1.4rem;
    color: #F2FFF6;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__term-text {
    font-size: 1rem;
    color: #A7D9B8;
}

.page-promotions__link-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    color: #F2FFF6;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 12px 25px;
    border: 2px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-promotions__link-button:hover {
    background-color: #2E7A4E;
    border-color: #57E38D;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 20px;
    background-color: #F2FFF6; /* Light background */
    color: #333333; /* Dark text */
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #E0E0E0;
}

.page-promotions__faq-item {
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 10px;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0A4B2C; /* Deep Green */
    list-style: none; /* For details/summary */
    position: relative;
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-question::marker {
    display: none;
}

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: #11A84E;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    padding: 0 0 20px 0;
    font-size: 1rem;
    color: #333333;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    transition: max-height 0.4s ease-in;
}

.page-promotions__faq-answer p {
    margin: 0;
    padding-right: 30px; /* Space for toggle if it were absolute */
}


/* Final Call to Action Section */
.page-promotions__cta-final {
    padding: 80px 20px;
    background-color: #08160F; /* Dark background */
    text-align: center;
}

.page-promotions__cta-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin: 40px auto;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-promotions__description {
        font-size: clamp(1rem, 1.8vw, 1.2rem);
    }
    .page-promotions__section-title {
        font-size: 2rem;
    }
    .page-promotions__card-title {
        font-size: 1.3rem;
    }
    .page-promotions__step-title {
        font-size: 1.5rem;
    }
    .page-promotions__term-title {
        font-size: 1.2rem;
    }
    .page-promotions__faq-question {
        font-size: 1.1rem;
    }
}

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

    /* All images responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All image containers responsive */
    .page-promotions__hero-image-wrapper,
    .page-promotions__promotions-grid,
    .page-promotions__promotion-card,
    .page-promotions__cta-final,
    .page-promotions__terms-grid,
    .page-promotions__content-wrapper,
    .page-promotions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    /* Video section top padding (hero-section is treated similarly for top content) */
    .page-promotions__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-promotions__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-promotions__description {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    }

    .page-promotions__cta-button,
    .page-promotions__card-button,
    .page-promotions__link-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-promotions__cta-button {
        padding: 12px 20px;
    }

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

    .page-promotions__promotions-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__card-image {
        height: 200px;
    }
    .page-promotions__card-title {
        font-size: 1.2rem;
    }
    .page-promotions__card-text {
        font-size: 0.95rem;
    }

    .page-promotions__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-promotions__step-number {
        margin-bottom: 10px;
    }
    .page-promotions__step-title {
        font-size: 1.4rem;
    }
    .page-promotions__step-text {
        font-size: 0.95rem;
    }

    .page-promotions__terms-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__term-title {
        font-size: 1.1rem;
    }
    .page-promotions__term-text {
        font-size: 0.9rem;
    }

    .page-promotions__faq-question {
        font-size: 1rem;
    }
    .page-promotions__faq-toggle {
        font-size: 1.5rem;
    }

    .page-promotions__cta-image {
        margin: 30px auto;
    }
}

/* Color contrast fixes for specific elements if needed, based on body background (#08160F is dark) */
.page-promotions__light-bg {
    background-color: #F2FFF6; /* Light background */
    color: #333333; /* Dark text for light background */
}
.page-promotions__dark-bg {
    background-color: #08160F; /* Dark background */
    color: #F2FFF6; /* Light text for dark background */
}