/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
    box-sizing: border-box;
}

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

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

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #ffffff;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-promotions__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button,
.page-promotions__step-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-promotions__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* Section common styles */
.page-promotions__section {
    padding: 60px 0;
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark background */
    text-align: center;
    margin-bottom: 20px;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-promotions__promotion-card {
    background-color: rgba(255, 255, 255, 0.08); /* Light translucent background on dark body */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Ensure light text on dark card */
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-promotions__card-title {
    font-size: 1.5em;
    margin: 15px 15px 10px 15px;
    color: #26A9E0; /* Brand color for titles */
}
.page-promotions__card-title a {
    color: #26A9E0; /* Brand color for titles */
    text-decoration: none;
    transition: color 0.3s ease;
}
.page-promotions__card-title a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.page-promotions__card-text {
    font-size: 0.95em;
    margin: 0 15px 20px 15px;
    color: #f0f0f0;
}

.page-promotions__card-button {
    background-color: #EA7C07; /* Login color for promotion action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-promotions__card-button:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

/* How-to-Join Steps */
.page-promotions__how-to-join {
    background-color: #1a1a2e; /* Ensure a consistent dark background */
}

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

.page-promotions__step-card {
    background-color: #ffffff; /* Light background for step cards */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light background */
}

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

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.page-promotions__step-title {
    font-size: 1.8em;
    color: #26A9E0; /* Brand color for step titles */
    margin-bottom: 15px;
}

.page-promotions__step-text {
    font-size: 1em;
    margin-bottom: 25px;
    color: #555555;
}

.page-promotions__step-button {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    padding: 10px 20px;
    border-radius: 6px;
}

.page-promotions__step-button:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

/* Terms and Conditions */
.page-promotions__dark-section {
    background-color: #26A9E0; /* Main brand color as background */
    color: #ffffff;
}

.page-promotions__dark-section .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__dark-section .page-promotions__section-description {
    color: #f0f0f0;
}

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

.page-promotions__term-item {
    background-color: rgba(0, 0, 0, 0.2); /* Darker translucent background on brand color */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__term-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-promotions__term-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Why Choose Section */
.page-promotions__why-choose {
    background-color: #1a1a2e; /* Consistent dark background */
}

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

.page-promotions__feature-item {
    background-color: rgba(255, 255, 255, 0.08); /* Light translucent background on dark body */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff; /* Light text for dark background */
}

.page-promotions__feature-item:hover {
    transform: translateY(-10px);
}

.page-promotions__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 20px auto;
}

.page-promotions__feature-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-promotions__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: #1a1a2e; /* Consistent dark background */
}

.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Light translucent background on dark body */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff; /* Light text for dark background */
}

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

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

.page-promotions__faq-question h3 {
    margin: 0;
    font-size: 1em; /* Adjust to fit parent font size */
    color: #ffffff;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0; /* Brand color for toggle icon */
}

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large for content */
    padding: 15px 25px 25px 25px; /* Adjust padding for expanded state */
}

.page-promotions__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* Final CTA Section */
.page-promotions__cta-final {
    padding: 80px 0;
    text-align: center;
}

.page-promotions__cta-final .page-promotions__container {
    background-color: #26A9E0; /* Main brand color for CTA background */
    border-radius: 15px;
    padding: 60px 40px;
    color: #ffffff;
}

.page-promotions__cta-final .page-promotions__section-title {
    color: #ffffff;
    font-size: 2.8em;
}

.page-promotions__cta-final .page-promotions__section-description {
    color: #f0f0f0;
    margin-bottom: 50px;
}

.page-promotions__cta-final .page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-promotions__cta-final .page-promotions__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    border-color: #EA7C07;
}

.page-promotions__cta-final .page-promotions__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-promotions__cta-final .page-promotions__btn-secondary {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.page-promotions__cta-final .page-promotions__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}


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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }

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

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

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__card-button,
    .page-promotions__step-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section {
        padding: 40px 0;
    }

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

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

    .page-promotions__promotion-grid,
    .page-promotions__steps-grid,
    .page-promotions__terms-grid,
    .page-promotions__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

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

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

    .page-promotions__cta-final {
        padding: 60px 0;
    }

    .page-promotions__cta-final .page-promotions__container {
        padding: 40px 20px;
    }

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

    .page-promotions__cta-final .page-promotions__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-promotions__cta-final .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Mobile image responsiveness */
    .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__hero-section,
    .page-promotions__promotion-card,
    .page-promotions__step-card,
    .page-promotions__term-item,
    .page-promotions__feature-item,
    .page-promotions__faq-item,
    .page-promotions__cta-final .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Special handling for elements that already have padding */
    .page-promotions__hero-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-promotions__faq-question,
    .page-promotions__faq-answer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-promotions__cta-final .page-promotions__container {
        padding-left: 20px !important; /* Keep original container padding or adjust if needed */
        padding-right: 20px !important;
    }
}

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