/* style/promotions.css */

/* Global styles for the promotions page scope */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #F2FFF6); /* Default text color for dark background */
    background-color: var(--body-bg, #08160F); /* Very dark green background */
    line-height: 1.6;
}

.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-promotions__hero-content {
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
    position: relative; /* Not absolute, to follow image */
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for responsive buttons */
    max-width: 600px; /* Limit width of button group */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding for small screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary,
.page-promotions__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
    transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--border-color, #2E7A4E);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-promotions__btn-tertiary {
    background-color: var(--deep-green, #0A4B2C);
    color: var(--text-main, #F2FFF6);
    border: 1px solid var(--border-color, #2E7A4E);
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
}

.page-promotions__btn-tertiary:hover {
    background-color: var(--border-color, #2E7A4E);
    transform: translateY(-1px);
}

.page-promotions__btn-link {
    background: none;
    border: none;
    color: var(--secondary-color, #22C768);
    padding: 0;
    font-weight: 500;
    text-decoration: underline;
    font-size: 0.95rem;
}

.page-promotions__btn-link:hover {
    color: var(--glow-color, #57E38D);
}

.page-promotions__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--gold-color, #F2C14E);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-promotions__section-description {
    font-size: 1.05rem;
    color: var(--text-secondary, #A7D9B8);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-promotions__features-grid,
.page-promotions__promo-cards,
.page-promotions__steps-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-promotions__feature-card,
.page-promotions__promo-card,
.page-promotions__step-card {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--divider-color, #1E3A2A);
}

.page-promotions__feature-title,
.page-promotions__card-title,
.page-promotions__step-title {
    font-size: 1.5rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__feature-text,
.page-promotions__card-text,
.page-promotions__step-text {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
    line-height: 1.7;
    flex-grow: 1; /* Allow text to grow and push button to bottom */
    margin-bottom: 20px; /* Space before button */
}

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

.page-promotions__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color, #2E7A4E);
}

.page-promotions__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-promotions__step-card {
    text-align: center;
    padding: 40px 25px;
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color, #11A84E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 auto 25px auto;
    box-shadow: 0 0 15px var(--glow-color, #57E38D);
}

.page-promotions__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 60px auto 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--glow-color, #57E38D);
}

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

.page-promotions__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.page-promotions__video-wrapper:hover .page-promotions__video-overlay {
    opacity: 1;
}

.page-promotions__video-cta {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
    transition: all 0.3s ease;
}

.page-promotions__video-cta:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
    transform: translateY(-2px);
}


.page-promotions__terms-list,
.page-promotions__responsible-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 800px;
    margin: 40px auto;
}

.page-promotions__terms-item,
.page-promotions__responsible-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
    border: 1px solid var(--divider-color, #1E3A2A);
}

.page-promotions__terms-item strong {
    color: var(--text-main, #F2FFF6);
}

.page-promotions__terms-text,
.page-promotions__responsible-text {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    max-width: 800px;
    margin: 20px auto;
}

.page-promotions__faq {
    padding-bottom: 80px;
}

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

.page-promotions__faq-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--divider-color, #1E3A2A);
    overflow: hidden; /* For details tag transition */
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: var(--deep-green, #0A4B2C);
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--secondary-color, #22C768);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    color: var(--gold-color, #F2C14E);
}

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

/* Remove default details marker */
.page-promotions__faq-item summary {
    list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-promotions__cta-final {
    padding-top: 0;
    padding-bottom: 80px;
}

/* Ensure no filter is applied to images */
.page-promotions img {
    filter: none !important;
}

/* Ensure content area images maintain minimum size if not for mobile */
.page-promotions__promo-image,
.page-promotions__hero-image {
    min-width: 200px;
    min-height: 200px;
}

@media (max-width: 1024px) {
    .page-promotions__hero-image {
        max-height: 400px;
    }
}

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

    .page-promotions__hero-section {
        padding-bottom: 40px;
    }

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

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

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 20px; /* Adjust padding for mobile buttons */
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-tertiary,
    .page-promotions__btn-link {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section {
        padding: 40px 15px;
    }

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

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

    .page-promotions__features-grid,
    .page-promotions__promo-cards,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-promotions__feature-card,
    .page-promotions__promo-card,
    .page-promotions__step-card {
        padding: 25px;
    }

    .page-promotions__feature-title,
    .page-promotions__card-title,
    .page-promotions__step-title {
        font-size: 1.3rem;
    }

    .page-promotions__feature-text,
    .page-promotions__card-text,
    .page-promotions__step-text {
        font-size: 0.9rem;
    }

    .page-promotions__promo-image {
        height: 180px;
    }

    .page-promotions__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .page-promotions__video-wrapper {
        margin-top: 40px;
        border-radius: 8px;
    }

    .page-promotions__video-cta {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .page-promotions__terms-list,
    .page-promotions__responsible-list,
    .page-promotions__faq-list {
        margin: 30px auto;
    }

    .page-promotions__terms-item,
    .page-promotions__responsible-item {
        padding: 18px 20px;
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .page-promotions__faq-question {
        padding: 18px 20px;
        font-size: 1rem;
    }

    .page-promotions__faq-answer {
        padding: 0 20px 18px 20px;
        font-size: 0.9rem;
    }

    /* Ensure all images and video are responsive on mobile */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__hero-image {
        max-height: 300px; /* Adjust hero image height for smaller screens */
    }

    .page-promotions video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__hero-image-wrapper,
    .page-promotions__video-wrapper,
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .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;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    .page-promotions__hero-content,
    .page-promotions__section-description,
    .page-promotions__terms-list,
    .page-promotions__responsible-list,
    .page-promotions__terms-text,
    .page-promotions__responsible-text,
    .page-promotions__faq-list {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promotions__video-section {
        padding-top: 10px !important; /* body already has padding-top */
    }

    .page-promotions__promo-image,
    .page-promotions__hero-image {
        min-width: unset; /* Allow to scale down on mobile */
        min-height: unset;
    }
}