/* style/promotions.css */

/* Base styles for the page content, ensuring text is visible on dark body background */
.page-promotions {
    color: #ffffff; /* Light text for dark body background #0a0a0a */
    background-color: #0a0a0a; /* Ensure consistency with body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header offset for the first main content section if shared doesn't provide body padding */
.page-promotions__hero-section {
    position: relative;
    padding: 100px 20px 60px; /* Default padding */
    padding-top: var(--header-offset, 120px);
    text-align: center;
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent content overflow */
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    color: #26A9E0; /* Brand color for title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

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

.page-promotions__cta-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 {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

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

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

/* Section styles */
.page-promotions__section {
    padding: 60px 20px;
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-promotions__section--light {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add padding to container to prevent edge-to-edge content */
    box-sizing: border-box;
    width: 100%;
}

.page-promotions__heading {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-promotions__sub-heading {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-promotions__text-block--center {
    text-align: center;
}

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

.page-promotions__card {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    display: block; /* Ensure no extra space */
}

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

.page-promotions__card-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Video Section */
.page-promotions__video-section {
    padding: 60px 20px;
    background-color: #0a0a0a;
    text-align: center;
}

.page-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
}

.page-promotions__video {
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer; /* Indicates clickability */
    display: block; /* Ensure no extra space */
}

/* Image styles - ensuring no filter and min dimensions */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure no extra space below images */
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    filter: none; /* Absolutely no CSS filter */
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: #0a0a0a;
    padding: 60px 20px;
    color: #ffffff;
}

.page-promotions__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #26A9E0; /* Brand color for question background */
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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: rgba(255, 255, 255, 0.03);
    color: #f0f0f0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__heading {
        font-size: 2em;
    }
    .page-promotions__sub-heading {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 80px 15px 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure container takes full width */
        padding: 0 15px; /* Add padding to container */
        box-sizing: border-box;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__container {
        padding: 0 15px; /* Ensure container padding on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions__heading {
        font-size: 1.8em;
    }
    .page-promotions__sub-heading {
        font-size: 1.3em;
    }
    .page-promotions__card {
        padding: 20px;
    }
    .page-promotions__card-image {
        height: 180px;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    /* Mobile video responsiveness */
    .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;
    }
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__heading {
        font-size: 1.5em;
    }
    .page-promotions__sub-heading {
        font-size: 1.2em;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
}