/* style/terms-conditions.css */
.page-terms-conditions {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #FFFFFF; /* Default background for content area */
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    text-align: center;
    color: #FFFFFF;
    padding: 0;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image slightly for text readability, not changing color */
}

.page-terms-conditions__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    width: 90%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
    border-radius: 8px;
}

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

.page-terms-conditions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #F0F0F0;
}

.page-terms-conditions__hero-button {
    display: inline-block;
    background-color: #FCBC45; /* Login color for CTA */
    color: #000000; /* Dark text for bright button */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__hero-button:hover {
    background-color: #e0a93c;
}

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

.page-terms-conditions__section {
    margin-bottom: 30px;
    background-color: #F8F8F8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__section-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
    border-bottom: 2px solid #FCBC45;
    padding-bottom: 10px;
}

.page-terms-conditions__paragraph {
    font-size: 1em;
    color: #333333;
    margin-bottom: 15px;
}

.page-terms-conditions__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum display size */
    min-height: 200px; /* Enforce minimum display size */
    object-fit: cover;
}

.page-terms-conditions__cta-section {
    text-align: center;
    background-color: #000000; /* Main color for CTA background */
    color: #FFFFFF;
    padding: 50px 20px;
    border-radius: 8px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.page-terms-conditions__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
    filter: brightness(0.8); /* Darken image for text readability */
}

.page-terms-conditions__cta-title,
.page-terms-conditions__cta-description,
.page-terms-conditions__cta-button {
    position: relative;
    z-index: 1;
}

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

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

.page-terms-conditions__cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login color for CTA */
    color: #000000; /* Dark text for bright button */
    padding: 18px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-terms-conditions__cta-button:hover {
    background-color: #e0a93c;
    transform: translateY(-2px);
}

/* Responsive Design */
@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.5em;
    }

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

    .page-terms-conditions__image {
        max-width: 100%;
        height: auto;
        min-width: unset; /* Allow flexibility but ensure content images are still large */
        min-height: unset;
    }

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

    .page-terms-conditions__hero-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-title {
        font-size: 1.6em;
    }

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

    .page-terms-conditions__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

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

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

/* Ensure content area images are not smaller than 200px where selected */
.page-terms-conditions__content-area img {
    min-width: 200px;
    min-height: 200px;
}

/* Override for mobile to prevent overflow, while ensuring content images are still substantial */
@media (max-width: 768px) {
    .page-terms-conditions__content-area img {
        max-width: 100%;
        height: auto;
        width: auto; /* Reset explicit width if set */
        min-width: 200px; /* Maintain minimum width for content images */
        min-height: 200px; /* Maintain minimum height for content images */
    }
    /* Specific override for hero image to ensure it scales down correctly without overflow */
    .page-terms-conditions__hero-image {
        width: 100%;
        height: auto;
    }
}