.page-terms-conditions {
    color: #333333;
    background-color: var(--background-color, #FFFFFF);
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-terms-conditions__hero-section {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px; /* Minimum height for hero */
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
    filter: none; /* Ensure no filter changes image color */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-terms-conditions__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-terms-conditions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-terms-conditions__main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-terms-conditions__section {
    background-color: #FFFFFF;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__section-title {
    color: #26A9E0;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    font-weight: bold;
}

.page-terms-conditions__section-subtitle {
    color: #000000;
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    color: #333333;
}

.page-terms-conditions ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #333333;
}

.page-terms-conditions ol {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #333333;
}

.page-terms-conditions li {
    margin-bottom: 8px;
    color: #333333;
}

.page-terms-conditions__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    filter: none; /* Ensure no filter changes image color */
}

.page-terms-conditions__link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-terms-conditions__link:hover {
    text-decoration: underline;
}

.page-terms-conditions__cta-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    background-color: #EA7C07;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.page-terms-conditions__cta-button:hover {
    background-color: #d46d06;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 40px 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.page-terms-conditions__faq-title {
    text-align: center;
    color: #26A9E0;
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
}

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

.page-terms-conditions__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-terms-conditions__faq-question {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    background-color: #e5e5e5;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important;
    padding: 15px 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-terms-conditions__hero-section {
        padding: 60px 15px;
        min-height: 300px;
    }

    .page-terms-conditions__hero-title {
        font-size: 2em;
    }

    .page-terms-conditions__hero-description {
        font-size: 1em;
    }

    .page-terms-conditions__main-content {
        margin: 20px auto;
        padding: 0 15px;
    }

    .page-terms-conditions__section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }

    .page-terms-conditions__section-subtitle {
        font-size: 1.3em;
    }

    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container,
    .page-terms-conditions__faq-section,
    .page-terms-conditions__faq-list,
    .page-terms-conditions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-terms-conditions__cta-button {
        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-terms-conditions__cta-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-terms-conditions__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .page-terms-conditions__faq-question,
    .page-terms-conditions__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}