/* 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: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 80px 20px 40px; /* Adjust padding-top based on header offset */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff; /* White text for brand primary background */
    overflow: hidden;
}

.page-terms-conditions__hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
}

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

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

.page-terms-conditions__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */\    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

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

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

.page-terms-conditions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%); /* Allowed for decorative effect, not color change */
}

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

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #017439; /* Brand primary color for titles */
    margin-bottom: 25px;
    margin-top: 40px;
    text-align: left;
    border-bottom: 2px solid #017439;
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

.page-terms-conditions__text-block {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.7;
    color: #f0f0f0;
}

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

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

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

.page-terms-conditions__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #017439; /* Brand primary color for text */
    border: 2px solid #017439; /* Brand primary color for border */
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
}

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

/* Links within content */
.page-terms-conditions__link {
    color: #017439;
    text-decoration: underline;
}

.page-terms-conditions__link:hover {
    color: #005f2c;
}

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

.page-terms-conditions__faq-item {
    background-color: #2a2a2a; /* Darker background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Brand primary color for question background */
    color: #ffffff; /* White text for brand primary background */
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

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

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

.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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #2a2a2a; /* Darker background for answers */
    color: #f0f0f0; /* Light text for dark background */
}

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

.page-terms-conditions__faq-answer p {
    margin-bottom: 0;
    color: #f0f0f0;
}

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

@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-terms-conditions__hero-section {
        padding: 60px 15px 30px;
        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__btn-primary,
    .page-terms-conditions__btn-secondary {
        padding: 10px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-terms-conditions__hero-content .page-terms-conditions__btn-primary {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    .page-terms-conditions__content-area {
        padding: 40px 0;
    }
    .page-terms-conditions__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-terms-conditions__section-title {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.2em;
    }
    .page-terms-conditions__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-terms-conditions__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-terms-conditions__faq-title {
        font-size: 1em;
    }
    .page-terms-conditions__faq-answer {
        padding: 0 20px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px 20px 20px;
    }
    .page-terms-conditions__list {
        padding-left: 20px;
    }
    .page-terms-conditions__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}