.page-terms-conditions {
    color: #ffffff;
    background-color: #1a1a2e;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-terms-conditions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-terms-conditions__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 10px;
    cursor: pointer;
}

.page-terms-conditions__cta-button--primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-terms-conditions__cta-button--primary:hover {
    background-color: #e02e2e;
    transform: translateY(-3px);
}

.page-terms-conditions__cta-button--secondary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-terms-conditions__cta-button--secondary:hover {
    background-color: #02944b;
    transform: translateY(-3px);
}

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

.page-terms-conditions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-terms-conditions__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-terms-conditions__section-wrapper {
    padding: 20px 0;
}

.page-terms-conditions__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: inherit;
}

.page-terms-conditions__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit;
}

.page-terms-conditions__paragraph {
    font-size: 1.05em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: inherit;
}

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

.page-terms-conditions__ordered-list {
    list-style: decimal inside;
    margin-bottom: 20px;
    padding-left: 20px;
    color: inherit;
}

.page-terms-conditions__list-item {
    margin-bottom: 10px;
    color: inherit;
}

.page-terms-conditions__link {
    color: #017439;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions__dark-section .page-terms-conditions__link {
    color: #FFFF00; /* Yellow for links on dark green background */
}

.page-terms-conditions__link:hover {
    color: #02944b;
}

.page-terms-conditions__dark-section .page-terms-conditions__link:hover {
    color: #FFD700;
}

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

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

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

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

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-terms-conditions__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-terms-conditions__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-terms-conditions__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 15px;
    }
    .page-terms-conditions__hero-content .page-terms-conditions__cta-button {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-terms-conditions__content-area {
        padding: 40px 15px;
    }

    .page-terms-conditions__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__paragraph,
    .page-terms-conditions__list-item {
        font-size: 0.95em;
    }

    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-terms-conditions__section-wrapper,
    .page-terms-conditions__content-area {
        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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-section {
        height: 350px;
    }

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

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

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