/* style/terms-conditions.css */
/* body background color is #1a1a2e (dark), so text should be light */

.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    background-color: #1a1a2e; /* Ensure consistency with body background */
}

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

.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above text */
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Minimum height for hero */
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: #017439; /* Fallback background */
    overflow: hidden;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-height: 600px; /* Limit height to prevent excessive size on large screens */
}

.page-terms-conditions__hero-content {
    position: relative; /* Ensure content is above image but not overlaying it */
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-terms-conditions__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 900px;
}

.page-terms-conditions__description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    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__cta-button:hover {
    background-color: #a00606;
}

.page-terms-conditions__content-area {
    padding: 60px 0;
}

.page-terms-conditions__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-terms-conditions__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #FFFFFF; /* Ensure titles are light on dark sections, or brand color on light sections */
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.page-terms-conditions__content-area .page-terms-conditions__section-title {
    color: #017439; /* Brand primary color for titles on light background */
}

.page-terms-conditions__dark-section .page-terms-conditions__section-title {
    color: #FFFFFF; /* White for titles on dark background */
}

.page-terms-conditions__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #f0f0f0; /* Light grey for text on dark body background */
}

.page-terms-conditions__content-area p,
.page-terms-conditions__content-area li {
    color: #f0f0f0; /* Default text color for content area on dark body */
}

/* Specific adjustment for sections with brand color background */
.page-terms-conditions__dark-section p,
.page-terms-conditions__dark-section li {
    color: #ffffff; /* White text on brand color background */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 60px 0;
    background-color: #1a1a2e; /* Dark background from body for consistency */
    color: #ffffff;
}

.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent card background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    list-style: none; /* For details/summary */
}

.page-terms-conditions__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-terms-conditions__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for question area */
    transition: background-color 0.3s ease;
    color: #FFFFFF;
}

.page-terms-conditions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-terms-conditions__faq-qtext {
    flex-grow: 1;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #FFFF00; /* Yellow for toggle */
}

.page-terms-conditions__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #f0f0f0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__cta-section {
    text-align: center;
    padding: 60px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-terms-conditions__cta-section .page-terms-conditions__section-title {
    color: #FFFFFF;
}

.page-terms-conditions__cta-section .page-terms-conditions__text-block {
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #ffffff;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.page-terms-conditions__cta-button--register {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
}

.page-terms-conditions__cta-button--login {
    background-color: #FFFFFF; /* Login button background */
    color: #017439; /* Login button text color (brand primary) */
    border: 2px solid #017439;
}

.page-terms-conditions__cta-button--login:hover {
    background-color: #f0f0f0;
    color: #017439;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-terms-conditions__container {
        padding: 0 15px;
    }

    .page-terms-conditions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-terms-conditions__hero-content {
        padding: 20px 15px;
    }

    .page-terms-conditions__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-terms-conditions__description {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: 20px;
    }

    .page-terms-conditions__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 20px;
    }

    .page-terms-conditions__text-block {
        font-size: 0.95rem;
    }

    .page-terms-conditions__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-terms-conditions__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    /* Mobile specific image, video, button adaptations */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-terms-conditions__hero-image {
        max-height: 400px; /* Adjust hero image height for mobile */
    }

    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container,
    .page-terms-conditions__hero-section,
    .page-terms-conditions__content-area,
    .page-terms-conditions__faq-section,
    .page-terms-conditions__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-terms-conditions video,
    .page-terms-conditions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-terms-conditions__video-section,
    .page-terms-conditions__video-container,
    .page-terms-conditions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-terms-conditions__cta-button,
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary,
    .page-terms-conditions a[class*="button"],
    .page-terms-conditions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Ensure button text has space */
        padding-right: 15px; /* Ensure button text has space */
        margin-right: 0 !important; /* Remove horizontal margin for stacked buttons */
        margin-bottom: 15px; /* Add vertical margin between stacked buttons */
    }

    .page-terms-conditions__cta-section .page-terms-conditions__cta-button {
        display: block; /* Stack buttons vertically */
    }

    .page-terms-conditions__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }
}