.page-terms-conditions {
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background-color: var(--dark-bg-1); /* Assuming shared.css defines a dark background for body */
    color: #ffffff; /* Default text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #017439; /* Using primary brand color for hero background */
    color: #ffffff;
    overflow: hidden;
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 0;
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-terms-conditions__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Using custom font color for emphasis */
    line-height: 1.2;
}

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

.page-terms-conditions__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

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

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

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #FFFF00; /* Highlight titles with custom font color */
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
}

.page-terms-conditions__section-title--white {
    color: #ffffff;
}

.page-terms-conditions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for dark background */
}

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

.page-terms-conditions__light-bg {
    background-color: #FFFFFF; /* Custom background color */
    color: #333333; /* Dark text for light background */
    padding: 40px 20px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.page-terms-conditions__light-bg .page-terms-conditions__section-title {
    color: #017439; /* Primary color for titles on light background */
}

.page-terms-conditions__light-bg .page-terms-conditions__text-block {
    color: #333333; /* Dark text for light background */
}

.page-terms-conditions__light-bg .page-terms-conditions__cta-title {
    color: #017439;
}

.page-terms-conditions__light-bg .page-terms-conditions__cta-description {
    color: #333333;
}

/* CTA Section */
.page-terms-conditions__cta-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #017439; /* Primary color for CTA section */
    border-radius: 10px;
    margin-top: 50px;
    color: #ffffff;
}

.page-terms-conditions__cta-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom font color */
}

.page-terms-conditions__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-terms-conditions__btn-register {
    margin-right: 15px;
}

.page-terms-conditions__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #C30808; /* Login button text color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #C30808;
    cursor: pointer;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    background-color: #017439; /* Dark background for FAQ */
    padding: 50px 20px;
    margin-top: 50px;
    border-radius: 10px;
}

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

.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

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

.page-terms-conditions__faq-question-title {
    margin: 0;
    font-size: 1.15em;
    color: #FFFF00; /* Custom font color for FAQ questions */
}

.page-terms-conditions__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Custom font color */
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg);
}

.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: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
}

.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;
    font-size: 1em;
    color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-terms-conditions__hero-title {
        font-size: 2em;
    }

    .page-terms-conditions__hero-description {
        font-size: 1em;
    }

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

    .page-terms-conditions__text-block {
        font-size: 1em;
    }

    .page-terms-conditions__cta-title {
        font-size: 1.6em;
    }

    .page-terms-conditions__cta-description {
        font-size: 0.95em;
    }

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-terms-conditions__cta-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-terms-conditions__btn-register {
        margin-bottom: 15px;
    }

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

    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container {
        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__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-terms-conditions__faq-question {
        padding: 15px 20px;
    }
    .page-terms-conditions__faq-answer {
        padding: 0 20px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px 20px;
    }
}