/**
 * === Section Awards Gallery ===
 *
 * Mô tả: Styles cho section trưng bày huân chương/phần thưởng cao quý trên trang chủ.
 */

.section.section-awards-gallery {
	padding-block: clamp(36px, 5vw, 64px);
	background: #ffffff;
}

.awards-gallery__shell {
	width: min(100% - 32px, 1240px);
	margin-inline: auto;
}

.awards-gallery__header {
	max-width: none;
	margin-bottom: clamp(22px, 3vw, 30px);
	text-align: center;
}

.awards-gallery__title {
	margin: 0;
	color: var(--color-neutral-950, #111827);
	font-family: var(--font-heading, var(--font-primary));
	font-size: clamp(28px, 3.5vw, 44px);
	line-height: 1.08;
}

.awards-gallery__track {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 22px);
}

.awards-gallery__card {
	appearance: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	text-align: center;
	outline-offset: 6px;
	transform: translate3d(0, 0, 0);
}

.awards-gallery__track--running .awards-gallery__card {
	animation: bvyhctAwardsCardRun 4.8s ease-in-out infinite;
}

.awards-gallery__track--running .awards-gallery__card:nth-child(2n) {
	animation-delay: 0.35s;
}

.awards-gallery__track--running .awards-gallery__card:nth-child(3n) {
	animation-delay: 0.7s;
}

.section-awards-gallery--home {
	background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
}

.section-awards-gallery--home .awards-gallery__shell {
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	overflow: hidden;
}

.section-awards-gallery--home .awards-gallery__header {
	max-width: 820px;
	margin-inline: auto;
	margin-bottom: clamp(28px, 4vw, 48px);
	padding-inline: 16px;
}

.section-awards-gallery--home .awards-gallery__track--home {
	display: flex;
	width: max-content;
	gap: clamp(28px, 4vw, 56px);
	padding-inline: clamp(20px, 2vw, 29px);
	animation: bvyhctAwardsMarqueeLeftToRight 18s linear infinite;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
	will-change: transform;
}


.section-awards-gallery--home .awards-gallery__track--home .awards-gallery__card {
	width: clamp(150px, 14vw, 210px);
	flex: 0 0 auto;
	animation: none;
}

.section-awards-gallery--home .awards-gallery__track--home.is-dragging {
	cursor: grabbing;
}

.section-awards-gallery--home .awards-gallery__track--home.is-dragging .awards-gallery__card,
.section-awards-gallery--home .awards-gallery__track--home.is-settling .awards-gallery__card {
	pointer-events: none;
}


.awards-gallery__media {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-height: clamp(220px, 26vw, 320px);
	border-radius: 24px;
	padding: 12px;
}

.awards-gallery__image {
	display: block;
	width: 100%;
	height: clamp(190px, 22vw, 290px);
	object-fit: contain;
	background: transparent;
	pointer-events: none;
	transition: transform 420ms var(--ease-standard, ease), filter 260ms ease;
	-webkit-user-drag: none;
	user-drag: none;
}

.awards-gallery__text {
	display: grid;
	grid-template-rows: auto auto;
	gap: 8px;
	justify-items: center;
	min-height: 3.9em;
}

.awards-gallery__year {
	display: inline-block;
	position: relative;
	color: var(--color-primary-800, #166534);
	font-family: var(--font-heading, var(--font-primary));
	font-size: clamp(17px, 1.55vw, 25px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.08em;
	text-shadow: 0 8px 20px rgba(8, 114, 10, 0.18);
	transition: transform 220ms ease, filter 220ms ease;
}

.section-awards-gallery--home .awards-gallery__year {
	color: var(--color-primary-700, #08720a);
}

.awards-gallery__card-title {
	margin: 0;
	color: #111827;
	font-family: var(--font-heading, var(--font-primary));
	font-size: clamp(13px, 0.95vw, 16px);
	font-weight: var(--weight-bold, 700);
	line-height: 1.3;
	transition: color 220ms ease, transform 220ms ease;
}

.awards-gallery__card:hover .awards-gallery__image,
.awards-gallery__card:focus-visible .awards-gallery__image {
	transform: scale(1.06);
	filter: saturate(1.04);
}

.awards-gallery__card:hover .awards-gallery__card-title,
.awards-gallery__card:focus-visible .awards-gallery__card-title,
.awards-gallery__card:hover .awards-gallery__year,
.awards-gallery__card:focus-visible .awards-gallery__year {
	transform: translateY(-1px);
}

.awards-gallery__card:hover .awards-gallery__year,
.awards-gallery__card:focus-visible .awards-gallery__year {
	filter: saturate(1.18) brightness(1.08);
}

@keyframes bvyhctAwardsCardRun {
	0%,
	100% {
		transform: translate3d(0, 0, 0);
	}

	35% {
		transform: translate3d(0, -8px, 0);
	}

	70% {
		transform: translate3d(0, 4px, 0);
	}
}

@keyframes bvyhctAwardsMarqueeLeftToRight {
	from {
		transform: translate3d(calc(-50% - clamp(14px, 2vw, 28px)), 0, 0);
	}

	to {
		transform: translate3d(0, 0, 0);
	}
}

.awards-lightbox {
	width: min(1000px, calc(100vw - 32px));
	padding: 0;
	border: 0;
	border-radius: 28px;
	background: transparent;
	box-shadow: none;
}

.awards-lightbox::backdrop {
	background: rgba(15, 23, 42, 0.76);
	backdrop-filter: blur(6px);
}

.awards-lightbox__surface {
	position: relative;
	display: grid;
	gap: 18px;
	padding: clamp(18px, 3vw, 28px);
	border-radius: 28px;
	background: #ffffff;
	box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
}

.awards-lightbox__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.08);
	color: #111827;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.awards-lightbox__title {
	margin: 0;
	padding-right: 48px;
	color: #111827;
	font-family: var(--font-primary);
	font-size: clamp(18px, 2vw, 24px);
	font-weight: var(--weight-bold, 700);
	line-height: 1.3;
	text-align: center;
}

.awards-lightbox__image {
	display: block;
	width: 100%;
	max-height: min(78vh, 760px);
	object-fit: contain;
	border-radius: 18px;
	background: #f8fafc;
}

@media (max-width: 1180px) {
	.awards-gallery__track {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.awards-gallery__shell {
		width: min(100% - 20px, 1240px);
	}

	.section-awards-gallery--home .awards-gallery__shell {
		width: 100vw;
		margin-inline: calc(50% - 50vw);
	}

	.section-awards-gallery--home .awards-gallery__track--home {
		animation-duration: 14s;
	}

	.awards-gallery__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.awards-lightbox {
		width: min(100vw - 16px, 1000px);
	}

	.awards-lightbox__surface {
		padding: 16px;
		border-radius: 22px;
	}

	.awards-lightbox__image {
		max-height: 68vh;
	}
}

body.page-template-page-gioi-thieu .section-awards-gallery--about {
	padding-block: clamp(56px, 7vw, 96px);
	background:
		radial-gradient(circle at 16% 12%, rgba(215, 255, 112, 0.22), transparent 30%),
		linear-gradient(180deg, #ffffff 0%, #f5fbf3 100%);
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__shell {
	width: min(100% - 32px, 1200px);
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__header {
	max-width: 760px;
	margin-inline: auto;
	margin-bottom: clamp(34px, 5vw, 64px);
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__title {
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__track--timeline {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: clamp(64px, 9vw, 132px);
	row-gap: clamp(22px, 3vw, 34px);
	align-items: start;
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__track--timeline::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 50%;
	width: 2px;
	background: linear-gradient(to bottom, transparent, #24b404 10%, #08720a 88%, transparent);
	transform: translateX(-50%);
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(120px, 0.42fr) minmax(0, 0.58fr);
	gap: clamp(16px, 2.4vw, 28px);
	align-items: center;
	min-height: clamp(214px, 20vw, 288px);
	padding: clamp(16px, 2vw, 24px);
	border: 1px solid rgba(8, 114, 10, 0.12);
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 18px 44px rgba(6, 72, 21, 0.08);
	text-align: left;
	transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--left {
	grid-column: 1;
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--right {
	grid-column: 2;
	transform: translateY(clamp(34px, 5vw, 68px));
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card::before {
	content: "";
	position: absolute;
	top: 50%;
	width: clamp(32px, 4vw, 58px);
	height: 2px;
	background: linear-gradient(90deg, rgba(8, 114, 10, 0), rgba(8, 114, 10, 0.55));
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card::after {
	content: "";
	position: absolute;
	top: calc(50% - 9px);
	width: 18px;
	height: 18px;
	border: 4px solid #d7ff70;
	border-radius: 50%;
	background: #08720a;
	box-shadow: 0 0 0 6px rgba(8, 114, 10, 0.12);
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--left::before {
	right: calc(clamp(32px, 4vw, 58px) * -1);
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--left::after {
	right: calc((clamp(64px, 9vw, 132px) / -2) - 9px);
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--right::before {
	left: calc(clamp(32px, 4vw, 58px) * -1);
	transform: rotate(180deg);
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--right::after {
	left: calc((clamp(64px, 9vw, 132px) / -2) - 9px);
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card:hover,
body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card:focus-visible {
	border-color: rgba(8, 114, 10, 0.3);
	box-shadow: 0 24px 58px rgba(6, 72, 21, 0.13);
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--left:hover,
body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--left:focus-visible {
	transform: translateY(-5px);
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--right:hover,
body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--right:focus-visible {
	transform: translateY(calc(clamp(34px, 5vw, 68px) - 5px));
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__track--running .awards-gallery__card {
	animation: none;
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__media {
	min-height: 0;
	padding: 0;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(36, 180, 4, 0.08), rgba(215, 255, 112, 0.12));
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__image {
	height: clamp(154px, 16vw, 226px);
	padding: 10px;
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__text {
	justify-items: start;
	min-height: 0;
	gap: 8px;
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__year {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #eaffad;
	color: #064815;
	font-size: clamp(13px, 1vw, 15px);
}

body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card-title {
	color: #111827;
	font-size: clamp(16px, 1.35vw, 22px);
	line-height: 1.35;
}

@media (max-width: 900px) {
	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__track--timeline {
		grid-template-columns: 1fr;
		gap: 18px;
		padding-left: 28px;
	}

	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__track--timeline::before {
		left: 9px;
		transform: none;
	}

	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card,
	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--left,
	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--right,
	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--left:hover,
	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--left:focus-visible,
	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--right:hover,
	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--right:focus-visible {
		grid-column: 1;
		transform: none;
	}

	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card::before {
		left: -28px;
		right: auto;
		width: 28px;
		transform: rotate(180deg);
	}

	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card::after,
	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--left::after,
	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card--right::after {
		left: -28px;
		right: auto;
	}
}

@media (max-width: 640px) {
	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__shell {
		width: min(100% - 20px, 1200px);
	}

	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__card {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 14px;
	}

	body.page-template-page-gioi-thieu .section-awards-gallery--about .awards-gallery__image {
		height: clamp(170px, 54vw, 250px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.awards-gallery__image,
	.awards-gallery__card-title,
	.awards-gallery__year {
		transition: none;
	}

	.awards-gallery__track--running .awards-gallery__card {
		animation: none;
	}

	.section-awards-gallery--home .awards-gallery__track--home {
		animation: none;
		transform: none;
	}

}
