/* ============================================================
   Hoc Bong — page-specific styles
   ============================================================ */

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

/* ---- Hero ---- */
.vs-hb-hero {
	position: relative;
	height: 64vh;
	min-height: 320px;
	background-size: cover;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
}
.vs-hb-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%);
}
.vs-hb-hero__inner {
	position: relative;
	z-index: 1;
	padding-bottom: 40px;
}
.vs-hb-hero__breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: rgba(255,255,255,0.8);
	margin-bottom: 12px;
}
.vs-hb-hero__breadcrumb a {
	color: rgba(255,255,255,0.8);
	text-decoration: none;
}
.vs-hb-hero__breadcrumb a:hover { color: #ffffff; }
.vs-hb-hero__breadcrumb span:last-child { color: #ffffff; }
.vs-hb-hero__title {
	color: #fff;
	font-family: Kanit, system-ui, sans-serif;
	font-size: clamp(26px, 4vw, 64px);
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
}

/* ============================================================
   Giới thiệu (intro)
   ============================================================ */
.vs-hb-gioi-thieu {
	background: #D2E0D7;
	padding: 88px 0;
}
.vs-hb-gt-inner {
	display: grid;
	grid-template-columns: minmax(0,1fr) minmax(0,1fr);
	gap: 64px;
	align-items: center;
}
.vs-hb-gt-text {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.vs-hb-gt-title {
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.2;
	margin: 0;
	color: #1E4D5A;
}
.vs-hb-gt-desc {
	font-size: 18px;
	line-height: 1.65;
	margin: 0;
	color: #1E4D5A;
}
.vs-hb-gt-img-wrap {
	aspect-ratio: 4 / 3;
	border-radius: 24px;
	overflow: hidden;
}
.vs-hb-gt-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ============================================================
   Các loại học bổng (card slider)
   ============================================================ */
.vs-hb-loai {
	background: #FFFFFF;
	padding: 88px 0;
}
.vs-hb-loai-inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.vs-hb-loai-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
}
.vs-hb-loai-title {
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.2;
	margin: 0;
	color: #1E4D5A;
}
.vs-hb-loai-nav {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}
.vs-hb-loai-nav__count {
	font-weight: 600;
	font-size: 14px;
	min-width: 56px;
	text-align: right;
	color: #1E4D5A;
}
.vs-hb-loai-nav__btn {
	width: 48px;
	height: 48px;
	flex: 0 0 auto;
	border: none;
	border-radius: 50%;
	background: #FFFFFF;
	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;
}
.vs-hb-loai-nav__btn:hover { background: #6FC7B6; }
.vs-hb-loai-nav__btn:disabled { opacity: 0.4; cursor: default; }

/* Track (scrollable row) */
.vs-hb-loai-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
	padding: 4px 0 8px;
}
.vs-hb-loai-track::-webkit-scrollbar { display: none; }
.vs-hb-loai-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* Card */
.vs-hb-loai-card {
	flex: 0 0 calc((100% - 48px) / 3);
	scroll-snap-align: start;
	background: #FFFFFF;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: inset 0 0 0 1px #D2E0D7;
	color: #1E4D5A;
	text-decoration: none;
	cursor: pointer;
	transition: box-shadow 300ms ease;
}
.vs-hb-loai-card:hover {
	box-shadow: inset 0 0 0 1px #D2E0D7, 0 8px 24px rgba(30,77,90,0.10);
}

.vs-hb-loai-card__img {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.vs-hb-loai-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
	pointer-events: none;
}
.vs-hb-loai-card:hover .vs-hb-loai-card__img img { transform: scale(1.05); }

.vs-hb-loai-card__body {
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.vs-hb-loai-card__title {
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: 20px;
	line-height: 1.3;
}

.vs-hb-loai-card__campus {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.vs-hb-loai-card__campus-label {
	font-weight: 600;
	font-size: 12px;
	line-height: 1.4;
}
.vs-hb-loai-card__campus-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 28px;
	padding: 0 12px;
	border-radius: 32px;
	background: #D2E0D7;
	font-weight: 600;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
}
.vs-hb-loai-card__campus-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.vs-hb-loai-card__value {
	font-family: Kanit, system-ui, sans-serif;
	font-weight: 600;
	font-size: 28px;
	line-height: 1.2;
}

.vs-hb-loai-card__who,
.vs-hb-loai-card__req {
	font-size: 14px;
	line-height: 1.6;
}

.vs-hb-loai-card__cta {
	margin-top: auto;
	padding-top: 14px;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
	text-decoration: underline;
	text-decoration-color: #6FC7B6;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}
.vs-hb-loai-card__cta-arrow {
	display: flex;
	transition: transform 200ms ease;
}
.vs-hb-loai-card:hover .vs-hb-loai-card__cta-arrow { transform: translateX(4px); }

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet 768–1023px */
@media (max-width: 1023px) {
	.vs-hb-gt-inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.vs-hb-gt-desc { font-size: 16px; }

	.vs-hb-loai-nav { display: none; }
	.vs-hb-loai-card { flex: 0 0 calc((100% - 24px) / 1.2); }
}

/* Mobile ≤ 767px */
@media (max-width: 767px) {
	.vs-hb-hero { height: 62vh; }

	.vs-hb-gt-title { font-size: 26px; }
	.vs-hb-gt-desc { font-size: 15px; }

	.vs-hb-loai-card { flex: 0 0 calc(100% - 20px); }
	.vs-hb-loai-card__body { padding: 20px; }
	.vs-hb-loai-card__value { font-size: 24px; }
}
