/* style/promotions.css */

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

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

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

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

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Ensure image doesn't exceed wrapper height */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content slightly over image for visual appeal, but not covering text */
    background-color: rgba(8, 22, 15, 0.7); /* Semi-transparent background for readability */
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    color: var(--page-promotions-gold-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

/* --- General Section Styling --- */
.page-promotions__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--page-promotions-gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.page-promotions__intro-section,
.page-promotions__vip-section,
.page-promotions__terms-section,
.page-promotions__cta-section {
    padding: 60px 0;
    background-color: var(--page-promotions-background); /* Default background */
    color: var(--page-promotions-text-main);
}

.page-promotions__dark-section {
    background-color: var(--page-promotions-card-bg); /* Darker background for contrast */
    color: var(--page-promotions-text-main);
    padding: 60px 0;
}

.page-promotions__text-block {
    font-size: 1em;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

/* --- Buttons --- */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background: var(--page-promotions-button-gradient);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--page-promotions-secondary-color);
    border: 2px solid var(--page-promotions-secondary-color);
    box-shadow: 0 2px 5px rgba(34, 199, 104, 0.2);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--page-promotions-secondary-color);
    color: var(--page-promotions-text-main);
    box-shadow: 0 4px 10px rgba(34, 199, 104, 0.4);
}

.page-promotions__cta-center {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 300px;
}

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

.page-promotions__card {
    background-color: var(--page-promotions-card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-promotions-border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-promotions__card-title {
    font-size: 1.4em;
    color: var(--page-promotions-gold-color);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

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

/* --- VIP Section --- */
.page-promotions__content-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions__content-flex > div {
    flex: 1;
    min-width: 300px; /* Ensure content blocks don't get too small */
}

.page-promotions__image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-promotions__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: block;
    margin: 0 auto;
}

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

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

.page-promotions__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--page-promotions-primary-color);
    color: #ffffff;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(17, 168, 78, 0.4);
}

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

.page-promotions__step-description {
    font-size: 0.9em;
    color: var(--page-promotions-text-secondary);
}

/* --- Terms & Conditions Section --- */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__terms-item {
    background-color: var(--page-promotions-card-bg); /* Use card background for list items */
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 5px solid var(--page-promotions-primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    color: var(--page-promotions-text-secondary);
}

.page-promotions__terms-item strong {
    color: var(--page-promotions-text-main);
    font-weight: 600;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--page-promotions-card-bg);
    color: var(--page-promotions-text-main);
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    color: var(--page-promotions-gold-color);
}

.page-promotions__faq-answer {
    padding: 15px 25px 20px;
    color: var(--page-promotions-text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    background-color: var(--page-promotions-deep-green);
    border-top: 1px solid var(--page-promotions-border-color);
}

/* --- CTA Box --- */
.page-promotions__cta-box {
    background-color: var(--page-promotions-card-bg);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    border: 1px solid var(--page-promotions-border-color);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-promotions__hero-content {
        margin-top: -50px;
        padding: 15px 25px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-promotions__section-title {
        font-size: clamp(1.6em, 4.5vw, 2.2em);
    }
    .page-promotions__content-flex {
        flex-direction: column;
    }
    .page-promotions__content-flex > div {
        min-width: unset;
        width: 100%;
    }
}

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

    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__highlight-section,
    .page-promotions__vip-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }
    
    /* Mobile responsive images */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__hero-image {
        max-height: 400px; /* Adjust hero image height for mobile */
    }

    /* Mobile responsive containers */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__highlight-section,
    .page-promotions__vip-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile responsive buttons */
    .page-promotions__cta-button,
    .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;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .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 {
        flex-direction: column;
    }

    .page-promotions__main-title {
        font-size: clamp(1.6em, 7vw, 2.5em);
    }
    .page-promotions__subtitle {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: clamp(1.4em, 6vw, 2em);
    }
    .page-promotions__card-title {
        font-size: 1.2em;
    }
    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px 15px;
    }
}