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

/* Base styles for the page content */
.page-resources-latest-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg); /* Inherited from shared.css */
}

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

/* Hero Section */
.page-resources-latest-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    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-resources-latest-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

.page-resources-latest-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-resources-latest-promotions__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.page-resources-latest-promotions__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Section Titles */
.page-resources-latest-promotions__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

/* Text Blocks */
.page-resources-latest-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for dark background */
}

/* Buttons */
.page-resources-latest-promotions__btn-primary,
.page-resources-latest-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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

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

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

.page-resources-latest-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b4;
    border-color: #1e87b4;
}

/* Intro Section */
.page-resources-latest-promotions__intro-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}
.page-resources-latest-promotions__intro-section .page-resources-latest-promotions__section-title {
    color: #333333;
}
.page-resources-latest-promotions__intro-section .page-resources-latest-promotions__text-block {
    color: #333333;
}

/* Promotions Types Section */
.page-resources-latest-promotions__promotions-types {
    padding: 80px 0;
    background-color: var(--dark-bg); /* Dark background */
}

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

.page-resources-latest-promotions__promotion-card {
    background-color: #ffffff; /* Light background for card */
    color: #333333; /* Dark text for light background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.page-resources-latest-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-resources-latest-promotions__card-title {
    font-size: 1.5em;
    margin: 20px 20px 10px 20px;
    color: #26A9E0; /* Brand color for titles */
}

.page-resources-latest-promotions__card-text {
    font-size: 1em;
    margin: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-resources-latest-promotions__promotion-card .page-resources-latest-promotions__btn-secondary {
    align-self: flex-start;
    margin: 0 20px;
}

/* Terms and Conditions Section */
.page-resources-latest-promotions__terms-conditions {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333; /* Dark text */
}
.page-resources-latest-promotions__terms-conditions .page-resources-latest-promotions__section-title {
    color: #333333;
}
.page-resources-latest-promotions__terms-conditions .page-resources-latest-promotions__text-block {
    color: #333333;
}

.page-resources-latest-promotions__terms-list {
    margin-top: 40px;
}

.page-resources-latest-promotions__term-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-latest-promotions__term-heading {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-resources-latest-promotions__term-text {
    font-size: 1em;
    color: #555555;
}

/* Guide Section */
.page-resources-latest-promotions__guide-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff; /* White text */
}
.page-resources-latest-promotions__guide-section .page-resources-latest-promotions__section-title {
    color: #ffffff;
}
.page-resources-latest-promotions__guide-section .page-resources-latest-promotions__text-block {
    color: #f0f0f0;
}

.page-resources-latest-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-resources-latest-promotions__guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources-latest-promotions__guide-step-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-resources-latest-promotions__guide-step-text {
    font-size: 1em;
    color: #f0f0f0;
}
.page-resources-latest-promotions__guide-step-text a {
    color: #ffffff;
    text-decoration: underline;
}
.page-resources-latest-promotions__guide-step-text a:hover {
    color: #dddddd;
}

/* FAQ Section */
.page-resources-latest-promotions__faq-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}
.page-resources-latest-promotions__faq-section .page-resources-latest-promotions__section-title {
    color: #333333;
}

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

.page-resources-latest-promotions__faq-item {
    background-color: #f9f9f9;
    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: 20px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333333;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources-latest-promotions__faq-question:hover {
    background-color: #e6e6e6;
}

.page-resources-latest-promotions__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #26A9E0; /* Brand color for FAQ question titles */
}

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

.page-resources-latest-promotions__faq-item.active .page-resources-latest-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-latest-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #ffffff;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-resources-latest-promotions__faq-item.active .page-resources-latest-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px 25px 25px;
}

.page-resources-latest-promotions__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: #555555;
}

/* Conclusion Section */
.page-resources-latest-promotions__conclusion-section {
    padding: 80px 0;
    background-color: var(--dark-bg); /* Dark background */
    text-align: center;
}
.page-resources-latest-promotions__conclusion-section .page-resources-latest-promotions__section-title {
    color: #ffffff;
}
.page-resources-latest-promotions__conclusion-section .page-resources-latest-promotions__text-block {
    color: #f0f0f0;
}
.page-resources-latest-promotions__conclusion-section .page-resources-latest-promotions__text-block a {
    color: #26A9E0;
    text-decoration: underline;
}
.page-resources-latest-promotions__conclusion-section .page-resources-latest-promotions__text-block a:hover {
    color: #1e87b4;
}

/* Copyright Section */
.page-resources-latest-promotions__copyright-section {
    padding: 30px 0;
    text-align: center;
    background-color: #f0f0f0; /* Light background */
    color: #555555; /* Dark text */
    font-size: 0.9em;
}

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

@media (max-width: 768px) {
    .page-resources-latest-promotions__hero-section {
        height: 500px;
    }
    .page-resources-latest-promotions__hero-title {
        font-size: 2em;
    }
    .page-resources-latest-promotions__hero-description {
        font-size: 1em;
    }
    .page-resources-latest-promotions__section-title {
        font-size: 1.8em;
        padding-top: 40px;
    }
    .page-resources-latest-promotions__text-block {
        font-size: 1em;
    }
    .page-resources-latest-promotions__promotion-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-latest-promotions__intro-section,
    .page-resources-latest-promotions__promotions-types,
    .page-resources-latest-promotions__terms-conditions,
    .page-resources-latest-promotions__guide-section,
    .page-resources-latest-promotions__faq-section,
    .page-resources-latest-promotions__conclusion-section {
        padding: 60px 0;
    }
    .page-resources-latest-promotions__container {
        padding: 0 15px; /* Add padding for mobile content */
    }

    /* Mobile image adaptation */
    .page-resources-latest-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-latest-promotions__section,
    .page-resources-latest-promotions__card,
    .page-resources-latest-promotions__container,
    .page-resources-latest-promotions__promotion-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    /* Buttons responsive */
    .page-resources-latest-promotions__btn-primary,
    .page-resources-latest-promotions__btn-secondary,
    .page-resources-latest-promotions a[class*="button"],
    .page-resources-latest-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;
        text-align: center;
        margin-bottom: 10px; /* Space between stacked buttons */
    }
    .page-resources-latest-promotions__hero-content .page-resources-latest-promotions__btn-primary {
        margin: 0 auto;
        display: block;
    }
    .page-resources-latest-promotions__promotion-card .page-resources-latest-promotions__btn-secondary {
        align-self: center;
    }
    .page-resources-latest-promotions__cta-buttons,
    .page-resources-latest-promotions__button-group,
    .page-resources-latest-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-resources-latest-promotions__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
    }
}

@media (max-width: 480px) {
    .page-resources-latest-promotions__hero-section {
        height: 400px;
    }
    .page-resources-latest-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-resources-latest-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-resources-latest-promotions__section-title {
        font-size: 1.5em;
    }
    .page-resources-latest-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-resources-latest-promotions__faq-question h3 {
        font-size: 1em;
    }
    .page-resources-latest-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-resources-latest-promotions__faq-item.active .page-resources-latest-promotions__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}