/* 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; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set for clarity, aligns with body default */
}

/* Fixed header offset for desktop and mobile */
.page-terms-conditions__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 60px;
    background-color: #26A9E0; /* Brand main color for hero */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    overflow: hidden; /* For hero image */
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Subtle background image */
}

.page-terms-conditions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}

.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.page-terms-conditions__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

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

.page-terms-conditions__btn-primary,
.page-terms-conditions__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;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width calculation */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

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

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

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

.page-terms-conditions__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-terms-conditions__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* Explicitly white background for content */
    color: #333333; /* Dark text for readability on white background */
}

.page-terms-conditions__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #26A9E0; /* Brand main color for titles */
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.page-terms-conditions__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand main color for sub-titles */
}

.page-terms-conditions__paragraph {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-terms-conditions__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-terms-conditions__list-item {
    margin-bottom: 10px;
}

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

.page-terms-conditions a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: underline;
}

.page-terms-conditions a:hover {
    color: #1a7ea6;
    text-decoration: none;
}

.page-terms-conditions__inline-btn {
    margin-top: 20px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__contact-info {
    margin-top: 30px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #26A9E0;
}

.page-terms-conditions__contact-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* FAQ Section */
.page-terms-conditions__faq-list {
    margin-top: 40px;
}

.page-terms-conditions__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.page-terms-conditions__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just to '-' */
}

.page-terms-conditions__faq-answer {
    padding: 20px 25px;
    font-size: 1.05em;
    color: #555555;
    border-top: 1px solid #f0f0f0;
    line-height: 1.7;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding-bottom: 40px;
    }

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

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

    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        width: 100% !important; /* Ensure full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.9em;
    }

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

    .page-terms-conditions__section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.5em;
        margin-top: 30px;
    }

    .page-terms-conditions__paragraph,
    .page-terms-conditions__list,
    .page-terms-conditions__list-item,
    .page-terms-conditions__contact-item,
    .page-terms-conditions__faq-item summary,
    .page-terms-conditions__faq-answer {
        font-size: 1em;
    }

    /* Mobile image responsiveness */
    .page-terms-conditions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure hero section padding-top is correct on mobile */
    .page-terms-conditions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* FAQ item adjustments */
    .page-terms-conditions__faq-item summary {
        padding: 15px 20px;
    }
}

/* Ensure content area images are not too small */
.page-terms-conditions__content-area img {
    min-width: 200px;
    min-height: 200px;
}