/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-color);
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-promotions__section {
    padding: 60px 0;
}

.page-promotions__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-promotions__section-subtitle {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color-light);
}

.page-promotions__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: justify;
}

/* Color Contrast Handling */
.page-promotions__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-promotions__light-bg {
    background-color: var(--background-color);
    color: var(--text-color-dark);
}

.page-promotions__dark-bg .page-promotions__section-title {
    color: var(--secondary-color);
}

.page-promotions__dark-bg .page-promotions__card-title {
    color: var(--text-color-dark);
}

.page-promotions__dark-bg .page-promotions__card-text {
    color: var(--text-color-dark);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    overflow: hidden; /* Ensure content does not overflow */
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    /* No filter to change color */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-promotions__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--secondary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-promotions__btn-register:hover {
    background: darken(var(--register-button-color), 10%);
    border-color: darken(var(--register-button-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-login:hover {
    background: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-promotions__introduction .page-promotions__container {
    text-align: center;
}

/* Promotion Types Grid */
.page-promotions__promotion-types {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-promotions__promotion-types .page-promotions__section-title {
    color: var(--secondary-color);
}

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

.page-promotions__card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    color: var(--text-color-dark);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    /* No filter to change color */
}

.page-promotions__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
    padding: 0 15px;
}

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

.page-promotions__card-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push button to bottom */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-button:hover {
    background: darken(var(--primary-color), 10%);
}

/* How-to-Claim Section */
.page-promotions__how-to-claim .page-promotions__container {
    text-align: center;
}

.page-promotions__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

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

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

.page-promotions__step-description {
    font-size: 16px;
    color: var(--text-color-dark);
}

.page-promotions__note-box {
    background: #f0f8ff;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-top: 40px;
    border-radius: 5px;
    text-align: left;
}

.page-promotions__note-text {
    font-size: 16px;
    color: var(--text-color-dark);
}

/* Terms and Conditions Section */
.page-promotions__terms {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

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

.page-promotions__terms-list {
    list-style: disc inside;
    padding-left: 20px;
    margin-top: 30px;
}

.page-promotions__terms-item {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-color-light);
}

/* FAQ Section */
.page-promotions__faq .page-promotions__container {
    text-align: center;
}

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

.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-color-dark);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-promotions__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
    background: #eeeeee;
}

.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change to X on active */
}

/* Why Choose Section */
.page-promotions__why-choose {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-promotions__why-choose .page-promotions__section-title {
    color: var(--secondary-color);
}

.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__benefits-item {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-color-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__benefits-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__benefits-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 20px;
    object-fit: contain;
    /* No filter to change color */
}

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

.page-promotions__benefits-description {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-color-dark);
}

.page-promotions__cta-bottom {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.page-promotions__cta-text {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

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

.page-promotions__cta-bottom .page-promotions__btn-register:hover {
    background: darken(var(--register-button-color), 10%);
    border-color: darken(var(--register-button-color), 10%);
}

/* General link styling for content */
.page-promotions a {
    color: var(--register-button-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions a:hover {
    text-decoration: underline;
    color: darken(var(--register-button-color), 10%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 40px;
    }
    .page-promotions__hero-description {
        font-size: 18px;
    }
    .page-promotions__section-title {
        font-size: 30px;
    }
    .page-promotions__card-title {
        font-size: 20px;
    }
    .page-promotions__benefits-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-title {
        font-size: 32px;
    }
    .page-promotions__hero-description {
        font-size: 16px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: 26px;
    }
    .page-promotions__section-subtitle {
        font-size: 16px;
    }
    .page-promotions__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__card {
        padding-bottom: 15px;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__card-title {
        font-size: 18px;
    }
    .page-promotions__card-text {
        font-size: 14px;
    }
    .page-promotions__step-item {
        padding: 20px;
        margin-bottom: 15px;
    }
    .page-promotions__step-title {
        font-size: 20px;
    }
    .page-promotions__step-description {
        font-size: 15px;
    }
    .page-promotions__note-box {
        padding: 15px;
    }
    .page-promotions__terms-list {
        padding-left: 15px;
    }
    .page-promotions__terms-item {
        font-size: 15px;
    }
    .page-promotions__faq-question {
        padding: 15px;
    }
    .page-promotions__faq-question h3 {
        font-size: 16px;
    }
    .page-promotions__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }
    .page-promotions__benefits-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__benefits-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .page-promotions__benefits-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .page-promotions__benefits-title {
        font-size: 18px;
    }
    .page-promotions__benefits-description {
        font-size: 14px;
    }
    .page-promotions__cta-bottom {
        padding: 20px;
        margin-top: 40px;
    }
    .page-promotions__cta-text {
        font-size: 16px;
    }
    
    /* Ensure all images are responsive and do not overflow */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .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;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 28px;
    }
    .page-promotions__hero-description {
        font-size: 15px;
    }
    .page-promotions__section-title {
        font-size: 22px;
    }
    .page-promotions__cta-button {
        padding: 10px 20px;
        font-size: 15px;
    }
    .page-promotions__faq-question h3 {
        font-size: 15px;
    }
}