.problem368-container {
    border-radius: 20px;
    padding: 0px;
    margin: 5px auto; /* 중앙 정렬을 위해 auto 추가 */
    position: relative;
    max-width: 760px; /* 문제 + 정답 그리드 너비 */
}
.pb_num368 {
    position: absolute;
    top: -15px;
    left: -10px;
    background: #FF6B6B;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.grids368-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* 작은 화면에서 줄 바꿈 */
}
.grid368-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.grid368 {
    background: white;
    border: 3px solid #333; /* SVG 자체 테두리 외에 추가적인 테두리 제거 */
    border-radius: 15px;
    padding: 0px; /* SVG가 직접 border를 가짐으로 패딩 제거 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 300px; /* SVG width에 맞춰 조정 */
    height: 360px; /* SVG height에 맞춰 조정 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* SVG가 넘치는 것을 방지 */
}
.grid368.empty-grid {
    /* 미로찾기는 빈 칸 박스가 아니라 동일한 미로가 나와야 함 */
}
.grid368 svg {
    border-radius: 10px;
    display: block; /* SVG 자체의 여백 제거 */
}
 
/* 호버 효과 */
.problem368-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
/* 그리드 라벨 */
.grid368-section::before {
    content: '';
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}
 

.problem529-container {
    border-radius: 20px;
    padding: 0px;
    margin: 10px auto; /* 중앙 정렬을 위해 auto 추가 */
    position: relative;
    max-width: 760px; /* 문제 + 정답 그리드 너비 */
}
.pb_num529 {
    position: absolute;
    top: -15px;
    left: -10px;
    background: #FF6B6B;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.grids529-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* 작은 화면에서 줄 바꿈 */
}
.grid529-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.grid529 {
    background: white;
     border: 3px solid #333; 
    border-radius: 20px;
    padding: 0px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 300px;  
    height: calc(300px / 10 * 12); /* 가로 10칸, 세로 12줄 비율 유지 (300/10*12 = 360px) */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* SVG가 넘치는 것을 방지 */
}
.grid529.empty-grid {
    /* 미로찾기는 빈 칸 박스가 아니라 동일한 미로가 나와야 함 */
}
.grid529 svg {
    border-radius: 10px;
    display: block; /* SVG 자체의 여백 제거 */
}
 