/* style/promotions.css */

:root {
    --primary-color: #0A2342;
    --secondary-color: #E0B34D;
    --text-light: #ffffff;
    --text-dark: #333333;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --card-bg-light: #ffffff;
    --border-color: #e0e0e0;
}

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

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--primary-color);
    padding: 80px 0;
    color: var(--text-light);
}

.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-section .page-promotions__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.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);
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-promotions__intro-section, 
.page-promotions__featured-promo-section, 
.page-promotions__terms-section, 
.page-promotions__cta-section {
    background: var(--card-bg-light);
    color: var(--text-dark);
    padding: 60px 0;
}

.page-promotions__dark-bg {
    background: var(--primary-color);
    color: var(--text-light);
}

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

.page-promotions__text-block strong {
    color: var(--secondary-color);
}

/* Buttons */
.page-promotions__cta-button {
    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, transform 0.2s ease;
    margin: 10px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

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

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

.page-promotions__promo-card {
    background: var(--card-bg-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-promotions__card-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin: 0 20px 15px;
    text-align: center;
}

.page-promotions__card-description {
    font-size: 1em;
    margin: 0 20px 20px;
    flex-grow: 1;
    text-align: justify;
}

.page-promotions__promo-card .page-promotions__cta-button {
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    max-width: calc(100% - 40px);
}

/* Featured Promotion Section */
.page-promotions__featured-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-promotions__featured-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.page-promotions__featured-text {
    flex: 1;
    min-width: 300px;
}

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

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

.page-promotions__featured-list strong {
    color: var(--primary-color);
}

/* How to Claim Section */
.page-promotions__step-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__step-list li {
    background: var(--card-bg-dark);
    border-left: 5px solid var(--secondary-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
}

.page-promotions__step-list li strong {
    color: var(--secondary-color);
    font-size: 1.2em;
    display: block;
    margin-bottom: 5px;
}

.page-promotions__step-list li a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Terms & Conditions Section */
.page-promotions__terms-list {
    list-style: disc inside;
    margin-top: 20px;
    padding-left: 20px;
}

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

.page-promotions__terms-list strong {
    color: var(--primary-color);
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
}

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

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

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

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

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    font-size: 1.1em;
}

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

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

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes an X or a dash */
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }

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

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

    .page-promotions__featured-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }

    .page-promotions__hero-section {
        min-height: 400px;
        padding: 60px 0;
    }

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

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

    .page-promotions__section-title {
        font-size: 1.8em;
        padding-top: 40px;
    }

    .page-promotions__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 5px 0;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-promotions__container {
        padding: 0 15px;
    }

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

    .page-promotions__card-image {
        height: 200px;
    }

    .page-promotions__card-title {
        font-size: 1.4em;
    }

    .page-promotions__promo-card .page-promotions__cta-button {
        max-width: calc(100% - 40px) !important;
        width: calc(100% - 40px) !important;
    }

    .page-promotions__featured-image {
        min-width: 200px;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__intro-section,
    .page-promotions__types-section,
    .page-promotions__featured-promo-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }

    .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__promo-card,
    .page-promotions__featured-content,
    .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;
    }
    .page-promotions__featured-content {
        padding-left: 0;
        padding-right: 0;
    }
    .page-promotions__promo-card {
        padding-left: 0;
        padding-right: 0;
    }
    .page-promotions__faq-item {
        padding-left: 0;
        padding-right: 0;
    }
    .page-promotions__faq-question {
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }
    .page-promotions__step-list li {
        padding: 15px;
    }
}