/* style/promotions.css */

:root {
    --primary-color: #8B0000;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f8f8;
    --background-dark: #1a1a1a;
    --border-color: #e0e0e0;
}

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

.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;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    color: var(--text-light);
    background-color: var(--primary-color);
    padding-top: var(--header-offset, 120px);
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

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

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* General Section Styles */
.page-promotions__introduction-section,
.page-promotions__categories-section,
.page-promotions__why-mcw77-section,
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-promotions__video-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__final-cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-promotions__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherits from parent section */
}

.page-promotions__introduction-section .page-promotions__section-title,
.page-promotions__categories-section .page-promotions__section-title,
.page-promotions__why-mcw77-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-title {
    color: var(--primary-color);
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

/* Dark background buttons */
.page-promotions__dark-bg .page-promotions__btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

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

.page-promotions__btn-large {
    padding: 18px 40px;
    font-size: 1.3em;
}

/* Video Section */
.page-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-promotions__video-caption {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: var(--text-light);
}

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

.page-promotions__card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

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

.page-promotions__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    text-decoration: underline;
}

.page-promotions__card-description {
    font-size: 0.95em;
    color: #555;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card .page-promotions__btn-secondary {
    margin: 0 20px;
    align-self: center;
    width: calc(100% - 40px);
}

/* How to Claim Section */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

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

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

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

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

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

.page-promotions__step-description a:hover {
    color: #e6c200;
}

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

/* Why mcw77 Section */
.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__benefit-item {
    background-color: var(--text-light);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.page-promotions__benefit-description {
    font-size: 0.95em;
    color: #555;
}

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

.page-promotions__benefit-description a:hover {
    color: #a00000;
}

.page-promotions__benefits-image {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 50px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Terms Section */
.page-promotions__terms-list {
    list-style: disc;
    max-width: 900px;
    margin: 50px auto 0 auto;
    padding-left: 20px;
    color: #f0f0f0;
    font-size: 1.05em;
}

.page-promotions__terms-item {
    margin-bottom: 15px;
}

.page-promotions__terms-item:last-child {
    margin-bottom: 0;
}

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

.page-promotions__terms-section a:hover {
    color: #e6c200;
}

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

.page-promotions__faq-item {
    background-color: var(--text-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid var(--border-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;
    color: var(--secondary-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 20px;
    color: var(--text-dark);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.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: #a00000;
}

/* Final CTA Section */
.page-promotions__final-cta-section {
    text-align: center;
    padding-bottom: 100px;
}

.page-promotions__final-cta-section .page-promotions__section-title {
    color: var(--secondary-color);
}

.page-promotions__final-cta-section .page-promotions__section-description {
    margin-bottom: 40px;
}

.page-promotions__final-cta-image {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 60px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Global Image, Video, Button Responsive Styles */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-promotions video,
.page-promotions__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-promotions__cta-button,
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions a[class*="button"],
.page-promotions a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-buttons,
.page-promotions__button-group,
.page-promotions__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2.2em;
    }
}

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

    .page-promotions__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px;
    }

    .page-promotions__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-promotions__hero-image-wrapper {
        opacity: 0.2;
    }

    .page-promotions__introduction-section,
    .page-promotions__categories-section,
    .page-promotions__why-mcw77-section,
    .page-promotions__faq-section,
    .page-promotions__video-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__final-cta-section {
        padding: 60px 0;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        padding: 0 15px;
    }

    .page-promotions__section-description {
        font-size: 1em;
        padding: 0 15px;
        margin-bottom: 30px;
    }

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

    /* Mobile image, video, button adaptations */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    .page-promotions__video-wrapper {
        margin: 30px auto;
    }

    .page-promotions__cta-button,
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 15px; /* Add margin for stacked buttons */
    }

    .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;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
    }

    .page-promotions__card {
        padding-bottom: 20px;
    }

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

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

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

    .page-promotions__guide-image,
    .page-promotions__benefits-image,
    .page-promotions__final-cta-image {
        margin-top: 30px;
    }

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

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

    .page-promotions__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}