/* =========================================================================
 * 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: 14.5px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
.lo-footer *,
.lo-footer *::before,
.lo-footer *::after {
	box-sizing: border-box;
}
.lo-footer a {
	color: inherit;
	font-weight: 400;
	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: 34px clamp(18px, 3.6vw, 68px) 22px;
}

/* 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: 20px;
	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 1fr;
	gap: 0;
	padding: 26px 0 24px;
	border-bottom: 1px solid var(--ft-line);
}
.lo-footer__col {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
	padding: 0 clamp(10px, 1.1vw, 18px);
	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: 16px;
}
.lo-footer__news {
	min-width: 0;
	padding-left: clamp(14px, 1.6vw, 24px);
	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: 14.5px;
	font-weight: 700;
	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: 12px;
}
.lo-footer__links a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 7px 0 7px 6px;
	font-size: 14.5px;
	font-weight: 400;
	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 để thắng ".wf-active h2" inline của Jannah) */
.lo-footer .lo-footer__news h2 {
	margin: 0 0 10px;
	font: 700 18px / 1.3 var(--ft-font);
	text-transform: none;
	letter-spacing: -0.005em;
	color: #fff;
}
.lo-footer__news > p {
	margin: 0 0 14px;
	font-size: 14.5px;
	line-height: 1.55;
	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: 40px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.14);
	box-shadow: none;
	color: #fff;
	font: 400 14px / 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: 40px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 4px;
	background: var(--ft-teal);
	box-shadow: none;
	color: #fff;
	font: 700 14px / 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: 12px 0 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.88);
	cursor: pointer;
}
.lo-footer__consent input {
	flex: none;
	width: 16px;
	height: 16px;
	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: 8px;
	margin-top: 14px;
}
.lo-footer__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 12px;
	border-radius: 4px;
	font-size: 13px;
	white-space: nowrap;
	font-weight: 700;
	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: 20px;
}
.lo-footer__copy p {
	margin: 0;
	font-size: 14.5px;
	font-weight: 400;
	color: var(--ft-sub);
}
.lo-footer__copy p:first-child {
	margin-bottom: 4px;
	font-weight: 500;
	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: 14.5px;
	white-space: nowrap;
}
.lo-footer__legal a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
/* Nút lên đầu trang (nằm ngoài <footer>, JS thêm .is-visible khi đã cuộn xuống) */
body button.lo-footer__top-btn,
body button.lo-footer__top-btn:focus,
body button.lo-footer__top-btn:active {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9990;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	background: #0b2b78;
	box-shadow: 0 6px 18px rgba(8, 25, 70, 0.3);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	outline: 0;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	-webkit-tap-highlight-color: transparent;
	-webkit-appearance: none;
	appearance: none;
	transition:
		opacity 0.25s,
		transform 0.25s,
		visibility 0.25s,
		background 0.2s;
}
body button.lo-footer__top-btn.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}
body button.lo-footer__top-btn:focus-visible {
	outline: 2px solid #14a38f;
	outline-offset: 3px;
}
body button.lo-footer__top-btn .lo-icon {
	display: block;
}
@media (hover: hover) and (pointer: fine) {
	body button.lo-footer__top-btn:hover {
		background: #14a38f;
	}
}

/* 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__top {
		gap: 12px;
	}
	.lo-footer__logo {
		flex: none;
	}
	.lo-footer__logo img {
		height: 46px;
	}
	.lo-footer__social {
		flex-wrap: nowrap;
		gap: 6px;
		min-width: 0;
	}
	.lo-footer__social a {
		width: 32px;
		height: 32px;
		font-size: 15px;
	}
	.lo-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding: 8px 0 28px;
		border-bottom: 0;
	}
	.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 .lo-footer__news h2 {
		font-size: 22px;
	}
	.lo-footer__legal {
		justify-content: flex-start;
	}
	.lo-footer__legal ul {
		flex-wrap: wrap;
		gap: 8px 16px;
	}
	.lo-footer__legal a {
		font-size: 12px;
	}
	.lo-footer__legal li + li {
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
	}
	body button.lo-footer__top-btn {
		right: 14px;
		bottom: 14px;
		width: 42px;
		height: 42px;
		font-size: 20px;
	}
}
