:root {
}
/* 전체 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 전체 레이아웃 */

/* 좌측 고정 사이드바 */
.sidebar {
  position: fixed;
  width: 35%;
  height: 100vh;
  background-color: #dbdbdb;
  padding: 2rem 3rem;
  overflow: hidden;
  border-right: 1px solid #ddd;
}

/* 설명 영역 */
.info-section {
  height: 10vh;
  margin-bottom: 20px;
}

.info-section li.article {
  display: block;
  padding-top: 1rem;
}

.info-section li.article .language span {
  display: inline-block;
  font-size: 0.8rem;
  border: 1px solid #ffffff;
  background-color: #777777;
  color: #fff;
  border-radius: 20px;
  padding: 1px 8px;
  margin-right: 4px;
}

.article_group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.info-section h2 {
  font-size: 0.9rem;
  color: #636363;

  font-weight: 300;
}

.info-section h3 {
  font-size: 1rem;
  color: #303030;
}

.info-section p {
  font-size: 1.1rem;
  color: #303030;
}

.info-section p b {
  font-size: 1em;
  color: #111;
}

/* 각 항목 내용 스크롤 처리 */
.scrollable {
  height: 100%;
  overflow-y: auto;
  padding-right: 8px;
  font-size: 14px;
  line-height: 1.6;
}

/* 우측 포트폴리오 이미지 영역 */
.portfolio-container {
  margin-left: 35%;
  width: 65%;
  padding: 3rem;
  padding-top: 80px;
  padding-bottom: 100px;
  overflow-y: auto;
}

/* 이미지 스타일 */
.portfolio-image {
  width: 100%;
  margin-bottom: 40px;
  min-height: 600px;
  object-fit: cover;
  border-radius: 8px;
}

.portfolio-image img {
  width: 100%;
  display: block;
  max-width: 750px;
  margin: auto;
}

/* 상단 목록페이지 버튼 */
.back-to-list {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 32px;
  background-color: #044c5d;
  color: white;
  border: none;
  z-index: 1000;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: initial;
  cursor: pointer;
  border-radius: 24px;
  align-items: center;
}

/* 하단 가장위로 버튼 */
.btn-bottom-right {
  display: flex;
  position: fixed;
  bottom: 90px;
  right: 20px;
  font-size: 32px;
  background-color: #044c5d;
  color: white;
  border: none;
  z-index: 1000;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: initial;
  cursor: pointer;
  border-radius: 24px;
  align-items: center;
}

@media (max-width: 768px) {
  .sidebar {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    border-right: 0px;
    overflow: visible;
  }
  .info-section {
    height: auto;
    margin-bottom: 1rem;
    padding-top: 30px;
  }

  .info-section h2 {
    min-width: 90px;
  }

  .info-section li.article {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .portfolio-container {
    margin-left: 0;
    width: 100%;
    padding: 15px;
    padding-top: 40px;
    padding-bottom: 40px;
    overflow-y: auto;
  }
}
