/* style/terms-conditions.css */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* 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%;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-terms-conditions__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

.page-terms-conditions__content-area {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for main content readability */
    color: #333333; /* Dark text for light background */
}

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

.page-terms-conditions h2:first-of-type {
    margin-top: 0;
}

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

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

.page-terms-conditions__list li {
    margin-bottom: 10px;
}

.page-terms-conditions__image-wrapper {
    text-align: center;
    margin: 40px 0;
}

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

.page-terms-conditions__faq-list {
    margin-top: 40px;
}

.page-terms-conditions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.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;
    color: #017439; /* Brand color for FAQ questions */
    border-bottom: 1px solid #e0e0e0;
}

.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[open] .page-terms-conditions__faq-toggle {
    transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
    padding: 15px 25px;
    background-color: #ffffff;
    color: #333333;
    font-size: 0.95em;
    border-top: 1px solid #e0e0e0; /* Added border */
}

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

/* Details element specific styling for native toggle */
.page-terms-conditions__faq-item summary {
    list-style: none;
}

.page-terms-conditions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-terms-conditions__video-section {
    padding: 80px 0;
    text-align: center;
    background-color: #0a0a0a; /* Dark background for video section */
    color: #ffffff;
}

.page-terms-conditions__video-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px; /* Max width for video container */
    margin: 0 auto 40px auto;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-terms-conditions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
    background-color: #C30808; /* Custom color for primary button (Register/Login) */
    color: #FFFF00; /* Custom font color for primary button */
    border: 2px solid #C30808;
}

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

.page-terms-conditions__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 2.2em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
}

@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: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-terms-conditions__main-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__hero-description,
    .page-terms-conditions__video-description {
        font-size: 1em;
    }
    .page-terms-conditions__content-area,
    .page-terms-conditions__video-section {
        padding: 40px 0;
    }
    .page-terms-conditions__section-title {
        font-size: 1.5em;
    }
    .page-terms-conditions__image,
    .page-terms-conditions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-terms-conditions__image-wrapper,
    .page-terms-conditions__video-wrapper,
    .page-terms-conditions__cta-buttons,
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-terms-conditions__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-terms-conditions__faq-answer {
        padding: 12px 20px;
    }
    .page-terms-conditions__video-section {
      padding-top: var(--header-offset, 120px) !important; /* Video section must respect header offset */
    }
}