/* style/terms-conditions.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-terms-conditions {
    color: #ffffff; /* Default light text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css (#000) */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background-color: #017439; /* Primary brand color for hero background */
    color: #ffffff;
    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 15px;
    box-sizing: border-box;
}

.page-terms-conditions__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Custom color for prominent title */
}

.page-terms-conditions__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-terms-conditions__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styles */
.page-terms-conditions__content-section {
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for content sections */
    color: #333333; /* Dark text for light background */
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #017439; /* Primary brand color for section titles */
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-terms-conditions__content-section p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
    color: #333333;
}

.page-terms-conditions__content-section h3 {
    font-size: 1.6em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-terms-conditions__content-section a {
    color: #017439;
    text-decoration: underline;
}

.page-terms-conditions__content-section a:hover {
    color: #005f2e;
    text-decoration: none;
}

/* Image with text block */
.page-terms-conditions__image-text-block {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
    flex-wrap: wrap;
}

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

.page-terms-conditions__image {
    flex: 1;
    min-width: 300px; /* Minimum size for content images */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    max-width: 100%; /* Ensure responsiveness */
    display: block;
}

.page-terms-conditions__text-content {
    flex: 2;
    min-width: 300px;
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-terms-conditions__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border-color: #C30808;
}

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

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

.page-terms-conditions__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

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

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

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

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

.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); /* Plus sign rotates to form an X or minus */
}

.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: #ffffff;
    color: #333333;
}

.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 p {
    margin: 0;
    padding: 0;
    color: #333333;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-terms-conditions__hero-title {
        font-size: 2.2em;
    }

    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.4em;
    }
}