/* style/promotions.css */

/* Variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --bg-light: #FFFFFF;
    --bg-dark: #017439;
    --font-register-login: #FFFF00;
}

/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-light-bg);
    background-color: var(--bg-light);
}

/* Section styles */
.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
}

.page-promotions__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__text-block {
    max-width: 900px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-promotions__list {
    list-style: disc inside;
    max-width: 900px;
    margin: 20px auto;
    text-align: left;
    font-size: 1.1em;
    color: var(--text-color-light-bg);
}

.page-promotions__list li {
    margin-bottom: 10px;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 600px;
    overflow: hidden;
    color: var(--text-color-dark-bg);
    background: var(--primary-color);
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 10px;
}

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

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

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

.page-promotions__btn-primary {
    background-color: var(--register-color); /* Custom color for register/login */
    color: var(--font-register-login); /* Custom font color */
    border: 2px solid var(--register-color);
}

.page-promotions__btn-primary:hover {
    background-color: #A00707;
    transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.page-promotions__hero-cta {
    margin-top: 20px;
    font-size: 1.2em;
    padding: 18px 35px;
}

.page-promotions__cta-button {
    margin-top: 30px;
}

/* Card Grid */
.page-promotions__cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.page-promotions__card {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__card-text {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

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

.page-promotions__card-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-color-light-bg);
}

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

/* VIP Program Section */
.page-promotions__vip-program {
    text-align: center;
    background-color: var(--bg-light);
    color: var(--text-color-light-bg);
}

.page-promotions__vip-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 40px auto;
    gap: 40px;
}

.page-promotions__vip-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__vip-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
    background-color: var(--bg-dark);
    color: var(--text-color-dark-bg);
}

.page-promotions__terms-conditions .page-promotions__section-title,
.page-promotions__terms-conditions .page-promotions__text-block {
    color: var(--text-color-dark-bg);
}

.page-promotions__terms-list {
    list-style: decimal inside;
    color: var(--text-color-dark-bg);
}

.page-promotions__link {
    color: var(--font-register-login); /* Highlight links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-promotions__link:hover {
    color: #FFFF00;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--bg-light);
    color: var(--text-color-light-bg);
}

.page-promotions__faq-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    align-items: flex-start;
}

.page-promotions__faq-image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__faq-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-items-container {
    flex: 2;
    min-width: 300px;
    text-align: left;
}

.page-promotions__faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #f0f0f0;
}

.page-promotions__faq-question-text {
    margin: 0;
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

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

/* CTA Section */
.page-promotions__cta-section {
    background-color: var(--bg-dark);
    color: var(--text-color-dark-bg);
    padding: 80px 20px;
}

.page-promotions__cta-section .page-promotions__section-title,
.page-promotions__cta-section .page-promotions__text-block {
    color: var(--text-color-dark-bg);
}

/* Color Contrast Fixes (Intelligent application based on body background) */
.page-promotions__dark-bg .page-promotions__section-title,
.page-promotions__dark-bg .page-promotions__sub-title,
.page-promotions__dark-bg .page-promotions__text-block,
.page-promotions__dark-bg .page-promotions__list li,
.page-promotions__dark-bg .page-promotions__link {
    color: var(--text-color-dark-bg);
}

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__sub-title,
.page-promotions__light-bg .page-promotions__text-block,
.page-promotions__light-bg .page-promotions__list li,
.page-promotions__light-bg .page-promotions__link {
    color: var(--text-color-light-bg);
}

/* Ensure images are not filtered */
.page-promotions img {
    filter: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__sub-title {
        font-size: 1.5em;
    }
    .page-promotions__vip-content {
        flex-direction: column;
    }
    .page-promotions__vip-text {
        text-align: center;
    }
    .page-promotions__faq-grid {
        flex-direction: column;
    }
    .page-promotions__faq-image-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        padding: 40px 15px;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__sub-title {
        font-size: 1.3em;
    }
    .page-promotions__text-block,
    .page-promotions__list,
    .page-promotions__card-text,
    .page-promotions__card-list li {
        font-size: 0.95em;
    }

    /* Image responsiveness for mobile */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__vip-content,
    .page-promotions__faq-grid,
    .page-promotions__faq-image-container,
    .page-promotions__faq-items-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__card-image {
        height: auto !important;
    }

    /* Button responsiveness for mobile */
    .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;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column;
    }
    .page-promotions__hero-content {
        padding: 20px;
    }
    .page-promotions__card-content {
        padding: 20px;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__sub-title {
        font-size: 1.2em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-promotions__hero-cta {
        padding: 15px 25px;
    }
}