/* ===== 공통 스타일 ===== */
#wSubnavi {
    display: none;
    align-items: center;
    background-color: #f7fbff;
    color: #000;
    padding: 15px 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mainlogo {
    display: flex;
    align-items: center;     /* 수직 정렬 */
}

.desktop-logo {
    height: 40px;            /* 데스크탑 로고 크기 조정 */
    width: auto;             /* 비율 유지 */
    margin-left: 20px;       /* 🔹 좌측 여백 추가 (모바일 로고와 구분) */
}
.menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

.menu li {
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    font-size: 18px;
    font-weight: 600;  /* 🔹 살짝 얇게 설정 */
}

.menu li a {
    color: inherit;
    text-decoration: none;
    font: inherit;
    display: block;
   
}


.menu li:hover {
    background-color: #f0f0f0;
}

/* ===== 서브메뉴 스타일 ===== */
.submenu {
    display: none;
    background-color: #f5f5f5;
    padding: 20px 0;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    display: flex;
    gap: 20px;
    justify-content: center;

    z-index: 999;
}

.submenu a {
    text-decoration: none;
    color: #7a7a7a;
    padding: 0 15px;
    position: relative;
}

.submenu a:not(:last-child)::after {
    content: "|";
    margin-left: 50px;
    color: #bbb;
}

.submenu a:hover {
    color: #1e3a8a;
}

.language {
    margin-left: auto;
    padding-right: 100px;
    cursor: pointer;
    text-decoration: none; /* 밑줄 제거 */
    color: inherit;         /* 현재 텍스트 색상 유지 */
}
/* ===== 모바일 메뉴 ===== */
#mobile-menu-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1001;
    height: 60px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#mobile-menu-nav .logo-container {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1002;
    background: white;
}

#mobile-menu-nav .logo {
    height: 40px;
    width: auto;
    cursor: pointer;
}

.menu-icons {
    display: flex;
    gap: 20px;
    align-items: center;            /* 수직 가운데 정렬 */
    padding: 10px 0;                /* 상하 여백 추가 */
    margin-left: 20px; 
}

.icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    
}

#mobile-menu-nav .mobile-language {
    position: fixed;
    top: 15px;
    right: 80px;
    z-index: 1002;
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    text-decoration: none;         /* 밑줄 제거 */
    color: black;                  /* 텍스트 색상 */
}





.mobile-menu {
    display: none;
    list-style: none;
    background-color: #f2f2f2;
    padding: 0;
    margin: 0;
}

.mobile-menu.visible {
    display: block;
}

/* 모바일 서브메뉴 */
.mobile-submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}

.mobile-submenu.visible {
    display: block;
}

/* 모바일 메뉴 헤더 */
.mobile-menu-header {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    width: 100%;
    padding: 10px;
    color: #333;
    margin-bottom: 5px;
}

.mobile-menu-header:hover {
    background-color: #ddd;
}

/* 서브메뉴 항목 */
.mobile-submenu li {
    margin-bottom: 12px;
}

.mobile-submenu a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    display: block;
}

/* Footer Section */
.footer-section {
    background-color: #000000; /* 검은색 배경 */
    color: #ffffff; /* 흰색 텍스트 */
    padding: 20px 0;
    text-align: center;
}

.footer-section .footer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-section .footer-content p {
    margin: 5px 0;
    font-size: 1rem;
}
/* ===== 반응형 설정 ===== */
@media (min-width: 769px) {
    #wSubnavi {
        display: flex;
    }

    #mobile-menu-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    #mobile-menu-nav {
        display: block;
    }

    #wSubnavi {
        display: none;
    }
}


.layout {
    position: relative;             /* 🔹 .layout이 본문 안에 위치하도록 설정 */
    display: flex;                  /* Flex로 레이아웃 구성 */
}

.leftsidebar {
    width: 200px;                   /* 왼쪽 메뉴 너비 */
    background-color: #f0f4f8;
    border-right: 1px solid #ddd;
    border-left: 1px solid #ddd;
    height: 100%;                   /* 전체 높이 설정 */
    position: absolute;             /* 🔹 화면 전체가 아닌 .layout 안에서만 왼쪽 고정 */
    top: 0;
    left: 20px;
    z-index: 1000;
}

.content-area {
    margin-left: 60px;             /* 🔹 사이드바 너비만큼 우측으로 이동 */
    width: calc(100% - 250px);      /* 🔹 사이드바를 제외한 나머지 공간 차지 */
    box-sizing: border-box;         /* 콘텐츠가 부모 요소 너비를 초과하지 않도록 설정 */
}


.sidebar-header {
    background-color: #5385cb;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 20px;
}

.sidebar-image {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.sidebar-title h2 {
    font-size: 20px;
    margin: 0;
}

.sidebar-title p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #dce6f0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
}

.sidebar-menu a {
    display: block;
    padding: 15px 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.sidebar-menu a.active {
    font-weight: bold;
    color: #0d3d80;
}

.sidebar-menu a:hover {
    background-color: #e6edf7;
}

.content-wrapper-special {
    margin-left: 250px;         /* 🔹 사이드바 너비만큼 본문 우측으로 이동 */
    width: calc(100% - 250px);  /* 🔹 사이드바를 제외한 나머지 공간 차지 */
    box-sizing: border-box;     /* 🔹 콘텐츠가 부모 요소 너비를 초과하지 않도록 설정 */
    padding: 20px;              /* 여백 추가 */
}

.sidebar-image {
    width: 100%;                /* 🔹 사이드바의 가로 길이 꽉 차게 설정 */
    height: 200px;              /* 🔹 세로 길이 고정 (정사각형 대신 더 길게) */
   
    margin-bottom: 15px;       /* 🔹 아래 콘텐츠와 여백 추가 */
}

@media (max-width: 768px) {
    .leftsidebar {
        display: none; /* 🔹 모바일에서는 사이드바 숨김 */
    }

    .content-wrapper-special {
        margin-left: 0;         /* 🔹 모바일에서는 좌측 여백 제거 */
        width: 100%;            /* 🔹 콘텐츠가 화면 전체 너비를 차지하도록 설정 */
    }
}


.header-item {
    color: inherit;         /* 부모 색상 그대로 상속 */
    text-decoration: none;  /* 밑줄 제거 */
  }