/* style/terms-conditions.css */

/* --- General Styles for Page Content --- */
.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared, fallback to white */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-terms-conditions__section-title {
    color: #26A9E0; /* Primary color for titles */
    font-size: 2.2em;
    margin-bottom: 25px;
    margin-top: 50px;
    text-align: center;
    font-weight: bold;
}

.page-terms-conditions__paragraph {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.7;
    text-align: justify;
}

/* --- Hero Section --- */
.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-terms-conditions__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-terms-conditions__hero-content {
    position: relative;
    z-index: 3;
    color: #FFFFFF;
    max-width: 800px;
    padding: 20px;
}

.page-terms-conditions__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-terms-conditions__description {
    font-size: 1.4em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* For responsive buttons */
    word-wrap: break-word; /* For responsive buttons */
}

.page-terms-conditions__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #FFFFFF;
}

/* --- Content Area --- */
.page-terms-conditions__content-area {
    padding: 60px 0;
    background-color: #FFFFFF; /* Explicitly set white background for content */
    color: #333333; /* Dark text for white background */
}

.page-terms-conditions__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- FAQ Section --- */
.page-terms-conditions__faq-section {
    background-color: #26A9E0; /* Dark background from primary color */
    color: #FFFFFF; /* White text for dark background */
    padding: 60px 0;
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
    color: #FFFFFF; /* White title for dark background */
    margin-bottom: 40px;
}

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

.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-terms-conditions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0; /* Slightly off-white for answer text */
}

.page-terms-conditions__faq-answer p {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.05em;
}

/* FAQ Active State */
.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' visually */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__description {
        font-size: 1.2em;
    }
    .page-terms-conditions__hero-section {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-terms-conditions__container {
        padding: 15px;
    }
    .page-terms-conditions__hero-section {
        height: 400px;
    }
    .page-terms-conditions__main-title {
        font-size: 2.2em;
    }
    .page-terms-conditions__description {
        font-size: 1.1em;
    }
    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container for buttons */
    }
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
    }
    
    /* Ensure content area images are responsive */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Ensure content containers are responsive and prevent overflow */
    .page-terms-conditions__content-area,
    .page-terms-conditions__faq-section,
    .page-terms-conditions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Adjust padding for sections in mobile to prevent overflow */
    .page-terms-conditions__content-area,
    .page-terms-conditions__faq-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-terms-conditions__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-terms-conditions__faq-answer {
        padding: 0 20px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-section {
        height: 350px;
    }
    .page-terms-conditions__main-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__description {
        font-size: 1em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.5em;
    }
}

/* --- Color Contrast Safeguards (as per instructions) --- */
/* If body is assumed light (default), text is dark */
.page-terms-conditions {
    color: #333333;
}

.page-terms-conditions__dark-bg {
    background: #26A9E0;
    color: #ffffff; /* Force white text */
}

.page-terms-conditions__light-bg {
    background: #ffffff;
    color: #333333;
}

/* Ensure buttons have high contrast */
.page-terms-conditions__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-terms-conditions__btn-secondary {
    background: transparent;
    color: #FFFFFF; /* Text white on hero overlay, or #26A9E0 on light background */
    border: 2px solid #FFFFFF; /* Border white on hero overlay, or #26A9E0 on light background */
}
/* Adjust secondary button for light background context if needed */
.page-terms-conditions__content-area .page-terms-conditions__btn-secondary {
    color: #26A9E0;
    border-color: #26A9E0;
}
.page-terms-conditions__content-area .page-terms-conditions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* FAQ item background and text */
.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent on primary blue background */
    color: #FFFFFF;
}
.page-terms-conditions__faq-question {
    color: #FFFFFF;
}
.page-terms-conditions__faq-answer {
    color: #f0f0f0;
}