/* style/promotions.css */
/* Custom color variables based on the provided scheme */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg: #111111;
    --background: #0A0A0A;
    --text-main: #FFF6D6;
    --border: #3A2A12;
    --glow: #FFD36B;
}

/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color from custom scheme */
    background-color: var(--background); /* Default background color from custom scheme */
}

/* Sections */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px 20px; /* 10px top padding for header offset, then 60px bottom */
    background-color: var(--background);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image container */
    margin-bottom: 30px; /* Space between image and text */
    overflow: hidden;
}

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

.page-promotions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above image if any overlap */
}

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

.page-promotions__tagline {
    font-size: 1.2em;
    color: rgba(255, 246, 214, 0.8);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
    min-width: 180px;
}

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

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #000000; /* Black text for golden button for contrast */
    transform: translateY(-3px);
}

.page-promotions__overview-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__why-choose-section,
.page-promotions__faq-section,
.page-promotions__cta-bottom-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-promotions__dark-section {
    background-color: var(--background); /* Ensure dark background for these sections */
    color: var(--text-main);
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: rgba(255, 246, 214, 0.7);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-promotions__promo-card {
    background-color: var(--card-bg); /* Card background from custom scheme */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 25px;
    border: 1px solid var(--border); /* Border from custom scheme */
}

/* For light background cards to ensure contrast */
.page-promotions__promo-card.page-promotions__light-bg {
    background-color: #ffffff; /* White background for contrast */
    color: #333333; /* Dark text for light background */
}
.page-promotions__promo-card.page-promotions__light-bg .page-promotions__card-title {
    color: var(--primary-color); /* Golden title for light card */
}
.page-promotions__promo-card.page-promotions__light-bg .page-promotions__card-text {
    color: #555555; /* Darker text for light card */
}

.page-promotions__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 0 20px 15px 20px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 1em;
    color: rgba(255, 246, 214, 0.7);
    margin: 0 20px 25px 20px;
    flex-grow: 1; /* Ensures text block takes available space */
}

.page-promotions__promo-card .page-promotions__btn-primary {
    margin: 0 20px;
    width: calc(100% - 40px);
}

/* How to Claim Section */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__step-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.page-promotions__step-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    background-color: rgba(242, 193, 78, 0.1);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-weight: bold;
}

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

.page-promotions__step-text {
    font-size: 1em;
    color: rgba(255, 246, 214, 0.7);
    margin-bottom: 25px;
}

/* Terms Section */
.page-promotions__terms-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.page-promotions__terms-content p {
    margin-bottom: 15px;
    color: rgba(255, 246, 214, 0.8);
    font-size: 1em;
}

.page-promotions__terms-section .page-promotions__btn-primary {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__feature-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

/* For light background feature cards to ensure contrast */
.page-promotions__feature-card.page-promotions__light-bg {
    background-color: #ffffff; /* White background for contrast */
    color: #333333; /* Dark text for light background */
}
.page-promotions__feature-card.page-promotions__light-bg .page-promotions__feature-title {
    color: var(--primary-color); /* Golden title for light card */
}
.page-promotions__feature-card.page-promotions__light-bg .page-promotions__feature-text {
    color: #555555; /* Darker text for light card */
}

.page-promotions__feature-icon {
    width: 200px; /* Min size 200x200 as per requirements */
    height: 200px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
}

.page-promotions__feature-title {
    font-size: 1.3em;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__feature-text {
    font-size: 1em;
    color: rgba(255, 246, 214, 0.7);
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--card-bg);
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #1a1a1a;
}

.page-promotions__faq-title {
    margin: 0;
    font-size: 1.1em; /* Adjusted for H3 within FAQ item */
    color: var(--text-main);
}

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(0deg); /* Stays as '-' */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: rgba(255, 246, 214, 0.7);
    background-color: #1a1a1a; /* Slightly lighter dark background for answer */
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

.page-promotions__faq-answer p {
    margin: 0;
    color: inherit; /* Inherit color from parent for consistency */
}

/* Bottom CTA Section */
.page-promotions__cta-bottom-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

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

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

    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-promotions__tagline {
        font-size: 1em;
    }

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
    }

    .page-promotions__overview-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__why-choose-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-promotions__promotions-grid,
    .page-promotions__steps-grid,
    .page-promotions__features-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 25px;
    }

    .page-promotions__promo-image {
        height: 180px; /* Slightly smaller height for mobile cards */
    }

    .page-promotions__card-title,
    .page-promotions__step-title,
    .page-promotions__feature-title {
        font-size: 1.2em;
    }

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

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

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

    /* Ensure containers with images/buttons are also responsive */
    .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;
    }
}