/* style/promotions.css */

/* Base styles for the page content */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: var(--background-color, #ffffff); /* Inherit from shared, fallback to white */
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-promotions__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333333;
}

.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background-color: #26A9E0;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
}

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

.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;
    line-height: 1.2;
    color: #ffffff;
}

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary,
.page-promotions__btn-link {
    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, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow button text to wrap */
    word-wrap: break-word;
}

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

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

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

.page-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.page-promotions__btn-primary--large,
.page-promotions__btn-secondary--large {
    padding: 18px 35px;
    font-size: 1.1em;
}

.page-promotions__introduction-section,
.page-promotions__guide-section,
.page-promotions__terms-section,
.page-promotions__conclusion-section {
    padding: 60px 0;
}

.page-promotions__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-promotions__dark-bg .page-promotions__text-block {
    color: #ffffff;
}

.page-promotions__light-bg {
    background-color: #f8f8f8; /* Light gray background for contrast */
    color: #333333;
}

.page-promotions__featured-promotions-section {
    padding: 60px 0;
}

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

.page-promotions__promotion-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding-bottom: 20px;
    text-align: center;
    color: #333333; /* Dark text for light card background */
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin: 0 20px 15px;
    font-weight: bold;
}

.page-promotions__card-description {
    font-size: 1em;
    color: #555555;
    margin: 0 20px 20px;
}

.page-promotions__btn-tertiary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 6px;
}

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

.page-promotions__cta-area {
    text-align: center;
    margin-top: 40px;
}

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

.page-promotions__step-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    position: relative;
    padding-top: 80px;
    color: #333333;
}

.page-promotions__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-promotions__btn-link {
    color: #EA7C07;
    text-decoration: underline;
    font-weight: bold;
}

.page-promotions__btn-link:hover {
    color: #d16b06;
}

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

.page-promotions__note-text {
    font-style: italic;
    text-align: center;
    color: #555555;
}

.page-promotions__terms-list {
    list-style: disc;
    margin-left: 25px;
    padding-left: 0;
    margin-bottom: 30px;
    color: #333333;
}

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

.page-promotions__terms-list strong {
    color: #26A9E0;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    color: #333333;
}

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

.page-promotions__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #26A9E0;
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    margin-left: 20px;
    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;
    background-color: #ffffff;
    color: #555555;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Ensure enough height for content */
    padding: 20px !important;
}

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

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


/* Responsive Design */
@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__hero-section {
        min-height: 400px;
        padding: 40px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

    .page-promotions__hero-buttons,
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-tertiary,
    .page-promotions__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-promotions__introduction-section,
    .page-promotions__featured-promotions-section,
    .page-promotions__guide-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__conclusion-section {
        padding: 40px 0;
    }

    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-promotions__promotions-grid,
    .page-promotions__guide-steps {
        grid-template-columns: 1fr;
    }

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

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

    .page-promotions__promotion-card,
    .page-promotions__step-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-promotions__faq-title {
        font-size: 1.1em;
    }

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

    /* Content area image minimum size check for mobile */
    .page-promotions__container img { /* Selector for content area images */
        min-width: 200px;
        min-height: 200px;
    }
}

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