/* style/terms-conditions.css */

/* Base Styles for the page-terms-conditions scope */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.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: -1;
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

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

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

/* Content Area */
.page-terms-conditions__content-area {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for content sections */
    color: #ffffff; /* Light text */
}

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

.page-terms-conditions__section-title--light {
    color: #ffffff; /* White title for dark background sections */
}

.page-terms-conditions__text-block {
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle light background for text blocks */
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff; /* Light text */
}

.page-terms-conditions__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #e0e0e0;
}

.page-terms-conditions__text-block a {
    color: #26A9E0; /* Primary brand color for links */
    text-decoration: underline;
}

.page-terms-conditions__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    filter: none; /* Ensure no CSS filter changes image color */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Call to Action Buttons */
.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-terms-conditions__btn-primary:hover {
    background: #1e87c0; /* Slightly darker hover */
    border-color: #1e87c0;
}

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

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

.page-terms-conditions__cta-section {
    padding: 80px 20px;
    text-align: center;
    background: #26A9E0; /* Primary brand color background */
    color: #ffffff;
    margin-top: 40px;
    border-radius: 12px;
}

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

.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 60px 0;
    text-align: center;
    background-color: #1a1a1a; /* Consistent content background */
    color: #ffffff;
}

.page-terms-conditions__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto 50px auto;
    border-radius: 8px;
    filter: none; /* Ensure no CSS filter changes image color */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

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

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

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

.page-terms-conditions__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1em;
}

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

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

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

.page-terms-conditions__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1.1em;
    }
    .page-terms-conditions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-terms-conditions__hero-title {
        font-size: 2em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__text-block {
        padding: 20px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-terms-conditions__text-block p {
        font-size: 0.95em;
    }
    .page-terms-conditions__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 15px;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-terms-conditions__cta-section {
        padding: 60px 15px;
    }
    .page-terms-conditions__faq-list {
        padding: 0 15px;
    }
    .page-terms-conditions__faq-question {
        padding: 15px 20px;
    }
    .page-terms-conditions__faq-question h3 {
        font-size: 1em;
    }
    .page-terms-conditions__faq-answer {
        padding: 0 20px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    /* 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__text-block,
    .page-terms-conditions__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-terms-conditions__content-area {
        padding: 30px 0 !important;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.6em;
    }
    .page-terms-conditions__cta-button {
        font-size: 1em;
    }
}