/* style/promotions.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --login-button-color: #EA7C07;
    --background-color: #FFFFFF;
    --black-color: #000000;
}

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

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

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

.page-promotions__section-title--white {
    color: var(--light-text-color);
}

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

.page-promotions__section-description--white {
    color: var(--light-text-color);
}

.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;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-promotions__btn-primary--center {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 300px;
}

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

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    text-align: center;
    background-color: var(--background-color);
    overflow: hidden;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.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.7); /* Subtle darkening for text readability */
}

/* Intro Section */
.page-promotions__intro-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-promotions__intro-section .page-promotions__section-title {
    color: var(--light-text-color);
}

.page-promotions__intro-section .page-promotions__section-description {
    color: var(--light-text-color);
}

/* Categories Section */
.page-promotions__categories-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

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

.page-promotions__promotion-card {
    background-color: 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;
    justify-content: space-between;
    height: 100%;
    color: var(--dark-text-color);
}

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

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

.page-promotions__card-text {
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__promotion-card .page-promotions__btn-secondary {
    margin: 0 15px;
    width: calc(100% - 30px);
}

/* Video Section */
.page-promotions__video-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    text-align: center;
}

.page-promotions__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    background-color: var(--black-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

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

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

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

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

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

.page-promotions__step-text a:hover {
    color: darken(var(--primary-color), 10%);
}

/* Terms Section */
.page-promotions__terms-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-promotions__terms-section .page-promotions__section-title {
    color: var(--light-text-color);
}

.page-promotions__terms-section .page-promotions__section-description {
    color: var(--light-text-color);
}

.page-promotions__terms-list {
    list-style: disc inside;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: left;
}

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

.page-promotions__terms-item a {
    color: var(--light-text-color);
    text-decoration: underline;
}

.page-promotions__terms-item a:hover {
    color: lighten(var(--primary-color), 20%);
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

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

.page-promotions__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: var(--dark-text-color);
}

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

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

.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);
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    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; /* Sufficiently large to show content */
    padding: 15px 20px 20px 20px;
}

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 1em;
}

.page-promotions__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-promotions__faq-answer a:hover {
    color: darken(var(--primary-color), 10%);
}

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

.page-promotions__cta-section .page-promotions__section-title {
    color: var(--light-text-color);
}

.page-promotions__cta-section .page-promotions__section-description {
    color: var(--light-text-color);
}

.page-promotions__cta-section .page-promotions__section-description a {
    color: var(--light-text-color);
    text-decoration: underline;
}

.page-promotions__cta-section .page-promotions__section-description a:hover {
    color: lighten(var(--primary-color), 20%);
}

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

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

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

    /* Fixed header offset for mobile */
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 450px;
    }

    .page-promotions__hero-content {
        padding: 15px;
    }

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

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

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

    .page-promotions__btn-primary--center {
        max-width: 100% !important;
        width: 100% !important;
    }

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

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

    .page-promotions__card-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__promotion-card {
        padding-bottom: 15px;
    }

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

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

    .page-promotions__claim-steps {
        grid-template-columns: 1fr;
    }

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

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

    .page-promotions__terms-list {
        padding: 0 15px;
    }

    .page-promotions__terms-item {
        font-size: 0.95em;
    }

    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

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

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

    /* Mobile image responsive styles */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile video responsive styles */
    .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;
    }

    /* Content section padding for mobile */
    .page-promotions__intro-section,
    .page-promotions__categories-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 10px 15px;
        font-size: 0.85em;
    }
}