* {
    margin: 0;
    padding: 0;
}

/* Career Advice Start */
.career-advice-hero {
    background-image: url('/images/client/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 50vh;
    padding: 60px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.career-advice-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(80, 149, 125, 0.85),
            rgba(48, 82, 86, 0.85));
    z-index: 1;
}

.career-advice-hero>* {
    position: relative;
    z-index: 2;
}

.career-advice-search {
    padding-left: 50px !important;
    background-color: #FEFFF6;
    box-shadow: none !important;
    outline: none !important;
    border: 1px solid #ccc;
    /* restore full border */
    border-radius: 8px;
    /* optional */
}

.career-advice-search:focus {
    box-shadow: none !important;
    border-color: #999;
    /* subtle focus border */
}

.career-advice-hero .heading {
    font-size: 3rem;
    font-weight: 700;
}

.career-advice-hero .sub-heading {
    font-size: 1.75rem;
    font-weight: 400;
}


@media (max-width: 767.98px) {
    .career-advice-hero .heading {
        font-size: 1.625rem;
        font-weight: 700;
    }

    .career-advice-hero .sub-heading {
        font-size: 1rem;
        font-weight: 400;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .career-advice-hero .heading {
        font-size: 2.2rem;
        font-weight: 700;
    }

    .career-advice-hero .sub-heading {
        font-size: 1.2rem;
        font-weight: 400;
    }
}

/* Career Advice End*/


.career-advice-section {
    margin-top: 4rem;
}


.custom-card {
    border: 1px solid #BECCC7;
    border-radius: 18px;
    display: flex;
    padding: 15px;
    width: 100%;
    flex-direction: column;
}

.custom-card p {
    flex-grow: 1;
}

.custom-card form {
    margin-top: 0;
}

.card-wrapper {
    display: flex;
}

.round-border {
    border: 1px solid #BECCC7;
    padding: 3px 12px;
    border-radius: 12px;
    max-width: 80%;
    background-color: #D4E7E0;
    flex-wrap: nowrap !important;
    overflow: hidden;
    width: fit-content;
}

.round-border span {
    /* 1. Ensure the span behaves like a block/flex item to apply ellipsis */
    display: block;
    /* 2. Hide anything that doesn't fit horizontally */
    overflow: hidden;
    /* 3. Force the content onto a single line */
    white-space: nowrap;
    /* 4. Display the ellipsis (...) at the end of the line */
    text-overflow: ellipsis;
    /* 5. Allow the text to take up all available space within the container */
    flex-grow: 1;
    /* 6. Ensure it doesn't shrink when text is short */
    min-width: 0;
}



.read-more-btn {
    background: #76C598;
    color: #FFFFFF;
    border: none;
    padding: 8px 30px;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    margin-top: auto;
}



/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.pagination .page-item .page-link {
    color: #509493;
    border: 1px solid #509493;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
    background-color: #509493;
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: #509493;
    color: white;
    border-color: #509493;
}

.pagination .page-item.disabled .page-link {
    color: #bbb;
    border-color: #ddd;
    background-color: #f8f8f8;
}

/* card hover */
.card {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/*  Text Box remove border  */
.career-advice-search:focus {
    box-shadow: none !important;
    border-color: #ccc !important;
    background-color: #FEFFF6;
}

.career-advice-search {
    background-color: #FEFFF6;
}

.career-advice-font {
    font-size: 1rem;
    font-weight: 500;
}

.card-img-top {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.ca-details .heading {
    font-size: 2rem;
    font-weight: 700;
}

.ca-details .sub-heading {
    font-size: 1.35rem;
    font-weight: 400;
}

@media (max-width: 767.98px) {
    .ca-details .heading {
        font-size: 1.125rem;
        font-weight: 700;
    }

    .ca-details .sub-heading {
        font-size: 1rem;
        font-weight: 400;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .ca-details .heading {
        font-size: 1.8rem;
        font-weight: 700;
    }

    .ca-details .sub-heading {
        font-size: 1.1rem;
        font-weight: 400;
    }
}

/* Mobile */

@media (max-width : 567px) {
    .career-advice-search::placeholder {
        font-size: 0.975rem;
    }

    .search-icon {
        left: 35px;
        top: 53%;
        transform: translateY(-50%);
        position: absolute;
        width: 18px;
    }

    .career-advice-search {
        font-size: 0.9rem;
        height: 40px;
        padding-left: 35px;
    }

    /* card */
    .custom-card {
        padding: 0;
    }

    .card-content {
        padding: 11px;
    }

    .hero-content {
        padding-top: 4rem;
    }
}

/* ipad pro */
@media (min-width:1024px) and (max-width:1124px) {
    .details-section .text-description {
        font-size: 1.5rem;
    }

    .career-advice-details-section .container,
    .career-advice-section .container {
        max-width: 1024px !important;
    }
}

/* rich text inside image responsive  */
.text-description img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.text-description iframe,
.text-description video {
    max-width: 100%;
}

.text-description img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-description a {
    color: #50957D;
}

.tags-text {
    display: block;
    line-height: 1.5;
    max-width: calc(100% - 30px);
    white-space: normal;
    word-break: break-word;
    text-align: left;
}


.tag-item {
    white-space: normal;
    /* allow wrapping on mobile */
    word-break: break-word;
    /* safety for long words */
}


.tags-text,
.tags-text span {
    text-align: left;
    text-justify: auto;
}


/* Optional small fix */
.tag-icon {
    margin-top: 3px;
    flex-shrink: 0;
}