/* style/promotions.css */

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

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

.page-promotions a {
    color: var(--color-secondary);
    text-decoration: none;
}

.page-promotions a:hover {
    text-decoration: underline;
    color: var(--color-glow);
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    background-color: var(--color-deep-green);
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-promotions__hero-content {
    max-width: 900px;
    z-index: 1;
    padding: 20px;
}

.page-promotions__hero-title {
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    /* Using clamp for responsive H1 font-size */
    font-size: clamp(2.2rem, 5vw, 3.5rem);
}

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

.page-promotions__cta-button {
    display: inline-block;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__cta-button--small {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.page-promotions__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Section Titles */
.page-promotions__section-title {
    color: var(--color-gold);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

/* Text Blocks */
.page-promotions__text-block {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: justify;
}

/* Intro Section */
.page-promotions__intro-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

/* Promotion Types Section */
.page-promotions__types-section {
    padding: 60px 0;
    background-color: var(--color-card-bg);
}

.page-promotions__promotion-card {
    background-color: var(--color-deep-green);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid var(--color-border);
}

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

.page-promotions__card-content {
    padding: 30px;
    width: 60%;
    box-sizing: border-box;
}

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

.page-promotions__card-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Guide Section */
.page-promotions__guide-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.page-promotions__guide-list li {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 70px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-promotions__guide-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-primary);
    color: var(--color-text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.page-promotions__guide-step-title {
    color: var(--color-text-main);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

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

/* VIP Section */
.page-promotions__vip-section {
    padding: 60px 0;
    background-color: var(--color-deep-green);
    text-align: center;
}

.page-promotions__vip-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Terms Section */
.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-promotions__text-link {
    color: var(--color-gold);
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.page-promotions__text-link:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--color-card-bg);
}

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

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

.page-promotions__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    background-color: var(--color-card-bg);
    border-bottom: 1px solid var(--color-divider);
}

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

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

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

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-left: 15px;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

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

/* Final CTA Section */
.page-promotions__cta-final {
    padding: 60px 0;
    text-align: center;
    background-color: var(--color-background);
}

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

    .page-promotions__promotion-card {
        flex-direction: column;
    }

    .page-promotions__card-image,
    .page-promotions__card-content {
        width: 100%;
    }

    .page-promotions__card-image {
        height: 250px; /* Adjust height for better mobile display */
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__types-section,
    .page-promotions__guide-section,
    .page-promotions__vip-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final {
        padding: 40px 0;
    }

    .page-promotions__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-promotions__container,
    .page-promotions__hero-image-wrapper,
    .page-promotions__hero-content,
    .page-promotions__promotion-card,
    .page-promotions__card-content,
    .page-promotions__guide-list li,
    .page-promotions__vip-image,
    .page-promotions__faq-list,
    .page-promotions__faq-item,
    .page-promotions__faq-item summary,
    .page-promotions__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

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

    /* Buttons responsive */
    .page-promotions__cta-button,
    .page-promotions__cta-button--small,
    .page-promotions__cta-button--large,
    .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 !important;
        padding-right: 15px !important;
        margin-top: 10px;
        margin-bottom: 10px;
    }

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

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

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .page-promotions__card-title {
        font-size: 1.5rem;
    }

    .page-promotions__guide-list li {
        padding-left: 60px;
    }

    .page-promotions__guide-list li::before {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        left: 15px;
    }

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

    .page-promotions__faq-toggle {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-section {
        padding: 30px 0;
        padding-top: 10px !important;
    }

    .page-promotions__hero-content {
        padding: 15px;
    }

    .page-promotions__cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }

    .page-promotions__card-content {
        padding: 20px;
    }

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