.page-terms-conditions {
    color: #333333; /* Dark text for light 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: var(--header-offset, 120px) 20px 60px; /* Ensure header offset */
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF;
    overflow: hidden;
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-terms-conditions__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Slightly dim the image to make text pop */
}

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

.page-terms-conditions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
    line-height: 1.2;
}

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

.page-terms-conditions__cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color */
    color: #000000;
    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__cta-button:hover {
    background-color: #e0a53b;
}

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

.page-terms-conditions__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-terms-conditions__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333;
}

.page-terms-conditions__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-terms-conditions__card {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-terms-conditions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__card-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-terms-conditions__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-terms-conditions__card-link {
    display: inline-block;
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push link to the bottom */
    transition: color 0.3s ease;
}

.page-terms-conditions__card-link:hover {
    color: #e0a53b;
    text-decoration: underline;
}

.page-terms-conditions__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 10px;
    display: block; /* Ensure image behaves as block for max-width */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

.page-terms-conditions__additional-info {
    margin-top: 60px;
    text-align: center;
}

.page-terms-conditions__cta-button--bottom {
    margin-top: 40px;
}

.page-terms-conditions__related-links {
    background-color: #F8F8F8;
    padding: 60px 20px;
    text-align: center;
}

.page-terms-conditions__links-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-terms-conditions__links-list li a {
    color: #000000;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-terms-conditions__links-list li a:hover {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
}

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

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding-top: var(--header-offset, 120px);
        padding-bottom: 40px;
    }
    .page-terms-conditions__hero-title {
        font-size: 2.2em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__paragraph {
        font-size: 1em;
    }
    .page-terms-conditions__card-grid {
        grid-template-columns: 1fr;
    }
    .page-terms-conditions__card-title {
        font-size: 1.5em;
    }
    .page-terms-conditions__card-text {
        font-size: 0.95em;
    }
    .page-terms-conditions__content-area, .page-terms-conditions__related-links {
        padding: 40px 15px;
    }
    .page-terms-conditions__links-list {
        flex-direction: column;
        align-items: center;
    }
    /* Ensure content images do not overflow */
    .page-terms-conditions img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Maintain minimum size */
        min-height: 200px; /* Maintain minimum size */
    }
    .page-terms-conditions {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
}