/*
 Theme Name: Astra Child
 Template: astra
 Version: 1.0.0
*/

/* Astra 기본 헤더 숨김 */
#masthead,
.ast-page-header {
    display: none !important;
}

/* 공백 제거 */
.ast-plain-container.ast-no-sidebar,
.ast-single-post .site-content,
.ast-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 커스텀 헤더 바 스타일 */
.custom-header-bar {
    background: #1e7dff;
    padding: 15px 0;
    font-family: 'Noto Sans KR', sans-serif;
    color: white;
    z-index: 9999;
    position: relative;
}

.custom-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

.custom-logo img {
    height: 60px;
    display: inline-block;
}

/* PC 메뉴 */
.custom-main-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.custom-main-menu > .menu-item {
    position: relative;
}

.custom-main-menu > .menu-item > a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
}

.custom-main-menu > .menu-item:hover .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    background: #156ce0;
    padding: 10px;
    top: 100%;
    left: 0;
    min-width: 180px;
    z-index: 9999;
    border-radius: 4px;
}

.submenu a {
    display: block;
    padding: 8px 10px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.submenu a:hover {
    background: #0e59be;
}

.custom-contact-btn a {
    background: orangered;
    padding: 10px 20px;
    border-radius: 8px 0 0 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    margin-left: 10px;
}

/* 햄버거 메뉴 버튼 */
.mobile-menu-toggle {
    display: none;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
    background: #1e7dff;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 10000;
}

/* 슬라이딩 메뉴 */
.mobile-menu-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #5399f9; /* 세련된 진회색 */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu-wrapper.active {
    transform: translateX(0);
}

.mobile-menu-header {
    position: relative; /* 자식 absolute 위치 기준 */
    height: 60px; /* 높이는 필요 시 조정 */
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffffff;
    color: #333333;
    border: none;
    font-size: 14px;
    border-radius: 20px; /* 좌우 둥근 모양 */
    padding: 4px 12px;
    cursor: pointer;
    line-height: 1;
}



/* 메뉴 스타일 */
.mobile-menu a,
.mobile-menu span {
    display: block;
    color: #eeeeee; /* 고급 밝은 회색 텍스트 */
    text-decoration: none;
    margin: 12px 0;
    font-size: 16px;
    font-weight: 500;
}

/* 서브메뉴 - 가로 정렬 */
.mobile-submenu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 20px 0;
    padding-left: 10px;
}

.mobile-submenu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 항목 사이 간격, 필요 시 조절 */
}

.mobile-submenu a {
    width: 100%;
    background: transparent;
    padding: 6px 12px;
    border: 1px solid #fff;
    border-radius: 0px;
    font-size: 14px;
    color: #fff;
    text-align: center; /* 텍스트 가운데 정렬 */
    box-sizing: border-box; /* 패딩/보더 포함한 폭 계산 */
}



/* 강조 버튼 */
.mobile-contact {
    background: orangered;
    color: white;
    padding: 10px;
    border-radius: 8px 0 0 8px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    display: block;
}

/* 반응형 조건 */
@media (max-width: 768px) {
    .custom-main-menu,
    .custom-contact-btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .custom-header-inner {
        flex-wrap: wrap;
    }
}
