/**
 * Site footer — nền trắng #fff, chữ đen, tiêu đề navy, vùng copyright navy + chữ trắng.
 * Dùng cùng partials/site-footer.php.
 */

.cokhi-site-footer {
	--cokhi-footer-main-bg:aliceblue;
	--cokhi-footer-navy: #0f172a;
	--cokhi-footer-navy-mid: #1e3a8a;
	--cokhi-footer-text: #000000;
	--cokhi-footer-title: #0f172a;
	--cokhi-footer-muted: #1f2937;
	--cokhi-footer-link: #111827;
	--cokhi-footer-link-hover: #0f172a;
	--cokhi-footer-bottom-bg: #0045a8;
	--cokhi-footer-bottom-text: #ffffff;
	--cokhi-footer-radius: 12px;
	--cokhi-footer-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
	font-family: "Inter", "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--cokhi-footer-text);
	margin-top: 1em;
	border-top: 1px solid #e5e7eb;
}

.cokhi-site-footer *,
.cokhi-site-footer *::before,
.cokhi-site-footer *::after {
	box-sizing: border-box;
}

.cokhi-site-footer__main {
	background: var(--cokhi-footer-main-bg);
	/* Khoảng vừa phải từ đường viền trên footer (border ở .cokhi-site-footer) */
	padding-top: clamp(2.25rem, 4.5vw, 3.25rem);
	padding-bottom: clamp(2.25rem, 3.5vw, 2.75rem);
	padding-left: clamp(1.125rem, 3.5vw, 2rem);
	padding-right: clamp(1.125rem, 3.5vw, 2rem);
}

/* Tránh cộng padding ngang với .container-fluid */
.cokhi-site-footer__main > .container-fluid {
	padding-left: 0;
	padding-right: 0;
}

@media (min-width: 992px) {
	.cokhi-site-footer__main {
		padding-top: 3.5rem;
		padding-bottom: 3rem;
	}
}

.cokhi-site-footer__col {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	height: 100%;
}

.cokhi-site-footer__title {
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.02em;
	margin: 0 0 0.75rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid rgba(15, 39, 68, 0.2);
	color: var(--cokhi-footer-title);
}

.cokhi-site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.cokhi-site-footer__list a {
	color: var(--cokhi-footer-link);
	text-decoration: none;
	font-size: 0.95rem;
	line-height: 1.5;
	font-weight: 500;
	transition: color 0.2s ease;
}

.cokhi-site-footer__list a:hover,
.cokhi-site-footer__list a:focus-visible {
	color: var(--cokhi-footer-link-hover);
	outline: none;
}

/* Cột 1 — logo + member + partners */
.cokhi-footer-brand__logo-wrap {
	margin-bottom: 0.25rem;
}

.cokhi-footer-brand__logo {
	display: block;
	max-width: 180px;
	height: auto;
	border-radius: var(--cokhi-footer-radius);
	box-shadow: var(--cokhi-footer-shadow);
}

.cokhi-footer-member {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--cokhi-footer-text);
}

.cokhi-footer-partners {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-top: 0.35rem;
}

.cokhi-footer-partners__logo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
	border: 1px solid #e5e7eb;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
	flex-shrink: 0;
}

/* Cột 4 — liên hệ + social */
.cokhi-footer-contact__row {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--cokhi-footer-text);
}

.cokhi-footer-contact__row a {
	color: var(--cokhi-footer-link);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.cokhi-footer-contact__row a:hover,
.cokhi-footer-contact__row a:focus-visible {
	color: var(--cokhi-footer-navy-mid);
}

.cokhi-footer-contact__icon {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: var(--cokhi-footer-radius);
	background: #f1f5f9;
	border: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	color: var(--cokhi-footer-title);
}

.cokhi-footer-contact__icon svg {
	display: block;
}

.cokhi-footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 0.5rem;
}

.cokhi-footer-social__link {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #f1f5f9;
	border: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cokhi-footer-title);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
	box-shadow: none;
}

.cokhi-footer-social__link:hover,
.cokhi-footer-social__link:focus-visible {
	background: var(--cokhi-footer-navy);
	color: #fff;
	border-color: var(--cokhi-footer-navy);
	transform: translateY(-2px);
	outline: none;
}

.cokhi-footer-social__link svg {
	display: block;
}

/* Copyright — nền #0045a8, chữ trắng */
.cokhi-site-footer__bottom {
	width: 100%;
	background: var(--cokhi-footer-bottom-bg);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: #ffffff;
	text-align: center;
	padding: 1rem 1rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.cokhi-site-footer__bottom .container,
.cokhi-site-footer__bottom p,
.cokhi-site-footer__bottom a {
	color: #ffffff !important;
}

.cokhi-site-footer__bottom p {
	margin: 0;
}

.cokhi-site-footer .row {
	--bs-gutter-x: 1.75rem;
	--bs-gutter-y: 1.75rem;
}

@media (max-width: 767.98px) {
	.cokhi-site-footer__main {
		padding-top: 2.5rem;
		padding-bottom: 2.25rem;
	}

	.cokhi-footer-brand__logo {
		max-width: 200px;
	}
}
