/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color, #08160F); /* Deep Green */
    color: var(--text-main-color, #F2FFF6); /* Light text for dark background */
}

.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(--glow-color, #57E38D); /* Using Glow color for titles for emphasis */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-promotions__text-block {
    margin-bottom: 20px;
    color: var(--text-secondary-color, #A7D9B8); /* Secondary text color */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    margin-bottom: 40px;
}

.page-promotions__hero-image {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    z-index: 0;
    max-height: 600px; /* Limit height for hero image */
}

.page-promotions__hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -150px; /* Pull content up over the bottom part of the image */
    background: linear-gradient(to top, rgba(8, 22, 15, 0.9), rgba(8, 22, 15, 0.5) 50%, transparent); /* Gradient for readability */
    border-radius: 10px;
}

.page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.page-promotions__subtitle {
    font-size: 1.2em;
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 30px;
}

/* CTA Button */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-promotions__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--small {
    padding: 10px 20px;
    font-size: 0.9em;
}

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

.page-promotions__cta-button--secondary {
    background: none;
    border: 2px solid var(--border-color, #2E7A4E);
    color: var(--text-main-color, #F2FFF6);
}

.page-promotions__cta-button--secondary:hover {
    background: var(--border-color, #2E7A4E);
    color: #ffffff;
}

/* Overview Section */
.page-promotions__overview-section {
    padding: 60px 0;
    text-align: center;
}

/* Featured Promotions */
.page-promotions__featured-promotions {
    padding: 60px 0;
    background-color: var(--card-bg-color, #11271B); /* Card background color */
}

.page-promotions__promotion-card {
    display: flex;
    flex-direction: column;
    background-color: var(--background-color, #08160F); /* Darker background for card content */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--divider-color, #1E3A2A); /* Border color */
}

.page-promotions__promotion-card:nth-child(even) {
    flex-direction: column-reverse; /* Alternate image and content direction */
}

.page-promotions__card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-height: 250px; /* Ensure images are not too small */
}

.page-promotions__card-content {
    padding: 30px;
}

.page-promotions__card-title {
    font-size: 1.8em;
    color: var(--glow-color, #57E38D);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-description {
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 20px;
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-promotions__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-secondary-color, #A7D9B8);
}

.page-promotions__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--glow-color, #57E38D);
    font-weight: bold;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__numbered-list {
    list-style: none;
    counter-reset: my-awesome-counter;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.page-promotions__numbered-list li {
    counter-increment: my-awesome-counter;
    position: relative;
    padding-left: 60px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-main-color, #F2FFF6);
}

.page-promotions__numbered-list li::before {
    content: counter(my-awesome-counter);
    position: absolute;
    left: 0;
    top: -5px;
    background-color: var(--glow-color, #57E38D);
    color: #000000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    padding: 60px 0;
    background-color: var(--card-bg-color, #11271B);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
}

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

.page-promotions__faq-item {
    background-color: var(--background-color, #08160F);
    border: 1px solid var(--divider-color, #1E3A2A);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color, #F2FFF6);
}

.page-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    color: var(--glow-color, #57E38D);
    list-style: none; /* Hide default marker */
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just to '-' */
}

.page-promotions__faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-secondary-color, #A7D9B8);
    font-size: 0.95em;
}

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

/* Call to Action Section */
.page-promotions__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--card-bg-color, #11271B);
}

.page-promotions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Links in content */
.page-promotions a {
    color: var(--glow-color, #57E38D);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-promotions__promotion-card {
        flex-direction: row;
        align-items: center;
    }

    .page-promotions__promotion-card:nth-child(even) {
        flex-direction: row-reverse;
    }

    .page-promotions__card-image {
        width: 40%;
        min-height: 350px;
    }

    .page-promotions__card-content {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .page-promotions__section-title {
        font-size: 2em;
    }

    .page-promotions__hero-content {
        padding: 20px;
        margin-top: -100px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-promotions__subtitle {
        font-size: 1em;
    }

    .page-promotions__hero-image {
        max-height: 400px;
    }

    .page-promotions__promotion-card {
        flex-direction: column;
    }
    
    .page-promotions__promotion-card:nth-child(even) {
        flex-direction: column; /* Reset order for mobile */
    }

    .page-promotions__card-image {
        width: 100%;
        min-height: 200px;
    }

    .page-promotions__card-content {
        width: 100%;
        padding: 20px;
    }

    .page-promotions__card-title {
        font-size: 1.5em;
    }

    .page-promotions__numbered-list li {
        padding-left: 45px;
        font-size: 1em;
    }

    .page-promotions__numbered-list li::before {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }

    .page-promotions__faq-item summary {
        padding: 15px;
        font-size: 1em;
    }

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

    /* Mobile specific responsive rules for images, videos, and buttons */
    .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,
    .page-promotions__hero-section,
    .page-promotions__overview-section,
    .page-promotions__featured-promotions,
    .page-promotions__how-to-claim,
    .page-promotions__terms-conditions,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Adjust padding for specific sections that might have different default padding */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
    }

    .page-promotions__cta-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 !important; /* Ensure content padding applies to buttons */
        padding-right: 15px !important;
        margin-bottom: 10px; /* Space between stacked buttons */
    }
    
    .page-promotions__button-group {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}