#header {
    height: 60px;
    background-color: #0e0d47;
}

#header .header_wrap {
    height: 100%;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding: 0.75rem;
    max-width: 1400px;
    margin: 0 auto;
}

#main {
    width: 100%;
    min-height: 200vh;
    display: flex;
}

#main .con_left {
    width: 24%;
    height: 100%;
}

#main .con_right {
    width: 76%;
    max-width: 1000px;
    padding: 1.4rem;
    margin-bottom: 4rem;
    border-left: 1px solid #d9dde3;
}

#main .con_right .content_title {
    font-size: 2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-weight: bold;
    color: #0e0d47;
    position: relative;
    padding-left: 1rem;
}

#main .con_right .content_title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background-color: #0e0d47;
    border-radius: 2px;
}

.adsbygoogle {
    height: 280px;
    display: block;
}

.category1 {
    line-height: 1.4;
    margin: 3rem 0 1.5rem 0;
    border-bottom: 2px solid #0e0d47;
}

.category1 p {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.4rem;
    color: #0e0d47;
    position: relative;
}

.category2 {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.category2 p {
    font-size: 1.2rem;
    word-break: break-all;
    line-height: 1.6;
    margin-top: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category2 b {
    color: #0e0d47;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    background-color: #f6e199;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.side_menu {
    position: sticky;
    top: 20px;
    padding: 2rem 1rem;
}

.side_menu ul li {
    padding: 1rem;
    font-size: 1.1rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
}

.side_menu ul li:hover {
    background-color: #f5f5f5;
    color: #0e0d47;
    padding-left: 1.5rem;
}

.side_menu ul li.active {
    background-color: #0e0d47;
    color: #fff;
    padding-left: 1.5rem;
}

.side_menu ul li.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background-color: #f6e199;
}

.category2 span {
    display: block;
}

/* 푸터 스타일 수정 */
#footer {
    background: #f8f9fa;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
}

.footer_wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* 반응형 디자인 추가 */
@media screen and (max-width: 768px) {
    #main {
        flex-direction: column;
    }

    #main .con_left {
        width: 100%;
    }

    #main .con_right {
        width: 100%;
        padding: 1rem;
        border-left: none;
    }

    .side_menu {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 100;
        padding: 1rem 0;
    }

    .side_menu ul {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0;
    }

    .side_menu ul li {
        padding: 0.8rem 1.2rem;
        border: 1px solid #eee;
        border-radius: 20px;
        margin-right: 0.8rem;
        font-size: 0.9rem;
    }

    .side_menu ul li:hover {
        padding: 0.8rem 1.2rem;
    }

    .side_menu ul li.active {
        padding: 0.8rem 1.2rem;
    }

    .side_menu ul li.active::before {
        display: none;
    }

    #main .con_right .content_title {
        font-size: 1.5rem;
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .category1 p {
        font-size: 1.2rem;
    }

    .category2 p {
        font-size: 1rem;
        padding: 1rem;
    }

    .category2 b {
        font-size: 1.1rem;
        padding: 0.2rem 0.6rem;
    }

    .content_section {
        scroll-margin-top: 100px; /* 모바일에서는 여유 공간 더 확보 */
    }
}

/* 더 작은 모바일 화면 대응 */
@media screen and (max-width: 480px) {
    #header .header_wrap {
        font-size: 1.2rem;
    }

    #main .con_right .content_title {
        font-size: 1.3rem;
    }

    .category1 p {
        font-size: 1.1rem;
    }

    .category2 p {
        font-size: 0.9rem;
    }

    .category2 b {
        font-size: 1rem;
    }
}

/* 스크롤 동작 추가 */
html {
    scroll-behavior: smooth;
}

.content_section {
    scroll-margin-top: 80px; /* 헤더 높이 + 여유 공간 */
}