/* style/promotions.css */

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

/* Base styles for the page-promotions scope */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--gg88-text-main); /* Default text color for dark background */
    background-color: var(--gg88-background);
}

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

/* Sections */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding as per rules */
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--gg88-background);
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gg88-text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-promotions__hero-description {
    font-size: 1.25rem;
    color: var(--gg88-text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-promotions__introduction-section,
.page-promotions__how-to-claim-section,
.page-promotions__why-choose-section,
.page-promotions__cta-section {
    padding: 80px 0;
    background-color: var(--gg88-background);
}

.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--gg88-card-bg);
}

.page-promotions__section-title {
    font-size: 2.5rem;
    color: var(--gg88-gold);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

.page-promotions__text-block {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gg88-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__text-secondary {
    color: var(--gg88-text-secondary);
}

.page-promotions__highlight {
    color: var(--gg88-gold);
    font-weight: bold;
}

/* Buttons */
.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background: var(--gg88-button-gradient);
    color: var(--gg88-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--gg88-gold);
    border: 2px solid var(--gg88-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
    min-width: 150px;
}

/* Links */
.page-promotions__link {
    color: var(--gg88-gold);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-promotions__link:hover {
    color: var(--gg88-secondary);
    text-decoration: underline;
}

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

.page-promotions__card {
    background-color: var(--gg88-card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--gg88-divider);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--gg88-text-main);
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-promotions__card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gg88-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.page-promotions__step-item {
    background-color: var(--gg88-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--gg88-divider);
}

.page-promotions__step-title {
    font-size: 1.35rem;
    color: var(--gg88-gold);
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
}

.page-promotions__step-title::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--gg88-primary);
    color: var(--gg88-text-main);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

.page-promotions__step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gg88-text-secondary);
}

/* Terms and Conditions */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-promotions__terms-item {
    background-color: var(--gg88-background);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gg88-text-main);
    border-left: 5px solid var(--gg88-primary);
}

.page-promotions__terms-item strong {
    color: var(--gg88-gold);
}

/* Why Choose Section */
.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__benefits-item {
    background-color: var(--gg88-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--gg88-divider);
    text-align: center;
}

.page-promotions__benefits-title {
    font-size: 1.4rem;
    color: var(--gg88-gold);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-promotions__benefits-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gg88-text-secondary);
}

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

.page-promotions__faq-item {
    background-color: var(--gg88-background);
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--gg88-divider);
    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(--gg88-text-main);
    cursor: pointer;
    background-color: var(--gg88-deep-green);
    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(--gg88-primary);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--gg88-gold);
}

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

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

/* CTA Section */
.page-promotions__cta-section {
    text-align: center;
}

.page-promotions__cta-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 40px auto 30px auto;
    max-width: 1000px; /* Adjust max-width as needed */
}

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

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

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

    .page-promotions__hero-description {
        font-size: 1rem;
    }

    .page-promotions__introduction-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__why-choose-section,
    .page-promotions__cta-section,
    .page-promotions__types-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section {
        padding: 50px 0;
    }

    .page-promotions__section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .page-promotions__text-block,
    .page-promotions__card-description,
    .page-promotions__step-description,
    .page-promotions__terms-item,
    .page-promotions__benefits-description,
    .page-promotions__faq-answer p {
        font-size: 0.95rem;
    }

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

    /* Ensure all image containers are responsive */
    .page-promotions__hero-image-wrapper,
    .page-promotions__card,
    .page-promotions__cta-section,
    .page-promotions__promotions-grid,
    .page-promotions__steps-list,
    .page-promotions__benefits-list,
    .page-promotions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile button responsiveness */
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .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__faq-question {
        padding: 15px 20px;
        font-size: 1.05rem;
    }

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

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
    }
    .page-promotions__hero-description {
        font-size: 0.9rem;
    }
    .page-promotions__section-title {
        font-size: 1.6rem;
    }
    .page-promotions__card-title {
        font-size: 1.3rem;
    }
    .page-promotions__step-title {
        font-size: 1.2rem;
    }
    .page-promotions__benefits-title {
        font-size: 1.25rem;
    }
}