@charset "UTF-8";
/* 전체 섹션 */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.intro {
    text-align: center; /* 텍스트와 이미지를 가운데로 정렬 */
    padding: 0px 20px;
}

.intro h1 {
    font-size: 36px; /* 제목 폰트 크기를 더 크게 설정 */
    margin-bottom: 30px;
    text-align: center; /* 텍스트를 가운데 정렬 */
    width: 100%; /* 부모 요소의 너비를 100%로 설정 */
    display: inline-block; /* 가운데 정렬을 위해 inline-block 사용 */
}

.intro img {
    max-width: 100%; /* 이미지 크기를 더 크게 설정 */
    height: auto;
    margin-bottom: 20px;
}

.intro p {
    font-size: 20px;
    /*margin: 0 auto;*/
    line-height: 2;
    text-align: center; /* 텍스트 가운데 정렬 */
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    max-width: 1533px;
    margin: 0 auto; /* 중앙 정렬 */
}

.grid-item {
    width: 446px; /* 각 그리드 아이템의 너비 설정 */
    /*height: 383px;*/ /* 각 그리드 아이템의 높이 설정 */
    background-color: #fff;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #a0a0a0;
    box-sizing: border-box; /* 박스 크기를 정확히 설정 */
}

.grid-item img {
    max-width: 100%;
    max-height: 100%; /* 이미지를 박스 내에 적절히 맞춤 */
    height: auto;
}

.grid-item p {
    font-size: 17px;
    line-height: 1.4;
    padding: 45px;
}
.grid-empty {
    width: 446px; /* 각 그리드 아이템의 너비 설정 */

}
.circle {
    position: absolute; /* 부모 요소 내에서 위치를 잡을 수 있도록 absolute 설정 */
    width: 40px; /* 동그라미의 크기 설정 */
    height: 40px;
    background-color: #EAE825; /* 노란색 배경 설정 */
    color: #000; /* 글자 색상 설정 */
    border-radius: 50%; /* 동그라미 모양을 만들기 위해 border-radius 설정 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px; /* 글자 크기 설정 */
    margin-left: 10px;
    margin-top: -17px;
}
/* 반응형 디자인 */
@media screen and (max-width:916px) {
    .grid-item {
        width: calc(50% - 10px);
        margin-bottom: 20px;
    }
    .intro img {
        max-width: 100%;
        margin-top: 30px;
    }
    .intro p {
        font-size: 15px;
    }
}
@media screen and (max-width: 490px) {
    .grid-item {
        width: 100%; /* 그리드 아이템이 1줄로 배치되도록 너비를 100%로 설정 */
        margin-bottom: 20px;
    }
}
