/* style/promotions.css */

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

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

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

.page-promotions__section {
    padding: 60px 0;
    position: relative;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure content doesn't overflow */
    box-sizing: border-box;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    min-height: 500px; /* Ensure hero image is large enough */
    max-height: 800px; /* Cap max height to prevent extreme stretching */
}

.page-promotions__hero-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    box-sizing: border-box;
}

.page-promotions__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 font size constraint */
    color: var(--neo88-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions__hero-description {
    font-size: 1.15rem;
    color: var(--neo88-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Headings */
.page-promotions__heading {
    font-size: 2.5rem;
    color: var(--neo88-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-promotions__paragraph {
    font-size: 1rem;
    color: var(--neo88-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__keyword {
    color: var(--neo88-secondary);
    font-weight: bold;
}

/* CTA Buttons */
.page-promotions__cta-button {
    display: inline-block;
    background: var(--neo88-btn-gradient);
    color: #ffffff; /* White text for button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-button--large {
    padding: 18px 40px;
    font-size: 1.25rem;
    margin-top: 30px;
}

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

.page-promotions__card {
    background-color: var(--neo88-card-bg);
    border: 1px solid var(--neo88-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have a minimum height */
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px 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;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
    display: block;
}

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

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

.page-promotions__card-text a {
    color: var(--neo88-secondary);
    text-decoration: underline;
}

.page-promotions__card-button {
    display: inline-block;
    background: var(--neo88-btn-gradient);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto; /* Push button to bottom */
}

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

/* Guide Section */
.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__guide-item {
    background-color: var(--neo88-card-bg);
    border: 1px solid var(--neo88-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__guide-step-title {
    font-size: 1.3rem;
    color: var(--neo88-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__guide-step-title a {
    color: var(--neo88-secondary);
    text-decoration: underline;
}

.page-promotions__guide-step-description {
    font-size: 0.95rem;
    color: var(--neo88-text-secondary);
}

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

.page-promotions__terms-item {
    background-color: var(--neo88-card-bg);
    border: 1px solid var(--neo88-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__terms-subtitle {
    font-size: 1.3rem;
    color: var(--neo88-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__terms-description {
    font-size: 0.95rem;
    color: var(--neo88-text-secondary);
}

.page-promotions__terms-description a {
    color: var(--neo88-secondary);
    text-decoration: underline;
}

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

.page-promotions__faq-item {
    background-color: var(--neo88-card-bg);
    border: 1px solid var(--neo88-border);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 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;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--neo88-gold);
    cursor: pointer;
    background-color: var(--neo88-deep-green);
    border-bottom: 1px solid var(--neo88-border);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-promotions__faq-item summary {
    list-style: none;
}
.page-promotions__faq-item summary::marker,
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}


.page-promotions__faq-question:hover {
    background-color: rgba(var(--neo88-deep-green), 0.8);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-qtext a {
    color: var(--neo88-secondary);
    text-decoration: underline;
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--neo88-gold);
}

.page-promotions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--neo88-text-secondary);
    background-color: var(--neo88-card-bg);
}

/* Conclusion Section */
.page-promotions__conclusion {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    .page-promotions__heading {
        font-size: 2.2rem;
    }
    .page-promotions__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__hero-content-wrapper {
        padding: 30px 15px;
    }
    .page-promotions__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-promotions__hero-description {
        font-size: 1rem;
    }
    .page-promotions__heading {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .page-promotions__card {
        min-height: auto; /* Allow height to adjust on mobile */
    }

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

    /* Mobile container responsiveness */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-content-wrapper,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }

    /* Mobile button responsiveness */
    .page-promotions__cta-button,
    .page-promotions__card-button,
    .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, /* If there were button groups */
    .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;
        display: flex; /* Ensure flex for wrapping */
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
    .page-promotions__hero-content-wrapper .page-promotions__cta-button {
        width: auto !important; /* Allow button to fit content, then max-width 100% applies */
        max-width: 80% !important; /* Adjust if needed for better look */
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-promotions__heading {
        font-size: 1.8rem;
    }
    .page-promotions__card-title {
        font-size: 1.3rem;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 10px 20px 15px;
    }
}