/* ========== Shared Brand News + News list page ========== */

/* ---------- Brand News block (used on brand.php + news.php) ---------- */
.brand-news {
	padding: 8rem 0 9rem;
	background: #fff;
}
.brand-news-top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2.4rem;
	margin-bottom: 4rem;
}
.brand-news-top .brand-section-title {
	margin: 0;
}
.brand-news-more {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.6rem;
	line-height: 1;
	color: #000;
	flex-shrink: 0;
	padding-bottom: 0.4rem;
}
.brand-news-more:hover {
	opacity: 0.7;
}
.brand-news-more .rf-link-arrow {
	width: 0.9rem;
	height: auto;
}
.brand-news-featured {
	position: relative;
	margin-bottom: 2.4rem;
	background: #f5f5f5;
	border-radius: 1.6rem;
	overflow: hidden;
}
.brand-news-swiper {
	width: 100%;
}
.brand-news-feature {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 0;
	align-items: stretch;
}
.brand-news-feature-copy {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	/* Extra bottom room for absolute .brand-news-nav */
	padding: 4rem 4rem 8rem;
	box-sizing: border-box;
}
.brand-news-progress {
	display: flex;
	gap: 0.6rem;
	width: 12rem;
	max-width: 40%;
	margin: 0 0 2.4rem;
}
.brand-news-progress span {
	flex: 1;
	height: 0.2rem;
	border-radius: 0.2rem;
	background: #ddd;
}
.brand-news-progress span.is-active {
	background: #000;
}
.brand-news-feature-copy time {
	display: block;
	margin: 0 0 1.6rem;
	font-size: 1.4rem;
	line-height: 1.4;
	font-weight: 300;
	color: #888;
}
.brand-news-feature-copy h3 {
	margin: 0 0 2.8rem;
	font-family: 'Outfit', sans-serif;
	font-size: 2.6rem;
	line-height: 1.35;
	font-weight: 500;
	color: #000;
	max-width: 48rem;
}
.brand-news-feature-copy h3 a {
	color: inherit;
}
.brand-news-feature-copy h3 a:hover {
	opacity: 0.7;
}
.brand-news-learn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 4.3rem;
	padding: 0 2.4rem;
	border: 2px solid #000;
	border-radius: 20rem;
	font-size: 1.4rem;
	line-height: 1;
	color: #000;
	background: transparent;
	align-self: flex-start;
}
.brand-news-learn:hover {
	background: #000;
	color: #fff;
}
.brand-news-feature-media {
	position: relative;
	display: block;
	padding: 0;
	box-sizing: border-box;
	/* Stable height: avoid Swiper autoHeight jump with lazy images + loop */
	aspect-ratio: 640 / 420;
	overflow: hidden;
	background-color: #e8e8e8;
}
.brand-news-feature-media:hover img {
	opacity: 0.92;
}
.brand-news-feature-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 1.6rem 0 0 1.6rem !important;
}
.brand-news-swiper .swiper-slide {
	height: auto;
}
.brand-news-nav {
	position: absolute;
	left: 4rem;
	bottom: 3.2rem;
	display: flex;
	gap: 0.7rem;
	z-index: 3;
	pointer-events: auto;
}
.brand-news-nav .rf-circle-btn {
	background: #e8e8e8;
	border-color: #e8e8e8;
}
.brand-news-nav .rf-circle-btn.is-dark {
	background: #000;
	border-color: #000;
}
.brand-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.4rem;
}
.brand-news-card {
	background: #f5f5f5;
	border-radius: 1.6rem;
	overflow: hidden;
}
.brand-news-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}
.brand-news-card-media {
	position: relative;
	overflow: hidden;
	line-height: 0;
}
.brand-news-card-media img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 0 !important;
	transition: transform .5s ease, opacity .35s ease;
}
.brand-news-card a:hover .brand-news-card-media img {
	transform: scale(1.04);
}
.brand-news-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 2rem 2rem 2.4rem;
	box-sizing: border-box;
}
.brand-news-card h3 {
	margin: 0 0 3rem;
	font-family: 'Outfit', sans-serif;
	font-size: 2.0rem;
	line-height: 1.35;
	font-weight: 500;
	color: #000;
}
.brand-news-card time {
	margin-top: auto;
	font-size: 1.4rem;
	font-weight: 300;
	color: #888;
}

/* ---------- News list page ---------- */
.news-page .brand-news {
	padding-top: 6.4rem;
}
.news-page-title {
	margin: 0 0 4.8rem;
	text-align: center;
	font-size: 5.6rem;
	line-height: 1.15;
	font-weight: 700;
	color: #000;
}
.news-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2.4rem;
	margin-top: 5.6rem;
}
.news-pager .rf-circle-btn {
	background: #e8e8e8;
	border-color: #e8e8e8;
	flex-shrink: 0;
}
.news-pager .rf-circle-btn.is-dark {
	background: #000;
	border-color: #000;
}
.news-pager-pages {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.news-pager-pages a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6rem;
	font-size: 1.6rem;
	line-height: 1;
	font-weight: 400;
	color: #000;
	position: relative;
	padding-bottom: 0.6rem;
}
.news-pager-pages a.is-active {
	font-weight: 500;
}
.news-pager-pages a.is-active::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 1.6rem;
	height: 0.2rem;
	margin-left: -0.8rem;
	background: #ffa033;
	border-radius: 0.2rem;
}

/* ---------- News detail ---------- */
.news-detail-page {
	background: #fff;
}
.news-detail {
	position: relative;
	--news-bg-height: 42rem;
	padding: 6.4rem 0 9rem;
}
.news-detail::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: var(--news-bg-height);
	background: #f5f5f5;
	z-index: 0;
	pointer-events: none;
}
.news-detail-inner {
	position: relative;
	z-index: 1;
	width: 70%;
	max-width: 120rem;
	margin: 0 auto;
}
.news-detail-head {
	text-align: center;
	margin-bottom: 4rem;
	background: none;
}
.news-detail-date {
	display: block;
	margin: 0 0 1.6rem;
	font-size: 1.4rem;
	line-height: 1.4;
	font-weight: 300;
	color: #888;
}
.news-detail-title {
	margin: 0;
	font-size: 5.6rem;
	line-height: 1.15;
	font-weight: 700;
	color: #000;
}
.news-detail-content {
	font-family: 'Outfit', 'Microsoft YaHei', PingFang SC, -apple-system, Arial, sans-serif;
	font-size: 1.8rem;
	line-height: 1.7;
	font-weight: 300;
	color: #000;
}
.news-detail-content > *:first-child {
	margin-top: 0;
}
.news-detail-content > *:last-child {
	margin-bottom: 0;
}
.news-detail-content p {
	margin: 0 0 2rem;
	font-size: 1.8rem;
	line-height: 1.7;
	font-weight: 300;
	color: #000;
}
.news-detail-content img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 3.2rem;
	border-radius: 1.6rem;
}
.news-detail-content p img {
	margin: 0;
}
.news-detail-content p:has(> img:only-child) {
	margin-bottom: 3.2rem;
}
.news-detail-nav {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 2.4rem;
	margin-top: 5.6rem;
	padding: 2.4rem 3.2rem;
	background: #f5f5f5;
	border-radius: 1.6rem;
	box-sizing: border-box;
}
.news-detail-nav-item {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	min-width: 0;
	flex: 1;
	color: #000;
	text-decoration: none;
}
.news-detail-nav-item:hover {
	opacity: 0.7;
}
.news-detail-nav-item.is-next {
	justify-content: flex-end;
	text-align: right;
}
.news-detail-nav-label {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	flex-shrink: 0;
	font-size: 1.6rem;
	line-height: 1;
	font-weight: 500;
}
.news-detail-nav-label .rf-arrow-img {
	width: 1.2rem;
	height: auto;
}
.news-detail-nav-title {
	display: block;
	min-width: 0;
	font-size: 1.6rem;
	line-height: 1.4;
	font-weight: 300;
	color: #666;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ========== ≤1200px ========== */
@media screen and (max-width: 1200px) {
	.brand-news-feature-copy {
		padding: 3.2rem 3.2rem 8rem;
	}
	.brand-news-feature-copy h3 {
		font-size: 2.2rem;
	}
	.brand-news-nav {
		left: 3.2rem;
	}
}

/* ========== ≤1024px ========== */
@media screen and (max-width: 1024px) {
	.brand-news-feature {
		grid-template-columns: 1fr;
	}
	.brand-news-feature-media {
		padding: 0;
		order: -1;
	}
	.brand-news-feature-media img {
		border-radius: 1.6rem 1.6rem 0 0 !important;
	}
	.brand-news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	/* Only stretch when last card is alone on a row (e.g. 3 cards) */
	.brand-news-grid .brand-news-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		max-width: 100%;
	}
	.news-page-title {
		font-size: 4.4rem;
		margin-bottom: 3.2rem;
	}
	.news-detail-inner {
		width: 82%;
	}
	.news-detail-title {
		font-size: 4.4rem;
	}
}

/* ========== ≤880px ========== */
@media screen and (max-width: 880px) {
	.brand-news {
		padding: 5rem 0 6rem;
	}
	.news-page .brand-news {
		padding-top: 4rem;
	}
	.brand-news-top {
		margin-bottom: 2.4rem;
		align-items: center;
		flex-wrap: wrap;
	}
	.brand-news-feature-copy {
		padding: 2.4rem 2.4rem 7.2rem;
	}
	.brand-news-feature-copy h3 {
		font-size: 2rem;
		margin-bottom: 2rem;
	}
	.brand-news-nav {
		left: 2.4rem;
		bottom: 2.4rem;
	}
	.brand-news-grid {
		grid-template-columns: 1fr;
		gap: 1.6rem;
	}
	.brand-news-grid .brand-news-card:last-child:nth-child(odd) {
		grid-column: auto;
	}
	.brand-news-card h3 {
		font-size: 1.8rem;
	}
	.news-page-title {
		font-size: 3.2rem;
		margin-bottom: 2.4rem;
	}
	.news-pager {
		gap: 1.6rem;
		margin-top: 3.6rem;
	}
	.news-pager-pages {
		gap: 1.4rem;
	}
	.news-detail {
		padding: 4rem 0 6rem;
	}
	.news-detail-inner {
		width: 90%;
	}
	.news-detail-head {
		margin-bottom: 2.8rem;
	}
	.news-detail-title {
		font-size: 3.2rem;
	}
	.news-detail-content,
	.news-detail-content p {
		font-size: 1.6rem;
	}
	.news-detail-content img,
	.news-detail-content p:has(> img:only-child) {
		margin-bottom: 2.4rem;
		border-radius: 1.2rem;
	}
	.news-detail-nav {
		flex-direction: column;
		gap: 1.6rem;
		margin-top: 3.6rem;
		padding: 2rem 2rem;
	}
	.news-detail-nav-item,
	.news-detail-nav-item.is-next {
		justify-content: flex-start;
		text-align: left;
	}
	.news-detail-nav-item.is-next {
		flex-direction: row-reverse;
	}
	.news-detail-nav-title {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
}

/* ========== ≤480px ========== */
@media screen and (max-width: 480px) {
	.brand-news-nav .rf-circle-btn,
	.news-pager .rf-circle-btn {
		width: 3.6rem;
		height: 3.6rem;
	}
	.brand-news-more {
		font-size: 1.4rem;
	}
	.brand-news-feature-copy h3 {
		font-size: 1.8rem;
	}
	.brand-news-learn {
		height: 3.8rem;
		padding: 0 1.8rem;
		font-size: 1.3rem;
	}
	.news-page-title {
		font-size: 2.8rem;
	}
	.news-detail-title {
		font-size: 2.6rem;
	}
}
