/* 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; /* Inherit from body/shared.css */
}

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

/* Color contrast enforcement */
.page-promotions__dark-bg {
    background-color: var(--black-color, #0d0d0d); /* Assuming shared.css defines --black-color as dark */
    color: #ffffff;
}

.page-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

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

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

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

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

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

/* General Section Styling */
.page-promotions__section {
    padding: 80px 0;
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit from section's background color */
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: inherit; /* Inherit from section's background color */
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    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;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%;
}

.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: #26A9E0;
    border: 2px solid #26A9E0;
}

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

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

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

/* Promo Grid */
.page-promotions__promo-grid,
.page-promotions__category-grid,
.page-promotions__advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions__promo-card,
.page-promotions__category-card,
.page-promotions__advantage-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible card on dark bg */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #ffffff; /* Default card text color */
}

.page-promotions__light-bg .page-promotions__promo-card,
.page-promotions__light-bg .page-promotions__category-card,
.page-promotions__light-bg .page-promotions__advantage-card {
    background-color: #f8f9fa; /* Light background for cards on light sections */
    color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: inherit;
}

.page-promotions__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: inherit;
}

/* Terms & Conditions Section */
.page-promotions__terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions__terms-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-promotions__light-bg .page-promotions__terms-item {
    background-color: #f8f9fa;
    color: #333333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__terms-subtitle {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: inherit;
}

.page-promotions__terms-list {
    list-style: disc;
    margin-left: 20px;
    font-size: 1em;
    color: inherit;
}

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

.page-promotions__cta-bottom {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 50px;
}

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

.page-promotions__light-bg .page-promotions__faq-item {
    background-color: #f8f9fa;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly darker for question header */
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__light-bg .page-promotions__faq-question {
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

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

.page-promotions__light-bg .page-promotions__faq-question:hover {
    background-color: #e2e6ea;
}

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: inherit;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 20px;
}

/* For details/summary, hide default marker */
.page-promotions__faq-item summary {
    list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Why Choose Us Section */
.page-promotions__advantage-card {
    text-align: center;
    padding: 30px;
}

/* Final CTA Section */
.page-promotions__cta-final {
    padding: 100px 0;
}

.page-promotions__cta-final-content {
    text-align: center;
}

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

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

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

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

@media (max-width: 768px) {
    /* Mobile image responsive optimization */
    .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__promo-card,
    .page-promotions__category-card,
    .page-promotions__advantage-card,
    .page-promotions__terms-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsive optimization (if any) */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !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: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    /* Fixed header offset for mobile hero/video section */
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Button responsive optimization */
    .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;
    }
    .page-promotions__hero-cta,
    .page-promotions__cta-bottom,
    .page-promotions__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 1em;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__terms-subtitle {
        font-size: 1.5em;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
    }
    .page-promotions__faq-answer p {
        font-size: 0.95em;
    }
    .page-promotions__promo-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__section {
        padding: 50px 0;
    }
    .page-promotions__hero-section {
        min-height: 450px;
    }
}