/* style/promotions.css */

/* Custom Colors */
:root {
    --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-promotions-card-bg: #11271B;
    --page-promotions-background: #08160F;
    --page-promotions-text-main: #F2FFF6;
    --page-promotions-text-secondary: #A7D9B8;
    --page-promotions-border: #2E7A4E;
    --page-promotions-glow: #57E38D;
    --page-promotions-gold: #F2C14E;
    --page-promotions-divider: #1E3A2A;
    --page-promotions-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
/* Body background color is var(--background-color) which is #08160F (dark) */
.page-promotions {
    color: var(--page-promotions-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--page-promotions-background); /* Explicit background for main content area */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    text-align: center;
    overflow: hidden;
    background-color: var(--page-promotions-deep-green); /* Fallback background for hero */
}

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

.page-promotions__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 2; /* Ensure content is above any potential background effects */
}

.page-promotions__main-title {
    color: var(--page-promotions-text-main); /* White text */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* No fixed font-size, rely on responsive behavior and font-weight */
}

.page-promotions__description {
    color: var(--page-promotions-text-secondary); /* Secondary light text */
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 600px;
    margin: 0 auto;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
}

.page-promotions__btn-primary {
    background: var(--page-promotions-btn-gradient);
    color: #ffffff;
    border: none;
}

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

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

.page-promotions__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__section-title {
    color: var(--page-promotions-gold); /* Gold title for contrast */
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    padding-top: 40px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

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

/* Introduction Section (Dark Background) */
.page-promotions__introduction-section {
    padding: 80px 0;
    background-color: var(--page-promotions-background);
}

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

.page-promotions__introduction-section .page-promotions__text-block {
    color: var(--page-promotions-text-secondary);
}

/* Featured Promotions Section (Darker Background for cards) */
.page-promotions__featured-promotions {
    padding: 80px 0;
    background-color: var(--page-promotions-deep-green); /* Darker background for section */
}

.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(--page-promotions-card-bg); /* Dark card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--page-promotions-text-main); /* Light text for card */
}

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

.page-promotions__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
}

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

.page-promotions__card-text {
    color: var(--page-promotions-text-secondary);
    font-size: 0.95em;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__promotion-card .page-promotions__btn-primary,
.page-promotions__promotion-card .page-promotions__btn-secondary {
    width: fit-content;
    margin: 0 auto;
    display: block; /* Center buttons */
    margin-top: 15px;
}

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

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    counter-reset: step-counter;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__step-item {
    background-color: var(--page-promotions-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--page-promotions-text-main);
    display: flex;
    flex-direction: column;
}

.page-promotions__step-title {
    color: var(--page-promotions-gold);
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}

.page-promotions__step-title::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--page-promotions-btn-gradient);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: 700;
}

.page-promotions__step-text {
    color: var(--page-promotions-text-secondary);
    font-size: 0.95em;
    flex-grow: 1;
}

.page-promotions__cta-buttons--center {
    margin-top: 50px;
    text-align: center;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    padding: 80px 0;
    background-color: var(--page-promotions-deep-green); /* Dark background for section */
}

.page-promotions__terms-conditions .page-promotions__text-block {
    color: var(--page-promotions-text-secondary);
}

.page-promotions__btn-secondary--center {
    margin: 30px auto 0;
    display: block;
    width: fit-content;
}

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

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

.page-promotions__faq-item {
    background-color: var(--page-promotions-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--page-promotions-text-main);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    color: var(--page-promotions-gold); /* Gold for questions */
    position: relative;
    user-select: none;
}

.page-promotions__faq-item details > summary {
    list-style: none; /* Remove default marker for details */
}

.page-promotions__faq-item details > summary::-webkit-details-marker {
    display: none; /* Hide Webkit default marker */
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate + to become X or - */
}

.page-promotions__faq-answer {
    padding: 0 30px 20px;
    font-size: 1em;
    color: var(--page-promotions-text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2.2em;
    }
    .page-promotions__card-title {
        font-size: 1.4em;
    }
}

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

    .page-promotions__hero-section {
        padding: 10px 15px 40px;
    }

    .page-promotions__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-promotions__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 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: 12px 20px;
        font-size: 1em;
    }

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

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

    .page-promotions__introduction-section,
    .page-promotions__featured-promotions,
    .page-promotions__how-to-claim,
    .page-promotions__terms-conditions,
    .page-promotions__faq-section {
        padding: 50px 0;
    }

    .page-promotions__promotions-grid,
    .page-promotions__steps-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-promotions__card-image {
        min-width: unset;
        min-height: unset;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All images must be responsive on mobile */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* If video section were present, ensure small top padding */
    .page-promotions__video-section {
        padding-top: 10px !important;
    }

    .page-promotions__card-title {
        font-size: 1.3em;
    }

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

    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }
}