/* style/promotions.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #FFFFFF;
    --login-color: #EA7C07;
    --background-color: #FFFFFF;
    --black-color: #000000;
}

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

.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below sticky header */
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    overflow: hidden;
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--light-text-color);
}

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

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

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

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

.page-promotions__btn-primary:hover {
    background-color: darken(var(--login-color), 10%);
    border-color: darken(var(--login-color), 10%);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

.page-promotions__section {
    padding: 80px 20px;
    text-align: center;
}

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

.page-promotions__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--dark-text-color);
}

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

.page-promotions__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-promotions__promo-card:hover {
    transform: translateY(-10px);
}

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

.page-promotions__promo-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__promo-card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-promotions__promo-card-title a:hover {
    text-decoration: underline;
}

.page-promotions__promo-card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--dark-text-color);
}

.page-promotions__how-to-claim,
.page-promotions__vip-program,
.page-promotions__terms-conditions,
.page-promotions__why-choose-us {
    background-color: #f9f9f9;
    color: var(--dark-text-color);
}

.page-promotions__how-to-claim .page-promotions__section-title,
.page-promotions__vip-program .page-promotions__section-title,
.page-promotions__terms-conditions .page-promotions__section-title,
.page-promotions__why-choose-us .page-promotions__section-title {
    color: var(--primary-color);
}

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

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

.page-promotions__step-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    color: var(--dark-text-color);
}

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-promotions__step-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-promotions__step-text {
    font-size: 1em;
    color: var(--dark-text-color);
}

.page-promotions__text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.page-promotions__image-full-width {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 40px;
    display: block;
}

.page-promotions__vip-benefits-list,
.page-promotions__terms-list,
.page-promotions__why-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-promotions__vip-benefits-list li,
.page-promotions__terms-list li,
.page-promotions__why-list li {
    background-color: var(--secondary-color);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: var(--dark-text-color);
}

.page-promotions__list-icon {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-right: 15px;
}

.page-promotions__faq-section {
    background-color: var(--background-color);
}

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

.page-promotions__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    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;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question h3 {
    margin: 0;
    color: var(--primary-color);
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    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;
    color: var(--dark-text-color);
}

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

.page-promotions__faq-answer p {
    margin: 0;
    color: var(--dark-text-color);
}

.page-promotions__cta-bottom {
    margin-top: 50px;
}

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

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-promotions__hero-section {
        min-height: 450px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

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

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

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

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

    .page-promotions__section {
        padding: 50px 15px;
    }

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

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

    .page-promotions__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__promo-card-image {
        height: 200px;
    }

    .page-promotions__promo-card-title {
        font-size: 1.3em;
    }

    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__step-item {
        padding: 20px;
    }

    .page-promotions__faq-question,
    .page-promotions__vip-benefits-list li,
    .page-promotions__terms-list li,
    .page-promotions__why-list li {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-promotions__faq-question h3 {
        font-size: 1.1em;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__section,
    .page-promotions__container,
    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-promotions__hero-content,
    .page-promotions__latest-promotions,
    .page-promotions__how-to-claim,
    .page-promotions__vip-program,
    .page-promotions__terms-conditions,
    .page-promotions__faq-section,
    .page-promotions__why-choose-us {
        padding-left: 0;
        padding-right: 0;
    }

    .page-promotions__hero-content > *,
    .page-promotions__latest-promotions > *,
    .page-promotions__how-to-claim > *,
    .page-promotions__vip-program > *,
    .page-promotions__terms-conditions > *,
    .page-promotions__faq-section > *,
    .page-promotions__why-choose-us > * {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

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

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