/* style/terms-conditions.css */

/* Base styles for the page content, considering dark body background */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the overall page if not overridden */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-bottom: 60px; /* Space above footer */
}

/* Ensure main content area has light background for readability */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff; /* Light background for main text content */
    color: #333333; /* Dark text for readability on light background */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__hero-section {
    position: relative;
    padding: 100px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Use primary color for hero background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

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

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

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

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

.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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-terms-conditions__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
    border: 2px solid #C30808;
}

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

.page-terms-conditions__btn-secondary {
    background-color: #C30808; /* Login color */
    color: #FFFF00; /* Login font color */
    border: 2px solid #C30808;
}

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

.page-terms-conditions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.2; /* Subtle background image */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none !important; /* Explicitly disable any filter to comply with rules */
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #017439; /* Primary color for main titles */
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #017439; /* Primary color for sub titles */
}

.page-terms-conditions__paragraph {
    font-size: 1em;
    margin-bottom: 15px;
    color: #333333; /* Dark text on light background */
}

.page-terms-conditions__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #333333; /* Dark text on light background */
}

.page-terms-conditions__list-item {
    margin-bottom: 8px;
    color: #333333; /* Dark text on light background */
}

.page-terms-conditions__image-text-block {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-terms-conditions__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-terms-conditions__content-image {
    width: 40%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    filter: none !important; /* Explicitly disable any filter to comply with rules */
}

.page-terms-conditions__text-content {
    flex: 1;
}

/* Video Section */
.page-terms-conditions__video-section {
    background-color: #0a0a0a; /* Dark background to match body */
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
}

.page-terms-conditions__section-title--center,
.page-terms-conditions__paragraph--center {
    text-align: center;
    color: #ffffff;
}

.page-terms-conditions__section-title--center {
    border-bottom: none; /* Remove border for centered title */
    color: #ffffff; /* White title on dark background */
}

.page-terms-conditions__video-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-terms-conditions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    display: block;
    cursor: pointer; /* Indicate clickable */
}

.page-terms-conditions__cta-buttons--video {
    margin-top: 30px;
}

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

.page-terms-conditions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Dark text on light background */
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #017439; /* Primary color for question background */
    color: #ffffff; /* White text for question */
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

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

.page-terms-conditions__faq-title {
    margin: 0;
    font-size: 1.1em;
    color: #ffffff; /* White text for question title */
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff; /* White text for toggle icon */
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333; /* Dark text on light background */
}

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

.page-terms-conditions__faq-answer .page-terms-conditions__paragraph {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 2em;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.4em;
    }
    .page-terms-conditions__image-text-block {
        flex-direction: column;
        align-items: center;
    }
    .page-terms-conditions__image-text-block--reverse {
        flex-direction: column; /* Keep consistent on smaller screens */
    }
    .page-terms-conditions__content-image {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 80px 15px 40px;
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
    }
    .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: 10px;
        width: 100%;
        padding: 0 15px;
    }
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .page-terms-conditions__content-area {
        padding: 20px 15px;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.2em;
    }
    .page-terms-conditions__paragraph,
    .page-terms-conditions__list-item {
        font-size: 0.95em;
    }
    .page-terms-conditions__content-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure image containers are responsive */
    .page-terms-conditions__image-text-block,
    .page-terms-conditions__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile responsive for video */
    .page-terms-conditions__video-section {
        padding: 30px 15px;
    }
    .page-terms-conditions__video-container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-terms-conditions__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-terms-conditions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-terms-conditions__faq-question,
    .page-terms-conditions__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Global image styles for content area */
.page-terms-conditions img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Ensure no filter properties are used to change image colors */
.page-terms-conditions img {
    filter: none !important; /* Explicitly disable any filter */
}

/* Ensure content area images do not display smaller than 200px */
.page-terms-conditions__content-image {
    min-width: 200px;
    min-height: 200px;
}

@media (max-width: 768px) {
    .page-terms-conditions__content-image {
        min-width: unset !important; /* Allow smaller display on mobile if needed, but max-width: 100% will handle it */
        min-height: unset !important;
    }
}