.page-terms-conditions {
    background-color: #FFFFFF; /* Base background for the page content */
    color: #333333; /* Default text color */
    font-family: Arial, sans-serif; /* Example font */
}

.page-terms-conditions__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding for the first section */
    background-color: #017439; /* Primary color background for hero */
    color: #FFFFFF;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't spill */
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

.page-terms-conditions__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width for large screens */
    height: auto;
    object-fit: cover;
    display: block; /* Remove extra space below image */
    margin-bottom: 20px; /* Space between image and text content */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-terms-conditions__hero-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-terms-conditions__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFFFFF; /* White for title on dark background */
    margin-bottom: 15px;
    /* No fixed font-size, relying on responsive scaling and other properties */
}

.page-terms-conditions__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for description */
}

.page-terms-conditions__cta-button {
    display: inline-block;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-terms-conditions__cta-button:hover {
    background-color: #a00606; /* Darker red on hover */
}

.page-terms-conditions__content-section {
    padding: 40px 0;
    background-color: #FFFFFF;
}

.page-terms-conditions__container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-terms-conditions__section-title {
    font-size: 2em;
    color: #017439; /* Primary color for section titles */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-terms-conditions__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #333333;
}

.page-terms-conditions__list-item {
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 1em;
}

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

.page-terms-conditions__content-image {
    width: 100%;
    max-width: 800px; /* Max width for content images */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-terms-conditions__link-button {
    display: block; /* Make it block to stack vertically */
    background-color: #017439; /* Primary color for other links */
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__link-button:hover {
    background-color: #005a2e; /* Darker green on hover */
}

.page-terms-conditions__cta-block {
    background-color: #f5f5f5; /* Light grey background for CTA block */
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
}

.page-terms-conditions__cta-title {
    font-size: 2.2em;
    color: #017439;
    margin-bottom: 15px;
}

.page-terms-conditions__cta-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555555;
}

.page-terms-conditions__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
    margin-right: 15px;
}

.page-terms-conditions__cta-button--secondary {
    background-color: transparent;
    color: #C30808;
    border: 2px solid #C30808;
    padding: 12px 25px;
}

.page-terms-conditions__cta-button--secondary:hover {
    background-color: #C30808;
    color: #FFFF00;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding-top: 5px;
        padding-bottom: 20px;
    }

    .page-terms-conditions__main-title {
        font-size: 1.8em; /* Adjusted for mobile, still not fixed */
        line-height: 1.3;
    }

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

    .page-terms-conditions__section-title {
        font-size: 1.5em;
        margin-top: 30px;
    }

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

    .page-terms-conditions__cta-button--large,
    .page-terms-conditions__cta-button--secondary {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-terms-conditions__cta-button--secondary {
        margin-top: 0; /* Adjust spacing if it's the second button */
    }

    /* Mobile overflow prevention for images */
    .page-terms-conditions__hero-image,
    .page-terms-conditions__content-image {
        max-width: 100%;
        height: auto;
    }
}