/* 1. 히어로 */
.news-hero {  position: relative; width: 100%; height: 580px; overflow: hidden; }
.hero-img-wrap {
    height: 100%; 
}
.hero-img-wrap img {
	width: 100%;
 	height: 100%;
  
    object-fit: cover;
   object-position: center;
   }



.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  
}


/*search-box*/

/* 검색 박스 */
.news-header .search-box {
    position: relative;
    width: 190px;
}

/* input */
.news-header .search-box input {
    width: 100%;
    height: 36px;

    background: rgba(244, 244, 244, 1); /* 🔥 시안 핵심 */
    border: none;

    padding: 0 12px 0 36px; /* 🔥 아이콘 공간 확보 */
    font-size: 13px;
    color: rgba(102, 102, 102, 1);	
}

/* placeholder */
.news-header .search-box input::placeholder {
    color: rgba(102, 102, 102, 1);
    width: 100%;
    font-size: 13px;
    text-align: right;
}

/* 아이콘 */
.news-header .search-box i {
    position: absolute;
    left: 10px;   /* 🔥 좌측 고정 */
    top: 48%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
}

.tabs {
    display: flex;
    gap: 40px;
 
}

.tab {
	font-style:Bold;
	font-size:26px;
    font-weight: 700;
    cursor: pointer;
  color:rgba(0, 0, 0, 1);	
}

.tab.active {
    color: rgba(93, 19, 234, 1);
    border-bottom: 2px solid rgba(93, 19, 234, 1);
    padding-bottom: 5px;
}

.tab:hover{
	   border-bottom: 2px solid rgba(0, 0, 0, 1);
}


.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tag {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

.tag:hover {
	color:rgba(93, 19, 234, 1);
	
}


.tag.active {
    background: #6C3BFF;
    color: #fff;
    border-color: #6C3BFF;
}
.news-list {
	margin-top:100px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.news-item {

	
    display: flex;
    gap: 130px;
    align-items: flex-start;
}
.thumb img {
    width: 420px;
    height: 260px;
    object-fit: cover center;
    display: block;
}

.content {
    display: flex;
    flex-direction: column;
    height: 260px;
    width: 100%;
}

.content h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 27px;
}

.content .desc {
	font-weight: 400;
	font-style:Regular;
    font-size: 16px;
    color: rgba(136, 136, 136, 1);
    margin-bottom: 25px;
}
.meta {
    display: flex;
   margin-top: auto; 

      justify-content: space-between;
    align-items: center;
}

.meta .date {
    font-size: 12px;
    color: #aaa;
}

.labels {
    display: flex;
    gap: 8px;
}

.labels span {
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #999;
}
.news-more {
    text-align: center;
    margin-top: 60px;
}




.news-more button {
    padding: 12px 40px;
    background: rgba(244, 244, 244, 1);
    border: none;
    cursor: pointer;
    color:rgba(51, 51, 51, 1);
    font-weight:400;
    font-style:Regular;
    font-size:16px;
	    
}

.news-more button:hover {
	color : #fff;
	background : rgba(93, 19, 234, 1);
	
}


/*mobile~~~~~~~~~~~~~ */

@media (max-width: 768px) {

  /* 전체 패딩 */
  .news-section .inner {
    padding: 0 20px;
     margin: 0 auto; 
  }

  /* 탭 (가로 스크롤) */
  .tabs {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 15px;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    font-size: 16px;
    color: #999;
  }

  .tab.active {
    color: #4f46e5;
    font-weight: 600;
  }

  /* 검색 */
  .news-header {
    flex-direction: column;
    gap: 15px;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
    height: 44px;
  }

  /* 태그 */
  .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
  }

  .tag {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    background: #f3f3f3;
    color: #666;
  }

  .tag.active {
    background: #000;
    color: #fff;
  }



.news-list {
  width: 100%;
  max-width: 800px;
  margin: 0 auto; 
}

  /* 뉴스 카드 */
  .news-item {
  
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
  } 
  .news-item:first-child{
  
  	margin-top: 30px;
  
  }

	  .thumb {
	  display: flex;
	  justify-content: center;
	}
.thumb img {
    width: 80%;
    
  
    height: auto;
    object-fit: contain;
  }
  .content h3 {
    font-size: 16px;
    line-height: 1.4;
  }

  .desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
  }

  .meta {
  margin-top:20px;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  flex-direction: row; 
}

  .meta .date {
    font-size: 12px;
    color: #aaa;
  }

  .labels {
    display: flex;
    gap: 8px;
  }

  .labels span {
    font-size: 11px;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 4px 10px;
    color: #666;
  }

  /* 버튼 */
  .news-more {
    text-align: center;
    margin-top: 30px;
  }

  .news-more button {
    background: #f3f3f3;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
  }

}