/*
Theme Name: caigi
Theme URI: https://doorweb.net/
Author: Oh Hyun
Author URI: https://doorweb.net/
Description: A basic WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: caigi
*/

/** Common START **/
body, p, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd, table, th, td, form, fieldset, legend, input, textarea, button, select {
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: none
}
body, html {
    width: 100%;
    height: 100%;
    background:#fff;
}
body, input, textarea, select, button, table {
    font-family: 'Pretendard', 'Noto Sans', Malgun Gothic, Dotum, Apple SD Gothic Neo, AppleGothic, Helvetica, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    color:#555;
}
img, fieldset, button {
    border: 0
}
img{
    max-width:100%;
    vertical-align: middle;
}
ul, ol {
    list-style: none
}
em, address {
    font-style: normal
}
a {
    text-decoration: none;
    color:#555;
}
a:hover, a:active, a:focus {
    text-decoration: none
}


.sidebar .widget_categories > ul ul li.current-category::before,
.sidebar .widget_categories > ul li.current-cat-parent::before,
.sidebar .widget_categories > ul li.active::before,
.sidebar .widget_categories > ul > li.current-category::before{
    color:var(--ast-global-color-1);
}
.bg_date{
    background:var(--ast-global-color-2);
   
}
.root-container{
    max-width:1480px;
    width:100%;
    margin:34px auto;
    padding:0 15px;
    box-sizing: border-box;
}
main{
    padding-top:140px;
}
h2{
    font-size:24px;
}
/** Common END **/
/** HEADER STRAT **/
.main-header {
    position: fixed;
    z-index: 999;
    top: 0;
    width: 100%;
    transition: all .3s;
    box-sizing: border-box;
    background: #fff;;
    border-bottom:1px solid rgb(0 0 0 / 12%);
    /*
    box-shadow: 0px 1px 6px 0px rgb(0 0 0 / 9%);
    */
}
.main-header .root-container{
    margin:0 auto;
}
.admin-bar .main-header{
    top:32px;
}
.main-header.act-header{
    top:-80px;
}
.admin-bar .main-header.act-header{
    top:-48px;
}
.main-header *{
    box-sizing: border-box;
    vertical-align: middle;
}
.main-header .header-inner{
    display:flex;
    justify-content: flex-end;
    align-items: center;
    
}
.main-header .header-inner.header-inner-top{
    height:80px;
    align-items: anchor-center;
}
.main-header.act-header .header-inner .top-right .header-widget-area{
    display:none;
}
.main-header.act-header .header-inner .top-right .header-search-form{
    top:49px;
}
.main-header.act-header .header-search-form .search-field{
    padding-top:5px;
    padding-bottom:5px;
 
}
.main-header .header-inner .top-right {
    position: relative;
}
.main-header .header-inner .top-right .header-widget-area{
    padding:0 10px 10px;
}
.header-widget-area ul{
    display:flex;
    justify-content: flex-end;
}
.header-widget-area ul li{
    margin:0 5px;
    position: relative;
}
.header-widget-area ul li::after{
    content:"";
    display:block;
    position: absolute;
    right:-5px;
    top:50%;
    width:1px;
    height: 11px;
    background: #b1b1b1;
    transform: translateY(-50%);
    top:50%;
}
.header-widget-area ul li:last-child::after{
    display:none;
}
.header-widget-area ul li a{
    display:block;
    padding:5px 5px;
    line-height:16px;
}
.header-search-form{
    position: absolute;
    right:0;
    top:42px;
    transition: top 0.5s ease; 
}
.main-header .header-menu{
    height:60px;
    justify-content: flex-start;
}

.mobile-header-inner .header-search-form{
    position: relative;
    right:10px;
}
.mobile-header-inner .header-search-form .search-field {
    line-height: 20px;
    padding: 7px 10px;
    padding-left: 40px;
    border-radius: 26px;
    border: 1px solid #222;
    width: 300px;
    max-width:40vw;
}
.site-logo{
    margin-right: auto;
}
.site-logo img{
    margin-top:10px;
}
.main-header .header-inner .nav-menu{
    display:flex;
    gap:30px;
}
.main-header .header-inner .nav-menu li{
    position: relative;
}
.main-header .header-inner .nav-menu > li > a{
    padding:0px 10px;
    font-size:16px;
    line-height: 60px;
    display:block;
}
.main-header .header-inner .nav-menu .sub-menu{
    position: absolute;
    top:50px;
    width: 160px;
    left: 50%;
    padding: 10px;
    background: #fff;
    border-radius:4px;
    border: 1px solid rgb(0 0 0 / 25%);
    font-size:16px;
    box-shadow: 0px 3px 6px 0px rgb(0 0 0 / 8%);
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, 20px);
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
}
.main-header .header-inner .nav-menu .sub-menu li{
    margin:8px 10px;
    line-height:24px;
}
.main-header .header-inner .nav-menu li:hover .sub-menu {
    visibility: visible;
    opacity: 1;
    left: 50%;
    transform: translate(-50%, 0px);
}
#mobile-header{
    display:none;
}
.mobile-top{
    display:flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-top .site-logo{
    padding:15px 0; 
    height:70px;
    display: flex;
    align-items: center;
}
.mobile-top .site-logo img{
    max-height:40px;
}
.bg-mobile-bottom{
    box-sizing: border-box;
    padding:20px;
    position: fixed;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.85);
    top:0;
    z-index:1;
    left:0;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
}
.on-mobile-header .bg-mobile-bottom{
    visibility: visible;
    opacity: 1;
}
.mobile-bottom{
    height:calc(100vh - 68px);
    box-sizing: border-box;
    padding:0;
    position: fixed;
    z-index:2;
    top: 69px;
    border-top: 1px solid rgb(0 0 0 / 10%);
    bottom:0;
    width: 100%;
    transition: all .3s;
    box-sizing: border-box;
    background: #1F2F46;
    visibility: hidden;
    opacity: 0;
   
}
.mobile-bottom .wrap-mobile-menu{
    overflow-y: auto;
    height:calc(100vh - 70px);
    box-sizing: border-box;
    padding:20px 15px 40px;
}
.on-mobile-header .mobile-bottom{
    visibility: visible;
    opacity: 1;
    
}
.mobile-bottom .site-logo{
    display: flex;
    align-items: center;
    height: 70px;
    padding:0 10px 0 15px;
    justify-content: space-between;
    border-bottom: 1px solid rgb(0 0 0 / 12%);
    box-shadow: 0px 1px 6px 0px rgb(0 0 0 / 9%);
}
.mobile-bottom-toggle{
    position: relative;
    display: inline-block;
    width: 34px;
    height: 40px;
}
.mobile-top a.hamburger {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
    vertical-align: middle;
}
a.hamburger span {
    width: 16px;
    height: 2px;
    position: absolute;
    display: block;
    left: 4px;
    top: 50%;
    margin-top: -1px;
    background: #000;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
  }
  
  a.hamburger span::after,
  a.hamburger span::before {
    content: "";
    display: block;
    width: 16px;
    height: 2px;
    position: absolute;
    background: #000;
    transition: all 0.6s;
    -webkit-transition: all 0.6s;
    -o-transition: all 0.6s;
    -moz-transition: all 0.6s;
    -ms-transition: all 0.6s;
  }
  
  a.hamburger span::after {
    top: -6px;
  }
  
  a.hamburger span::before {
    top: 6px;
  }
  .on-mobile-header a.hamburger span {
    background: none;
  }
  
  .on-mobile-header a.hamburger span::after {
    top: 0;
    width: 18px;
    -webkit-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    transform: rotate(135deg);
  }
  
  .on-mobile-header a.hamburger span::before {
    top: 0;
    width: 18px;
    -webkit-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    transform: rotate(-135deg);
  }
.admin-bar .mobile-bottom{
    top:70px;
    height:calc(100vh - 70px);
}
.mobile-menu > li > a{
    border-bottom:1px solid rgb(255 255 255 / 14%);;
}
.mobile-bottom a{
    display:block;
    line-height:28px;
    padding:8px 5px;
    color:#e6e6e6;
    font-size:16px;
}
.mobile-bottom a + button{
    display:none;
}
.mobile-bottom .sub-menu{
    padding:10px 20px;
    border-bottom:1px solid rgb(255 255 255 / 14%);;
}
.mobile-bottom .sub-menu a{
    line-height:20px;
    padding:8px 0;
    color:#cbcbcb;
    font-size:15px;
}
.header-search-form .search-form{
    position: relative;
}
.header-search-form .search-field{
    line-height:30px;
    padding:10px;
    padding-left:50px;
    border-radius: 26px;
    border:1px solid #222;
    width:300px;
    transition: padding 0.5s ease;
}
.header-search-form .search-form .search-submit{
    position: absolute;
    width:30px;
    height:0px;
    padding-top:30px;
    overflow: hidden;
    display:inline-block;
    background:url(img/search.png) no-repeat center center;
    background-size:20px;
    left:15px;
    top:50%;
    transform: translateY(-50%);
    border:0;
    outline:none;
    cursor:pointer;
}
/* 1024px 이하 화면에서 적용할 스타일 */
@media screen and (max-width: 1024px) {
    .main-header .header-inner .top-right .header-widget-area,
    #pc-header {
        display:none;
    }
    #mobile-header{
        display:block;
    }
    main{
        padding-top:70px;
    }
    .header-search-form{
        top:0;
    }
}
@media screen and (max-width: 782px) {
    html{
        margin-top:0 !important;
    }
    html #wpadminbar{
      
    }
    .admin-bar .main-header{
        
    }
}
/** HEADER END **/

/** CONTENT START **/
.single-post{
    margin:0 0 60px 0;
}
/** CONTENT END **/

/** SIBLING MENU START **/
.sibling-menu-items{
    position: relative;
    transform: translateY(-44px);
    margin-bottom:-44px;
}
.sibling-menu-items ul{
    display:flex;
    margin:0;
    padding:0;
    gap:1px;
}
.sibling-menu-items ul li{
    flex:1;
    text-align: center;
}
.sibling-menu-items a{
    display:block;
    line-height:24px;
    padding:10px 5px;
    background: #222;
    color: #fff;
    opacity: 0.9;
}
.sibling-menu-items .current-menu-item a{
    background:#000;
}
.wrap-youtube-video{
    max-width:1000px;
    margin:0 auto;
}
.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: 1024px) {
    .sibling-menu-items {
        margin-left: 0px;
        margin-right: 0px;
    }
    .root-container{
        margin:14px 0;
    }
}
@media screen and (max-width: 640px) {
    .sibling-menu-items ul li {
       flex:auto;
    }
    .sibling-menu-items a{
        font-size:13px;
    }
}
/*
@media screen and (max-width: 420px) {
    .sibling-menu-items ul {
        flex-wrap: wrap;
    }
    .sibling-menu-items ul li {
        flex: auto;
        width: 33%;
    }
}
    */
/** SIBLING MENU END **/


/** FOOTER STRAT **/
footer{
    background:#eee;
    padding:60px 0;
}
.footer-logo img{
    height: auto;
    width: auto;
    max-width: 140px;
    filter: grayscale(100%);
}
.footer-logo,
.wrap-footer-widget,
.footer-menu {
    margin-bottom: 20px;
}
.footer-nav-menu,
.footer-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.footer-nav-menu li {
    margin-right: 31px;
    padding:7px 0;
    position: relative;
}
.footer-nav-menu li::after{
    content:"";
    position: absolute;
    right: -16px;
    top: 12px;
    width:1px;
    height:11px;
    background-color:#555;
}
.footer-nav-menu li:last-child::after{
    display:none;
}
.footer-nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight:600;
}
.wrap-footer-widget{
    display:flex;
    justify-content: space-between;
}
footer .icon-list{
    display:flex;
    gap:20px;
}
footer .icon-list a{
    color:#444;
    transition: color 0.3s ease; 
}
footer .icon-list a:hover{
    color:#000;
}
footer .icon-list i{
    font-size:24px;
}
@media (max-width: 780px) {
    .wrap-footer-widget {
        flex-direction: column-reverse;
    }
    .footer-widget-area{
        margin-top:20px;
    }
}
/** FOOTER END **/

/** PAGE TOP START **/
.page-top{
    background-size: cover;
    padding:0px 15px;
    color:#fff;
    display: flex;
    align-items: center;
    height:340px;
    background-position: 0 50%;
}
.page-top > .root-container > h1{
    font-size:36px;
    margin:0 0 24px;
    color:#fff;
}
.page-top > .root-container > .category-description{
    font-size:16px;
    line-height:1.4em;
}

@media (max-width: 1024px) {
    
}
@media (max-width: 780px) {
    
}
@media (max-width: 680px) {
    .header-widget-area{
        display:none;
    }
}
@media (max-width: 440px) {
    .page-top{
        padding: 0px 0;
        display: flex;
        align-items: center;
        height: 260px;
    }
    .page-top > .root-container > h1 {
        font-size: 26px;
        letter-spacing: 2px;
    }
   
    .page-top > .root-container > .category-description{
        font-size:14px;
    }
}
/** PAGE TOP START **/