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

/* Base Styles */
.page-resources-latest-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default white */
}

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

.page-resources-latest-promotions__section {
    padding: 60px 0;
}

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

.page-resources-latest-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-resources-latest-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #f0f8ff; /* Light blue background */
    overflow: hidden;
    flex-direction: column;
    text-align: center;
}

.page-resources-latest-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-resources-latest-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-resources-latest-promotions__hero-content {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay for text contrast */
    border-radius: 10px;
}

.page-resources-latest-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

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

/* Buttons */
.page-resources-latest-promotions__btn-primary,
.page-resources-latest-promotions__btn-secondary,
.page-resources-latest-promotions__btn-link {
    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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-resources-latest-promotions__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
    margin: 10px;
}

.page-resources-latest-promotions__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-resources-latest-promotions__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
    margin: 10px;
}

.page-resources-latest-promotions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-resources-latest-promotions__btn-link {
    background: none;
    color: #26A9E0;
    border: 2px solid transparent;
    padding: 5px 10px;
    margin: 5px 0;
}

.page-resources-latest-promotions__btn-link:hover {
    border-color: #26A9E0;
}

/* Overview Section */
.page-resources-latest-promotions__overview-section {
    background-color: #FFFFFF;
}

/* Types Section */
.page-resources-latest-promotions__types-section {
    background-color: #f9f9f9;
}

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

.page-resources-latest-promotions__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.page-resources-latest-promotions__card-image {
    width: 100%;
    max-width: 400px; /* Limit card image width */
    height: 300px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
}

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

.page-resources-latest-promotions__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* How to Claim Section */
.page-resources-latest-promotions__how-to-claim-section {
    background-color: #f0f8ff; /* Light blue background */
    text-align: center;
}

.page-resources-latest-promotions__step-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.page-resources-latest-promotions__step-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources-latest-promotions__step-icon {
    width: 60px;
    height: 60px;
    background-color: #26A9E0;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

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

/* Terms Section */
.page-resources-latest-promotions__terms-section {
    background-color: #FFFFFF;
}

.page-resources-latest-promotions__terms-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 30px;
    color: #555555;
}

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

.page-resources-latest-promotions__terms-list strong {
    color: #333333;
}

/* FAQ Section */
.page-resources-latest-promotions__faq-section {
    background-color: #f9f9f9;
}

.page-resources-latest-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-latest-promotions__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources-latest-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f0f8ff; /* Light background for question */
    border-bottom: 1px solid #e0e0e0;
}

.page-resources-latest-promotions__faq-item[open] .page-resources-latest-promotions__faq-question {
    border-bottom: 1px solid transparent; /* Remove border when open */
}

.page-resources-latest-promotions__faq-question::-webkit-details-marker {
    display: none;
}

.page-resources-latest-promotions__faq-question::marker {
    display: none;
}

.page-resources-latest-promotions__faq-qtext {
    flex-grow: 1;
    color: #26A9E0; /* Brand color for question text */
}

.page-resources-latest-promotions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-resources-latest-promotions__faq-item[open] .page-resources-latest-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-resources-latest-promotions__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #FFFFFF;
}

/* CTA Section */
.page-resources-latest-promotions__cta-section {
    background-color: #26A9E0; /* Brand primary color background */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-resources-latest-promotions__cta-section .page-resources-latest-promotions__container {
    position: relative;
    z-index: 1;
}

.page-resources-latest-promotions__cta-section .page-resources-latest-promotions__section-title {
    color: #FFFFFF;
    font-size: 2.8em;
}

.page-resources-latest-promotions__cta-section .page-resources-latest-promotions__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.2em;
}

.page-resources-latest-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container doesn't overflow */
    box-sizing: border-box; /* Include padding/border in width */
    overflow: hidden; /* Prevent overflow */
}

.page-resources-latest-promotions__cta-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 600px; /* Example size */
    height: auto;
    opacity: 0.2;
    z-index: 0;
    display: block; /* Ensure it behaves as a block element */
}

/* Responsive Design */
/* All images must have max-width: 100%; height: auto; */
.page-resources-latest-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* All video must have max-width: 100%; height: auto; */
.page-resources-latest-promotions video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .page-resources-latest-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-latest-promotions__container {
        padding: 0 15px !important; /* Ensure padding on mobile */
    }

    .page-resources-latest-promotions__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Fixed header offset for mobile */
    }

    .page-resources-latest-promotions__hero-title {
        font-size: 2.2em;
    }

    .page-resources-latest-promotions__hero-description {
        font-size: 1em;
    }

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

    .page-resources-latest-promotions__grid {
        grid-template-columns: 1fr; /* Single column for cards on mobile */
    }

    .page-resources-latest-promotions__card {
        padding: 20px;
    }

    .page-resources-latest-promotions__card-image {
        height: 250px; /* Adjust card image height for mobile */
    }

    .page-resources-latest-promotions__step-list {
        flex-direction: column; /* Stack steps vertically */
        align-items: center;
    }

    .page-resources-latest-promotions__step-item {
        max-width: 100%;
        width: 100%;
        padding: 25px;
    }

    .page-resources-latest-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-resources-latest-promotions__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-resources-latest-promotions__cta-section {
        padding: 60px 0;
    }

    .page-resources-latest-promotions__cta-section .page-resources-latest-promotions__section-title {
        font-size: 2em;
    }

    .page-resources-latest-promotions__cta-section .page-resources-latest-promotions__text-block {
        font-size: 1em;
        margin-bottom: 30px;
    }
}