/* style/promotions.css */
/* Custom Color Variables */
:root {
    --q79-color-primary: #11A84E; /* Main */
    --q79-color-secondary: #22C768; /* Aux */
    --q79-color-button-gradient-start: #2AD16F;
    --q79-color-button-gradient-end: #13994A;
    --q79-color-background: #08160F; /* Background */
    --q79-color-card-bg: #11271B; /* Card BG */
    --q79-color-text-main: #F2FFF6; /* Text Main */
    --q79-color-text-secondary: #A7D9B8; /* Text Secondary */
    --q79-color-border: #2E7A4E; /* Border */
    --q79-color-glow: #57E38D; /* Glow */
    --q79-color-gold: #F2C14E; /* Gold */
    --q79-color-divider: #1E3A2A; /* Divider */
    --q79-color-deep-green: #0A4B2C; /* Deep Green */
}

.page-promotions {
    font-family: Arial, sans-serif;
    background-color: var(--q79-color-background); /* Dark background */
    color: var(--q79-color-text-main); /* Light text for main content */
    line-height: 1.6;
}

/* Typography */
.page-promotions h1,
.page-promotions h2,
.page-promotions h3 {
    color: var(--q79-color-text-main);
    font-weight: bold;
    margin-bottom: 1em;
    line-height: 1.2;
}

.page-promotions h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-promotions h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 1.5em;
}

.page-promotions h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.8em;
}

.page-promotions p {
    margin-bottom: 1em;
    color: var(--q79-color-text-main);
}

.page-promotions__text-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2em auto;
    color: var(--q79-color-text-secondary); /* Secondary text color for descriptive paragraphs */
}

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

/* Sections */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
    /* NO filter: hue-rotate() or similar color-changing filters */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    color: var(--q79-color-text-main);
}

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

/* Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--q79-color-button-gradient-start) 0%, var(--q79-color-button-gradient-end) 100%);
    color: #ffffff; /* White text for primary button */
    border: none;
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--q79-color-primary); /* Primary color text for secondary button */
    border: 2px solid var(--q79-color-primary);
    margin-left: 15px;
}

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

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2em;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Cards */
.page-promotions__card {
    background-color: var(--q79-color-card-bg); /* Dark card background */
    border: 1px solid var(--q79-color-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--q79-color-text-main); /* Light text on dark card */
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Introduction Section */
.page-promotions__introduction-section {
    padding: 80px 0;
    background-color: var(--q79-color-deep-green); /* Example dark section background */
    color: var(--q79-color-text-main);
}

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

.page-promotions__feature-item {
    text-align: center;
}

.page-promotions__feature-icon {
    width: 100%; /* Ensure image fills card */
    max-width: 200px; /* Constrain icon size */
    height: auto;
    margin-bottom: 1em;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Promotions Categories Section */
.page-promotions__categories-section {
    padding: 80px 0;
}

.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 3em;
}

.page-promotions__promo-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
    height: 100%; /* Ensure cards are same height */
}

.page-promotions__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: block;
}

.page-promotions__promo-content {
    padding: 20px;
    flex-grow: 1; /* Allow content to grow */
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-title {
    color: var(--q79-color-gold); /* Gold color for promo titles */
    margin-bottom: 0.5em;
}

.page-promotions__promo-description {
    color: var(--q79-color-text-secondary);
    margin-bottom: 1em;
    flex-grow: 1; /* Push button to bottom */
}

.page-promotions__promo-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5em;
    color: var(--q79-color-text-main);
}

.page-promotions__promo-benefits li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.5em;
}

.page-promotions__promo-benefits li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--q79-color-primary);
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
    background-color: var(--q79-color-deep-green);
    color: var(--q79-color-text-main);
}

.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3em;
}

.page-promotions__step-item {
    text-align: center;
    position: relative;
    padding-top: 60px; /* Space for step number */
    display: flex;
    flex-direction: column;
}

.page-promotions__step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--q79-color-gold); /* Gold for step numbers */
    color: var(--q79-color-background); /* Dark text on gold */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-promotions__step-title {
    color: var(--q79-color-gold);
}

.page-promotions__step-description {
    color: var(--q79-color-text-secondary);
    flex-grow: 1;
}

/* Terms Section */
.page-promotions__terms-section {
    padding: 80px 0;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 3em auto 2em auto;
    color: var(--q79-color-text-main);
}

.page-promotions__terms-list li {
    background-color: var(--q79-color-card-bg);
    border: 1px solid var(--q79-color-divider);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    position: relative;
    padding-left: 40px;
}

.page-promotions__terms-list li::before {
    content: '⚠️';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--q79-color-deep-green);
    color: var(--q79-color-text-main);
}

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

.page-promotions__faq-item {
    background-color: var(--q79-color-card-bg);
    border: 1px solid var(--q79-color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-item[open] {
    box-shadow: 0 0 20px rgba(87, 227, 141, 0.3);
    border-color: var(--q79-color-glow);
}

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

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

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

.page-promotions__faq-answer {
    padding: 20px 25px;
    color: var(--q79-color-text-secondary);
    border-top: 1px solid var(--q79-color-divider);
}

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

/* CTA Bottom Section */
.page-promotions__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .page-promotions h2 {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }
    .page-promotions h3 {
        font-size: clamp(1.3rem, 6vw, 1.7rem);
    }

    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-promotions__btn-secondary {
        margin-top: 10px;
    }

    .page-promotions__container,
    .page-promotions__introduction-section .page-promotions__container,
    .page-promotions__categories-section .page-promotions__container,
    .page-promotions__how-to-claim-section .page-promotions__container,
    .page-promotions__terms-section .page-promotions__container,
    .page-promotions__faq-section .page-promotions__container,
    .page-promotions__cta-bottom-section .page-promotions__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Specific image containers */
    .page-promotions__hero-image-wrapper,
    .page-promotions__features-grid,
    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-promotions__promo-card {
        height: auto;
    }

    .page-promotions__promo-image {
        height: auto;
    }

    .page-promotions__feature-icon {
        max-width: 150px;
    }
}

/* Ensure no filter is used to change image colors */
.page-promotions img {
    filter: none; /* Reset any default filters */
}
/* Specifically for hero image to darken it, NOT change color */
.page-promotions__hero-image {
    filter: brightness(0.5); /* Only adjust brightness for readability */
}