/* style/promotions.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --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;
    --color-light-bg: #f8f8f8; /* Defined for light background sections */
}

/* Base Styles for .page-promotions */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Overall page background */
}

/* Section Common Styles */
.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
}

.page-promotions__section-title {
    font-size: clamp(2.2em, 4vw, 2.8em); /* Using clamp for H2 */
    margin-bottom: 20px;
    color: var(--color-text-main);
    font-weight: bold;
}

.page-promotions__section-text {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

/* Colors for specific sections based on background */
.page-promotions__dark-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-promotions__light-bg {
    background-color: var(--color-light-bg); /* A very light grey to contrast with dark background, while still being "light" */
    color: #333333; /* Dark text for light background */
}

.page-promotions__light-bg .page-promotions__section-title {
    color: #333333;
}

.page-promotions__light-bg .page-promotions__section-text {
    color: #555555;
}

.page-promotions__text-main {
    color: var(--color-text-main);
}

.page-promotions__text-secondary {
    color: var(--color-text-secondary);
}

.page-promotions__text-link {
    color: var(--color-gold); /* Using gold for links */
    text-decoration: underline;
}
.page-promotions__text-link:hover {
    color: var(--color-glow);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    min-height: 600px;
    padding-top: 10px; /* Small top padding for visual separation */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    height: auto;
    max-height: 70vh;
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Visually pull content up, not over image */
    position: relative;
    z-index: 1;
    background-color: rgba(17, 40, 27, 0.9); /* Card BG with slight transparency */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(-50px); /* Lift content slightly */
}

.page-promotions__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* H1 using clamp */
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* CTA Button Styles */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
    box-sizing: border-box;
}

.page-promotions__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--color-glow);
}

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

.page-promotions__btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-background);
    box-shadow: 0 0 15px var(--color-gold);
}

/* Promotion Categories Section */
.page-promotions__promo-categories {
    background-color: var(--color-background);
}

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

.page-promotions__promo-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px; /* Ensure space for button */
}

.page-promotions__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3), 0 0 15px var(--color-glow);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin: 20px 20px 10px;
    line-height: 1.3;
}

.page-promotions__card-link {
    color: inherit;
    text-decoration: none;
}

.page-promotions__card-link:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

.page-promotions__card-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    margin: 0 20px 20px;
    min-height: 70px; /* Ensure consistent card height */
}

.page-promotions__card-button {
    margin: 0 20px;
    width: calc(100% - 40px); /* Adjust width for padding */
}

/* How to Claim Section */
.page-promotions__claim-guide {
    background-color: var(--color-light-bg);
}

.page-promotions__claim-steps {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-promotions__step-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left;
}

.page-promotions__step-title {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__step-description {
    font-size: 1em;
    color: #555555;
}

/* Why Choose Section */
.page-promotions__why-choose {
    background-color: var(--color-deep-green);
}

.page-promotions__why-choose .page-promotions__section-title {
    color: var(--color-text-main);
}

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

.page-promotions__feature-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-promotions__feature-title {
    font-size: 1.4em;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__feature-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

/* Terms and Conditions CTA Section */
.page-promotions__terms-cta {
    background-color: var(--color-light-bg);
}

.page-promotions__terms-content {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.page-promotions__terms-content .page-promotions__section-title {
    color: #333333;
}
.page-promotions__terms-content .page-promotions__section-text {
    color: #555555;
}

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

.page-promotions__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: left;
    color: var(--color-text-secondary);
}

.page-promotions__faq-item summary {
    list-style: none; /* Remove default marker */
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* For Chrome/Safari */
}

.page-promotions__faq-item summary:hover {
    color: var(--color-gold);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: "−"; /* Change to minus when open */
}

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

/* Final Call to Action Section */
.page-promotions__final-cta {
    background-color: var(--color-light-bg);
}

.page-promotions__cta-content {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.page-promotions__cta-content .page-promotions__section-title {
    color: #333333;
}
.page-promotions__cta-content .page-promotions__section-text {
    color: #555555;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        transform: translateY(-30px);
        margin-top: -80px;
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 15px;
    }

    .page-promotions__hero-section {
        min-height: 450px;
    }

    .page-promotions__hero-content {
        padding: 30px 15px;
        margin-top: -60px;
        transform: translateY(-20px);
    }

    .page-promotions__main-title {
        font-size: 2em;
    }

    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__card-image {
        height: 180px;
    }

    .page-promotions__card-button {
        width: calc(100% - 40px) !important;
    }

    .page-promotions__claim-steps,
    .page-promotions__feature-grid {
        gap: 20px;
    }

    .page-promotions__step-item,
    .page-promotions__feature-item {
        padding: 20px;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .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-section,
    .page-promotions__hero-image-wrapper,
    .page-promotions__hero-content,
    .page-promotions__promo-card,
    .page-promotions__claim-steps,
    .page-promotions__step-item,
    .page-promotions__why-choose,
    .page-promotions__feature-grid,
    .page-promotions__feature-item,
    .page-promotions__terms-cta,
    .page-promotions__terms-content,
    .page-promotions__faq-section,
    .page-promotions__faq-list,
    .page-promotions__faq-item,
    .page-promotions__final-cta,
    .page-promotions__cta-content {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    /* Override padding for elements that should stretch full width with internal padding */
    .page-promotions__hero-section,
    .page-promotions__promo-categories,
    .page-promotions__why-choose,
    .page-promotions__faq-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Re-apply padding for inner containers */
    .page-promotions__hero-content,
    .page-promotions__promo-grid,
    .page-promotions__claim-steps,
    .page-promotions__feature-grid,
    .page-promotions__faq-list,
    .page-promotions__cta-content,
    .page-promotions__terms-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-promotions__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Ensure content images are at least 200x200px */
.page-promotions img:not(.page-promotions__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filters for images */
.page-promotions img {
    filter: none;
}