/* style/promotions.css */

/* --- Base Styles & Variables --- */
:root {
    --color-primary: #11A84E; /* Main Green */
    --color-secondary: #22C768; /* Auxiliary Green */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background-dark: #08160F;
    --color-text-main: #F2FFF6; /* Main White-ish Text */
    --color-text-secondary: #A7D9B8; /* Secondary Green-ish Text */
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;

    --padding-section-desktop: 80px 0;
    --padding-section-mobile: 40px 0;
    --max-width-content: 1200px;
}

.page-promotions {
    background-color: var(--color-background-dark); /* Assuming body background is dark */
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 16px;
}

.page-promotions__container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 20px;
}

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

.page-promotions__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 30px;
}

.page-promotions__subtitle {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-promotions__description,
.page-promotions__text-block,
.page-promotions__card-text,
.page-promotions p,
.page-promotions li {
    font-size: 1rem;
    color: var(--color-text-secondary); /* Using secondary text color for body text */
    margin-bottom: 15px;
}

/* Ensure contrast for main text against dark background */
.page-promotions__intro-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
    background-color: var(--color-background-dark); /* Explicitly set for clarity */
    color: var(--color-text-main);
    padding: var(--padding-section-desktop);
}

.page-promotions__dark-bg {
    background-color: var(--color-background-dark);
    color: var(--color-text-main);
}

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

.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: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button adapts to container */
}

.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);
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 15px var(--color-glow);
}

.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-text-main);
    box-shadow: 0 0 10px rgba(17, 168, 78, 0.5);
}

.page-promotions__btn-download {
    width: 100%; /* Make download button full width in its container */
    max-width: 300px; /* Limit max width for download button */
    margin-top: 20px;
}

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

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 200px; /* Minimum size for images */
}

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

/* --- Promotion Types Section --- */
.page-promotions__promotion-types-section {
    padding: var(--padding-section-desktop);
}

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

.page-promotions__promotion-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-divider);
}

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

.page-promotions__card-image {
    width: 100%;
    max-width: 400px; /* Ensure card images are not tiny */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px; /* Minimum size for images */
    object-fit: cover;
}

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

.page-promotions__card-text {
    flex-grow: 1; /* Allow text to take available space */
    margin-bottom: 20px;
}

.page-promotions__card-button {
    display: inline-block;
    background: var(--color-button-gradient-start);
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-promotions__card-button:hover {
    filter: brightness(1.1);
}

/* --- How to Claim Section --- */
.page-promotions__steps-list,
.page-promotions__terms-list,
.page-promotions__benefits-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.page-promotions__steps-list li,
.page-promotions__terms-list li,
.page-promotions__benefits-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.page-promotions__steps-list li strong {
    color: var(--color-primary); /* Highlight step titles */
}

.page-promotions__steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--color-primary);
    color: var(--color-text-main);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.page-promotions__terms-list li::before,
.page-promotions__benefits-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-secondary);
    font-size: 1.5rem;
    line-height: 1;
}

/* --- Download App Section --- */
.page-promotions__download-app-section {
    padding: var(--padding-section-desktop);
}

.page-promotions__download-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.page-promotions__download-image {
    flex: 1 1 300px;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    min-height: 200px; /* Minimum size for images */
}

.page-promotions__download-text {
    flex: 2 1 400px;
    text-align: left;
}

/* --- FAQ Section --- */
.page-promotions__faq-section {
    padding: var(--padding-section-desktop);
}

.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    user-select: none;
    background-color: rgba(17, 168, 78, 0.1); /* Slight tint for summary */
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.2);
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
    background-color: var(--color-primary); /* Active state */
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 24px;
    text-align: center;
    color: var(--color-text-main);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    color: var(--color-text-main); /* Ensure toggle color remains consistent */
}

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

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

/* --- Final CTA Section --- */
.page-promotions__final-cta-section {
    padding: var(--padding-section-desktop);
    text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__hero-image-wrapper {
        max-height: 500px;
    }
    .page-promotions__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .page-promotions__download-content {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__download-image {
        max-width: 300px;
    }
    .page-promotions__download-text {
        text-align: center;
    }
    .page-promotions__btn-download {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-promotions__subtitle {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
    }
    .page-promotions__description,
    .page-promotions__text-block,
    .page-promotions__card-text,
    .page-promotions p,
    .page-promotions li {
        font-size: 0.95rem;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .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: 12px 15px !important;
    }

    .page-promotions__hero-section {
        padding-bottom: 30px;
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-promotions__hero-image-wrapper {
        max-height: 300px;
    }

    .page-promotions__intro-section,
    .page-promotions__promotion-types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__download-app-section,
    .page-promotions__faq-section,
    .page-promotions__final-cta-section {
        padding: var(--padding-section-mobile);
    }

    .page-promotions__promotions-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-promotions__download-image {
        max-width: 250px;
    }
    .page-promotions__download-text {
        padding: 0 15px;
    }

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

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px; /* Ensure images are not too small */
    }
    
    .page-promotions__hero-image,
    .page-promotions__card-image,
    .page-promotions__download-image {
        object-fit: cover; /* Maintain aspect ratio and fill space */
    }

    /* Container responsiveness for images, videos, buttons */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-image-wrapper,
    .page-promotions__download-content,
    .page-promotions__cta-buttons,
    .page-promotions__promotions-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific override for sections that already have padding in desktop */
    .page-promotions__intro-section > .page-promotions__container,
    .page-promotions__promotion-types-section > .page-promotions__container,
    .page-promotions__how-to-claim-section > .page-promotions__container,
    .page-promotions__download-app-section > .page-promotions__container,
    .page-promotions__faq-section > .page-promotions__container,
    .page-promotions__final-cta-section > .page-promotions__container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Ensure content area images are not too small */
.page-promotions img {
    min-width: 200px;
    min-height: 200px;
}
.page-promotions__hero-image {
    min-height: 200px;
}
.page-promotions__card-image {
    min-height: 200px;
}
.page-promotions__download-image {
    min-height: 200px;
}

/* Contrast Fixes - if needed, although current palette should be fine */
.page-promotions__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-promotions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}