/* News section — list & detail */

.mouo-news-page {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mouo-news-page__toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Section chips */
.mouo-news-sections {
	margin: 0 0 8px;
}

.mouo-news-sections__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
}

.mouo-news-sections__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: min-content;
}

.mouo-news-sections__link {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--mouo-surface);
	border: 1px solid var(--mouo-line);
	color: var(--mouo-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mouo-news-sections__link:hover {
	border-color: var(--mouo-primary-light);
	color: var(--mouo-primary);
}

.mouo-news-sections__item.is-active .mouo-news-sections__link {
	background: var(--mouo-primary);
	border-color: var(--mouo-primary);
	color: #fff;
}

.mouo-news-head {
	margin: 0 0 8px;
}

.mouo-news-head__title {
	margin: 0 0 8px;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 800;
	line-height: 1.2;
	color: var(--mouo-text);
}

.mouo-news-head__desc {
	color: var(--mouo-muted);
	font-size: 15px;
}

/* News list cards */
.mouo-news-list__grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mouo-news-card {
	background: var(--mouo-surface);
	border: 1px solid var(--mouo-line);
	border-radius: var(--mouo-radius);
	box-shadow: var(--mouo-shadow-sm);
	padding: 18px;
}

.mouo-news-card__date {
	display: inline-block;
	margin-bottom: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--mouo-accent-soft);
	color: var(--mouo-primary);
	font-size: 12px;
	font-weight: 700;
}

.mouo-news-card__body {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 16px;
	align-items: start;
}

.mouo-news-card__thumb {
	display: block;
	overflow: hidden;
	border-radius: var(--mouo-radius-sm);
	border: 1px solid var(--mouo-line);
}

.mouo-news-card__thumb img {
	display: block;
	width: 120px;
	height: auto;
}

.mouo-news-card__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
}

.mouo-news-card__title a {
	color: var(--mouo-text);
	text-decoration: none;
}

.mouo-news-card__title a:hover {
	color: var(--mouo-primary-light);
}

.mouo-news-card__excerpt {
	margin: 0;
	color: var(--mouo-muted);
	font-size: 14px;
	line-height: 1.6;
}

.mouo-news-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--mouo-line);
	flex-wrap: wrap;
}

.mouo-news-card__more {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--mouo-primary);
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease;
}

.mouo-news-card__more:hover {
	background: var(--mouo-primary-light);
	color: #fff !important;
}

.mouo-news-soc {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.mouo-news-soc__link {
	display: inline-flex;
}

.mouo-news-soc__icon {
	width: 24px;
	height: 24px;
	border: 0;
}

/* Pagination */
.mouo-news-list__pager {
	margin-top: 24px;
}

.mouo-news-list__pager--top {
	margin-top: 0;
	margin-bottom: 16px;
}

.mouo-news-pager,
.mouo-news-list__pager .modern-page-navigation {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.mouo-news-pager .modern-page-title {
	display: none;
}

.mouo-news-pager a,
.mouo-news-pager span,
.mouo-news-list__pager .modern-page-navigation a,
.mouo-news-list__pager .modern-page-navigation span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--mouo-line);
	background: var(--mouo-surface);
	color: var(--mouo-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mouo-news-pager .modern-page-current,
.mouo-news-list__pager .modern-page-current {
	background: var(--mouo-primary);
	border-color: var(--mouo-primary);
	color: #fff;
}

.mouo-news-pager a:hover,
.mouo-news-list__pager .modern-page-navigation a:hover {
	border-color: var(--mouo-primary-light);
	color: var(--mouo-primary);
}

.mouo-news-pager .modern-page-previous,
.mouo-news-pager .modern-page-next,
.mouo-news-list__pager .modern-page-previous,
.mouo-news-list__pager .modern-page-next {
	min-width: auto;
	padding: 0 16px;
}

/* Detail page */
.mouo-news-detail {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mouo-news-detail__date {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--mouo-accent-soft);
	color: var(--mouo-primary);
	font-size: 12px;
	font-weight: 700;
}

.mouo-news-detail__title {
	margin: 0 0 12px;
	font-size: clamp(24px, 3.5vw, 32px);
	font-weight: 800;
	line-height: 1.25;
}

.mouo-news-detail__hero {
	margin: 0;
	text-align: center;
}

.mouo-news-detail__hero img {
	max-width: 100%;
	height: auto;
	border-radius: var(--mouo-radius);
	box-shadow: var(--mouo-shadow-md);
}

.mouo-news-detail__content {
	font-size: 16px;
	line-height: 1.7;
}

.mouo-news-detail__section-title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 800;
}

.mouo-news-files {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mouo-news-files__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-radius: var(--mouo-radius-sm);
	border: 1px solid var(--mouo-line);
	background: var(--mouo-bg);
	text-decoration: none;
	color: var(--mouo-text);
}

.mouo-news-files__link:hover {
	border-color: var(--mouo-primary-light);
}

.mouo-news-files__name {
	font-weight: 600;
}

.mouo-news-files__meta {
	color: var(--mouo-muted);
	font-size: 13px;
	white-space: nowrap;
}

.mouo-news-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.mouo-news-gallery__item {
	display: block;
	overflow: hidden;
	border-radius: var(--mouo-radius-sm);
	border: 1px solid var(--mouo-line);
}

.mouo-news-gallery__item img {
	display: block;
	width: 100%;
	height: 112px;
	object-fit: cover;
}

/* Fancybox: global img { max-width:100%; height:auto } breaks slide navigation */
#fancybox-wrap #fancybox-img,
#fancybox-wrap #fancybox-content > img {
	width: auto;
	height: auto;
	max-width: none;
	max-height: none;
}

.mouo-news-detail__footer {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--mouo-line);
}

.mouo-news-detail__short-label,
.mouo-news-detail__share-label {
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--mouo-muted);
}

.mouo-news-detail__short-link {
	display: inline-block;
	padding: 0;
	border: 0;
	background: none;
	color: var(--mouo-primary-light);
	font: inherit;
	text-align: left;
	text-decoration: underline;
	cursor: pointer;
	word-break: break-all;
}

.mouo-news-detail__short-link:hover {
	color: var(--mouo-accent);
}

.mouo-news-detail__back {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--mouo-primary);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.mouo-news-detail__back:hover {
	background: var(--mouo-primary-light);
	color: #fff !important;
}

.mouo-copy-notification {
	position: fixed;
	z-index: 1200;
	padding: 12px 20px;
	border-radius: 8px;
	background: #036418;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	box-shadow: var(--mouo-shadow-md);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.mouo-copy-notification.is-visible {
	opacity: 1;
}

@media (max-width: 640px) {
	.mouo-news-card__body {
		grid-template-columns: 1fr;
	}

	.mouo-news-card__thumb img {
		width: 100%;
	}
}

/* Campaign layout: news inside enrollment prose wrapper */
.mouo-enrollment-page:has(.mouo-news-detail) .mouo-enrollment-head,
.mouo-enrollment-page:has(.mouo-news-detail) .mouo-enrollment-lead {
	display: none;
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-list,
.mouo-enrollment-page__content.mouo-prose .mouo-news-detail {
	max-width: none;
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-card__title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.35;
	text-transform: none;
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-card__title a {
	color: var(--mouo-primary);
	text-decoration: none;
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-card__title a:hover {
	color: var(--mouo-accent);
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-detail__title {
	margin: 0 0 12px;
	font-size: clamp(22px, 3vw, 28px);
	text-transform: none;
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-detail__content img {
	max-width: 100%;
	height: auto;
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-list__pager .modern-page-navigation,
.mouo-enrollment-page__content.mouo-prose .mouo-news-list__pager .modern-page-navigation a,
.mouo-enrollment-page__content.mouo-prose .mouo-news-list__pager .modern-page-navigation span {
	font-family: inherit;
}
