/* style/promotions.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F; /* Body background */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the promotions page */
.page-promotions {
    background-color: var(--background-color); /* Matches body background */
    color: var(--text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Space for footer */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure image wrapper itself doesn't overflow */
    margin-bottom: 30px; /* Space between image and content */
    box-sizing: border-box;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Not absolute, to maintain document flow */
    z-index: 2;
}

.page-promotions__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--gold-color);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    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 smaller screens */
}

.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.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent; /* Default for primary */
    white-space: nowrap; /* Prevent text wrapping by default on desktop */
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White text for gradient button */
}

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

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

.page-promotions__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__overview-section {
    background-color: var(--background-color);
}

.page-promotions__dark-section {
    background-color: var(--deep-green); /* Darker green background */
    color: var(--text-main); /* Ensure light text */
}

.page-promotions__light-bg { /* For FAQ section */
    background-color: var(--card-bg); /* Slightly lighter dark background for contrast */
    color: var(--text-main);
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-promotions__text-block {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__card-description {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

.page-promotions__card-link {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.page-promotions__card-link:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* VIP Section */
.page-promotions__vip-section {
    background-color: var(--deep-green);
}

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

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

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

.page-promotions__vip-item p {
    color: var(--text-secondary);
}

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

.page-promotions__steps-list li {
    background-color: var(--card-bg);
    border-left: 5px solid var(--primary-color);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

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

.page-promotions__steps-list p {
    color: var(--text-secondary);
}

.page-promotions__steps-list a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-promotions__steps-list a:hover {
    text-decoration: underline;
}

/* Terms and Conditions Section */
.page-promotions__terms-list {
    list-style: disc;
    text-align: left;
    max-width: 900px;
    margin: 40px auto 30px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
}

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

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

.page-promotions__faq-item {
    background-color: var(--background-color); /* Darker background for FAQ items */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* For details tag */
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

/* Rotate toggle for open state (for JS controlled div or for visual consistency with details) */
.page-promotions__faq-item[open] .page-promotions__faq-toggle,
.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* + to X */
}

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

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

.page-promotions__text-center {
    text-align: center;
}

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

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

    .page-promotions__main-title {
        font-size: clamp(1.8em, 6vw, 2.8em);
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    /* Mobile button adaptation */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-promotions__cta-buttons {
        display: flex;
        flex-direction: column; /* Ensure vertical stacking */
    }

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

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

    .page-promotions__text-block {
        font-size: 0.9em;
    }

    .page-promotions__grid-cards {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

    .page-promotions__card {
        padding: 20px;
    }

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

    .page-promotions__card-title {
        font-size: 1.3em;
    }

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

    .page-promotions__steps-list li {
        padding: 20px 25px;
    }

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

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

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

    /* Mobile image adaptation */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__hero-image-wrapper,
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__vip-item,
    .page-promotions__steps-list li,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to container elements */
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}