/* style/promotions.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

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

.page-promotions h1,
.page-promotions h2,
.page-promotions h3 {
    color: var(--color-text-main); /* Ensure headings are light */
    margin-bottom: 1em;
    font-weight: bold;
}

.page-promotions h1 {
    font-size: clamp(2em, 4vw, 3em); /* Responsive H1 font size */
    line-height: 1.2;
    text-align: center;
}

.page-promotions h2 {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    text-align: center;
    margin-bottom: 1.5em;
}

.page-promotions h3 {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
}

.page-promotions p {
    color: var(--color-text-secondary); /* Secondary text color */
    margin-bottom: 1em;
}

.page-promotions strong {
    color: var(--color-text-main); /* Highlight important text */
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

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

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box;
    text-align: center;
    min-width: 180px; /* Minimum width for buttons */
}

.page-promotions__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* Light text on dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
}

/* Section Styling */
.page-promotions__introduction-section,
.page-promotions__types-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-conditions-section,
.page-promotions__faq-section,
.page-promotions__cta-bottom-section {
    padding: 80px 0;
}

.page-promotions__section-title {
    margin-bottom: 40px;
    color: var(--color-gold); /* Gold for section titles */
}

.page-promotions__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 2em;
}

/* Image-Text Block */
.page-promotions__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions__content-image {
    flex: 1;
    min-width: 300px; /* Ensure image doesn't get too small */
    height: auto;
    display: block;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__text-content {
    flex: 2;
    min-width: 300px; /* Ensure text content doesn't get too small */
}

.page-promotions__sub-title {
    color: var(--color-text-main);
    margin-bottom: 1em;
    text-align: left;
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    margin-bottom: 2em;
}

.page-promotions__list-item {
    background-color: var(--color-card-bg); /* Darker background for list items */
    color: var(--color-text-secondary);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__list-item::before {
    content: "✅"; /* Checkmark icon */
    font-size: 1.2em;
    color: var(--color-glow);
}

/* Promotion Grid */
.page-promotions__promotion-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); /* Card background */
    border: 1px solid var(--color-border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
}

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

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

/* Steps Grid */
.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: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__step-image {
    width: 100%;
    height: 180px; /* Fixed height for step images */
    object-fit: contain; /* Use contain to show full image */
    margin-bottom: 20px;
    display: block;
}

.page-promotions__step-title {
    color: var(--color-gold); /* Gold for step titles */
    margin-bottom: 10px;
    font-size: 1.4em;
}

.page-promotions__step-description {
    color: var(--color-text-secondary);
    font-size: 0.95em;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.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 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green); /* Darker green for question background */
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* Remove default marker for details/summary */
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    font-size: 1.1em;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    padding: 20px;
    color: var(--color-text-secondary);
    font-size: 0.95em;
    border-top: 1px solid var(--color-divider);
}

.page-promotions__faq-answer p {
    margin-bottom: 0; /* Remove bottom margin for last paragraph */
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-promotions__image-text-block {
        flex-direction: column;
        text-align: center;
    }

    .page-promotions__text-content {
        text-align: center;
    }

    .page-promotions__sub-title {
        text-align: center;
    }

    .page-promotions__list-item {
        justify-content: center;
    }
}

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

    .page-promotions h1 {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-promotions h2 {
        font-size: clamp(1.6em, 6vw, 2em);
    }
    
    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles header offset */
    }

    .page-promotions__introduction-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-conditions-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        padding: 40px 0;
    }

    .page-promotions__container {
        padding: 0 15px; /* Add padding to prevent content touching edges */
    }

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

    .page-promotions__hero-image-wrapper,
    .page-promotions__content-image,
    .page-promotions__card-image,
    .page-promotions__step-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        height: auto; /* Allow height to adjust */
    }

    /* Buttons */
    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Ensure text inside button has padding */
        padding-right: 15px;
    }

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

    .page-promotions__faq-question {
        padding: 15px;
    }

    .page-promotions__faq-qtext {
        font-size: 1em;
    }

    .page-promotions__faq-answer {
        padding: 15px;
    }
    
    /* Ensure all content containers have proper mobile padding */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__introduction-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-conditions-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding added to container, so sections don't need double padding */
    }
}

/* No CSS filters for images */
.page-promotions img {
    filter: none !important;
}