/* style/promotions.css */

/* Custom Properties for Colors */
:root {
    --color-primary: #11A84E; /* Main */
    --color-secondary: #22C768; /* Auxiliary */
    --color-card-bg: #11271B; /* Card BG */
    --color-background: #08160F; /* Background */
    --color-text-main: #F2FFF6; /* Text Main */
    --color-text-secondary: #A7D9B8; /* Text Secondary */
    --color-border: #2E7A4E; /* Border */
    --color-glow: #57E38D; /* Glow */
    --color-gold: #F2C14E; /* Gold */
    --color-divider: #1E3A2A; /* Divider */
    --color-deep-green: #0A4B2C; /* Deep Green */
    --gradient-button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-white: #ffffff;
    --color-black: #000000;
    --color-dark-text: #333333;
    --color-light-text: #f0f0f0;
}

/* General styles for the page-promotions scope */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for main sections */
    background-color: var(--color-background); /* Default background color */
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-promotions__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--color-gold);
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Align content to bottom, image above */
    overflow: hidden;
    padding-bottom: 60px; /* Space for content below image */
    background-color: var(--color-background); /* Fallback */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative; /* Ensure it's above content but not overlapping text */
    display: block; /* Remove extra space below image */
    /* No absolute positioning to avoid text overlay */
}

.page-promotions__hero-content {
    position: relative; /* Position relative to normal flow */
    padding: 40px 15px 0;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 2; /* Ensure content is above any background elements */
    color: var(--color-text-main);
}

.page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
    background: var(--gradient-button);
    color: var(--color-white);
    border: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Introduction Section */
.page-promotions__introduction-section {
    background-color: var(--color-background);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promotions__introduction-section .page-promotions__section-title {
    color: var(--color-gold);
}

.page-promotions__introduction-section .page-promotions__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__image-content {
    margin-top: 40px;
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Why Choose Us Section */
.page-promotions__why-choose-us-section {
    background-color: var(--color-deep-green);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promotions__why-choose-us-section .page-promotions__section-title {
    color: var(--color-gold);
}

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

.page-promotions__feature-item {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.page-promotions__feature-title {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.page-promotions__feature-description {
    font-size: 1em;
    color: var(--color-text-secondary);
}

/* Promotion Types Section */
.page-promotions__promotion-types-section {
    background-color: var(--color-background);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promotions__promotion-types-section .page-promotions__section-title {
    color: var(--color-gold);
}

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

.page-promotions__promotion-card {
    background-color: var(--color-card-bg);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-main);
}

.page-promotions__promotion-card .page-promotions__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
}

.page-promotions__card-title {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-promotions__card-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* How To Use Section */
.page-promotions__how-to-use-section {
    background-color: var(--color-deep-green);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promotions__how-to-use-section .page-promotions__section-title {
    color: var(--color-gold);
}

.page-promotions__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__step-item {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.page-promotions__step-title {
    font-size: 1.6em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

/* Terms Section */
.page-promotions__terms-section {
    background-color: var(--color-background);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promotions__terms-section .page-promotions__section-title {
    color: var(--color-gold);
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__terms-item {
    background-color: var(--color-card-bg);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: left;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-divider);
    color: var(--color-text-main);
}

.page-promotions__terms-title {
    font-size: 1.4em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-promotions__terms-description {
    font-size: 1em;
    color: var(--color-text-secondary);
}

.page-promotions__disclaimer {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    margin-top: 30px;
}

.page-promotions__disclaimer a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__disclaimer a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--color-deep-green);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promotions__faq-section .page-promotions__section-title {
    color: var(--color-gold);
}

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

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-primary);
    cursor: pointer;
    background-color: var(--color-deep-green); /* Slightly darker for question */
    border-bottom: 1px solid var(--color-border);
    list-style: none; /* For details/summary */
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: var(--color-deep-green);
    opacity: 0.9;
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
    border-bottom: 1px solid var(--color-border);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-gold);
    margin-left: 15px;
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    text-align: left;
    background-color: var(--color-card-bg);
}

/* Conclusion Section */
.page-promotions__conclusion-section {
    background-color: var(--color-background);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promotions__conclusion-section .page-promotions__section-title {
    color: var(--color-gold);
}

.page-promotions__conclusion-section .page-promotions__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* --- Responsive Design --- */
/* Mobile first approach, then media queries for larger screens */

/* Images Responsive */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 0;
    }

    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__hero-content {
        padding: 20px 15px 0;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust for smaller screens */
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-promotions__text-block {
        font-size: 1em;
    }

    .page-promotions__features-grid,
    .page-promotions__promotion-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__feature-item,
    .page-promotions__promotion-card,
    .page-promotions__step-item,
    .page-promotions__terms-item {
        padding: 20px;
    }

    .page-promotions__feature-title,
    .page-promotions__card-title,
    .page-promotions__step-title,
    .page-promotions__terms-title {
        font-size: 1.2em;
    }

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

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

    /* Enforce image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Video responsiveness (if any video is added later) */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__video-section,
    .page-promotions__video-container,
    .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;
    }
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: 2.2em;
    }

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

    .page-promotions__features-grid,
    .page-promotions__promotion-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop styles */
@media (min-width: 1025px) {
    .page-promotions__hero-section {
        padding-top: 10px; /* Small top padding, body handles header offset */
    }
}

/* Color Contrast Enforcement */
.page-promotions__dark-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-promotions__why-choose-us-section,
.page-promotions__how-to-use-section,
.page-promotions__faq-section {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

.page-promotions__card {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
}

/* Links within text should also have good contrast */
.page-promotions a {
    color: var(--color-gold);
    text-decoration: none;
}

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