/* =========================================================================
 * Footer PHP toàn site (template-parts/footer/site-footer.php)
 * ========================================================================= */
.lo-footer {
	--ft-bg: #0b2b78;
	--ft-line: rgba(255, 255, 255, 0.18);
	--ft-text: #ffffff;
	--ft-sub: rgba(255, 255, 255, 0.76);
	--ft-teal: #14a38f;
	--ft-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	position: relative;
	clear: both;
	background: radial-gradient(900px 420px at 85% 0%, rgba(40, 90, 200, 0.28), rgba(40, 90, 200, 0)), linear-gradient(180deg, #0c2f80 0%, #0a2669 100%);
	color: var(--ft-text);
	font-family: var(--ft-font);
	font-size: 15px;
	line-height: 1.5;
}
.lo-footer *,
.lo-footer *::before,
.lo-footer *::after {
	box-sizing: border-box;
}
.lo-footer a {
	color: inherit;
	text-decoration: none;
}
.lo-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.lo-footer li {
	margin: 0;
	padding: 0;
}
.lo-footer .lo-icon {
	flex: none;
	display: inline-block;
	vertical-align: -0.125em;
}
.lo-footer__inner {
	max-width: 1760px;
	margin: 0 auto;
	padding: 48px clamp(18px, 3.6vw, 68px) 28px;
}

/* Hàng trên: logo + mạng xã hội */
.lo-footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--ft-line);
}
.lo-footer__logo img {
	display: block;
	width: auto;
	height: 74px;
	filter: brightness(0) invert(1);
}
.lo-footer__social {
	display: flex;
	gap: 16px;
}
.lo-footer__social a {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	font-size: 20px;
	transition:
		background 0.2s,
		border-color 0.2s;
}
.lo-footer__social a:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.14);
}

/* Lưới nội dung */
.lo-footer__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.95fr 1.02fr 1.1fr 1.3fr;
	gap: 0;
	padding: 36px 0 34px;
	border-bottom: 1px solid var(--ft-line);
}
.lo-footer__col {
	display: flex;
	flex-direction: column;
	gap: 34px;
	min-width: 0;
	padding: 0 clamp(14px, 1.6vw, 28px);
	border-left: 1px solid var(--ft-line);
}
.lo-footer__col:first-child {
	padding-left: 0;
	border-left: 0;
}
.lo-footer__col:nth-child(4) {
	padding-right: 24px;
}
.lo-footer__news {
	min-width: 0;
	padding-left: clamp(20px, 2.4vw, 40px);
	border-left: 1px solid var(--ft-line);
}
.lo-footer__head {
	display: flex;
	align-items: center;
	gap: 14px;
}
.lo-footer__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	font-size: 26px;
}
.lo-footer__headtext {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.lo-footer__headtext strong {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	line-height: 1.25;
}
.lo-footer__headtext small {
	font-size: 13px;
	color: var(--ft-sub);
	line-height: 1.35;
}
a.lo-footer__head:hover .lo-footer__headtext strong {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.lo-footer__links {
	display: grid;
	gap: 0;
	margin-top: 18px;
}
.lo-footer__links a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 0 10px 6px;
	font-size: 15.5px;
	transition:
		transform 0.2s,
		color 0.2s;
}
.lo-footer__links a .lo-icon {
	font-size: 15px;
	opacity: 0.85;
}
.lo-footer__links a:hover {
	transform: translateX(3px);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Đăng ký nhận cập nhật */
.lo-footer__news h2 {
	margin: 0 0 10px;
	font: 800 25px / 1.25 var(--ft-font);
	text-transform: none;
	letter-spacing: -0.005em;
	color: #fff;
}
.lo-footer__news > p {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}
.lo-footer__formrow {
	display: flex;
	gap: 8px;
}
.lo-footer__formrow input[type="email"] {
	flex: 1;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.14);
	box-shadow: none;
	color: #fff;
	font: 400 16px / 1 var(--ft-font);
}
.lo-footer__formrow input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.7);
}
.lo-footer__formrow input[type="email"]:focus {
	outline: 2px solid rgba(255, 255, 255, 0.7);
	outline-offset: 0;
}
.lo-footer__formrow button {
	flex: none;
	height: 52px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 4px;
	background: var(--ft-teal);
	box-shadow: none;
	color: #fff;
	font: 800 16px / 1 var(--ft-font);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: filter 0.2s;
}
.lo-footer__formrow button:hover:not(:disabled) {
	filter: brightness(1.1);
}
.lo-footer__formrow button:disabled {
	opacity: 0.65;
	cursor: default;
}
.lo-footer__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.lo-footer__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 14px 0 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
	cursor: pointer;
}
.lo-footer__consent input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--ft-teal);
}
.lo-footer__consent a {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.lo-footer__msg {
	min-height: 0;
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #8ff0dd;
}
.lo-footer__msg:empty {
	display: none;
}
.lo-footer__msg.is-error {
	color: #ffb4b4;
}
.lo-footer__cta {
	display: grid;
	gap: 10px;
	margin-top: 22px;
}
.lo-footer__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 12px;
	border-radius: 4px;
	font-size: 14.5px;
	white-space: nowrap;
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	transition: filter 0.2s;
}
.lo-footer .lo-footer__btn--teal {
	background: var(--ft-teal);
	color: #fff;
}
.lo-footer .lo-footer__btn--white {
	background: #fff;
	color: #0b2b78;
}
.lo-footer__btn:hover {
	filter: brightness(1.07);
}

/* Hàng dưới */
.lo-footer__bottom {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 24px;
	padding-top: 28px;
}
.lo-footer__copy p {
	margin: 0;
	font-size: 15px;
	color: var(--ft-sub);
}
.lo-footer__copy p:first-child {
	margin-bottom: 4px;
	font-weight: 600;
	color: #fff;
}
.lo-footer__art {
	width: 520px;
	max-width: 100%;
	height: auto;
	color: rgba(255, 255, 255, 0.26);
}
.lo-footer__legal {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 28px;
}
.lo-footer__legal ul {
	display: flex;
	align-items: center;
}
.lo-footer__legal li + li {
	margin-left: 22px;
	padding-left: 22px;
	border-left: 1px solid var(--ft-line);
}
.lo-footer__legal a {
	font-size: 15px;
	white-space: nowrap;
}
.lo-footer__legal a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.lo-footer__top-btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin: 0;
	padding: 0;
	border: 1.5px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font-size: 26px;
	cursor: pointer;
	transition: background 0.2s;
}
.lo-footer__top-btn:hover {
	background: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 1200px) {
	.lo-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 40px;
	}
	.lo-footer__col:nth-child(4) {
		border-left: 0;
		padding-left: 0;
	}
	.lo-footer__news {
		grid-column: 2 / -1;
		padding-left: 24px;
	}
	.lo-footer__bottom {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.lo-footer__art {
		display: none;
	}
}
@media (max-width: 860px) {
	.lo-footer__inner {
		padding: 36px 18px 24px;
	}
	.lo-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.lo-footer__col {
		padding: 0 16px;
	}
	.lo-footer__col:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}
	.lo-footer__col:nth-child(3) {
		border-left: 0;
	}
	.lo-footer__news {
		grid-column: 1 / -1;
		padding-left: 0;
		border-left: 0;
		padding-top: 30px;
		border-top: 1px solid var(--ft-line);
	}
	.lo-footer__bottom {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
	.lo-footer__legal {
		justify-content: space-between;
		flex-wrap: wrap;
	}
}
@media (max-width: 600px) {
	.lo-footer__logo img {
		height: 56px;
	}
	.lo-footer__social {
		gap: 10px;
	}
	.lo-footer__social a {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}
	.lo-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding: 8px 0 28px;
	}
	.lo-footer__col {
		gap: 0;
		padding: 22px 0;
		border-left: 0;
		border-bottom: 1px solid var(--ft-line);
	}
	.lo-footer__col + .lo-footer__col .lo-footer__group + .lo-footer__group {
		margin-top: 24px;
	}
	.lo-footer__col:nth-child(4) {
		padding-right: 0;
	}
	.lo-footer__group + .lo-footer__group {
		margin-top: 24px;
	}
	.lo-footer__news {
		border-top: 0;
		padding-top: 26px;
	}
	.lo-footer__news h2 {
		font-size: 22px;
	}
	.lo-footer__legal {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 16px;
	}
	.lo-footer__legal ul {
		flex-wrap: wrap;
		gap: 8px 22px;
	}
	.lo-footer__legal li + li {
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
	}
	.lo-footer__top-btn {
		width: 50px;
		height: 50px;
	}
}
