/* style/promotions.css */

/* Custom properties for colors */
:root {
    --page-promotions-bg: #08160F; /* Background */
    --page-promotions-card-bg: #11271B; /* Card BG */
    --page-promotions-text-main: #F2FFF6; /* Text Main */
    --page-promotions-text-secondary: #A7D9B8; /* Text Secondary */
    --page-promotions-border: #2E7A4E; /* Border */
    --page-promotions-glow: #57E38D; /* Glow */
    --page-promotions-gold: #F2C14E; /* Gold */
    --page-promotions-divider: #1E3A2A; /* Divider */
    --page-promotions-deep-green: #0A4B2C; /* Deep Green */
    --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
}

.page-promotions {
    background-color: var(--page-promotions-bg); /* Dark background */
    color: var(--page-promotions-text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Fixed header spacing - body padding-top is handled by shared.css */
/* Page sections should only have a small top padding, not var(--header-offset) */
.page-promotions__hero-section,
.page-promotions__why-choose-section,
.page-promotions__promotion-types-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__cta-final-section {
    padding-top: 60px; /* Consistent spacing for sections */
    padding-bottom: 60px;
    position: relative;
    overflow: hidden; /* Ensure no overflow issues */
}

.page-promotions__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding for hero, body handles global offset */
    padding-bottom: 40px;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width */
    overflow: hidden;
    margin-bottom: 20px;
    order: 1; /* Image above text */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 250px; /* Minimum height for visual impact */
    min-width: 200px; /* Enforce min image size */
}

.page-promotions__hero-content {
    order: 2; /* Text below image */
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--page-promotions-gold); /* Gold for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__description,
.page-promotions__section-intro {
    font-size: 1.1rem;
    color: var(--page-promotions-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 180px; /* Ensure buttons are not too small */
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Responsive button width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background: var(--page-promotions-btn-gradient);
    color: #ffffff; /* White text for contrast on gradient */
    border: 2px solid var(--page-promotions-glow);
    box-shadow: 0 0 15px var(--page-promotions-glow);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--page-promotions-glow), 0 0 30px var(--page-promotions-glow);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--page-promotions-gold); /* Gold text for secondary */
    border: 2px solid var(--page-promotions-gold);
}

.page-promotions__btn-secondary:hover {
    background: var(--page-promotions-gold);
    color: var(--page-promotions-bg); /* Dark text on hover */
    transform: translateY(-3px);
}

.page-promotions__dark-section {
    background-color: var(--page-promotions-deep-green); /* Use deep green for dark sections */
    color: var(--page-promotions-text-main);
}

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

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--page-promotions-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-promotions__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--page-promotions-gold);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-promotions__card {
    background-color: var(--page-promotions-card-bg); /* Dark card background */
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-promotions-text-main); /* Light text on dark card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__feature-icon,
.page-promotions__promo-image {
    width: 100%;
    height: auto;
    max-height: 250px; /* Limit image height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-promotions__feature-title,
.page-promotions__promo-title,
.page-promotions__step-title {
    font-size: 1.4rem;
    color: var(--page-promotions-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__feature-description,
.page-promotions__promo-description,
.page-promotions__step-description {
    font-size: 1rem;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Specific styles for promo cards */
.page-promotions__promo-card {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-content {
    padding: 10px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-content .page-promotions__btn-primary {
    margin-top: auto; /* Push button to the bottom */
    width: auto; /* Allow button to size naturally */
    align-self: flex-start; /* Align button to the left */
}

/* How to Claim Section */
.page-promotions__step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-promotions__step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--page-promotions-btn-gradient);
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 3px solid var(--page-promotions-glow);
    box-shadow: 0 0 10px var(--page-promotions-glow);
}

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

/* Terms and Conditions Section */
.page-promotions__terms-content p {
    margin-bottom: 15px;
    color: var(--page-promotions-text-secondary);
}

.page-promotions__terms-content a {
    color: var(--page-promotions-gold);
    text-decoration: underline;
}

.page-promotions__terms-content a:hover {
    color: var(--page-promotions-glow);
}


/* 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(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-promotions-text-main);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-promotions-gold);
    transition: background-color 0.3s ease;
    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-question:hover {
    background-color: var(--page-promotions-deep-green);
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--page-promotions-deep-green);
}


/* General image responsiveness for content area */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box; /* Crucial for preventing overflow */
    /* Min size requirement, but allow larger based on layout */
    min-width: 200px;
    min-height: 200px;
}

/* Ensure content containers are responsive */
.page-promotions__section,
.page-promotions__card,
.page-promotions__container,
.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__hero-section,
    .page-promotions__why-choose-section,
    .page-promotions__promotion-types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .page-promotions__hero-content {
        padding: 0 15px;
    }

    .page-promotions__main-title {
        font-size: 2.2rem !important; /* Adjust H1 for mobile */
    }

    .page-promotions__description,
    .page-promotions__section-intro {
        font-size: 1rem;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent buttons from touching edges */
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

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

    .page-promotions__sub-title {
        font-size: 1.2rem !important;
    }

    .page-promotions__features-grid,
    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        gap: 20px;
    }

    .page-promotions__card {
        padding: 20px;
    }

    .page-promotions__feature-icon,
    .page-promotions__promo-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }

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

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

    /* Mobile image responsiveness enforcement */
    .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,
    .page-promotions__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}