/* style/promotions.css */

/* Root variables for colors */
:root {
    --promotions-primary-color: #11A84E;
    --promotions-secondary-color: #22C768;
    --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-color: #2E7A4E;
    --promotions-glow-color: #57E38D;
    --promotions-gold-color: #F2C14E;
    --promotions-divider-color: #1E3A2A;
    --promotions-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-promotions {
    background-color: var(--promotions-background);
    color: var(--promotions-text-main);
    font-family: 'Arial', sans-serif;
    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;
    overflow: hidden;
}

.page-promotions__dark-bg {
    background-color: var(--promotions-background);
}

.page-promotions__section-title {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--promotions-glow-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-promotions__sub-title {
    font-size: clamp(22px, 3vw, 32px);
    color: var(--promotions-text-main);
    margin-bottom: 20px;
    font-weight: 600;
}

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

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

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

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

/* Hero Section */
.page-promotions__hero-section {
    padding: 10px 0 60px 0; /* body handles top padding, this is for visual spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

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

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

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: clamp(32px, 5vw, 60px);
    color: var(--promotions-gold-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.page-promotions__subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--promotions-text-main);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* CTA Button Styles */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background: var(--promotions-button-gradient);
    color: var(--promotions-text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 255, 100, 0.3);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 100, 0.4);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--promotions-glow-color);
    color: var(--promotions-background);
}

/* Promotion Types Section */
.page-promotions__promotion-types {
    background-color: var(--promotions-card-bg);
    padding-bottom: 80px;
}

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

.page-promotions__card {
    background-color: var(--promotions-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--promotions-border-color);
    display: flex;
    flex-direction: column;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
}

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__card-title {
    font-size: 24px;
    color: var(--promotions-text-main);
    margin-bottom: 15px;
    font-weight: 700;
}

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

.page-promotions__note {
    text-align: center;
    font-size: 14px;
    color: var(--promotions-text-secondary);
    margin-top: 40px;
}

/* Guide Section */
.page-promotions__guide {
    background-color: var(--promotions-background);
}

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

.page-promotions__step-item {
    background-color: var(--promotions-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--promotions-border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

/* Tips Section */
.page-promotions__tips {
    background-color: var(--promotions-card-bg);
}

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

.page-promotions__tips-list .page-promotions__list-item {
    background-color: var(--promotions-background);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--promotions-divider-color);
    transition: all 0.3s ease;
}

.page-promotions__tips-list .page-promotions__list-item:hover {
    border-color: var(--promotions-glow-color);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.2);
}

.page-promotions__tips-list .page-promotions__list-item::before {
    content: '💡';
    color: var(--promotions-gold-color);
    font-size: 20px;
    top: 25px;
}

.page-promotions__tips-list .page-promotions__sub-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--promotions-gold-color);
}

.page-promotions__tips-list .page-promotions__text-block {
    margin-bottom: 0;
    font-size: 15px;
}

/* FAQ Section */
.page-promotions__faq {
    background-color: var(--promotions-background);
}

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

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

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

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

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

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: '−';
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--promotions-text-secondary);
}

.page-promotions__faq-answer p {
    margin-bottom: 0;
}

/* Ensure details summary marker is hidden */
.page-promotions__faq-item summary {
    list-style: none;
}

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

/* CTA Bottom Section */
.page-promotions__cta-bottom {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--promotions-card-bg);
}

.page-promotions__cta-content {
    max-width: 900px;
}

.page-promotions__cta-bottom .page-promotions__section-title {
    color: var(--promotions-gold-color);
}

.page-promotions__cta-bottom .page-promotions__text-block {
    margin-bottom: 40px;
    font-size: 17px;
}

.page-promotions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-promotions__card-image {
        height: 200px;
    }
}

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

    .page-promotions__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        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(28px, 8vw, 40px);
    }

    .page-promotions__subtitle {
        font-size: clamp(16px, 4vw, 20px);
    }

    .page-promotions__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 30px;
    }

    .page-promotions__sub-title {
        font-size: clamp(20px, 5vw, 28px);
    }

    .page-promotions__text-block,
    .page-promotions__list-item,
    .page-promotions__card-description,
    .page-promotions__step-description,
    .page-promotions__faq-answer p {
        font-size: 15px;
    }

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

    .page-promotions__hero-image-wrapper,
    .page-promotions__card,
    .page-promotions__step-item,
    .page-promotions__faq-item,
    .page-promotions__cta-bottom,
    .page-promotions__promotion-types,
    .page-promotions__guide,
    .page-promotions__tips,
    .page-promotions__faq {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsive */
    .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;
        margin-left: 0 !important; /* Remove margin for single column */
        margin-top: 10px;
    }
    
    .page-promotions__button-group {
        flex-direction: column !important;
        gap: 10px !important;
    }

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

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

@media (max-width: 480px) {
    .page-promotions__card-grid,
    .page-promotions__step-by-step {
        grid-template-columns: 1fr;
    }
}

/* Color Contrast Fixes (if needed) */
/* No specific fixes needed as design uses clear dark/light contrast */