/* style/promotions.css */

/* Custom CSS Variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --register-login-font-color: #FFFF00;
}

/* Base styles for the page content */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color); /* Default text color for dark body background */
    background-color: transparent; /* Assuming shared.css sets body background */
}

/* Color Contrast Fixes based on body background and section backgrounds */
.page-promotions__dark-bg {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-promotions__light-bg {
    background-color: var(--secondary-color);
    color: #333333; /* Dark text for light background */
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    /* Assumed shared.css handles body padding-top for fixed header, so no additional padding-top here. */
}

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

.page-promotions__hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
    max-width: 900px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
    font-weight: bold;
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    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;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

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

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

.page-promotions__btn-secondary {
    background-color: var(--login-button-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--login-button-color);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--login-button-color);
}

/* Sections General */
.page-promotions__current-promotions,
.page-promotions__how-to-claim,
.page-promotions__vip-program,
.page-promotions__faq-section,
.page-promotions__why-choose-us,
.page-promotions__cta-bottom {
    padding: 80px 0;
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* Promotion Cards */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions__promo-card {
    background-color: var(--secondary-color);
    color: #333333;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.page-promotions__promo-card-image {
    width: 100%;
    max-width: 400px; /* Ensure images are not too wide on desktop */
    height: 300px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.page-promotions__promo-card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-promotions__promo-card-text {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* How To Claim Steps */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-promotions__step-item {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--register-button-color);
    color: var(--register-login-font-color);
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 25px;
}

.page-promotions__step-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: bold;
}

.page-promotions__step-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions__step-text a {
    color: var(--register-login-font-color);
    text-decoration: underline;
}

.page-promotions__step-text a:hover {
    color: var(--secondary-color);
}

/* VIP Program */
.page-promotions__vip-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.page-promotions__vip-benefits {
    flex: 1;
    color: #333333;
}

.page-promotions__sub-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-promotions__vip-benefits ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
    font-size: 1.1em;
}

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

.page-promotions__vip-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__vip-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 800px;
    margin: 50px auto 0 auto;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--secondary-color);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--register-login-font-color);
    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: #f0f0f0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px 25px 25px;
}

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

/* Why Choose Us Features */
.page-promotions__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions__feature-item {
    background-color: var(--secondary-color);
    color: #333333;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
}

.page-promotions__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-promotions__feature-text {
    font-size: 1em;
}

/* Call to Action Bottom */
.page-promotions__cta-bottom {
    text-align: center;
    padding: 100px 0;
}

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

.page-promotions__cta-bottom .page-promotions__section-description {
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__vip-content {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__vip-benefits ul {
        margin-left: 0;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 60px 15px;
        min-height: 500px;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__current-promotions,
.page-promotions__how-to-claim,
.page-promotions__vip-program,
.page-promotions__faq-section,
.page-promotions__why-choose-us,
.page-promotions__cta-bottom {
        padding: 60px 0;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Video responsiveness (if any) */
    .page-promotions video,
    .page-promotions__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__features-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__faq-question,
    .page-promotions__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 15px 20px 15px;
    }
    .page-promotions__vip-benefits ul {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__sub-title {
        font-size: 1.4em;
    }
    .page-promotions__step-title {
        font-size: 1.3em;
    }
}