.page-terms-conditions {
    background-color: var(--page-bg-color, #F4F7FB);
    color: var(--text-main-color, #1F2D3D);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Enforce image on top, text below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of the image wrapper */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Ensure image itself doesn't exceed this */
}

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

.page-terms-conditions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--custom-color-1776249996415, #000000);
}

.page-terms-conditions__intro-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-main-color, #1F2D3D);
}

.page-terms-conditions__last-updated p {
    font-size: 0.9rem;
    color: #666; /* Slightly lighter for metadata */
}

.page-terms-conditions__content-section {
    padding: 40px 20px;
}

.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--card-bg-color, #FFFFFF);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__heading {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--custom-color-1776249996415, #000000);
    margin-top: 35px;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--border-color, #D6E2FF);
}

.page-terms-conditions__sub-heading {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--text-main-color, #1F2D3D);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-terms-conditions__paragraph {
    margin-bottom: 15px;
    color: var(--text-main-color, #1F2D3D);
}

.page-terms-conditions__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: var(--text-main-color, #1F2D3D);
}

.page-terms-conditions__list-item {
    margin-bottom: 8px;
}

.page-terms-conditions__link {
    color: var(--primary-color, #2F6BFF);
    text-decoration: none;
    font-weight: 500;
}

.page-terms-conditions__link:hover {
    text-decoration: underline;
    color: var(--secondary-color, #6FA3FF);
}

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

    .page-terms-conditions__hero-image-wrapper {
        max-height: 400px;
    }

    .page-terms-conditions__hero-image {
        max-height: 400px;
    }

    .page-terms-conditions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-terms-conditions__intro-text {
        font-size: 1rem;
    }

    .page-terms-conditions__heading {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .page-terms-conditions__sub-heading {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .page-terms-conditions__content-section {
        padding: 20px 15px;
    }

    .page-terms-conditions__container {
        padding: 20px;
    }

    /* Mobile content images constraint */
    .page-terms-conditions img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure no content images are smaller than 200px in content area */
.page-terms-conditions__content-section img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    object-fit: cover;
    display: block; /* Remove extra space below images */
    margin: 20px auto; /* Center images within content */
    border-radius: 8px;
}

/* Define CSS variables for colors */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg-color: #FFFFFF;
    --page-bg-color: #F4F7FB;
    --text-main-color: #1F2D3D;
    --custom-color-1776249996415: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}