/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

/* Hide empty post header section */
.single-post .section-post-header {
    display: none;
}

/* ===== 스티키(스크롤) 상태일 때만 헤더를 한 줄로 압축 (2026-06-26) =====
   평소(상단)에는 Betheme stack 레이아웃(로고 위 / 메뉴 아래) 그대로 유지.
   스크롤 시 #Top_bar.is-sticky 가 붙으면 로고 + 메뉴 + 버튼을 가로 한 줄로 배치. */
.header-stack #Top_bar.is-sticky .top_bar_left {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

/* 로고: 줄어들지 않게 고정, 왼쪽 정렬 */
.header-stack #Top_bar.is-sticky .logo {
    float: none !important;
    margin: 0 30px 0 0 !important;
    flex: 0 0 auto !important;
    text-align: left !important;
    width: auto !important;
    min-height: 0 !important;
    line-height: normal !important;
}
.header-stack #Top_bar.is-sticky .logo #logo {
    padding: 0 !important;
    line-height: normal !important;
    height: auto !important;
}

/* 메뉴 래퍼: 남는 공간 채우며 한 줄로 */
.header-stack #Top_bar.is-sticky .menu_wrapper {
    float: none !important;
    flex: 1 1 auto !important;
    width: auto !important;
    margin: 0 !important;
    text-align: left !important;
}

/* 메뉴(ul) 가로 한 줄, 중앙 정렬 해제 */
.header-stack #Top_bar.is-sticky #menu {
    float: none !important;
    width: auto !important;
}
.header-stack #Top_bar.is-sticky ul.menu.menu-main {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    float: none !important;
    width: auto !important;
}
.header-stack #Top_bar.is-sticky ul.menu.menu-main > li {
    float: none !important;
}

/* Buy now 등 secondary 메뉴 / 버튼은 오른쪽 끝으로 */
.header-stack #Top_bar.is-sticky .secondary_menu_wrapper,
.header-stack #Top_bar.is-sticky .top_bar_right {
    float: none !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

/* ===== 영문/한글 폰트 분리 (2026-06-27) =====
   영문은 Inter, 한글은 Noto Sans KR — fallback 순서로 자동 분리. */
body,
#Top_bar #logo,
.menu a,
h1, h2, h3, h4, h5, h6,
.mcb-section .title,
.column_attr,
p, span, a, div, button, input, textarea, select,
.button {
  font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Buy now 와 메뉴(중앙정렬 유지) 간격 확보 — 버튼 박스만 살짝 우측 이동 (2026-06-29) */
#Top_bar .top_bar_right {
    transform: translateX(40px) !important;
}
