/* BASIC css start */
/* 게시판 공통 메뉴 */
.boardMenu {
    margin: 1.6rem;
    border: 1px solid #f1eeee;
    border-radius: 1.4rem;
    background: #fff;
    box-shadow: 0 0.3rem 1.2rem rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.boardMenu ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.boardMenu li {
    position: relative;
    min-width: 0;
    border-right: 1px solid #f3f3f3;
    border-bottom: 1px solid #f3f3f3;
    background: #fff;
    box-sizing: border-box;
}

/* 첫 번째 줄: 산후조리원 관련 메뉴 */
.boardMenu li:nth-child(-n+4) {
    background: #fffafb;
}

/* 오른쪽 끝 테두리 제거 */
.boardMenu li:nth-child(4n) {
    border-right: 0;
}

/* 마지막 줄 하단 테두리 제거 */
.boardMenu li:nth-last-child(-n+4) {
    border-bottom: 0;
}

.boardMenu li a {
    display: flex;
    height: 8.2rem;
    padding: 0.8rem 0.3rem;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.boardMenu .icon {
    display: flex;
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 0.4rem;
    align-items: center;
    justify-content: center;
    color: #666;
}

.boardMenu svg {
    width: 2.5rem;
    height: 2.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.boardMenu p {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.04rem;
    text-align: center;
    white-space: nowrap;
}

/* 현재 접속한 게시판 */
.boardMenu li.active {
    background: #fff0f3;
}

.boardMenu li.active::after {
    position: absolute;
    right: 20%;
    bottom: 0;
    left: 20%;
    height: 0.25rem;
    border-radius: 0.25rem 0.25rem 0 0;
    background: #ea6783;
    content: "";
}

.boardMenu li.active a,
.boardMenu li.active .icon {
    color: #ea6783;
}

.boardMenu li.active p {
    font-weight: 700;
}

/* 터치 효과 */
.boardMenu li a:active {
    background: #fff5f7;
}

/* 작은 모바일 */
@media screen and (max-width: 360px) {
    .boardMenu {
        margin-right: 1.2rem;
        margin-left: 1.2rem;
    }

    .boardMenu li a {
        height: 7.8rem;
    }

    .boardMenu p {
        font-size: 1.2rem;
        letter-spacing: -0.06rem;
    }

    .boardMenu .icon {
        width: 2.6rem;
        height: 2.6rem;
    }

    .boardMenu svg {
        width: 2.3rem;
        height: 2.3rem;
    }
}

/* BASIC css end */

