/* style/promotions.css */

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

.page-promotions {
    background-color: var(--promotions-background);
    color: var(--promotions-text-main);
    font-family: Arial, sans-serif;
}

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image wrapper */
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--promotions-text-main);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow */
}

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

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    min-width: 180px;
    height: 50px;
}

.page-promotions__btn-primary {
    background: var(--promotions-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--promotions-glow);
    border: 2px solid var(--promotions-glow);
}

.page-promotions__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-promotions__section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--promotions-text-main);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-promotions__section-description {
    font-size: 1.1rem;
    color: var(--promotions-text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__card {
    background-color: var(--promotions-card-bg);
    border: 1px solid var(--promotions-border);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    color: var(--promotions-text-main);
    min-height: 500px;
}

.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-height: 200px;
}

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

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

.page-promotions__card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-promotions__card-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--promotions-text-secondary);
}

.page-promotions__card-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--promotions-glow);
}

.page-promotions__btn-small {
    background: var(--promotions-button-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
    align-self: flex-start;
    margin-top: auto; /* Push to bottom */
    min-width: 120px;
    height: 40px;
}

.page-promotions__btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-promotions__vip-program .page-promotions__section-description {
    margin-bottom: 60px;
}

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

.page-promotions__vip-card {
    background-color: var(--promotions-card-bg);
    border: 1px solid var(--promotions-border);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: var(--promotions-text-main);
    min-height: 380px;
}

.page-promotions__vip-level-title {
    font-size: 1.6rem;
    color: var(--promotions-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__vip-text {
    font-size: 1rem;
    color: var(--promotions-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__vip-benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-promotions__vip-benefits-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--promotions-text-secondary);
}

.page-promotions__vip-benefits-list li::before {
    content: '⭐';
    position: absolute;
    left: 0;
}

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

.page-promotions__step-card {
    background-color: var(--promotions-card-bg);
    border: 1px solid var(--promotions-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: var(--promotions-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.page-promotions__step-title {
    font-size: 1.4rem;
    color: var(--promotions-glow);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__step-text {
    font-size: 1rem;
    color: var(--promotions-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__faq {
    text-align: left;
}

.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: var(--promotions-card-bg);
    border: 1px solid var(--promotions-divider);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--promotions-text-main);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--promotions-text-main);
    cursor: pointer;
    background-color: var(--promotions-deep-green);
    border-bottom: 1px solid var(--promotions-divider);
}

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

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

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

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: 1px solid var(--promotions-border);
}

/* Ensure images are responsive and not smaller than 200px */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

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

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

    .page-promotions__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        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;
        min-width: unset;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__vip-card,
    .page-promotions__step-card,
    .page-promotions__faq-item,
    .page-promotions__guide-steps,
    .page-promotions__vip-grid,
    .page-promotions__cards-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-promotions__card-image {
        height: auto;
    }

    .page-promotions__section-title {
        font-size: 1.8rem;
    }

    .page-promotions__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-promotions__card {
        padding: 25px;
        min-height: unset;
    }

    .page-promotions__vip-card {
        min-height: unset;
    }

    .page-promotions__step-card {
        min-height: unset;
    }

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

    .page-promotions__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.6rem;
    }

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

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

    .page-promotions__hero-content {
        padding: 0 10px;
    }

    .page-promotions__cta-buttons {
        gap: 10px;
        padding: 0 10px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        height: 45px;
        padding: 10px 15px;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__vip-card,
    .page-promotions__step-card,
    .page-promotions__faq-item,
    .page-promotions__guide-steps,
    .page-promotions__vip-grid,
    .page-promotions__cards-grid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Ensure contrast for all text elements */
.page-promotions p, .page-promotions li, .page-promotions span {
    color: var(--promotions-text-secondary);
}

.page-promotions h1, .page-promotions h2, .page-promotions h3, .page-promotions h4, .page-promotions h5, .page-promotions h6 {
    color: var(--promotions-text-main);
}

.page-promotions__faq-question .page-promotions__faq-qtext {
    color: var(--promotions-text-main);
}

.page-promotions__card-title {
    color: var(--promotions-glow);
}

.page-promotions__vip-level-title {
    color: var(--promotions-gold);
}

.page-promotions__step-title {
    color: var(--promotions-glow);
}

/* Specific contrast fixes if needed, though general color scheme should handle it */
/* .page-promotions__contrast-fix { background: #ffffff !important; color: #333333 !important; border: 1px solid #e0e0e0 !important; } */
/* .page-promotions__text-contrast-fix { color: #333333 !important; text-shadow: none !important; } */