.rs-cover-image a {
    background-color: #eeeeee;
    color: #555555;
    display: block;
    font-size: 18px;
    height: 100%;
    width: 100%;
}
.rs-placeholder {
  width: 90px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: #666;
  font-size: 30px;
   font-weight: bold;
  border: 1px solid #ccc;

}

@media (max-width: 768px) {
  .rs-archive-item {
    flex-direction: column;
  }
  .rs-archive-item .cover {
    margin-right: 0;
    margin-bottom: 10px;
  }
}


.rs-search-bar-wrap {
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: center;
  align-items: flex-start;  /* ✅ 이 줄만 수정 */
  width: 80%;
}

   .rs-search-bar-wrap.has-error {
    padding-bottom: 60px;
  }
  .rs-error
{
	color: red; font-size: 13px; 
	margin: 5px auto 0; width: 100%; text-align: left;
	padding:10px 0;

}


.rs-search-bar-wrap select,
.rs-search-bar-wrap input,
.rs-search-bar-wrap button {
  height: 44px;
  font-size: 14px;
}

.rs-search-bar-wrap select {
  min-width: 150px;
  padding: 0 10px;
}

.rs-search-bar-wrap input.rs-input {
  flex: 1;
 min-width: 250px;
  padding: 0 12px;
}

.rs-search-bar-wrap .rs-btn-search {
  white-space: nowrap;
  padding: 0 16px;
}





/* 공통: 모든 해상도에서 적용됨 */
.rs-select1{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: white;
  border: 1px solid #333;
  padding: 8px 12px;
  font-size: 14px;
  height: 40px;
  border-radius: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23993f98' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px 20px;
  padding-right: 30px;
  width:150px;
}

.rs-select2{
 -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: white;
  border: 1px solid #333;
  padding: 8px 12px;
  font-size: 14px;
  height: 40px;
  border-radius: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23993f98' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px 20px;
  padding-right: 30px;
  flex:1;


} 

.rs-input {
  padding: 8px 12px;
  padding-right: 30px; /* ✅ clear-btn 공간 */
  font-size: 16px;
  height: 40px;
  flex: 1;
  min-width: 0;
}




@media (max-width: 768px) {

.rs-select1 {
    font-size: 13px;
    height: 38px;
  }
  .rs-select2 {
    font-size: 13px;
    height: 38px;
  }

#rs_search_area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

  #rs_search_area select,
  #rs_search_area .rs-input-wrap,
  #rs_search_area .rs-btn-search {
    flex: 1 1 auto;
  }

  #rs_search_area .rs-input-wrap {
    flex: 2 1 auto;
    width: 100%;
  }

  #rs_search_area .rs-btn-search {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 16px;
	margin:0 auto;
  }

 .rs-search-bar-wrap input.rs-input {
    min-width: auto;
    width: 100%;
    padding: 6px 10px; /* 모바일에 맞게 조절 */
    flex: unset;
  }
 
  .rs-btn-search {
    height: 40px;
    white-space: nowrap;
    padding: 0 12px;
  }
}



.rs-btn-search {
  padding: 0 16px;
  height: 40px;
  background-color: #993f98 ;
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  width:48px;
  height:38px;

}

.rs-btn-search .pe-7s-search {
  font-size: 18px;
  font-weight: bold;

}

.rs-search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px 15px;
}
.rs-result-item {
  flex: none;
}
.rs-download {
  margin-left: auto;
}

.rs-btn-order {
  margin-left: 10px;
}

.dropdown-wrap {
  position: relative;
  flex: none;
}

.btn-download {
  background-color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  height:40px;
  border:1px solid #333;
}

@media (max-width: 768px) {
.btn-download
 {font-size: 13px;
        height: 38px;}
}

.btn-download:hover {
  background-color: #fff;
}

.btn-download .caret {
  border-top: 5px solid #993f98;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  height: 0;
  width: 0;
  display: inline-block;
  margin-left: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  min-width: 160px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #f2f2f2;
}
.rs-order {
 
}

.text-highlight {
  background: rgba(153, 63, 152, 0.6);
  color: #fff;
  font-weight: bold;
  padding: 4px;
  border-radius: 4px;
}
.rs-placeholder {
  width: 140px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: #666;
  font-size: 24px;
  border: 1px solid #ccc;
}
@media (max-width: 768px) {
  .rs-archive-item {
    flex-direction: column;
  }
  .rs-archive-item .cover {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .rs-search-result {
    flex-wrap: nowrap; /* 중요! 줄바꿈 안되게 */
    flex-direction: row; /* 한 줄 */
    justify-content: space-between;
  }

  .rs-result-item {
    width: auto;
    flex: none;
  }
}

.rs-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rs-input-wrap {
  position: relative;
  width: 100%;
  
  display: flex;
}

.rs-input-wrap.hidden {
display: none !important; /* ✅ 이 줄 추가 */
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  visibility: hidden;
}

.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  z-index: 2; /* ← 혹시 가려질 경우 */
}

.clear-btn:hover {
  color: #333;
}
@media (max-width: 768px) {
  #year_error {
    font-size: 12px;
    margin-top: 2px;
  }
}


.rs-highlight {
  background: linear-gradient(to top, #ffe1a8 90%, transparent 10%);
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.rs-highlight-orange,
.rs-highlight-purple,
.rs-highlight-green{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  vertical-align: middle;
  height: 24px;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: bold;
}

.rs-highlight-orange {
  background: #e77f22;
  border: 1px solid #e77f22;
  color: #fff;  
  margin-right:5px;
}

.rs-highlight-purple {
  background: #993f98;
  border: 1px solid #993f98;
  color: #fff;
  margin-right:5px;
}

.rs-highlight-green {

background:#28a54a;
border: 1px solid #28a54a;
color: #fff;
margin-right:5px;
}

.rs-b-green
{
	color:#28a54a;
	font-weight: bold;
	padding: 2px 2px;
	vertical-align: middle;

}

.rs-write
{
	color:#444;
}

.rs-write.form-group input{
    padding: 3px 6px;
	}

.rs-keyword-wrap {
    margin-top: 10px;
}

.rs-keyword-item {
    display: inline-block;
    margin: 3px 5px 3px 0;
    padding: 2px 8px;
    font-size: 12px;
    color: #555;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 20px; /* 라운드 버튼 느낌 */
    text-decoration: none;
    transition: all 0.2s;
}

.rs-keyword-item:hover {
    background: #e0e0e0;
    color: #333;
    border-color: #999;
}

.pub_box {    
    text-shadow: 0 1px #fff;
    background: #f2f2f2;
    word-wrap: break-word;
    border: 1px solid #ccc;
    border-radius: 4px;    
    padding: 10px 20px 20px 20px;
	margin-top:20px;
    position: relative; /* 라벨 위치를 위해 필요 */
}

.pub-label {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #cfcfcf;
    color: #000;
    font-size: .9em;
    border-radius: 0 0 0 5px;
    text-shadow: none;
	display: inline-block;
	padding:0 10px;
}

 
.rs-archive-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  text-decoration: none;
}

.rs-range {
  width: 150px;
  font-weight: bold;
}
/* 공통 스타일 */
.rs-archive-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  text-decoration: none;
  color: inherit; /* 링크 색상 유지 */
}

/* 전체 li에 hover 효과 */
#rs_archive_main2_ul li.list-group-item:hover {
  background-color: #efefef;
 
}
/* li:hover 시 텍스트 색상 변경 */
#rs_archive_main2_ul li.list-group-item:hover .rs-archive-link span {
  color: #28a54a;
}
/* GA 범위 스타일 */
.rs-range {
  width: 150px;
  font-weight: bold;
}

/* 카테고리명 스타일 */
.rs-category {
  flex: 1;
  padding-left: 10px;
  text-align: left;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .rs-archive-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .rs-range,
  .rs-category {
    width: 100%;
    padding-left: 0;
    margin-bottom: 3px;
  }
}


.rs-timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rs-timeline-list li {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap; /* 모바일용 줄바꿈 처리 */
}

.rs-timeline-date {
  width: 100px;
  min-width: 100px;
  font-weight: bold;
  color: #555;
  font-family:"Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.rs-timeline-desc {
  flex: 1;
  padding-left: 10px;
  color: #333;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .rs-timeline-date {
    width: 100%;
    margin-bottom: 4px;
  }

  .rs-timeline-desc {
    padding-left: 0;
  }
}

/* 국내발간도서 해시태그 스타일 */
.rs-search-hashtag {
  margin: 5px 0 10px 0;
  text-align: center;
}

.rs-search-hashtag .hashtag-link {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  color: #333;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rs-search-hashtag .hashtag-link:hover {
  background-color: #e2e2e2;
  border-color: #999;
  color: #000;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .rs-search-hashtag {
    margin: 8px 0 15px 0;
  }

  .rs-search-hashtag .hashtag-link {
    font-size: 13px;
    padding: 5px 12px;
  }
}


