/* style/terms-conditions.css */

/* Base styles for the page content, ensuring dark text on light body background */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Explicitly set for content area if needed, though body is #FFFFFF */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 8px;
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above image */
}

.page-terms-conditions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #017439; /* Brand primary color for title */
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.page-terms-conditions__main-title .text-highlight {
    color: #C30808; /* Highlight color for brand name */
}

.page-terms-conditions__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #333333;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure button adapts to width */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom color for register text */
    border: 2px solid #C30808;
}

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

.page-terms-conditions__btn-secondary {
    background-color: #017439; /* Custom color for login */
    color: #FFFF00; /* Custom color for login text */
    border: 2px solid #017439;
}

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

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff; /* Light background for content */
    color: #333333; /* Dark text for light background */
}

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

.page-terms-conditions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #017439;
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.page-terms-conditions__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
}

.page-terms-conditions__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    padding-left: 0;
}

.page-terms-conditions__list li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.7;
}

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

/* FAQ Section */
.page-terms-conditions__faq-section {
    background-color: #017439; /* Dark background for FAQ */
    color: #ffffff; /* White text for dark background */
    padding: 60px 20px;
    text-align: center;
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
    color: #ffffff; /* White title on dark background */
    margin-bottom: 40px;
}

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

.page-terms-conditions__faq-item {
    background-color: #005a2d; /* Slightly lighter dark background for items */
    margin-bottom: 15px;
    border-radius: 8px;
    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;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    background-color: #005a2d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

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

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

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-terms-conditions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: #f0f0f0;
    line-height: 1.6;
}

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


/* Responsive styles */
@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

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

    .page-terms-conditions__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

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

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-terms-conditions__content-area,
    .page-terms-conditions__faq-section {
        padding: 30px 15px;
    }

    .page-terms-conditions__container {
        padding-left: 0;
        padding-right: 0;
    }

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

    .page-terms-conditions__sub-title {
        font-size: clamp(1.2rem, 4.5vw, 1.5rem);
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-terms-conditions p,
    .page-terms-conditions__list li,
    .page-terms-conditions__faq-question,
    .page-terms-conditions__faq-answer {
        font-size: 0.95rem;
    }

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

    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video specific overrides (if any, though none used here) */
    .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__video-section {
      padding-top: 10px !important;
    }
}

/* Ensure no filter is used on images */
.page-terms-conditions img {
    filter: none;
}