﻿.Project_Container {
    max-width: 1610px;
    margin: 0 auto 30px;
    padding: 60px 20px 0;
    background: url('/images/background.png') no-repeat top right;
    background-size: 50%;
    background-blend-mode: soft-light;
    box-sizing: border-box;
}

.Project_Tit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .Project_Tit h2 {
        color: #021623;
        font-size: calc(1.6rem + 1vw);
        padding-bottom: calc(10px + 1vw);
    }

    .Project_Tit p {
        font-size: calc(0.7rem + 0.7vw);
        color: #787878;
        line-height: 32px;
    }

.Proj_ComboBox {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.FirstSelect_Div,
.SecondSelect_Div {
    width: calc(160px + 0.8vw);
    height: calc(25px + 0.8vw);
    font-size: calc(0.7rem + 0.4vw);
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
}

#Project_ItemBox {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    margin-top: 30px;
}

.Project_item {
    width: 500px;
    height: 170px;
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .Project_item {
        width: 100%; /* 전체 가로폭 사용 */
        min-height: 170px;
        height: auto; /* 내용에 따라 높이 조정 */
    }
}

.Item_Header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.text-wrapper {
    flex: 1 1 auto;
    overflow: hidden;
}

    .text-wrapper .fir {
        position: relative;
        display: inline-block;
        color: #3a3d3f;
        width: 100%;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.3rem;
        font-weight: 600;
        word-spacing: -2px;
        letter-spacing: -0.5px;
        text-decoration: none;
    }

.Item_Header > .las {
    flex: 0 0 50px;
    display: inline-block;
    width: 50px;
    height: 35px;
    background: #ccc;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 35px;
    border-radius: 0 10px 0 10px;
    cursor: pointer;
    position: relative;
    top: -15px;
    right: -15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tootip {
    position: absolute;
    top: calc(100% - 6px); /* 글자 바로 아래 (줄간격 보정) */
    left: -2px;
    display: none;
    background-color: #787878;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1.3;
}

/* 오직 text-wrapper에만 hover 시 tootip 보여줌 */
.text-wrapper:hover .tootip {
    display: block;
}

.duration,
.client,
.tags {
    font-size: 0.95rem;
    color: #787878;
}

.duration {
    margin-top: 18px;
}

.client {
    font-weight: bold;
    margin-top: -12px;
}

.tags {
    font-size: 0.85rem;
    margin-top: -12px;
}

.prStatus {
    font-size: calc(12px + 0.8vw);
    color: #696d6f;
    margin: 40px 0 10px;
}

    .prStatus strong {
        color: #4d8fcc;
    }

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

    .pagination ul {
        display: flex;
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    .pagination li {
        list-style: none;
    }

        .pagination li a {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 14px;
            color: #555;
            text-decoration: none;
            border: 1px solid transparent;
            transition: all 0.2s ease;
        }

            .pagination li a:hover {
                background-color: #f0f0f0;
                border-color: #ccc;
            }

        .pagination li.active a {
            background-color: #4d8fcc;
            color: white;
            font-weight: bold;
            border-color: #4d8fcc;
        }

.checkbox-dropdown {
    position: relative;
    width: calc(250px + 0.8vw);
    font-size: calc(0.7rem + 0.4vw);
    color: #333;
}

.checkbox-dropdown-button {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0 10px;
    height: calc(25px + 0.8vw);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

    .checkbox-dropdown-button:hover {
        border-color: #aaa;
    }

    .checkbox-dropdown-button:after {
        content: '';
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #333;
        transition: transform 0.3s;
    }

    .checkbox-dropdown-button.active:after {
        transform: rotate(180deg);
    }

.checkbox-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    box-sizing: border-box;
}

    .checkbox-dropdown-list.active {
        display: block;
    }

.checkbox-dropdown-list-item {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

    .checkbox-dropdown-list-item:hover {
        background-color: #f5f5f5;
    }

    .checkbox-dropdown-list-item input[type="checkbox"] {
        margin-right: 8px;
    }

    .checkbox-dropdown-list-item label {
        flex: 1;
        cursor: pointer;
        font-size: calc(0.7rem + 0.3vw);
    }

.button-container {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.apply-button, .close-button {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    font-size: calc(0.7rem + 0.2vw);
    transition: all 0.2s;
}

.apply-button {
    background-color: #4d8fcc;
    color: white;
    border-color: #4d8fcc;
}

    .apply-button:hover {
        background-color: #3a7ab5;
    }

.close-button:hover {
    background-color: #f0f0f0;
}