/**
 * News / press page — 보도
 *
 * @package AriawellTheme
 */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

@font-face {
	font-family: "Paperlogy";
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2") format("woff2");
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------ */
/* Layout                                                             */
/* ------------------------------------------------------------------ */

body.page-news-layout {
	background: #fff;
}

#main-content.site-main--news {
	--about-hero-inv-r: 3rem;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.site-main--news {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* ------------------------------------------------------------------ */
/* News list                                                          */
/* ------------------------------------------------------------------ */

.news-list {
	position: relative;
	z-index: 2;
	margin-top: calc(-1 * var(--about-hero-inv-r));
	padding: calc(clamp(3rem, 5.5vw, 10rem) + var(--about-hero-inv-r)) var(--aw-layout-gutter-x) clamp(4rem, 7vw, 8.75rem);
	background: #fff;
	border-radius: var(--about-hero-inv-r) var(--about-hero-inv-r) 0 0;
}

.news-list__items,
.lecture-pagination,
.news-search {
	max-width: var(--aw-content-max);
	margin-left: auto;
	margin-right: auto;
}

.news-list__items {
	display: flex;
	flex-direction: column;
	gap: 3.125rem;
}

.news-list__empty {
	margin: 0;
	padding: clamp(2rem, 4vw, 4rem) 0;
	font-family: var(--aw-font-sans);
	font-size: clamp(1rem, 1.25vw, 1.125rem);
	font-weight: 500;
	line-height: 1.6;
	color: #666;
	text-align: center;
}

.news-list__item {
	border-bottom: 1px solid #d9d9d9;
	padding-bottom: 3.125rem;
}

.news-list__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.news-list__link {
	display: flex;
	align-items: center;
	gap: clamp(1.5rem, 3.75vw, 3.75rem);
	color: inherit;
	transition: opacity 0.2s ease;
}

.news-list__link:hover,
.news-list__link:focus-visible {
	opacity: 0.85;
}

.news-list__thumb {
	flex-shrink: 0;
	width: clamp(200px, 24.4vw, 312px);
	height: clamp(123px, 15vw, 192px);
	border-radius: 12px;
	overflow: hidden;
}

.news-list__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-list__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 1.25rem;
	max-width: 100%;
	min-width: 0;
}

.news-list__title {
	margin: 0;
	overflow: hidden;
	font-family: var(--aw-font-sans);
	font-size: clamp(1.25rem, 2vw, 1.625rem);
	font-weight: 700;
	line-height: 1.46;
	color: #111;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.news-list__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-family: var(--aw-font-sans);
	font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
	font-weight: 500;
	line-height: 1.67;
	color: #666;
	letter-spacing: -0.025em;
}

.news-list__date {
	flex-shrink: 0;
	margin-left: auto;
	font-family: var(--aw-font-sans);
	font-size: clamp(1rem, 1.25vw, 1.25rem);
	font-weight: 500;
	color: #454545;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Search                                                             */
/* ------------------------------------------------------------------ */

.news-search {
	position: relative;
	display: flex;
	align-items: center;
	width: min(100%, 450px);
	margin: clamp(2rem, 3.5vw, 3.75rem) auto 0;
	border-bottom: 1px solid #d9d9d9;
}

.news-search__input {
	flex: 1;
	width: 100%;
	padding: 0.5rem 2.5rem 0.75rem 0;
	border: 0;
	background: transparent;
	font-family: var(--aw-font-sans);
	font-size: 1rem;
	color: #111;
	letter-spacing: -0.02em;
}

.news-search__input::placeholder {
	color: #aeaeae;
}

.news-search__input:focus {
	outline: none;
}

.news-search__input:focus-visible {
	outline: 2px solid var(--aw-color-focus);
	outline-offset: 4px;
}

.news-search__submit {
	position: absolute;
	right: 0;
	bottom: 0.625rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
}

.news-search__submit img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* Mobile                                                             */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.news-list__link {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.news-list__date {
		width: 100%;
		margin-left: 0;
		padding-left: calc(clamp(200px, 24.4vw, 312px) + clamp(1.5rem, 3.75vw, 3.75rem));
		font-size: 0.9375rem;
	}
}

@media (max-width: 768px) {
	#main-content.site-main--news {
		--about-hero-inv-r: 2rem;
	}

	.news-list__link {
		flex-direction: column;
		gap: 1.25rem;
	}

	.news-list__thumb {
		width: 100%;
		max-width: none;
		height: clamp(180px, 52vw, 240px);
	}

	.news-list__date {
		padding-left: 0;
	}
}
