/* =========================================================
   activity.html - 이미지 참고형 좌측 네비게이션
   기존 콘텐츠 스타일은 edu.css를 그대로 사용하고,
   네비게이션 영역만 아래 스타일로 덮어씁니다.
   ========================================================= */

:root {
  --nav-blue: #123d9b;
  --nav-blue-dark: #0f3485;
  --nav-text: #102c68;
  --nav-icon: #2b62d5;
  --nav-line: #e5e9f1;
  --nav-bg: #ffffff;
  --nav-width: 220px;
}

/* PC */
@media (min-width: 901px) {
  .container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    display: flex;
    align-items: flex-start;
    gap: 26px;
    box-sizing: border-box;
  }

  .pc-sidebar-ethics {
    display: block;
    flex: 0 0 var(--nav-width);
    width: var(--nav-width);
    min-width: var(--nav-width);
    margin: 0;
    padding: 18px 14px;
    background: var(--nav-bg);
    border-radius: 0;
    border-right: 1px solid var(--nav-line);
    box-shadow: none;
    box-sizing: border-box;
    position: sticky;
    top: 18px;
  }

  .pc-menu-list-ethics {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .pc-menu-list-ethics > a {
    display: block;
    color: var(--nav-text);
    text-decoration: none;
  }

  .pc-menu-list-ethics > a > li {
    position: relative;
    min-height: 62px;
    padding: 0 12px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: var(--nav-text);
    border-radius: 0;
    border-bottom: 1px solid var(--nav-line);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    transition: background .18s ease, color .18s ease;
    box-sizing: border-box;
  }

  .pc-menu-list-ethics > a:first-child > li {
    border-top: 1px solid var(--nav-line);
  }

  .pc-menu-list-ethics > a > li:hover {
    background: #f5f8ff;
    color: var(--nav-blue);
  }

  .pc-menu-list-ethics > a > li.active {
    margin: 10px 0;
    min-height: 62px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--nav-blue), var(--nav-blue-dark));
    color: #fff !important;
    box-shadow: 0 7px 18px rgba(18, 61, 155, .16);
  }

  .pc-menu-list-ethics > a > li.active + * {
    border-top: 0;
  }

  .pc-menu-list-ethics li span[class^="icon_"] {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin: 0;
    opacity: 1;
    filter: none;
  }

  /* 메인페이지 아이콘 */
  .icon_home {
    position: relative;
  }

  .icon_home::before {
    content: "⌂";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    font-size: 25px;
    line-height: 1;
    color: var(--nav-icon);
  }

  .pc-menu-list-ethics > a > li.active .icon_home::before {
    color: #fff;
  }

  /* 기존 sprite/icon 색감이 너무 연할 경우 조금 또렷하게 */
  .pc-menu-list-ethics > a > li:not(.active) span[class^="icon_"] {
    opacity: .9;
  }

  .main-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 0 0 40px;
  }
}

/* 모바일: 기존 로고 + 햄버거 구조는 유지하되,
   펼쳐지는 메뉴도 같은 네이비 계열 디자인으로 통일 */
@media (max-width: 900px) {
  .side-menu {
    background: #fff;
  }

  .menu-list {
    margin-top: 18px;
    padding: 0 18px 30px;
  }

  .menu-list > a {
    text-decoration: none;
  }

  .menu-list > a > li {
    min-height: 58px;
    margin: 0;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--nav-text);
    background: #fff;
    border-radius: 0;
    border-bottom: 1px solid var(--nav-line);
    font-size: 17px;
    box-sizing: border-box;
  }

  .menu-list > a:first-child > li {
    border-top: 1px solid var(--nav-line);
  }

  .menu-list > a > li:hover {
    background: #f5f8ff;
    color: var(--nav-blue);
  }

  .menu-list > a > li.active {
    margin: 9px 0;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--nav-blue), var(--nav-blue-dark));
    color: #fff;
  }

  .menu-list .icon_home::before {
    content: "⌂";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #7ca5ff;
    font-size: 25px;
  }

  .menu-list > a > li.active .icon_home::before {
    color: #fff;
  }
}
