/* style/promotions.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-color: #C30808;
    --register-login-text-color: #FFFF00;
    --text-on-dark-bg: #ffffff;
    --text-on-light-bg: #333333;
    --card-bg-dark-theme: rgba(255, 255, 255, 0.1);
    --card-border-dark-theme: rgba(255, 255, 255, 0.2);
}

.page-promotions {
    color: var(--text-on-dark-bg); /* Body background is dark (#1a1a2e), so text should be light */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background-color: #1a1a2e;
    color: var(--text-on-dark-bg);
    text-align: center;
    overflow: hidden;
    padding-bottom: 60px;
}

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

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

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

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    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;
    text-align: center;
}

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

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

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

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

.page-promotions__btn-small {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    margin-top: 15px;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

/* General Section Styling */
.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

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

.page-promotions__dark-section {
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
    padding: 60px 0;
}

.page-promotions__categories-section {
    padding: 80px 0;
}

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

.page-promotions__promo-card {
    background-color: var(--card-bg-dark-theme);
    border: 1px solid var(--card-border-dark-theme);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

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

.page-promotions__promo-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

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

/* Featured Promo Detail */
.page-promotions__featured-promo-detail {
    padding: 80px 0;
    background-color: #1a1a2e;
    color: var(--text-on-dark-bg);
}

.page-promotions__detail-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-promotions__detail-content--reverse {
    flex-direction: row-reverse;
}

.page-promotions__text-block {
    flex: 1;
}

.page-promotions__text-block p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-promotions__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-promotions__list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-promotions__image-wrapper {
    flex: 1;
    text-align: center;
}

.page-promotions__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
}

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

.page-promotions__step-item {
    background-color: var(--card-bg-dark-theme);
    border: 1px solid var(--card-border-dark-theme);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
}

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

.page-promotions__step-description {
    font-size: 0.95em;
    color: var(--text-on-dark-bg);
}

.page-promotions__center-cta {
    text-align: center;
    margin-top: 50px;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
    padding: 80px 0;
    background-color: #1a1a2e;
    color: var(--text-on-dark-bg);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
}

.page-promotions__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-promotions__faq-item {
    background-color: var(--card-bg-dark-theme);
    border: 1px solid var(--card-border-dark-theme);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Plus to X (or just rotate 45 degrees) */
}

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

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px;
}

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

/* Final CTA Section */
.page-promotions__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
    text-align: center;
}

.page-promotions__cta-content {
    max-width: 900px;
}

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

.page-promotions__cta-content .page-promotions__section-description {
    color: var(--text-on-dark-bg);
}

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

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

    .page-promotions__detail-content {
        flex-direction: column;
    }

    .page-promotions__detail-content--reverse {
        flex-direction: column-reverse;
    }

    .page-promotions__image-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
        padding-bottom: 40px;
    }

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

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

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
    }

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

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

    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__faq-item {
        padding: 20px;
    }

    .page-promotions__promo-card-image,
    .page-promotions__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__container,
    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__faq-list,
    .page-promotions__cta-content,
    .page-promotions__detail-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .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: 15px 20px;
    }

    .page-promotions__list {
        padding-left: 15px;
    }

    .page-promotions__list li {
        font-size: 1em;
    }

    .page-promotions__text-block p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }

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

    .page-promotions__step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.5em;
    }

    .page-promotions__step-title {
        font-size: 1.2em;
    }
}