/* style/promotions-latest-offers.css */

/* Base styles for the page content */
.page-promotions-latest-offers {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f9fa; /* Light background for the content area */
}

/* Fixed header offset */
.page-promotions-latest-offers__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* Hero Section */
.page-promotions-latest-offers__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 60px 20px;
    overflow: hidden;
    background-color: #26A9E0; /* Brand color as hero background */
}

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

.page-promotions-latest-offers__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
}

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

.page-promotions-latest-offers__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-promotions-latest-offers__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* CTA Buttons */
.page-promotions-latest-offers__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-promotions-latest-offers__cta-buttons--center {
    margin-top: 30px;
}

.page-promotions-latest-offers__btn-primary,
.page-promotions-latest-offers__btn-secondary {
    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;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

.page-promotions-latest-offers__btn-primary:hover {
    background-color: #d16e06;
    border-color: #d16e06;
}

.page-promotions-latest-offers__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand color for text */
    border: 2px solid #26A9E0;
}

.page-promotions-latest-offers__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1a7bb5;
    border-color: #1a7bb5;
}

.page-promotions-latest-offers__btn-primary--small,
.page-promotions-latest-offers__btn-secondary--small {
    padding: 8px 18px;
    font-size: 0.9em;
}

/* Video Section */
.page-promotions-latest-offers__video-section {
    background-color: #26A9E0; /* Dark background for contrast */
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.page-promotions-latest-offers__video-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000; /* Fallback for video background */
}

.page-promotions-latest-offers__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%; /* Ensure video does not overflow */
    display: block;
    cursor: pointer;
}

/* Content Area */
.page-promotions-latest-offers__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* Explicitly white background */
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-radius: 10px;
}

.page-promotions-latest-offers__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-promotions-latest-offers__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand color for main titles */
    margin-bottom: 25px;
    text-align: center;
}

.page-promotions-latest-offers__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Lighter text for dark section */
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-latest-offers__text-block {
    font-size: 1.05em;
    margin-bottom: 30px;
    line-height: 1.7;
    color: #333333;
}

.page-promotions-latest-offers__subsection-title {
    font-size: 1.8em;
    color: #26A9E0; /* Brand color for subtitles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* Card Grid */
.page-promotions-latest-offers__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-promotions-latest-offers__card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #333333;
}

.page-promotions-latest-offers__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.page-promotions-latest-offers__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-promotions-latest-offers__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    padding: 15px 20px 10px;
}

.page-promotions-latest-offers__card-text {
    padding: 0 20px 15px;
    flex-grow: 1; /* Make text block grow to fill space */
}

.page-promotions-latest-offers__card .page-promotions-latest-offers__btn-primary,
.page-promotions-latest-offers__card .page-promotions-latest-offers__btn-secondary {
    margin: 0 20px 20px;
    align-self: flex-start; /* Align buttons to start */
}


/* List styles */
.page-promotions-latest-offers__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 30px;
    color: #333333;
}

.page-promotions-latest-offers__list-item {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* FAQ Section */
.page-promotions-latest-offers__faq-list {
    margin-top: 30px;
}

.page-promotions-latest-offers__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-promotions-latest-offers__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.15em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #f0f8ff; /* Light blue background for question */
    border-bottom: 1px solid #e0e0e0;
}

.page-promotions-latest-offers__faq-item[open] .page-promotions-latest-offers__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

.page-promotions-latest-offers__faq-question::-webkit-details-marker {
    display: none;
}
.page-promotions-latest-offers__faq-question::marker {
    display: none;
}

.page-promotions-latest-offers__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promotions-latest-offers__faq-item[open] .page-promotions-latest-offers__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X */
}

.page-promotions-latest-offers__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    background-color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions-latest-offers__hero-title {
        font-size: 2.5em;
    }
    .page-promotions-latest-offers__section-title {
        font-size: 2em;
    }
    .page-promotions-latest-offers__subsection-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-promotions-latest-offers {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions-latest-offers__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

    .page-promotions-latest-offers__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-promotions-latest-offers__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-promotions-latest-offers__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    
    .page-promotions-latest-offers__btn-primary,
    .page-promotions-latest-offers__btn-secondary,
    .page-promotions-latest-offers a[class*="button"],
    .page-promotions-latest-offers 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;
        text-align: center;
    }

    /* Video responsiveness */
    .page-promotions-latest-offers__video-section {
        padding: 40px 15px;
    }
    .page-promotions-latest-offers__video-wrapper {
        margin: 20px auto;
    }
    .page-promotions-latest-offers video,
    .page-promotions-latest-offers__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions-latest-offers__video-section,
    .page-promotions-latest-offers__video-container,
    .page-promotions-latest-offers__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Content area adjustments */
    .page-promotions-latest-offers__content-area {
        padding: 40px 15px;
    }

    .page-promotions-latest-offers__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

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

    .page-promotions-latest-offers__subsection-title {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-promotions-latest-offers__card-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }

    .page-promotions-latest-offers__card-image {
        height: 200px; /* Adjust card image height for mobile */
    }
    
    /* Image responsiveness for all images within content area */
    .page-promotions-latest-offers img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions-latest-offers__section,
    .page-promotions-latest-offers__card,
    .page-promotions-latest-offers__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions-latest-offers__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }

    .page-promotions-latest-offers__faq-answer {
        padding: 12px 15px;
    }
}

/* Ensure contrast for dark background elements */
.page-promotions-latest-offers__dark-section {
    background-color: #26A9E0; /* Brand color */
    color: #ffffff;
}
.page-promotions-latest-offers__light-bg {
    background-color: #ffffff;
    color: #333333;
}