/* style/promotions.css */

/* Custom Colors */
:root {
    --m8m8-primary: #11A84E;
    --m8m8-secondary: #22C768;
    --m8m8-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --m8m8-card-bg: #11271B;
    --m8m8-background: #08160F;
    --m8m8-text-main: #F2FFF6;
    --m8m8-text-secondary: #A7D9B8;
    --m8m8-border: #2E7A4E;
    --m8m8-glow: #57E38D;
    --m8m8-gold: #F2C14E;
    --m8m8-divider: #1E3A2A;
    --m8m8-deep-green: #0A4B2C;
}

/* General Page Styling */
.page-promotions {
    color: var(--m8m8-text-main); /* Light text on dark body background */
    background-color: var(--m8m8-background);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Ensure space above footer */
}

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

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

.page-promotions__section-title {
    font-size: clamp(2em, 5vw, 2.8em);
    color: var(--m8m8-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: var(--m8m8-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* body already handles header offset, small top padding for decoration */
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    position: relative;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual flow */
    background: var(--m8m8-card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--m8m8-border);
}

.page-promotions__main-title {
    font-size: clamp(2.5em, 6vw, 3.5em);
    color: var(--m8m8-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    color: var(--m8m8-text-main);
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.page-promotions__btn-primary {
    background: var(--m8m8-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
    opacity: 0.9;
}

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

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

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

/* Promo Grid */
.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(--m8m8-card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--m8m8-border);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__card-title {
    font-size: 1.6em;
    color: var(--m8m8-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 1em;
    color: var(--m8m8-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__promo-card .page-promotions__btn-secondary {
    align-self: flex-start;
    margin-top: auto;
}

/* How-To-Join Section */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__step-card {
    background: var(--m8m8-card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--m8m8-border);
    text-align: left;
    transition: transform 0.3s ease;
}

.page-promotions__step-card:hover {
    transform: translateY(-5px);
}

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

.page-promotions__step-text {
    font-size: 1em;
    color: var(--m8m8-text-secondary);
    margin-bottom: 25px;
}

/* Terms & Conditions */
.page-promotions__terms-list {
    margin-top: 40px;
    text-align: left;
}

.page-promotions__term-item {
    background: var(--m8m8-card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--m8m8-divider);
}

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

.page-promotions__term-text {
    font-size: 1em;
    color: var(--m8m8-text-secondary);
}

/* Why Choose Us Section */
.page-promotions__reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__reason-card {
    background: var(--m8m8-card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--m8m8-border);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__reason-card:hover {
    transform: translateY(-5px);
}

.page-promotions__reason-card .page-promotions__card-image {
    width: 100%;
    height: 180px; /* Adjusted height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.page-promotions__reason-card .page-promotions__card-title {
    font-size: 1.6em;
    color: var(--m8m8-gold);
    margin-bottom: 10px;
}

.page-promotions__reason-card .page-promotions__card-text {
    font-size: 1em;
    color: var(--m8m8-text-secondary);
}

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

.page-promotions__faq-item {
    background: var(--m8m8-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--m8m8-divider);
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-item[open] {
    box-shadow: 0 5px 20px rgba(34, 199, 104, 0.2);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    color: var(--m8m8-text-main);
    font-weight: bold;
    cursor: pointer;
    background-color: var(--m8m8-deep-green);
    border-bottom: 1px solid var(--m8m8-divider);
    list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.2);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    color: var(--m8m8-gold);
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate */
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--m8m8-text-secondary);
    line-height: 1.5;
    background-color: var(--m8m8-card-bg);
}

/* Call to Action Section */
.page-promotions__call-to-action {
    padding-top: 80px;
    padding-bottom: 80px;
    background: var(--m8m8-deep-green);
    border-top: 2px solid var(--m8m8-border);
}

.page-promotions__call-to-action .page-promotions__section-title {
    color: var(--m8m8-gold);
}

.page-promotions__call-to-action .page-promotions__section-description {
    color: var(--m8m8-text-main);
    margin-bottom: 30px;
}


/* Responsive Design */

/* All images must be responsive */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All video must be responsive */
.page-promotions video,
.page-promotions__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* All video containers must be responsive */
.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Desktop specific video width - must include width: 100% */
.page-promotions__video-container {
    width: 100%;
    max-width: 1200px; /* Example max-width for desktop */
}

@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -80px;
        padding: 30px 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__reason-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-content {
        margin-top: -60px;
        border-radius: 10px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: clamp(1.8em, 6vw, 2.2em);
        margin-bottom: 15px;
    }
    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Mobile specific image, video, button responsiveness */
    .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;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .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;
        overflow: hidden !important;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .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;
        margin-bottom: 15px;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-promotions__promo-card .page-promotions__btn-secondary {
        align-self: stretch;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-promotions__promo-card,
    .page-promotions__step-card,
    .page-promotions__reason-card {
        padding: 20px;
    }
    .page-promotions__card-title,
    .page-promotions__step-title,
    .page-promotions__reason-card .page-promotions__card-title {
        font-size: 1.4em;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-content {
        margin-top: -40px;
        padding: 25px 10px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6em, 7vw, 2em);
    }
    .page-promotions__promo-card,
    .page-promotions__step-card,
    .page-promotions__reason-card {
        margin-bottom: 20px;
    }
    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__reason-grid {
        grid-template-columns: 1fr;
    }
}