/* style/terms-conditions.css */

/* Base Styles & Typography */
.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

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

.page-terms-conditions__section-title--light {
    color: #ffffff;
}

.page-terms-conditions__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-terms-conditions__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for dark background */
}

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

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

.page-terms-conditions__text-link {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

.page-terms-conditions__text-link:hover {
    color: #004d2b;
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    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: 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: 900px;
    padding: 0 20px;
}

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

.page-terms-conditions__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

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

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

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
    margin-left: 15px;
}

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

.page-terms-conditions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

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

.page-terms-conditions__image--inline {
    margin: 20px auto;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 60px 20px;
    background-color: #0a0a0a; /* Dark background for FAQ */
    color: #ffffff;
}

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

.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

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

.page-terms-conditions__faq-title {
    margin: 0;
    color: #ffffff;
}

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

.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-out, padding 0.3s ease-out;
    font-size: 1.1em;
    color: #f0f0f0;
}

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

/* Color Contrast & Theming */
.page-terms-conditions__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-terms-conditions__light-bg {
    background-color: #1a1a1a; /* A slightly lighter dark for content areas */
    color: #f0f0f0;
}

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

@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-terms-conditions__hero-section {
        height: 500px;
    }
    .page-terms-conditions__hero-title {
        font-size: 2.2em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.3em;
    }
    .page-terms-conditions__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-terms-conditions__btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
    .page-terms-conditions__button-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Images responsive */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-terms-conditions__container,
    .page-terms-conditions__hero-content,
    .page-terms-conditions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-terms-conditions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-terms-conditions__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-terms-conditions__faq-answer {
        padding: 0 15px;
        font-size: 1em;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 10px 15px 15px 15px;
    }
    .page-terms-conditions__list {
        margin-left: 20px;
    }
    .page-terms-conditions__list-item {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__hero-description {
        font-size: 0.9em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.5em;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.2em;
    }
}