/* style/promotions.css */

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

.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-promotions-text-main); /* Default text color for the page */
    background-color: var(--page-promotions-bg); /* Body background from shared.css is var(--background), assuming it's dark like this */
}

/* Base section styling */
.page-promotions__hero-section,
.page-promotions__offers-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section,
.page-promotions__cta-section,
.page-promotions__video-section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure content does not overflow */
}

/* Dark Background Sections - for sections with --page-promotions-bg or --page-promotions-card-bg */
.page-promotions__dark-bg {
    background-color: var(--page-promotions-bg);
    color: var(--page-promotions-text-main);
}

/* Light Background Sections - for sections that need contrast with dark bg */
.page-promotions__light-bg {
    background-color: #f8f9fa; /* Using a light color for contrast */
    color: #333333; /* Dark text for light background */
}

/* Section Titles and Descriptions */
.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Use clamp for H2 */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-promotions-text-main); /* Default for dark sections */
}

.page-promotions__light-bg .page-promotions__section-title {
    color: #333333; /* Dark text for light background sections */
}

.page-promotions__section-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-promotions-text-secondary); /* Default for dark sections */
}

.page-promotions__light-bg .page-promotions__section-description {
    color: #555555; /* Slightly darker secondary text for light background */
}

/* Container for content width */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
    border-radius: 8px;
}

.page-promotions__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-promotions-text-main);
}

.page-promotions__intro-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--page-promotions-text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--page-promotions-btn-gradient-start) 0%, var(--page-promotions-btn-gradient-end) 100%);
    color: #ffffff;
    border: none;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(0, 255, 100, 0.3);
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--page-promotions-btn-gradient-start);
    border: 2px solid var(--page-promotions-btn-gradient-start);
    margin: 10px;
}

.page-promotions__btn-secondary:hover {
    background-color: var(--page-promotions-btn-gradient-start);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    gap: 20px; /* Space between buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Video Section */
.page-promotions__video-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 80px;
}

.page-promotions__video-container {
    width: 100%;
    max-width: 1000px; /* Max width for video container */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    padding-left: 15px;
    padding-right: 15px;
}

.page-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (height / width * 100) */
    height: 0;
    overflow: hidden;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    width: 100%; /* Ensure wrapper takes full width */
    max-width: 100%; /* Ensure wrapper takes full width */
    box-sizing: border-box;
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer;
}

.page-promotions__video-description {
    margin-top: 20px;
    font-size: 1.05rem;
    color: var(--page-promotions-text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Offers Grid */
.page-promotions__offers-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

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

.page-promotions__card-image {
    width: 100%;
    max-width: 400px; /* Max width for card images */
    height: auto;
    min-height: 200px; /* Min height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-promotions__card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__card-title a {
    color: var(--page-promotions-gold); /* Gold for titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
    color: var(--page-promotions-text-main);
}

.page-promotions__card-text {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--page-promotions-text-secondary);
    flex-grow: 1; /* Allow text to grow and push button down */
}

.page-promotions__card .page-promotions__btn-primary {
    margin: 0; /* Remove extra margin from card buttons */
    width: fit-content;
    padding: 12px 25px;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-promotions__step-item {
    background-color: var(--page-promotions-deep-green);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--page-promotions-border);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--page-promotions-btn-gradient-start);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 2px 10px rgba(0, 255, 100, 0.4);
}

.page-promotions__step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--page-promotions-text-main);
}

.page-promotions__step-text {
    font-size: 1rem;
    color: var(--page-promotions-text-secondary);
}

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

.page-promotions__step-text a:hover {
    color: var(--page-promotions-text-main);
}

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

/* FAQ Section */
.page-promotions__faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.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;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--page-promotions-text-main);
}

.page-promotions__faq-item summary {
    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 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--page-promotions-text-main);
    background-color: var(--page-promotions-deep-green);
    border-bottom: 1px solid var(--page-promotions-divider);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: var(--page-promotions-border);
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    width: 30px;
    text-align: center;
    color: var(--page-promotions-gold);
}

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

/* Final CTA Section */
.page-promotions__cta-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Text Colors for light background sections */
.page-promotions__light-bg .page-promotions__text-main {
    color: #333333;
}
.page-promotions__light-bg .page-promotions__text-secondary {
    color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section,
    .page-promotions__offers-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section,
    .page-promotions__video-section {
        padding: 40px 15px;
    }

    .page-promotions__section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-promotions__main-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .page-promotions__intro-text,
    .page-promotions__section-description,
    .page-promotions__video-description,
    .page-promotions__card-text,
    .page-promotions__step-text,
    .page-promotions__faq-answer p {
        font-size: 1rem;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 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;
        margin: 0; /* Remove horizontal margin for stacked buttons */
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__hero-image-wrapper,
    .page-promotions__container,
    .page-promotions__grid,
    .page-promotions__card,
    .page-promotions__steps-grid,
    .page-promotions__step-item,
    .page-promotions__faq-list,
    .page-promotions__faq-item,
    .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;
    }

    /* Video responsiveness */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
    }

    /* Fixed header spacing for mobile */
    .page-promotions__video-section,
    .page-promotions__hero-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__card-title {
        font-size: 1.2rem;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 15px 20px;
    }
}

/* Image CSS content area size limit (min 200px) - applies to all images within .page-promotions */
.page-promotions img {
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__card-image {
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__hero-image {
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__video {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure no filter on images */
.page-promotions img {
    filter: none !important;
}

/* Ensure text colors are set for contrast */
.page-promotions__hero-content,
.page-promotions__video-section .page-promotions__section-title,
.page-promotions__video-section .page-promotions__video-description,
.page-promotions__how-to-claim-section .page-promotions__section-title,
.page-promotions__how-to-claim-section .page-promotions__section-description,
.page-promotions__step-item .page-promotions__step-title,
.page-promotions__step-item .page-promotions__step-text,
.page-promotions__cta-section .page-promotions__section-title,
.page-promotions__cta-section .page-promotions__section-description {
    color: var(--page-promotions-text-main);
}

.page-promotions__offers-section .page-promotions__section-title,
.page-promotions__offers-section .page-promotions__section-description,
.page-promotions__faq-section .page-promotions__section-title {
    color: #333333; /* For light background sections */
}

/* Ensure card text is secondary color */
.page-promotions__card-text {
    color: var(--page-promotions-text-secondary);
}

/* Ensure step text is secondary color */
.page-promotions__step-text {
    color: var(--page-promotions-text-secondary);
}

/* Ensure FAQ answer text is secondary color */
.page-promotions__faq-answer p {
    color: var(--page-promotions-text-secondary);
}

/* Ensure FAQ question text is main color */
.page-promotions__faq-question {
    color: var(--page-promotions-text-main);
}