html {
    font-size: 62.5%; /* 기본 62.5%에서 낮춤으로써 모든 rem 단위 요소 축소 */
}

/* 네비바 크기조절 및 고정 */
.gh-navigation {
    top: 0;
    width: 100%;
    position: fixed !important;
    z-index: 9999;
    background-color: var(--color-bg, #ffffff) !important;
    border-bottom: 1px solid var(--color-border, #ebebeb);
    height: 7rem;
}
.gh-navigation-menu {
    display: none !important;
}
.gh-navigation-logo {
    font-size: 3rem !important;
    font-weight: 800;
}
/* [기본 설정] PC 기준으로 먼저 작성 (미디어 쿼리 밖으로 빼기) */
.gh-site-layout {
    display: flex;
}

.gh-sidebar-fixed {
    display: block; /* 기본적으로 보이게 설정 */
    position: fixed;
    top: 16rem;
    left: 1rem;
    width: 25rem;
    height: 100vh;
    border-right: 1px solid var(--color-border, #ebebeb);
    background: var(--color-bg, #ffffff);
    z-index: 1000;
    padding: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.gh-body-wrapper {
    margin-top: 12rem;
    flex: 1;
    margin-left: 25rem;
    width: calc(100% - 25rem);
    min-height: 100vh;
}

.gh-sidebar-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0;
}

.gh-article-title {
    font-size: 3rem !important; /* 기존보다 줄인 크기 (취향에 따라 3.5~4.5 사이 조절) */
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .gh-header-custom {
        display: block;
    }

    .gh-header-custom-mobile {
        display: none;
    } 

}
/* 커스텀 헤더 스타일 */
.gh-custom-hero {
    margin-top: 0px !important; /* 탑바 높이만큼 하단으로 밀기 */
    background: linear-gradient(135deg, #2b1b54 0%, #6e1e7a 100%) !important;
    padding: 0.5rem !important;
    color: #ffffff;
    text-align: center;
    height: 10rem;
}
.gh-header-title {
    font-size: 2rem !important;
    font-weight: 600;
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
}
/* [모바일 설정] 767px 이하일 때만 숨기기 */
@media (max-width: 767px) {

    .gh-sidebar-fixed {
        display: none;
    }

    .gh-header-custom {
        display: none;
    }

    .gh-header-custom-mobile {
        display: block;
        padding-bottom: 1.5rem;
    }

    .gh-body-wrapper {
        margin-left: 0;
        width: 100%;
        margin-top: 2rem;
    }
     /* 1. 최상위 메뉴 컨테이너: 자식들을 왼쪽으로 정렬 */
    .gh-navigation-menu {
        display: block !important;
        flex-grow: 0 !important;             /* 빈 공간 채우기 금지 */
        margin-top: 1rem;         /* 로고와의 간격만 유지 */
    }

    .gh-navigation-inner {
        grid-template-rows: none !important; /* 위아래 공간 나누기 해제 */
        display: block !important;           /* 그리드 대신 블록 레이아웃 사용 */
        height: auto !important;
        overflow-y: auto !important;
    }
    .gh-navigation .nav {
        display: inline-flex !important; /* 메뉴 항목들을 가로로 나열 */
        padding-bottom: 2.1rem;
        align-items: unset !important;
        width: 100%;
    }

    /* 3. 아래쪽 버튼 영역(Subscribe 등)도 자연스럽게 따라오도록 */
    .gh-navigation-actions {
        display: block !important;
        margin-top: 40px !important;         /* 메뉴 끝난 뒤 적당한 간격 */
        position: relative !important;
    }
}



.gh-form {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 1);
    color: #ebebeb;
    border-radius: 100px;
    max-width: 500px;
    cursor: pointer;
    height: 3.5rem;
}

/* Sidebar아코디언 스타일 */
.gh-nested-accordion {
    display: flex;
    flex-direction: column;
}

.accordion-item {
    /* border-bottom: 1px solid var(--color-border-gray, #f0f0f0); */
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    cursor: pointer;
    font-size: 1.75rem;
    font-weight: 600;
    list-style: none;
    align-items: center; /* 세로 중앙 정렬 */
    border-bottom: none !important; /* 제목 아래 선 제거 */
}

.accordion-header .icon {
    font-size: 2rem;       /* 화살표 크기 조절 (원하는 만큼 키우세요) */
    font-weight: 1000;
    transition: transform 0.3s ease; /* 회전 애니메이션 */
    display: inline-block;
}

/* 아코디언이 열렸을 때 화살표 회전 (선택 사항) */
details[open] .accordion-header .icon {
    transform: rotate(180deg); /* 180도 회전하여 위를 향하게 함 */
}

.accordion-child-list {
    list-style: none;
    padding: 0 0 1rem 1.5rem; /* 들여쓰기 */
    margin: 0;
}

.accordion-child-list li {
    padding: 0rem 0;
}

.accordion-child-list a {
    font-size: 1.5rem;
    color: var(--color-secondary);
    display: flex;
    justify-content: space-between;
}

.accordion-single {
    padding: 1rem 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
 /*   border-bottom: 1px solid var(--color-border-gray, #f0f0f0);*/
    display: flex;
    justify-content: space-between;
}

.c-count {
    font-size: 1.5rem;
    opacity: 0.7;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.gh-sidebar-latest-list {
    list-style: none;
    padding: 1rem 0.5rem;
    margin: 0;
}

/* 1. 사이드바 내 네비게이션 컨테이너 정리 */
.gh-navigation-menu-fixed {
    margin-bottom: 1rem; /* Topics 섹션과의 간격 */
}

/* 2. HOME, ABOUT 리스트 스타일 제거 */
.gh-navigation-menu-fixed ul.nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. HOME, ABOUT 링크 스타일을 사이드바(accordion-single)와 동일하게 */
.gh-navigation-menu-fixed ul.nav li a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0rem; /* 아코디언 항목과 동일한 패딩 */
    font-size: 1.75rem;    /* 아코디언 폰트 크기와 동일 */
    font-weight: 600;     /* 아코디언 폰트 두께와 동일 */
    text-transform: none; /* 대문자 고정 해제 */
    color: var(--color-darkgray, #15171a);
    text-decoration: none;
    /* Topics 항목 아래의 선과 일치시키고 싶다면 추가 */
    border-bottom: 1px solid var(--color-border-gray, #f0f0f0); 
}