﻿:root {
    --job-item-xanh-nhat: #4caf506a;
    --job-item-xanh: #4CAF50;
    --job-item-tim: #602ACB;
    --job-item-tim-nhat: #b797f8;
    --job-item-span-bg: #e1fae2af;
}


#dropdownMenu {
    scrollbar-width: thin;
}

.law-page {
    width: 100%;
}

    .law-page .Title-first_logo {
        position: absolute;
        top: 17px;
        left: 25%;
        font-size: 30px;
        transform: translateX(-50%);
        color: white;
    }

    .law-page .Des-second_logo {
        position: absolute;
        top: 45px;
        left: 36%;
        font-size: 16px;
        transform: translateX(-50%);
        color: white;
    }

    .law-page .bottom-third_logo {
        position: absolute;
        top: 75px;
        gap: 15px;
        display: flex;
        left: 21%;
        font-size: 15px;
        transform: translateX(-50%);
    }

.bottom-third_logo .bottom-third_logo_spanfirst {
    padding: 2px 6px 2px 6px;
    border-radius: 30px;
    color: black;
    background: white;
}

.bottom-third_logo .bottom-third_logo_span_second {
    padding: 2px 6px 2px 6px;
    border-radius: 30px;
    color: black;
    background: white;
}

.bottom-third_logo .bottom-third_logo_span_third {
    padding: 2px 6px 2px 6px;
    border-radius: 30px;
    color: black;
    background: white;
}

.logo-law img {
    width: 100%;
}

.ui.dropdown .scrolling.menu, .ui.scrolling.dropdown .menu {
    max-height: 16.571429rem;
}


.header-body-law-page {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}


#ung-tuyen-job-law {
    background: #6435c9;
    color: #fff;
    /*    //height: 35px;*/
    border-radius: 5px;
    padding: 8px;
    font-weight: 400;
}

    #ung-tuyen-job-law:hover {
        background: #794AFF;
        color: white;
    }


#pagination {
    text-align: center;
}

.save-button {
    background: white !important;
    font-weight: normal !important;
    outline: 1px solid #6435c9 !important;
    outline-offset: -1px;
    color: #6435c9 !important;
}

    .save-button:hover {
        outline: 1px solid #b193f2 !important;
        background: #b193f2 !important;
        color: #FFFFFF !important;
    }

.save-button {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

    .save-button .tooltiptext {
        visibility: hidden;
        width: 50px;
        background-color: black;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        position: absolute;
        z-index: 1;
        bottom: 150%;
        left: 50%;
        margin-left: -27px;
    }

        .save-button .tooltiptext::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: black transparent transparent transparent;
        }

    .save-button:hover .tooltiptext {
        visibility: visible;
    }

#form-search-law {
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 10px;
    align-items: center;
}

#filter-city-dropdown {
    width: 100%;
    height: 40px;
}

#default-text-city-law {
    display: flex;
    justify-content: space-between;
}

/*BODY*/

/*        /////////////// BANNER NGÀNH LUẬT MOBILE ///////////////////*/
.banner {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 10px;
}

    .banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
        z-index: 1;
    }

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

    .shape:nth-child(1) {
        width: 80px;
        height: 80px;
        top: 20px;
        left: 10%;
        animation-delay: 0s;
    }

    .shape:nth-child(2) {
        width: 60px;
        height: 60px;
        top: 40px;
        right: 15%;
        animation-delay: 2s;
    }

    .shape:nth-child(3) {
        width: 100px;
        height: 100px;
        bottom: 10px;
        left: 20%;
        animation-delay: 4s;
    }

    .shape:nth-child(4) {
        width: 40px;
        height: 40px;
        bottom: 50px;
        right: 10%;
        animation-delay: 1s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.main-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #ffffff, #f8fafc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-top: 10px;
}

    .subtitle::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    }

.decorative-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f, #4ecdc4, #45b7d1);
    background-size: 300% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Mobile optimization */
@media (max-width: 480px) {
    .banner {
        height: 100px;
        padding: 15px;
    }

    .main-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .shape:nth-child(1) {
        width: 60px;
        height: 60px;
    }

    .shape:nth-child(2) {
        width: 45px;
        height: 45px;
    }

    .shape:nth-child(3) {
        width: 80px;
        height: 80px;
    }

    .shape:nth-child(4) {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 360px) {
    .main-title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .banner {
        height: 100px;
    }
}

/* Smooth entrance animation */
.banner {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(min-width: 768px) {
    .banner {
        display: none;
    }
}

@media(max-width: 767px) {
    .banner {
        display: block;
    }

    .law-page .logo-law {
        display: none;
    }
}

/*    ///////////////END*/

.content-job-law-group .clamp-two-lines-law {
    font-size: 16px;
}

#card-content {
    border-radius: 10px;
    outline: 0.5px solid rgba(183, 151, 248, 0.3);
    margin: 10px 0px 10px 0px;
    padding: 10px;
}

    #card-content:hover {
        outline: 1px solid var(--job-item-tim);
        box-shadow: 0 1px 7px var(--job-item-tim-nhat);
    }

.header-search-job-load-law {
    display: flex;
}

.header-search-job-load-law-logo {
    width: 70px;
    /*    background: #ECECEC;*/
    height: 70px;
    display: flex;
    border-radius: 5px;
    justify-content: center; /* Căn giữa theo chiều ngang */
    /*    align-items: center;*/
    flex-shrink: 0;
    object-fit: fill;
    /*    border: 1px solid #e9eaec;*/
}

    .header-search-job-load-law-logo img {
        width: 64px;
        height: 64px;
        object-fit: contain;
    }

.content-job-law-group {
    padding-left: 10px;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 5px;
}

    .content-job-law-group .clamp-two-lines-law a {
        color: #000;
        font-weight: 500;
        font-size: 14px;
    }

    .content-job-law-group .company-name-job a {
        color: #454545;
        font-size: 13px;
        font-weight: 400;
        text-transform: uppercase;
    }


    .content-job-law-group .company-name-job {
        margin: 0;
        padding: 0;
        /*white-space: nowrap;*/ /* Không cho phép xuống dòng */
        /*overflow: hidden;*/ /* Ẩn phần nội dung bị tràn */
        /*text-overflow: ellipsis;*/ /* Hiển thị dấu "..." */
        /*width: 270px;*/
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.tooltiptext-job-law {
    visibility: hidden;
    width: 30%;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 5%;
    transform: translateX(-50%);
    padding: 5px;
}

    .tooltiptext-job-law::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: black transparent transparent transparent;
    }

.job-title-wrapper:hover .tooltiptext-job-law {
    visibility: visible;
}

.tooltiptext-job-law-address {
    visibility: hidden;
    width: 100%;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px;
}

    .tooltiptext-job-law-address::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: black transparent transparent transparent;
    }

.job-title-wrapper:hover .tooltiptext-job-law-address {
    visibility: visible;
}


.middle-content-left-list-job-law {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

    .middle-content-left-list-job-law .middle-content-job {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 13px;
    }

        .middle-content-left-list-job-law .middle-content-job .content__left {
            padding: 2px 8px;
            color: #000000;
            background: #80cbc41c;
            border-radius: 20px;
            border: 0.5px solid rgba(183, 151, 248, 0.3);
        }


/*
    .middle-content-left-list-job-law .bottom-content-job {
        font-size: 13px;
    }*/
.bottom-content-job {
    display: flex;
    justify-content: space-between;
}

#prev-page {
    color: #7158E2;
    border: 1px solid #7158E2;
    height: 30px;
    background: white;
    width: 30px;
    border-radius: 50%;
    cursor: pointer;
}

    #prev-page:hover {
        background: #7158E2;
        color: white;
    }

#next-page {
    color: #7158E2;
    border: 1px solid #7158E2;
    height: 30px;
    background: white;
    width: 30px;
    border-radius: 50%;
    cursor: pointer;
}

    #next-page:hover {
        background: #7158E2;
        color: white;
    }


    #prev-page:disabled,
    #next-page:disabled {
        background: #ccc;
        color: #888;
        border: 1px solid #ccc;
        cursor: not-allowed;
        opacity: 0.6;
        pointer-events: none;
    }

        #prev-page:disabled:hover,
        #next-page:disabled:hover {
            background: #ccc;
            color: #888;
        }

#search-law {
    /*    background: #794AFF;*/
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    #search-law::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    #search-law:hover::before {
        left: 100%;
    }

    #search-law:hover {
        /*        background: #6d3ef2;*/
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    }

#search-law-cao {
    background: #794AFF;
    color: white;
}

.result-job-count-law-left {
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #cccccc82;
    color: #794AFF;
    font-weight: 600;
    font-size: 16px;
}
/*Right*/
/* tooltip right company law*/
.tooltiptext-company-law {
    visibility: hidden;
    width: 100%;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 120%;
    padding: 5px;
    left: 50%;
    transform: translateX(-50%);
}

    .tooltiptext-company-law::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: black transparent transparent transparent;
    }

.company-name-right-law-wrapper:hover .tooltiptext-company-law {
    visibility: visible;
}
/*end tooltip*/


.content-right-column-law {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid #5E636833;
    border-radius: 5px;
    padding: 10px;
    gap: 8px;
}

.image-logo-company {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #C2DBFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .image-logo-company .image-logo-company-img {
        width: 45px;
        height: 45px;
        object-fit: fill;
    }

.company-name-right-law-wrapper {
    position: relative;
    display: inline-block;
    /*    max-width: 250px;*/
}

.company-name-right-law .company-name-law-right-a {
    color: #333333;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
}

.job-count-company-law {
    font-weight: 400;
    font-size: 14px;
    color: #333333;
    display: flex;
}

.right-column-law-header {
    color: white;
    border: 1px solid #DFDFDF;
    font-weight: 500;
    font-size: 20px;
    margin-top: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background: linear-gradient(103.05deg, rgb(74 86 255 / 40%) -7.56%, rgb(194 137 255 / 40%) 106.5%), linear-gradient(0deg, rgb(139 63 205), rgb(116 70 157));
}
/* Media queries cho màn hình trung bình */
@media screen and (max-width: 1199px) {
    .header-body-law-page {
        display: grid;
        grid-template-columns: 1fr auto; /* 2 cột trên màn hình trung bình */
    }

    .ui.dropdown .scrolling.menu, .ui.scrolling.dropdown .menu {
        max-height: 9.571429rem;
    }

    #form-search-law {
        /*        grid-column: 1;*/
        grid-column: 1 / -1;
    }

    #search-law {
        /*        grid-column: 2;*/
        display: none;
    }

    #filter-btn-law {
        grid-column: 2;
    }

    #filter-city-dropdown {
        grid-column: 1;
        /*        grid-column: 1 / -1; */
    }

    #menu__city_law {
        max-height: 15rem !important;
    }

    .content-job-law-group .clamp-two-lines-law {
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    .law-page .Title-first_logo {
        position: absolute;
        top: -1px;
        left: 26%;
        font-size: 10px;
        transform: translateX(-50%);
        color: white;
    }

    .law-page .Des-second_logo {
        position: absolute;
        top: 16px;
        display: flex;
        width: 100%;
        left: 61%;
        font-size: 9px;
        transform: translateX(-50%);
        /* gap: 5px; */
        color: white;
    }

    .law-page .bottom-third_logo {
        position: absolute;
        top: 32px;
        gap: 15px;
        width: 100%;
        display: flex;
        left: 61%;
        font-size: 15px;
        transform: translateX(-50%);
    }

    .bottom-third_logo .bottom-third_logo_spanfirst {
        border-radius: 30px;
        padding: 0px 1px 0px 1px;
        font-size: 9px;
        height: 18px;
        color: black;
        background: white;
    }

    .bottom-third_logo .bottom-third_logo_span_second {
        border-radius: 30px;
        padding: 0px 1px 0px 1px;
        font-size: 9px;
        height: 18px;
        color: black;
        background: white;
    }

    .bottom-third_logo .bottom-third_logo_span_third {
        border-radius: 30px;
        padding: 0px 1px 0px 1px;
        font-size: 9px;
        height: 18px;
        color: black;
        background: white;
    }
}

@media(max-width: 400px) {
    .law-page .Des-second_logo {
        left: 52% !important;
    }

    .law-page .Title-first_logo {
        left: 24% !important;
    }

    .law-page .bottom-third_logo {
        left: 52% !important;
    }
}

/* Media queries cho màn hình nhỏ */
@media screen and (max-width: 480px) {

    #span-city {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 95px;
    }

    #second-div {
        display: none;
    }


    #last-child-div {
        display: none;
    }

    #last-child-div-city {
        display: none;
    }
}

@media(min-width: 1200px) {
    #form-search-law {
        width: 90%;
    }

    #header-body-law-page {
        display: flex;
        gap: 10px;
    }

    #filter-city-dropdown {
        width: 30%;
    }

    #search-law {
        width: 12%;
    }

    .content-job-law-group .clamp-two-lines-law {
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media(max-width: 767px) {

    .content-job-law-group .clamp-two-lines-law {
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo-law {
        height: 100px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

        .logo-law img {
            height: 100%;
            object-fit: cover; /* hoặc cover nếu muốn ảnh luôn full */
        }

    .header-search-job-load-law-logo {
        width: 70px;
        height: 70px;
    }

        .header-search-job-load-law-logo img {
            width: 50px;
            height: 50px;
        }

    #last-child-div {
        display: none;
    }

    #last-child-div-city {
        display: none;
    }


    .law-page .Title-first_logo {
        position: absolute;
        top: 3px;
        left: 26%;
        font-size: 15px;
        transform: translateX(-50%);
        color: white;
    }

    .law-page .Des-second_logo {
        position: absolute;
        top: 20px;
        display: flex;
        width: 100%;
        left: 57%;
        font-size: 12px;
        transform: translateX(-50%);
        /* gap: 5px; */
        color: white;
    }

    .law-page .bottom-third_logo {
        position: absolute;
        top: 65px;
        gap: 15px;
        width: 100%;
        display: flex;
        left: 57%;
        font-size: 15px;
        transform: translateX(-50%);
    }

    .bottom-third_logo .bottom-third_logo_spanfirst {
        border-radius: 30px;
        padding: 0px 5px;
        font-size: 11px;
        height: 18px;
        color: black;
        background: white;
    }

    .bottom-third_logo .bottom-third_logo_span_second {
        border-radius: 30px;
        padding: 0px 5px;
        font-size: 11px;
        height: 18px;
        color: black;
        background: white;
    }

    .bottom-third_logo .bottom-third_logo_span_third {
        border-radius: 30px;
        padding: 0px 1px 0px 1px;
        font-size: 9px;
        height: 18px;
        color: black;
        background: white;
    }
}

@media(max-width: 1199px) {
    #card-content {
        box-shadow: 0 4px 6px 0 rgba(0, 0, 0, .1);
    }
}

@media(min-width: 768px) and (max-width: 1199px) {
    .law-page .Title-first_logo {
        position: absolute;
        top: 7px;
        left: 26%;
        font-size: 20px;
        transform: translateX(-50%);
        color: white;
    }

    .law-page .Des-second_logo {
        position: absolute;
        top: 34px;
        display: flex;
        width: 100%;
        left: 62%;
        font-size: 14px;
        transform: translateX(-50%);
        /* gap: 5px; */
        color: white;
    }

    .law-page .bottom-third_logo {
        position: absolute;
        top: 64px;
        gap: 15px;
        width: 100%;
        display: flex;
        left: 62%;
        font-size: 15px;
        transform: translateX(-50%);
    }

    .bottom-third_logo .bottom-third_logo_spanfirst {
        border-radius: 30px;
        padding: 0px 6px 0px 6px;
        font-size: 12px;
        height: 18px;
        color: black;
        background: white;
    }

    .bottom-third_logo .bottom-third_logo_span_second {
        border-radius: 30px;
        padding: 0px 6px 0px 6px;
        font-size: 12px;
        height: 18px;
        color: black;
        background: white;
    }

    .bottom-third_logo .bottom-third_logo_span_third {
        border-radius: 30px;
        padding: 0px 6px 0px 6px;
        font-size: 12px;
        height: 18px;
        color: black;
        background: white;
    }
}
