/* style/terms-conditions.css */

/* Base styles for the terms and conditions page */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Explicitly set for clarity, though body might set it */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff; /* White text for brand color background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden; /* Ensure no overflow */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin-bottom: 30px;
    z-index: 1;
}

.page-terms-conditions__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-terms-conditions__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box; /* Include padding in width */
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button does not overflow */
    box-sizing: border-box; /* Include padding in width */
}

.page-terms-conditions__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #d46c00;
    border-color: #d46c00;
}

.page-terms-conditions__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Main brand color */
    border: 2px solid #ffffff;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

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

.page-terms-conditions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Subtle overlay */
    filter: none; /* No filter to change color */
}

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-terms-conditions__container {
    max-width: 900px;
    margin: 0 auto;
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Main brand color for titles */
    margin-bottom: 30px;
    text-align: center;
    padding-top: 20px;
}

.page-terms-conditions__sub-section-title {
    font-size: 1.8em;
    color: #26A9E0; /* Main brand color for sub-titles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

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

.page-terms-conditions__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #333333;
}

.page-terms-conditions__list-item {
    margin-bottom: 8px;
    color: #333333;
}

.page-terms-conditions__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none; /* No filter to change color */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
}

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

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

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

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

.page-terms-conditions__faq-text {
    flex-grow: 1;
    margin-right: 10px;
}

.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); /* Plus sign to X */
}

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

/* Ensure FAQ answer is visible when active */
.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 20px; /* Adjust padding when open */
}

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

    .page-terms-conditions__hero-section {
        padding: 40px 15px;
        text-align: left;
        align-items: flex-start;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

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

    .page-terms-conditions__intro-text {
        font-size: 1em;
    }

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

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px; /* Adjust padding for mobile */
    }

    .page-terms-conditions__content-area {
        padding: 30px 15px;
    }

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

    .page-terms-conditions__sub-section-title {
        font-size: 1.5em;
    }

    /* Mobile image responsiveness */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container,
    .page-terms-conditions__faq-item {
        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 */
    }

    /* Adjust FAQ padding for mobile */
    .page-terms-conditions__faq-question {
      padding: 12px 15px;
    }
    .page-terms-conditions__faq-answer {
      padding: 0 15px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
      padding: 15px 15px;
    }
}

/* Dark background specific styles */
.page-terms-conditions__dark-section {
    background: #26A9E0;
    color: #ffffff;
}

/* Light background specific styles */
.page-terms-conditions__light-bg {
    background: #ffffff;
    color: #333333;
}

/* Ensure contrast for specific elements if they get custom backgrounds */
.page-terms-conditions h1,
.page-terms-conditions h2,
.page-terms-conditions h3,
.page-terms-conditions h4,
.page-terms-conditions h5,
.page-terms-conditions h6 {
    color: inherit; /* Inherit from parent section to ensure contrast */
}

/* Ensure no filter is applied to images */
.page-terms-conditions img {
    filter: none;
}