﻿.pic-size {
    width: 100%;
    /* height: 590px; */
    object-fit: cover;
}

.img-new {
    position: absolute;
    top: -35px;
    left: 0;
    width: 50px;
    z-index: 2;
}

.img-icon {
    width: 32px;
}


.title-name {
    color: red;
    text-align: center;
    margin-bottom: 20px;
}

.carousel-container {
    max-width: 1250px;
    margin: auto;
    overflow: hidden;
    position: relative;
}

.carousel-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px;
    height: 260px;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
    /* ẩn scrollbar trên Chrome */
}

.card-item {
    flex: 0 0 calc((100% - 60px) / 3);
    /* height: 100%; */
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 30px;
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
    height: 210px;
    transition: transform 0.3s ease;
}
.card-item:hover{
    transform: scale(1.03);
}
.item-child {
    color: var(--green-color);
    width: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prev-btn,
.next-btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: none;
    color: var(--green-color);
    background: white;
    cursor: pointer;
    z-index: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--green-light-color);
    color: white;
}

.indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green-white-color);
    display: inline-block;
    cursor: pointer;
    transition: background 0.3s;
}

.indicators span.active {
    background: var(--green-color);
}


.apply-button {
    background: red;
    color: white;
    padding: 10px;
    font-size: 12px;
    transition: transform 0.4s ease;
    font-weight: bold;
}

.apply-button:hover {
    transform: scale(1.05);

}

/* job list */

/* .job-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
} */

/* .card-job {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 12px;
    padding: 10px;
} */


.item-child-job {
    border-left: 1px solid var(--green-color) !important;
    padding-left: 1rem;
    margin-left: 1rem;
}

.item-child-job img {
    width: 30px;
}

.item-child-job span {
    font-size: 14px;
    width: 180px;
}

/* news */

.news {
    text-decoration: none;
    color: var(--green-color);
    margin: 10px 0;
}

.news:hover {
    color: var(--green-light-color);
}

.carousel-wrapper-news {
    max-width: 1300px;
    margin: auto;
    overflow: hidden;
}

.carousel-news {
    display: flex;
    gap: 30px;
    padding: 10px;
    transition: transform 0.5s ease;

}



.new-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    color: black;
}

.new-text figure img {
    width: 100% !important;
    height: 200px !important;
    border-radius: 12px;
}


.prev-btn-new,
.next-btn-new {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: none;
    color: var(--green-color);
    background: white;
    cursor: pointer;
    z-index: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.prev-btn-new:hover,
.next-btn-new:hover {
    background-color: var(--green-light-color);
    color: white;
}

/* button apply */
.job-name {
    font-weight: bold;
}

.btn-file {
    color: white;
    border: none;
    background-color: red;
    border-radius: 12px;
    width: 26px;
    font-size: 16px;
    position: absolute;
    right: 6px;
    top: 6px;
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    /* đảm bảo modal không vượt màn hình */
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    /* giữ nền khi cố định */
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: white;
    border-top: 1px solid #dee2e6;
}

.modal-body {
    overflow-y: auto;
    max-height: 400px;
}

/* //////////// animation/////////////// */
.title-name,
.carousel-wrapper,
.prev-btn,
.next-btn,
.card-job,
.intro,
.card-new,
.prev-btn-new,
.next-btn-new,
.application,
.arrow,
.step,
.footer {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.title-name,
.carousel-wrapper.show,
.prev-btn.show,
.next-btn.show,
.card-job.show,
.intro.show,
.card-new.show,
.prev-btn-new.show,
.next-btn-new.show,
.application.show,
.arrow.show,
.step.show,
.footer.show {
    opacity: 1;
    transform: translateY(0);
}

.carousel-news {
    overflow-x: scroll; 
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
}
/* laptop */
@media (max-width: 1440px) {
    /* .item-child-job span {
        width: 130px;
        font-size: 14px;
    } */

}


/* responsive laptop */
@media (max-width: 1024px) {
    .card-item {
        flex: 0 0 calc((100% - 30px) / 2);
    }
    
   

    .prev-btn {
        left: -20px !important;
    }

    .next-btn {
        right: -20px !important;
    }

    /* news */
    .card-new {
        flex: 0 0 calc((100% - 30px) / 2);
        height: 100%;
        position: relative;
        cursor: pointer;
        margin: 30px 0;
    }

    .prev-btn-new {
        left: -20px !important;
    }

    .next-btn-new {
        right: -20px !important;
    }
}

/* ipad */
@media (max-width: 768px) {
    .card-item {
        flex: 0 0 calc((100% - 30px) / 2);
       height: 260px
    }

    .title-name {
        font-size: 24px;
    }

    /* job hot */
    .item-child-footer {
        flex-direction: column !important;
    }


    .apply-button {
        width: 100%;
    }

    .prev-btn {
        left: -20px !important;
    }

    .next-btn {
        right: -20px !important;
    }

    .apply-button {
        font-size: 12px;
    }

    /* news */
    .card-new p {
        font-size: 14px !important;
    }

    .card-new h4 {
        font-size: 18px;
    }

    .see-more {
        font-size: 14px;
    }

    .news {
        font-size: 14px !important;
    }

    #cv_block {
        margin-bottom: 0 !important;
    }
    .item-child{
	width:300px;
    }
  
}
@media (max-width: 540px){
    .item-child-header {
        padding: 0 32px;
        flex-direction: column;
        align-items: center;
    }
    .card-item {
        height: 300px;
    }
   
    .card-new {
        flex: calc(100%);
    }
    
    .item-child {
        width: 180px;
    }
    .carousel-wrapper{
	height:350px;
    }
    
}

/* Responsive cho điện thoại */
@media (max-width: 430px) {
    .home-job-list .job-list .card-job:nth-child(n+4) {
        display: none !important;
        /* ẩn từ item số 7 trở đi */
    }

    .title-name {
        font-size: 20px;
        margin-bottom: 20px;
    }

    h5 {
        font-size: 16px !important;
    }

    .card-item {
        flex: 0 0 100%;
	height: 300px;
	width:100%;
    }

    .apply-button {
        font-size: 14px;
        /* chỉ khác: font nhỏ hơn */
    }

    /* news */
    .card-new {
        flex: calc(100%);
    }

    .prev-btn,
    .next-btn,
    .prev-btn-new,
    .next-btn-new  {
        width: 40px;
        height: 40px;
        margin: 0 10px;
        
    }


    /* hidden scrollbar  */
    #carousel_news::-webkit-scrollbar {
        display: none;
    }

    .item-child span {
        font-size: 14px !important;
    }

    .see-more {
        font-size: 14px;
    }

    .modal-content {
        margin-top: 40px;
    }
    .modal-title{
        font-size: 18px !important;
    }

    .item-child-header {
        padding: 0 32px;
        flex-direction: column;
        align-items: center;
    }

    .item-child {
        width: 100%;
        
    }
    .form-control{
        font-size: 14px;
    }
    .carousel-wrapper {
	height:350px;
    }
}
