/* style/terms-conditions.css */

/* Base styles for the page content */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--background, #FFFFFF); /* Inherit from shared, defaults to white */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.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;
    text-align: center;
    padding: 80px 0;
    overflow: hidden;
    background-color: #017439; /* Brand green background for hero */
    color: #FFFFFF; /* White text for dark background */
}

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

.page-terms-conditions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Yellow for title for emphasis */
}

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

.page-terms-conditions__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register/Login red */
    color: #FFFF00; /* Register/Login font yellow */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-terms-conditions__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

/* Content Sections */
.page-terms-conditions__content-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* White background for main content */
    color: #333333; /* Dark text */
}

.page-terms-conditions__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand green for main titles */
    margin-bottom: 30px;
    text-align: center;
    padding-top: 40px;
}

.page-terms-conditions__sub-title {
    font-size: 1.8em;
    color: #017439; /* Brand green for subtitles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

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

.page-terms-conditions__image-inline {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-terms-conditions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #017439; /* Brand green for question background */
    color: #FFFFFF; /* White text for question */
    font-weight: bold;
    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.2em;
    color: #FFFFFF; /* Ensure white text for title */
}

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

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

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

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

/* 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.5em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding is correct */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-terms-conditions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-terms-conditions__hero-section {
        padding: 60px 0;
    }

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

    .page-terms-conditions__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-terms-conditions__btn-primary {
        padding: 12px 25px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-terms-conditions__content-section {
        padding: 40px 0;
    }

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

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

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

    .page-terms-conditions__image-inline {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* FAQ specific for mobile */
    .page-terms-conditions__faq-question {
        padding: 15px;
    }
    .page-terms-conditions__faq-title {
        font-size: 1em;
    }
    .page-terms-conditions__faq-answer {
        padding: 0 15px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px !important;
    }
}