/* style/promotions.css */

/* Variables for colors */
:root {
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */
    --color-card-bg: #11271B; /* Card Background */
    --color-background: #08160F; /* Section Background */
    --color-text-main: #F2FFF6; /* Main Text Color */
    --color-text-secondary: #A7D9B8; /* Secondary Text Color */
    --color-border: #2E7A4E; /* Border Color */
    --color-glow: #57E38D; /* Glow Effect */
    --color-gold: #F2C14E; /* Gold Color */
    --color-divider: #1E3A2A; /* Divider Color */
    --color-deep-green: #0A4B2C; /* Deep Green */

    /* Button gradient */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f4f7f6; /* Matching body background from shared.css */
}

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

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Image behind content */
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
    display: block;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-text-main); /* Light text for dark background */
}

.page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--color-text-main);
    letter-spacing: 0.05em;
}

.page-promotions__intro-text {
    font-size: clamp(1em, 2vw, 1.2em);
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

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

.page-promotions__overview {
    background-color: #f4f7f6; /* Light background */
    color: #333333; /* Dark text */
}

.page-promotions__promotion-types,
.page-promotions__terms-conditions,
.page-promotions__cta-bottom {
    background-color: var(--color-background); /* Dark background */
    color: var(--color-text-main); /* Light text */
}

.page-promotions__how-to-claim {
    background-color: #f4f7f6; /* Light background */
    color: #333333; /* Dark text */
}


.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-promotions__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-primary); /* Use primary color for titles */
}

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

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

.page-promotions__section-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit from section, then adjust for specific sections */
}

/* Grid for promotion types */
.page-promotions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background-color: var(--color-card-bg); /* Dark card background */
    border-radius: 15px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    color: var(--color-text-secondary); /* Secondary text for general card text */
}

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

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

.page-promotions__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin: 20px 20px 10px 20px;
    color: var(--color-text-main); /* Main text color for card titles */
}

.page-promotions__card-text {
    font-size: 0.95em;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow and push button to bottom */
}

/* CTA Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background: var(--btn-gradient); /* Use custom button gradient */
    color: var(--color-text-main); /* Light text on dark button */
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-promotions__cta-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-small {
    font-size: 0.9em;
    padding: 10px 20px;
    margin: 0 20px 20px 20px; /* Margin for card buttons */
}

.page-promotions__btn-large {
    font-size: 1.2em;
    padding: 15px 30px;
    margin-top: 30px;
}

.page-promotions__contact-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    background-color: transparent;
    border: 2px solid var(--color-gold); /* Gold border */
    color: var(--color-gold); /* Gold text */
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    margin-left: 20px;
}

.page-promotions__contact-button:hover {
    background-color: var(--color-gold);
    color: var(--color-background); /* Dark text on gold hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* How to Claim Section */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
    text-align: left;
}

.page-promotions__step-item {
    background-color: #ffffff; /* White background for steps */
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333; /* Dark text */
}

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

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

.page-promotions__link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.page-promotions__link:hover {
    text-decoration: underline;
}

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

/* Terms and Conditions Section */
.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin: 40px auto 0 auto;
    max-width: 800px;
    text-align: left;
    color: var(--color-text-secondary); /* Secondary text for terms */
}

.page-promotions__terms-item {
    margin-bottom: 15px;
    font-size: 1em;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin: 40px auto 0 auto;
    max-width: 800px;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: #ffffff; /* White background for FAQ item */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    color: #333333; /* Dark text */
}

.page-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--color-primary); /* Primary color for question */
    list-style: none; /* Hide default marker */
}

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

.page-promotions__faq-question:hover {
    background-color: #f0f0f0; /* Light hover effect */
}

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

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for hero on mobile */
    }

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

    .page-promotions__intro-text {
        font-size: 1em;
    }

    .page-promotions__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0;
        padding: 15px 20px;
    }

    .page-promotions__contact-button {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 0 0;
        padding: 15px 20px;
    }

    .page-promotions__section {
        padding: 40px 15px;
    }

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

    .page-promotions__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__card {
        margin: 0;
    }

    .page-promotions__card-title {
        font-size: 1.3em;
        margin: 15px 15px 8px 15px;
    }

    .page-promotions__card-text {
        padding: 0 15px;
        margin-bottom: 15px;
    }

    .page-promotions__btn-small {
        margin: 0 15px 15px 15px;
        width: calc(100% - 30px); /* Full width minus padding */
    }

    .page-promotions__steps-list,
    .page-promotions__terms-list,
    .page-promotions__faq-list {
        margin: 30px auto 0 auto;
        padding: 0 10px;
    }

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

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

    /* Image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Container responsiveness for images/videos */
    .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; /* Prevent overflow for all content containers */
    }

    /* Specific adjustment for hero image wrapper padding, if it causes issues */
    .page-promotions__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Video responsiveness (if any, though none currently in HTML) */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__video-section {
        padding-top: 10px !important;
    }
}

/* Contrast fix if needed, though default colors are set for good contrast */
.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;
}