/* style/terms-conditions.css */

/* General Page Styling */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Body background is white */
}

.page-terms-conditions__hero-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #017439, #005f2e); /* Brand colors for hero background */
    color: #ffffff; /* White text for dark background */
    min-height: 300px;
}

.page-terms-conditions__hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.page-terms-conditions__main-title {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Specific font color for title */
}

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

.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-terms-conditions__section-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-terms-conditions__sub-heading {
    font-size: 1.5em;
    color: #017439; /* Primary brand color for sub-headings */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    font-size: 1em;
}

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

/* CTA Button Styling */
.page-terms-conditions__cta-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%; /* Ensure button adapts to mobile */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-terms-conditions__btn-primary {
    background-color: #C30808; /* Specific color for register/login type buttons */
    color: #FFFF00; /* Specific font color for register/login type buttons */
    box-shadow: 0 4px 10px rgba(195, 8, 8, 0.3);
}

.page-terms-conditions__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(195, 8, 8, 0.4);
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 60px 20px;
    background-color: #f9f9f9; /* Light background for FAQ */
    color: #333333; /* Dark text */
}

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

/* FAQ item styles */
.page-terms-conditions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-terms-conditions__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-terms-conditions__faq-question:active {
    background: #eeeeee;
}

.page-terms-conditions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333;
}

.page-terms-conditions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    color: #017439; /* Brand color when active */
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    color: #555555;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 15px !important;
    opacity: 1;
    background: #fdfdfd;
    border-radius: 0 0 5px 5px;
    border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 2.5em;
    }
    .page-terms-conditions__description {
        font-size: 1.1em;
    }
    .page-terms-conditions__section-heading {
        font-size: 1.8em;
    }
    .page-terms-conditions__sub-heading {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-banner {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-terms-conditions__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-terms-conditions__content-area {
        padding: 20px 15px;
    }

    .page-terms-conditions__section-heading {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__sub-heading {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-terms-conditions p {
        font-size: 0.95em;
    }

    /* Mobile Image Responsiveness */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-terms-conditions__section-wrapper,
    .page-terms-conditions__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile Button Responsiveness */
    .page-terms-conditions__cta-button,
    .page-terms-conditions__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-terms-conditions__cta-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile */
    .page-terms-conditions__faq-section {
        padding: 40px 15px;
    }
    .page-terms-conditions__faq-question {
        padding: 15px;
    }
    .page-terms-conditions__faq-question h3 {
        font-size: 1em;
    }
    .page-terms-conditions__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px !important;
    }
}