.root-container.blog-container{
    margin:0 auto;
}
.sidebar{
    margin-top:30px;
}
.sidebar-box{
    margin-bottom:30px;
}
.sidebar .widget-title{
    background-color: #f5f5f5; /* 배경색 */
    border-radius: 3px; /* 모서리 둥글게 */
    padding:12px 15px; /* 내부 여백 */
    margin-bottom: 10px; /* 아래쪽 여백 */
    position: relative; 
}

.sidebar .widget-title::before{
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent;
    bottom: -8px;
    left: 19px;
    border-width: 8px;
    border-bottom: 0;
    margin-left: -8px;
    z-index: 5;
    border-top-color: #f5f5f5;
}
.sidebar .widget_categories ul{
    color:#999;
}
.sidebar .widget_categories ul a{
    color:#222;
}
.sidebar .widget_categories ul li{
    list-style: none;
}
.sidebar .widget_categories > ul > li{
    position: relative;
    border-bottom:1px solid #ededed;
    padding:14px 0;
}
.sidebar .widget_categories > ul > li::before{
    content: "\ea52";
    font-family: 'remixicon' !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    margin-right: 10px;
    font-size: 100%;
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}
.sidebar .widget_categories > ul > li.on::before{
    transform: rotate(270deg);
}
.sidebar .widget_categories > ul ul{
    margin-left:18px;
    display: none;
}
.sidebar .widget_categories > ul .on ul,
.sidebar .widget_categories > ul .current-category ul{
    display: block;
}
.sidebar .widget_categories > ul ul li{
    margin:10px 0;
    font-size:15px;
}
.sidebar .widget_categories > ul ul li a{
    color:#444;
}
.sidebar .widget_categories > ul ul li:last-child{
    margin-bottom:0;
}
.sidebar .widget_categories > ul ul li::before{
    content: "\ea53";
    font-family: 'remixicon' !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    margin-right: 5px;
    font-size: 80%;
}
.toggle-children{
    position: absolute;
    width:30px;
    height:30px;
    right:0;
    top:8px;
    background:none;
    border:0;
    background-size: 100% 100%;
    cursor: pointer;
    transition: opacity 0.5s ease; 
    opacity: 0.5;
    display:block; 
    overflow:hidden;
}
.toggle-children:hover{
    opacity: 1;
}

.sidebar .recent-posts li{
   padding:7px 0;
}
.sidebar .recent-posts li a{
    display: flex;
    gap:15px;
}
.sidebar .recent-posts li a .post-thumbnail{
    min-width: 100px;
    overflow: hidden;
}
.sidebar .recent-posts li a .post-thumbnail img{
    min-width: 100%;
    max-width: 100px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}
.sidebar .recent-posts li a .post-excerpt{
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.sidebar .recent-posts li a .post-excerpt h4 {
    font-size: 16px;
    overflow: hidden; /* 넘치는 내용 숨기기 */
    text-overflow: ellipsis; /* 넘치는 내용에 '...' 추가 */
    max-width: 100%; /* 최대 너비 설정 */
    box-sizing: border-box;
    display: -webkit-box; /* Flexbox를 사용하여 줄 수 제한 */
    -webkit-box-orient: vertical; /* 세로 방향으로 정렬 */
    -webkit-line-clamp: 2; /* 최대 1줄로 제한 */
    line-clamp: 2; /* 표준 속성, 일부 브라우저에서 지원 */
}
.sidebar .recent-posts li a .post-excerpt p {
    font-size: 14px;
    display: -webkit-box; /* Flexbox를 사용하여 줄 수 제한 */
    -webkit-box-orient: vertical; /* 세로 방향으로 정렬 */
    overflow: hidden; /* 넘치는 내용 숨기기 */
    -webkit-line-clamp: 2; /* 최대 2줄로 제한 */
    line-clamp: 2; /* 표준 속성, 일부 브라우저에서 지원 */
    box-sizing: border-box;
}
.sidebar .tag-cloud-container{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding:10px 0;
}
.sidebar .tag-cloud-container a {
    display: inline-block;
    padding: 5px 15px;
    background: #f9f9f9;
    border-radius: 3px;
    font-size: 12px;
    color: #222;
    transition: background 0.3s ease; /* 배경색 변화에 대한 전환 효과 추가 */
}
.sidebar .tag-cloud-container a:hover {
    background: #e0e0e0; /* 마우스 오버 시 배경색 변경 */
}

.sidebar .tag-cloud-container a::before{
    content: "\edfc";
    font-family: 'remixicon' !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    margin-right: 2px;
    font-size: 70%;
    vertical-align: middle;
}

.wrap-article{
    display: flex;
    flex-wrap: wrap;
    padding:14px 0 0 0;
    position: relative;
    overflow:hidden;
}
.wrap-article > article{
    flex:auto;
    box-sizing: border-box;
    padding:14px;
    position: relative;
    color:#2d2d2d;
}
.bg_date{
    position: absolute;
    top:0;
    left:0;
    background:#ffdc52;
    padding:14px 15px;
    font-size:26px;
    color:#fff;
    text-align: center;
    min-width:45px;
    
}
.bg_date .day{
    font-size:14px;
    color:#fff;
    display:block;
    margin-bottom:2px;
    
}
.wrap-article > article .post-thumbnail img{
    width:100%;
    vertical-align: middle;
    height:auto;
    border-radius: 7px;
}
.wrap-article > article h2{
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3em;
    margin: 15px 0 10px 0;
}
.wrap-article > article div{
    margin:5px 0;
}
.wrap-article > article div.post-thumbnail{
    margin:0 0 5px 0;
}
.wrap-article > article div.post-thumbnail a{
    display:block;
}
.wrap-article > article div.post-meta{
    color:#999;
    font-size:13px;
    margin:10px 0 5px;
}
.wrap-article > article div.post-meta span{
    display:inline-block;
    padding:0 10px;

}
.wrap-article > article div.post-meta span.post-author{
    padding-left:0;
}
.wrap-article > article div.post-tags a{
    line-height:22px;
    padding:0 12px;
    background:#ededed;
    border-radius: 11px;
    color:#222;
    font-size:12px;
    margin:1px;
    display:inline-block;
}
.wrap-article > article div p{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 4; /* 최대 4줄로 제한 */
    line-clamp: 4; /* 표준 속성, 일부 브라우저에서 지원 */
    font-weight:300;
    line-height: 1.6em;
    font-size: 16px;
}
.wrap-article > article .read-more{
    font-size:12px;
    display:inline-block;
    position: relative;
    margin-top:15px;
}
.wrap-article > article .read-more::after {
    content: "";
    background: url("../img/arrow-right-black.png") no-repeat right 50%;
    background-size: 24px;
    width: 18px;
    overflow: hidden;
    display: inline-block;
    height: 15px;
    vertical-align: bottom;
    margin-left: 5px;
    opacity: 0.6;
    transition: margin-left 0.3s ease; /* 부드러운 움직임 추가 */
}

.wrap-article > article .read-more:hover::after {
    margin-left: 8px;
}
.pagination{
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 30px 0 50px;
}
.pagination > *{
    display:inline-block;
    line-height:30px;
}
.pagination > .prev,
.pagination > .next{
    width:auto;
}
.pagination > .current{
    background:#333;
    color:#fff;
    font-weight:600;
    text-align: center;
    border-radius: 3px;
    width:30px;
}
.pagination a:hover{
    text-decoration: underline;
    color:#000;
}
.single-post h1{
    font-size:28px;
    margin:40px 0 20px;
}
.post-meta{
    display: flex;
    align-items: center;
}
.post-meta .post-author img{
    vertical-align: middle;
    border-radius: 50%;
    margin-right: 5px;
    border: 3px solid #fff !important;
    box-shadow: 0px 1px 6px 0px rgb(0 0 0 / 17%);
}
.post-meta .post-date{
    margin-right:10px;
}
.category-page .post-meta .post-author img{
    box-shadow: 0px 1px 6px 0px rgb(0 0 0 / 9%);
}
.post-split{
    font-size:12px;
    color:#686868;
    display:inline-block;
    padding:0 5px;
}
.post-content{
    line-height:1.6em;
    margin:50px 0;
}
.post-content p{
    margin:15px 0;
}
.wp-block-code {
    font-family: "Courier 10 Pitch", Courier, monospace;
    overflow: auto;
    max-width: 100%;
    padding:2em;
    background:#eeeeee;
}
.post-content h3{
    margin-bottom:25px;
}
.single-post .post-categories,
.single-post .post-tags{
    margin:10px 0;
}
.single-post .wp-block-separator{
    border:0;
    border-top:1px solid #cecece;
}
.content-sidebar-wrapper{
    padding-top:50px;
}
@media (max-width: 1024px) {
    .wrap-article > article{
        width:33.3333%;
        padding:14px 14px 42px;
    }
}
@media (min-width: 681px) {
    .wrap-article > article {
        max-width: 33.3333%;
    }
}
@media (max-width: 680px) {
    .blog-container.root-container{
        padding:0;
    }
    .wrap-article > article:nth-child(1n){
        width:50%;
        padding:14px 14px 42px;
        border:0;

    }
    .wrap-article > article:nth-child(2n) {
        border-right: 0;
    }
    .single-post h1 {
        font-size: 22px;
        margin: 40px 0 20px;
    }
    .wrap-article > article:before{
        width:30px;
        height:30px;
        right:-15px;
        top:-15px;
    }
    .wrap-article > article:after{
        width:30px;
        height:30px;
        left:-15px;
        bottom:-15px;
    }
}
@media (max-width: 480px) {
    .wrap-article > article:nth-child(1n){
        width:100%;
        padding:14px 14px 42px;
        border:0;
    }
    .wrap-article > article{
        padding:14px 8px 32px;
    }
    .wrap-article > article h2{
        font-size:17px;
    }
    .wrap-article > article div.post-thumbnail{
        margin:0 ;
    }
    .bg_date .day{
        color:#fff !important;
    }
    .bg_dateCategory{
        left:14px;
        top:14px;
        border-radius: 6px 0 0 0;
    }
}
.content-sidebar-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.main-content {
    flex: 1;
    min-width: 0; /* flex 항목의 오버플로우 방지 */
}

.sidebar {
    width: 300px;
}
.sidebar-image{
    margin-bottom:14px;
}
.sidebar-image img{
    width:100%;
    height:auto;
    border-radius: 4px;
}
.youtube-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
    overflow: hidden;
  }
  
  .youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
/* 반응형 레이아웃 */
@media screen and (max-width: 992px) {
    .content-sidebar-wrapper {
        flex-direction: column-reverse;
        padding-top:0;
    }
    
    .sidebar {
        width: 100% !important;
        box-sizing: border-box;
        padding: 0 14px;
    }
    .sidebar .widget_categories,
    .sidebar .tag-cloud,
    .sidebar .recent-posts,
    .sidebar .widget-area{
        display: none;
    }
    .wrap-sidebar-image{
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
    }
    .sidebar-image {
        width: calc(33.3333% - 10px);
    }
    .sidebar-image {
        margin-bottom:0px;
    }
}
@media screen and (max-width: 460px) {
    .sidebar-image {
        width: 100%;
    }
    .sidebar-box{
        margin-bottom: 0;
    }
}
@media (min-width: 480px) {
    .wrap-article > article{
        width:100% !important;
        max-width:100% !important;
        display:flex;
        gap:34px;
    }
    .wrap-article > article > div{
       flex:1;
    }
    .wrap-article > article div.post-meta{
        margin-top:auto;
    }
    .wrap-article > article div.post-thumbnail{
        margin:0;
    }
    .wrap-article > article > span{
        flex:0.5;
    }
    .wrap-article > article > div.wrap-article-content{
        flex:1.5;
        flex-direction: column;
        display: flex;
    }
    .bg_date{
        position: relative;
        background:none;
        padding:15px; 
        font-size:48px;
        color:#222;
        text-align: left;
        min-width:45px;
        padding-top:0;
        font-weight: 600;
        background:none !important;
     
    }
    .bg_date .day{
        font-size:24px;
        color:#000;
        display:block;
        margin-bottom:2px;
        position: relative;
        padding-bottom:20px;
        letter-spacing: 2px;
        margin-left:5px;
    }
    .bg_date .day::after{
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background: #4c4c4c;
        bottom: 7px;
        left: 0;
    }
    .wrap-article > article h2{
        margin-top:5px;
        font-size:20px
    }
    
}
