/* style/promotions.css */

/* Base Styles for .page-promotions */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Header offset for main content */
.page-promotions__hero-section {
    padding-top: var(--header-offset, 120px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    color: #ffffff;
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__hero-cta-buttons,
.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Section general styles */
.page-promotions__promo-categories,
.page-promotions__product-promos,
.page-promotions__vip-program,
.page-promotions__guide-section,
.page-promotions__faq-section,
.page-promotions__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-promotions__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-promotions__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__category-card,
.page-promotions__product-card,
.page-promotions__guide-card {
    background-color: #ffffff;
    color: #333333; /* Dark text on light card background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.page-promotions__category-image,
.page-promotions__product-image,
.page-promotions__vip-image,
.page-promotions__cta-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-promotions__card-title,
.page-promotions__sub-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #017439;
}

.page-promotions__card-text {
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #017439;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-promotions__card-link:hover {
    color: #005a2b;
    border-color: #005a2b;
}

/* VIP Program Section */
.page-promotions__vip-program .page-promotions__section-title,
.page-promotions__vip-program .page-promotions__section-description {
    color: #ffffff;
}

.page-promotions__vip-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__vip-benefits,
.page-promotions__vip-level-up {
    flex: 1;
    min-width: 300px;
}

.page-promotions__vip-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin: 40px auto 0;
    display: block;
}

.page-promotions__benefit-list,
.page-promotions__unordered-list,
.page-promotions__ordered-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-promotions__benefit-list li,
.page-promotions__unordered-list li,
.page-promotions__ordered-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.page-promotions__benefit-list li:last-child,
.page-promotions__unordered-list li:last-child,
.page-promotions__ordered-list li:last-child {
    border-bottom: none;
}

.page-promotions__benefit-list li::before {
    content: "✓";
    color: #FFFF00;
    font-weight: bold;
    margin-right: 10px;
}

.page-promotions__ordered-list li {
    counter-increment: list-item;
}

.page-promotions__ordered-list li::before {
    content: counter(list-item) ".";
    color: #FFFF00;
    font-weight: bold;
    margin-right: 10px;
}

.page-promotions__text-block {
    margin-bottom: 20px;
}

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

/* FAQ Section */
.page-promotions__faq-section .page-promotions__section-title {
    color: #ffffff;
}

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

.page-promotions__faq-item {
    background-color: #ffffff;
    color: #333333;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    color: #017439;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide default details marker */
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-promotions__faq-item summary {
    list-style: none;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    margin-left: 15px;
    width: 25px;
    text-align: center;
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.8;
}

/* Call to Action Section */
.page-promotions__cta-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-color: #017439;
    padding: 100px 0;
}

.page-promotions__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.page-promotions__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-promotions__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap;
    word-wrap: normal;
}

.page-promotions__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-promotions__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    border-color: #ffffff;
}

/* General image styling for content area to ensure minimum size */
.page-promotions img:not(.page-promotions__hero-image):not(.page-promotions__cta-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }

    .page-promotions__section-title {
        font-size: 2em;
    }

    .page-promotions__cta-title {
        font-size: 2.5em;
    }

    .page-promotions__hero-section {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 400px;
    }

    .page-promotions__container {
        padding: 0 15px;
    }

    .page-promotions__hero-title {
        font-size: 2.2em;
    }

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

    .page-promotions__hero-cta-buttons,
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-promotions__section-description {
        font-size: 0.95em;
    }

    .page-promotions__promo-categories,
    .page-promotions__product-promos,
    .page-promotions__vip-program,
    .page-promotions__guide-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 60px 0;
    }

    .page-promotions__category-grid,
    .page-promotions__product-grid,
    .page-promotions__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__vip-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-promotions__vip-image {
        margin-top: 20px;
    }

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

    .page-promotions__faq-answer {
        padding: 15px 20px;
        font-size: 0.9em;
    }

    .page-promotions__cta-title {
        font-size: 2em;
    }

    .page-promotions__cta-description {
        font-size: 1em;
    }

    /* Mobile image responsive adaptation */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__category-card,
    .page-promotions__product-card,
    .page-promotions__guide-card,
    .page-promotions__vip-content,
    .page-promotions__faq-list,
    .page-promotions__hero-content,
    .page-promotions__cta-section .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* For containers that directly hold buttons/images/videos */
    .page-promotions__hero-cta-buttons,
    .page-promotions__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0 15px;
    }
    .page-promotions__category-image,
    .page-promotions__product-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__cta-title {
        font-size: 1.6em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 10px 15px;
        font-size: 0.95em;
    }
}