body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    border-radius: 8px;
}

h1 {
    text-align: center;
    color: #333;
}

#filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.button-container {
    display: flex;
}

.button-container button {
    margin-right: 10px;
}

/* 필터 버튼의 기본 스타일 */
#filters button {
    background-color: #F2A0B0;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

#filters button:hover {
    background-color: #e8909e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 필터 버튼이 활성화된 상태 */
#filters button.active {
    background-color: white;
    color: #F2A0B0;
    border: 1px solid #F2A0B0; /* 활성화된 버튼에 테두리 추가 */
}

/* 분과 필터의 기본 스타일 */
#departmentFiltersContainer {
    position: relative;
}

#departmentFilters {
    background-color: #F2A0B0;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

#departmentFilters:hover {
    background-color: #e8909e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* #departmentFilters:focus {
    background-color: white;
    color: #F2A0B0;
    border: 1px solid #F2A0B0;
    outline: none;
} */


#departmentFilters option {
    padding: 10px;
    background-color: white;
    color: #333;
}

.list-item {
    display: flex;
    flex-direction: row; /* 이미지와 콘텐츠를 가로로 배치 */
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.list-item:hover {
    background-color: #f1f1f1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.list-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.list-item-content {
    flex: 1;
}

.list-item-content h2 {
    margin: 0 0 0px; 
    color: #333;
    display: inline-block;
}

.department-box {
    display: inline-block;
    background-color: #F2A0B0;
    color: white;
    padding: 0px 10px;
    margin-left: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 14px;
}

.list-item-content p {
    margin: 5px 0;
    color: #666;
}

button {
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    background-color: #F2A0B0;
    transition: background-color 0.3s, box-shadow 0.3s;
}

button:hover {
    background-color: #e8909e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.action-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.curriculum-bar-container {
    display: flex;
    align-items: center;
    height: 50px;
    margin-left: 20px;
    position: relative;
    width: 50%; /* 바 전체 길이를 50%로 조정 */
}

.curriculum-bar {
    height: 5px;
    background-color: #F2A0B0;
    width: 100%;
    position: relative;
    border-radius: 2.5px;
}

.month-point {
    height: 30px; /* 크기 50% 증가 */
    width: 30px; /* 크기 50% 증가 */
    background-color: white;
    color: #F2A0B0;
    border: 1px solid #F2A0B0; /* 테두리 추가 */
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: -12.5px; /* 크기 증가에 따라 위치 조정 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px; /* 크기에 맞게 폰트 크기 증가 */
    line-height: 1;
    z-index: 1;
}

.month-detail {
    display: none;
    position: absolute;
    top: 35px; /* 위치 조정 */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 9999;
}

.month-point:hover .month-detail,
.month-point:focus .month-detail {
    display: block;
}

/* 팝업 스타일 */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 9999;
    padding: 20px;
}

.popup-content {
    text-align: center;
}

.popup-button {
    background-color: #F2A0B0;
    color: white;
    border: none;
    padding: 2px 10px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.popup-button:hover {
    background-color: #e8909e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.email-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.info-text {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
    white-space: pre-line; /* 줄바꿈을 포함하여 텍스트를 표시합니다. */
}

.close-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
}
.phone-input{
    color: lightgrey;
}

/* 반응형 스타일 */
@media (min-width: 600px) {
    .list-item {
        flex-direction: row;
        justify-content: flex-start;
    }

    .list-item img {
        margin-bottom: 0;
        margin-right: 20px;
    }

    .list-item-content {
        text-align: left;
    }

    .list-item-content p {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .container {
        width: 95%;
        margin: 0 auto;
        padding: 10px;
    }

    #filters {
        flex-direction: row; /* 필터 컨테이너를 가로로 배치 */
        justify-content: space-between;
        align-items: center;
    }

    .button-container {
        width: 70%;
        display: flex;
        justify-content: flex-start;
    }

    #filters button {
        width: 80%; /* 버튼 크기 늘리기 */
        margin-bottom: 0; /* 버튼과 드롭다운 사이 간격 제거 */
        padding: 5px 10px; /* 버튼 크기 줄이기 */
        font-size: 12px; /* 버튼 텍스트 크기 줄이기 */
    }

    .list-item {
        flex-direction: row; /* 이미지와 콘텐츠를 가로로 배치 */
        align-items: center;
        padding: 10px;
    }

    .list-item img {
        width: 80px; /* 이미지 크기 조정 */
        height: 80px; /* 이미지 높이 조정 */
        margin-right: 10px; /* 이미지와 콘텐츠 사이의 간격 */
        border-radius: 8px;
        border: 1px solid #ddd;
        align-self: center; /* 수직 가운데 정렬 */
    }

    .list-item-content {
        flex: 1;
        text-align: left;
    }

    .department-box {
        margin-left: 5px; /* 분과 정보 위치 조정 */
    }

    .curriculum-bar-container {
        width: 50%;
        margin-left: 10px;
    }

    .curriculum-bar {
        width: 100%;
    }

    .month-point {
        width: 25px;
        height: 25px;
        top: -10px;
        font-size: 10px;
    }

    .popup {
        width: 90%;
    }

    .list-item-content h2 {
        font-size: 14px; /* 제목 텍스트 크기 줄이기 */
    }

    .list-item-content p {
        font-size: 12px; /* 일반 텍스트 크기 줄이기 */
    }

    .department-box {
        font-size: 12px; /* 분과 텍스트 크기 줄이기 */
    }

    .month-point {
        font-size: 10px; /* 커리큘럼 포인트 텍스트 크기 줄이기 */
    }

    #departmentFiltersContainer {
        width: 35%; /* 드롭다운 폭 조정 */
        display: flex;
        align-items: center; /* 수직 높이 맞추기 */
        justify-content: flex-end;
    }

    #departmentFilters {
        width: 100%;
        max-width: none;
        margin-left: 0px;
        padding: 5px 10px; /* 드롭다운 크기 줄이기 */
        font-size: 12px; /* 드롭다운 텍스트 크기 줄이기 */
    }
}





@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.month-detail.fade-out {
    animation: fadeOut 0.4s forwards;
}
