/* style/promotions.css */

/* Base Styles for Promotions Page */
.page-promotions {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Assuming shared.css sets body background */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

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

.page-promotions__section--featured {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-promotions__section--how-to {
    background-color: transparent; /* Use body background */
}

.page-promotions__section--terms {
    background-color: rgba(255, 255, 255, 0.03);
}

.page-promotions__dark-section {
    background-color: #26A9E0; /* Brand primary color for CTA */
    color: #ffffff;
}

.page-promotions__section-title {
    font-size: 3.2em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-promotions__section-description {
    font-size: 1.15em;
    color: #f0f0f0;
    text-align: center;
    max-width: 850px;
    margin: 0 auto 50px auto;
    line-height: 1.8;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 650px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* No filter to change color */
}

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Darker overlay for better text contrast */
    z-index: 0;
}

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

.page-promotions__hero-title {
    font-size: 3.8em;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.page-promotions__hero-description {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-bottom: 50px;
    line-height: 1.6;
}

.page-promotions__hero-cta {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-promotions__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
    box-shadow: 0 4px 10px rgba(38, 169, 224, 0.4);
}

.page-promotions__btn-primary:hover {
    background-color: #1a88c7;
    border-color: #1a88c7;
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

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

.page-promotions__btn-large {
    padding: 18px 38px;
    font-size: 1.25em;
}

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

.page-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.page-promotions__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.page-promotions__promo-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    /* No filter to change color */
    min-width: 200px;
    min-height: 200px;
}

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

.page-promotions__promo-title {
    font-size: 1.9em;
    color: #ffffff;
    margin-bottom: 18px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__promo-text {
    font-size: 1.05em;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.7;
}

/* How-to Section */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-promotions__step-title {
    font-size: 1.6em;
    color: #26A9E0; /* Brand primary color for emphasis */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__step-text {
    color: #f0f0f0;
    font-size: 1em;
    line-height: 1.7;
}

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

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

.page-promotions__terms-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-promotions__link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-promotions__link:hover {
    color: #1a88c7;
    text-decoration: underline;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question h3 {
    font-size: 1.3em;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

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

.page-promotions__faq-toggle {
    font-size: 2em;
    color: #26A9E0; /* Brand primary color */
    font-weight: bold;
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change to '−' visual */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 28px;
    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; /* Ensure enough height for content */
    padding: 18px 28px;
}

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 1.05em;
    color: #f0f0f0;
    line-height: 1.7;
}

/* Call to Action Section */
.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
    max-width: 100%; /* Ensure container responsiveness */
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3.2em;
    }
    .page-promotions__hero-description {
        font-size: 1.2em;
    }
    .page-promotions__section-title {
        font-size: 2.8em;
    }
    .page-promotions__promo-title {
        font-size: 1.7em;
    }
    .page-promotions__section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        font-size: 15px;
        line-height: 1.6;
    }

    .page-promotions__container,
    .page-promotions__hero-content,
    .page-promotions__grid,
    .page-promotions__steps-list,
    .page-promotions__faq-list,
    .page-promotions__cta-buttons,
    .page-promotions__terms-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

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

    .page-promotions__hero-section {
        height: 500px;
    }

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

    .page-promotions__hero-description {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

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

    .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 !important;
        padding-right: 15px !important;
    }

    .page-promotions__section-title {
        font-size: 2.2em;
        margin-bottom: 20px;
    }

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

    .page-promotions__grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

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

    .page-promotions__promo-image {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__promo-title {
        font-size: 1.4em;
        margin-bottom: 10px;
    }

    .page-promotions__promo-text {
        font-size: 0.95em;
        margin-bottom: 15px;
    }

    .page-promotions__steps-list {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

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

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

    .page-promotions__terms-list {
        padding-left: 20px !important;
        margin: 30px auto;
        font-size: 0.95em;
    }

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

    .page-promotions__terms-footer {
        font-size: 1em;
    }

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

    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 1.1em;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 10px 20px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-section {
        height: 450px;
    }
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__section-title {
        font-size: 1.9em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-promotions__promo-title {
        font-size: 1.2em;
    }
    .page-promotions__step-title {
        font-size: 1.2em;
    }
    .page-promotions__faq-question h3 {
        font-size: 1em;
    }
}

/* Ensure all images are responsive and not tiny */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
    /* No filter to change color */
}

@media (max-width: 768px) {
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}