/* style/promotions.css */
/* Custom Colors */
:root {
    --color-primary: #11A84E; /* Main Color */
    --color-secondary: #22C768; /* Auxiliary Color */
    --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-promotions scope */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Body background is dark */
    line-height: 1.6;
    padding-top: 0; /* Handled by body padding-top in shared.css */
}

.page-promotions a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions a:hover {
    color: var(--color-gold);
}

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

.page-promotions__section-title {
    font-size: 2.5rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.page-promotions__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

.page-promotions__highlight {
    color: var(--color-gold);
    font-weight: bold;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--color-deep-green); /* Fallback background */
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    max-width: 1920px;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
    position: relative; /* Ensure content is above any potential background elements, but not overlaid on image */
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Use clamp for H1 */
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-promotions__tagline {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-promotions__cta-buttons--center {
    justify-content: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding/border included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure responsiveness */
}

.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: none;
}

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

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

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

/* About Promotions Section */
.page-promotions__about-promotions {
    padding: 80px 0;
    background-color: var(--color-deep-green); /* Darker background for contrast */
}

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

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

.page-promotions__card {
    background-color: var(--color-card-bg); /* Dark card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover;
}

.page-promotions__card-title {
    font-size: 1.6rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 50px auto;
    max-width: 800px;
    text-align: left;
}

.page-promotions__steps-list li {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--color-text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-left: 60px; /* Space for step number */
}

.page-promotions__steps-list li strong {
    color: var(--color-gold);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

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


/* Terms & Conditions Section */
.page-promotions__terms-conditions {
    padding: 80px 0;
    background-color: var(--color-background);
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 40px;
    margin: 30px auto;
    max-width: 900px;
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.page-promotions__terms-list li {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

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

.page-promotions__faq-list {
    max-width: 900px;
    margin: 50px auto 30px auto;
}

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px 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.2rem;
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    background-color: var(--color-card-bg);
    border-bottom: 1px solid transparent; /* No border initially */
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details summary */
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
    border-bottom: 1px solid var(--color-border); /* Add border when open */
    background-color: var(--color-deep-green);
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
}

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

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

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


/* Final CTA Section */
.page-promotions__cta-final {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-background);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: 2rem;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-promotions__tagline {
        font-size: 1.2rem;
    }
    .page-promotions__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    
    .page-promotions__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-promotions__tagline {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-promotions__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

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

    .page-promotions__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card {
        padding: 20px;
    }
    .page-promotions__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-promotions__steps-list {
        margin-top: 30px;
    }
    .page-promotions__steps-list li {
        font-size: 1rem;
        padding: 20px 20px 20px 50px;
    }
    .page-promotions__steps-list li::before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        left: 15px;
    }

    .page-promotions__terms-list {
        padding-left: 25px;
        font-size: 0.95rem;
    }

    .page-promotions__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-toggle {
        font-size: 1.5rem;
    }
    .page-promotions__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px;
    }

    /* Enforce image and video responsiveness for all relevant elements */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size even on mobile */
        min-height: 200px !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__about-promotions,
    .page-promotions__promotion-types,
    .page-promotions__how-to-claim,
    .page-promotions__terms-conditions,
    .page-promotions__faq-section,
    .page-promotions__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-promotions__container for inner content */
    }
}

/* Ensure minimum image size for all images in content areas */
.page-promotions img {
    min-width: 200px;
    min-height: 200px;
}