/*---------------------------------------
	NEWS LIST PAGE
-----------------------------------------*/
.news_page_section {
	position: relative;
	padding-top: 0;
}

.news_page_section .container {
	width: min(100% - 40px, 1000px);
}

/*---------------------------------------
	NEWS FILTER
-----------------------------------------*/
.news_filter {
	position: relative;
	left: 50%;
	width: 100vw;
	margin: 0 0 40px;
	padding: 0 max(20px, calc((100vw - 1000px) / 2));
	border-bottom: 1px solid rgba(216, 184, 106, 0.55);
	transform: translateX(-50%);
}

.news_filter_btn {
	width: 170px;
}

@media (max-width: 900px) {
	.news_filter {
		padding: 0 20px;
	}

	.news_filter_btn {
		width: auto;
		flex-basis: 120px;
	}
}

/*---------------------------------------
	NEWS LIST
-----------------------------------------*/
.news_grid {
	display: block;
}

.news_list_item {
	position: relative;
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr);
	gap: 30px;
	padding: 48px 0;
	color: #ffffff;
	border-bottom: 1px solid rgba(216, 184, 106, 0.42);
	transition: transform 0.25s ease, color 0.25s ease;
}

.news_list_item:hover {
	transform: translateX(6px);
	color: var(--highlight);
	background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(102, 128, 134, 0.226), rgba(0, 0, 0, 0));
}

.news_list_tag {
	width: fit-content;
	height: fit-content;
	background: var(--grey);
	padding: 5px 15px;
	color: white;
	border-radius: 999px;
}

.news_list_content {
	min-width: 0;
}

.news_list_head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 140px;
	gap: 24px;
	align-items: start;
}

.news_list_head h3 {
	font-family: var(--font-main);
	font-size: clamp(22px, 2vw, 26px);
	line-height: 1.4;
	font-weight: 700;
	color: #ffffff;
	transition: color 0.25s ease;
}

.news_list_item:hover .news_list_head h3 {
	color: var(--highlight);
}

.news_list_head time {
	color: rgba(255, 255, 255, 0.36);
	font-family: var(--font-main);
	font-size: 12px;
	text-align: right;
	line-height: 1.8;
}

.news_list_content p {
	max-width: 760px;
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 15px;
	line-height: 2;
}

/*---------------------------------------
	NEWS RESPONSIVE
-----------------------------------------*/
@media (max-width: 900px) {
	.news_filter {
		justify-content: flex-start;
		overflow-x: auto;
		padding: 0 20px;
		scrollbar-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }
	.news_filter::-webkit-scrollbar {
		display: none;
	}
  .news_filter.is_dragging,
  .news_filter.is_momentum {
    cursor: grabbing;
  }

	.news_filter_btn {
		flex: 0 0 120px;
		height: 54px;
		font-size: 16px;
	}

	.news_list_item {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 34px 0;
	}

	.news_list_head {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.news_list_head time {
		text-align: left;
	}

	.news_list_tag {
		width: 68px;
		height: 30px;
		font-size: 14px;
	}
}

@media (max-width: 560px) {
	.news_page_section .container {
		width: min(100% - 28px, 1000px);
	}

	.news_list_head h3 {
		font-size: 20px;
	}

	.news_list_content p {
		font-size: 14px;
		line-height: 1.8;
	}
}

.news_detail_section .container{
	width: min(100% - 20px, var(--container-width));
}

.news_detail {
	max-width: 920px;
	margin: 0 auto;
	padding: 48px;
	border: 1px solid var(--card-border);
	background: var(--card-bg);
	background: linear-gradient(to right, rgba(220, 250, 255, 0.5), rgba(248, 255, 255, 0.65)), url("../../img/news/newsbg.png") left / cover no-repeat;
	background-attachment: fixed;

	position: relative;
	isolation: isolate;
}

.news_detail::before{
	content: '';
	position: absolute;
	top: 50%;
 	left: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 20px);
	height: calc(100% - 20px);
	border: 2px solid rgba(128, 210, 226, 0.85);
	background:linear-gradient(to right, rgba(220, 250, 255, 0.95), rgba(248, 255, 255, 0.65));
	pointer-events: none;
	z-index: -1;
}
.news_detail::after{
	content: '';
	position: absolute;
 	left: 0;
	top: 0;
	transform: rotate(-1.5deg) translateX(-2%);
	width: 100%;
	height: 100%;
	max-height: 500px;
	background:linear-gradient(to left bottom, rgba(144, 238, 255, 0.65), rgba(144, 238, 255, 0.05));
	z-index: -2;
}

.news_detail_meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	color: var(--grey);
	font-size: 14px;
}

.news_detail_meta span {
	background: var(--grey);
	padding: 5px 15px;
	color: white;
	border-radius: 999px;
}

.news_detail_title {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
	font-size: clamp(28px, 4vw, 46px);
	color: var(--color-bg);
	line-height: 1.35;
	font-weight: 800;
}

.news_detail_cover {
	margin-top: 36px;
	overflow: hidden;
	border: 1px solid var(--color-border);
}

.news_detail_cover img {
	width: 100%;
	height: auto;
}

.news_detail_content {
	margin-top: 40px;
	color: #293039;
	font-size: 17px;
	line-height: 2;
}

.news_detail_content p + p {
	margin-top: 18px;
}

.news_detail_content img {
	margin: 28px auto;
}

.news_detail_actions {
	margin-top: 44px;
	text-align: center;
}

.news_detail_actions .secondary_btn{
	color: var(--color-bg);
	border-color: var(--color-bg);
	color: var(--grey);
	border-color:  var(--grey);
}

@media (max-width: 768px) {
	.news_detail {
		padding: 28px 20px;
	}

	.news_detail_meta {
		flex-direction: column;
		gap: 8px;
	}

	.news_detail_content {
		font-size: 16px;
	}
}