/* ============================================================
   News — page-specific styles
   ============================================================ */

/* ---- Reveal ---- */
.vs-news-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}
.vs-news-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---- Shared ---- */
.vs-news-section-title {
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(26px, 3.5vw, 42px);
	line-height: 1.2;
	color: #1E4D5A;
	margin: 0;
}

.vs-news-topic-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #1E4D5A;
}
.vs-news-topic-chip--sm { font-size: 11px; }
.vs-news-topic-chip__dot {
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #6FC7B6;
}

/* ---- Hero ---- */
.vs-news-hero {
	position: relative;
	height: 64vh;
	min-height: 380px;
	background-size: cover;
	background-repeat: no-repeat;
	background-color: #1E4D5A;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
.vs-news-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(30,77,90,0.92) 0%, rgba(30,77,90,0.7) 45%, rgba(30,77,90,0) 85%);
	pointer-events: none;
}
.vs-news-hero__inner {
	position: relative;
	z-index: 1;
	padding-bottom: 64px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.vs-news-hero__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255,255,255,.8);
}
.vs-news-hero__breadcrumb a { color: inherit; text-decoration: none; }
.vs-news-hero__breadcrumb a:hover { color: #fff; }
.vs-news-hero__title {
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(32px, 5vw, 64px);
	line-height: 1.15;
	color: #fff;
	margin: 0;
}

/* ---- Tin nổi bật ---- */
.vs-news-noi-bat {
	background: #fff;
	padding: 88px 0;
}
.vs-news-nb-inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.vs-news-nb-grid {
	display: grid;
	grid-template-columns: minmax(0,8fr) minmax(0,4fr);
	gap: 48px;
	align-items: stretch;
}

/* Main big card */
.vs-news-nb-main {
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: #1E4D5A;
	text-decoration: none;
}
.vs-news-nb-main:hover .vs-news-nb-main__img { transform: scale(1.04); }
.vs-news-nb-main__img-wrap {
	aspect-ratio: 16/9;
	border-radius: 20px;
	overflow: hidden;
	background: #D2E0D7;
	margin-bottom: 2px;
}
.vs-news-nb-main__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}
.vs-news-nb-main__title {
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(20px, 2vw, 28px);
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.vs-news-nb-main__excerpt {
	font-size: 17px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.vs-news-nb-main__meta { font-size: 13px; line-height: 1.5; color: #5a7a7a; }

/* Side list */
.vs-news-nb-side {
	display: flex;
	flex-direction: column;
}
.vs-news-nb-side-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
	border-top: 1px solid #D2E0D7;
	color: #1E4D5A;
	text-decoration: none;
}
.vs-news-nb-side-item:first-child { border-top: none; padding-top: 0; }
.vs-news-nb-side-item:last-child { padding-bottom: 0; }
.vs-news-nb-side-thumb {
	flex: 0 0 120px;
	width: 120px;
	height: 90px;
	border-radius: 12px;
	overflow: hidden;
	background: #D2E0D7;
}
.vs-news-nb-side-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}
.vs-news-nb-side-item:hover .vs-news-nb-side-thumb img { transform: scale(1.04); }
.vs-news-nb-side-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.vs-news-nb-side-title {
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: 17px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.vs-news-nb-side-meta { font-size: 13px; line-height: 1.5; color: #5a7a7a; }

/* ---- Sự kiện ---- */
.vs-news-su-kien {
	background: #D2E0D7;
	padding: 88px 0;
}
.vs-news-sk-inner { display: flex; flex-direction: column; gap: 32px; }
.vs-news-sk-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}
.vs-news-sk-nav { display: flex; align-items: center; gap: 12px; }
.vs-news-sk-count {
	font-weight: 600;
	font-size: 14px;
	min-width: 56px;
	text-align: right;
	color: #1E4D5A;
}
.vs-news-sk-arrow {
	width: 48px;
	height: 48px;
	flex: 0 0 auto;
	border: none;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 1.5px #1E4D5A;
	color: #1E4D5A;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 200ms ease, opacity 200ms ease;
}
.vs-news-sk-arrow:hover { background: #6FC7B6; }

/* Carousel track */
.vs-news-sk-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	cursor: grab;
}
.vs-news-sk-track:active { cursor: grabbing; }
.vs-news-sk-track::-webkit-scrollbar { display: none; }

/* Event cards */
.vs-news-sk-card {
	flex: 0 0 calc((100% - 48px) / 3);
	scroll-snap-align: start;
	aspect-ratio: 4/5;
	border-radius: 24px;
	overflow: hidden;
	position: relative;
	background: #1E4D5A;
	color: #fff;
}
.vs-news-sk-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}
.vs-news-sk-card:hover .vs-news-sk-card__img { transform: scale(1.05); }
.vs-news-sk-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, #1E4D5A 0%, rgba(30,77,90,0.75) 32%, rgba(30,77,90,0) 65%);
	pointer-events: none;
}
.vs-news-sk-card__date-box {
	position: absolute;
	top: 20px;
	left: 20px;
	width: 72px;
	height: 80px;
	border-radius: 12px;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
}
.vs-news-sk-card__day {
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: 32px;
	line-height: 1;
	color: #1E4D5A;
}
.vs-news-sk-card__month {
	font-weight: 600;
	font-size: 12px;
	line-height: 1.4;
	color: #1E4D5A;
}
.vs-news-sk-card__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
.vs-news-sk-card__title {
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: 22px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.vs-news-sk-card__meta { font-size: 14px; line-height: 1.5; }
.vs-news-sk-card__cta {
	margin-top: 10px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.25;
	padding: 12px 24px;
	border: none;
	border-radius: 32px;
	background: #B6B6DB;
	color: #1E4D5A;
	cursor: pointer;
	transition: background 200ms ease;
	text-decoration: none;
	display: inline-block;
}
.vs-news-sk-card__cta:hover { background: #fff; }

/* ---- Tất cả bài viết ---- */
.vs-news-danh-sach {
	background: #fff;
	padding: 88px 0 80px;
}
.vs-news-danh-sach .container {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.vs-news-danh-sach .vs-news-section-title { margin-bottom: 28px; }

/* ---- Filter bar ---- */
.vs-news-filter-bar {
	position: sticky;
	top: 80px;
	z-index: 20;
	background: #fff;
	box-shadow: inset 0 -1px 0 #D2E0D7;
}
.vs-news-filter-bar .container { padding-top: 0; padding-bottom: 0; }
.vs-news-filter-form {
	position: relative;
	height: 48px;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 24px;
}
.vs-news-filter-chips {
	display: flex;
	align-items: stretch;
	gap: 28px;
	overflow-x: auto;
	scrollbar-width: none;
	flex: 1 1 auto;
	min-width: 0;
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
	mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
	padding-right: 40px;
}
.vs-news-filter-chips::-webkit-scrollbar { display: none; }

.vs-news-chip {
	flex: 0 0 auto;
	height: 48px;
	padding: 0;
	border: none;
	background: transparent;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	color: #1E4D5A;
	cursor: pointer;
	box-shadow: none;
	transition: box-shadow 200ms ease;
}
.vs-news-chip:hover { box-shadow: inset 0 -2px 0 #D2E0D7; }
.vs-news-chip.is-active,
.vs-news-chip[aria-selected="true"] { box-shadow: inset 0 -2px 0 #6FC7B6; }

/* Desktop filter right */
.vs-news-filter-right {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
}
.vs-news-select-label {
	position: relative;
	height: 48px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: #1E4D5A;
	white-space: nowrap;
	cursor: pointer;
}
.vs-news-select-label select {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	font-size: 14px;
}
.vs-news-select-label strong { font-weight: 600; }

/* Search */
.vs-news-search-wrap { position: relative; display: flex; align-items: center; }
.vs-news-search-btn {
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #1E4D5A;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 200ms;
}
.vs-news-search-btn:hover { background: #D2E0D7; }
.vs-news-search-input-area {
	position: absolute;
	right: 0;
	top: 0;
	height: 48px;
	width: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	background: #fff;
	transition: width 250ms ease;
}
.vs-news-search-input-area.is-open {
	width: 280px;
	overflow: visible;
}
.vs-news-search-input-icon {
	position: absolute;
	left: 14px;
	pointer-events: none;
	display: flex;
}
.vs-news-search-input-area input {
	width: 100%;
	height: 40px;
	padding: 0 16px 0 42px;
	border: none;
	border-radius: 32px;
	background: #fff;
	box-shadow: inset 0 0 0 1px #1E4D5A;
	outline: none;
	font-size: 14px;
	color: #1E4D5A;
}

/* Mobile filter button */
.vs-news-filter-mob-btn {
	position: relative;
	align-self: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #1E4D5A;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.vs-news-filter-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: #1E4D5A;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
}

/* ---- Article count ---- */
.vs-news-count {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	margin: 24px 0;
	color: #1E4D5A;
}

/* ---- Article grid ---- */
.vs-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 32px;
}
.vs-news-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: #1E4D5A;
	text-decoration: none;
}
.vs-news-card__img-wrap {
	position: relative;
	aspect-ratio: 16/9;
	border-radius: 16px;
	overflow: hidden;
	background: #D2E0D7;
}
.vs-news-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}
.vs-news-card:hover .vs-news-card__img { transform: scale(1.04); }
.vs-news-card__topic-row { margin-top: 4px; }
.vs-news-card__title {
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: 20px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.vs-news-card__excerpt {
	font-size: 15px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.vs-news-card__meta { font-size: 13px; line-height: 1.5; color: #5a7a7a; }

/* ---- Empty state ---- */
.vs-news-empty {
	padding: 64px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}
.vs-news-empty__icon { display: flex; color: #1E4D5A; }
.vs-news-empty__title {
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: 22px;
	line-height: 1.3;
	color: #1E4D5A;
}
.vs-news-empty__clear {
	font-size: 15px;
	font-weight: 600;
	color: #1E4D5A;
	text-decoration: underline;
	text-decoration-color: #6FC7B6;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

/* ---- Pagination ---- */
.vs-news-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 48px;
}
.vs-news-pagination__btn {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: transparent;
	color: #1E4D5A;
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: background 200ms ease;
}
.vs-news-pagination__btn:hover { background: #D2E0D7; }
.vs-news-pagination__btn[aria-current="page"] { background: #1E4D5A; color: #fff; }
.vs-news-pagination__prev,
.vs-news-pagination__next { font-size: 22px; }
.vs-news-pagination__ellipsis {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #1E4D5A;
	pointer-events: none;
	flex-shrink: 0;
}

/* ---- Mobile bottom sheet ---- */
.vs-news-sheet {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	align-items: flex-end;
	pointer-events: none;
	opacity: 0;
	transition: opacity 250ms ease;
}
.vs-news-sheet.is-open {
	pointer-events: auto;
	opacity: 1;
}
.vs-news-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(30,77,90,.45);
}
.vs-news-sheet__panel {
	position: relative;
	width: 100%;
	background: #fff;
	border-radius: 24px 24px 0 0;
	padding: 24px 20px 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	transform: translateY(100%);
	transition: transform 300ms ease;
}
.vs-news-sheet.is-open .vs-news-sheet__panel { transform: none; }
.vs-news-sheet__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.vs-news-sheet__heading {
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: 20px;
	color: #1E4D5A;
}
.vs-news-sheet__close {
	width: 44px;
	height: 44px;
	border: none;
	background: transparent;
	color: #1E4D5A;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.vs-news-sheet__form { display: flex; flex-direction: column; gap: 12px; }
.vs-news-sheet__field { display: flex; flex-direction: column; gap: 6px; }
.vs-news-sheet__label { font-size: 13px; font-weight: 600; color: #1E4D5A; }
.vs-news-sheet__select-wrap {
	position: relative;
	display: flex;
}
.vs-news-sheet__select-wrap select {
	flex: 1;
	appearance: none;
	-webkit-appearance: none;
	height: 44px;
	padding: 0 36px 0 16px;
	border: none;
	border-radius: 32px;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(30,77,90,.3);
	font-size: 14px;
	font-weight: 500;
	color: #1E4D5A;
	cursor: pointer;
}
.vs-news-sheet__chev {
	position: absolute;
	right: 14px;
	top: 50%;
	margin-top: -7px;
	pointer-events: none;
	display: flex;
}
.vs-news-sheet__search-wrap {
	position: relative;
	display: flex;
}
.vs-news-sheet__search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	margin-top: -9px;
	pointer-events: none;
	display: flex;
}
.vs-news-sheet__search-wrap input {
	width: 100%;
	height: 44px;
	padding: 0 16px 0 42px;
	border: none;
	border-radius: 32px;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(30,77,90,.3);
	font-size: 14px;
	color: #1E4D5A;
	outline: none;
}
.vs-news-sheet__submit {
	margin-top: 6px;
	height: 52px;
	border: none;
	border-radius: 32px;
	background: #B6B6DB;
	color: #1E4D5A;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1023px) {
	.vs-news-hero__inner { padding-bottom: 32px; }
	.vs-news-noi-bat,
	.vs-news-su-kien,
	.vs-news-danh-sach { padding-left: 0; padding-right: 0; }

	/* Featured grid: single col */
	.vs-news-nb-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }

	/* Events: 1.15 cards visible */
	.vs-news-sk-card { flex: 0 0 calc((100% - 16px) / 1.15); }
	.vs-news-sk-nav { display: none; } /* hide arrows on mobile */

	/* Article grid */
	.vs-news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }

	/* Filter chips full-width without mask */
	.vs-news-filter-chips {
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
		padding-right: 24px;
		gap: 24px;
	}
	.vs-news-filter-bar { top: 64px; }
	.vs-news-filter-desk-only { display: none; }
	.vs-news-filter-mob-btn { display: flex; }
}

@media (min-width: 1024px) {
	.vs-news-mob-only { display: none; }
}

@media (max-width: 767px) {
	.vs-news-hero { height: 62vh; min-height: 320px; }
	.vs-news-noi-bat,
	.vs-news-su-kien,
	.vs-news-danh-sach { padding-left: 0; padding-right: 0; }
	.vs-news-grid { grid-template-columns: minmax(0,1fr); }
	.vs-news-sk-header { flex-wrap: wrap; gap: 12px; }
}
