/* Footer — _footer.php, widget-counter.php */

#footer.site-footer {
	position: relative;
	margin-top: 0;
	padding: 0;
	overflow: hidden;
	border-top: 0;
	background:
		radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.12), transparent 35%),
		radial-gradient(circle at 0% 100%, rgba(23, 78, 189, 0.25), transparent 40%),
		#0b1630;
	box-shadow: none;
	color: #94a3b8;
	font-family: 'Sarabun', sans-serif;
	font-size: 15.5px;
}

#footer.site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #174EBD, #38bdf8, #F1AE2D);
}

#footer.site-footer p {
	margin: 0 !important;
	color: #94a3b8 !important;
	line-height: 1.75 !important;
}

#footer.site-footer a {
	color: #cbd5e1 !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

#footer.site-footer a:hover {
	color: #FFF !important;
}

.site-footer__main {
	padding: 72px 0 40px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.35fr 0.75fr 1.2fr 1fr;
	gap: 44px;
}

/* แบรนด์ */
.site-footer__logo {
	display: inline-block;
	padding: 12px 16px;
	border-radius: 14px;
	background: #FFF;
}

.site-footer__logo img {
	display: block;
	width: auto;
	height: 46px;
}

#footer.site-footer .site-footer__about {
	margin-top: 18px !important;
	font-size: 15px;
}

.site-footer__social {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

#footer.site-footer .site-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.07);
	color: #e2e8f0 !important;
	font-size: 17px;
	transition: background 0.2s ease, transform 0.2s ease;
}

#footer.site-footer .site-footer__social a:hover {
	background: #174EBD;
	color: #FFF !important;
	transform: translateY(-2px);
}

/* หัวข้อคอลัมน์ */
#footer.site-footer h4 {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 12px;
	color: #FFF;
	font-family: 'Sarabun', sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
}

#footer.site-footer h4::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 3px;
	border-radius: 3px;
	background: #F1AE2D;
}

/* เมนู */
.site-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__links li + li {
	margin-top: 10px;
}

#footer.site-footer .site-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: color 0.2s ease, transform 0.2s ease;
}

#footer.site-footer .site-footer__links a::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #38bdf8;
	opacity: 0.6;
}

#footer.site-footer .site-footer__links a:hover {
	transform: translateX(3px);
}

/* ข้อมูลติดต่อ */
.site-footer__contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.site-footer__contact li + li {
	margin-top: 14px;
}

.site-footer__contact i {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.07);
	color: #60a5fa;
	font-size: 15px;
}

.site-footer__contact i.fa-line {
	color: #4ade80;
	font-size: 18px;
}

.site-footer__contact div {
	min-width: 0;
	line-height: 1.45;
}

.site-footer__contact small {
	display: block;
	color: #64748b;
	font-size: 12.5px;
}

#footer.site-footer .site-footer__contact a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	color: #e2e8f0 !important;
	word-break: break-word;
}

/* สถิติการเข้าชม */
.footer-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-stats li {
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	line-height: 1.3;
}

.footer-stats span {
	display: block;
	color: #94a3b8;
	font-size: 12.5px;
}

.footer-stats strong {
	color: #FFF;
	font-size: 17px;
	font-weight: 700;
}

.footer-stats li.is-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	grid-column: span 2;
	background: linear-gradient(135deg, rgba(23, 78, 189, 0.65), rgba(56, 189, 248, 0.3));
}

.footer-stats li.is-total span {
	color: #dbeafe;
	font-size: 14px;
}

.footer-stats li.is-total strong {
	font-size: 20px;
}

/* แท็ก */
.site-footer__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__tags > span {
	margin-right: 6px;
	color: #FFF;
	font-weight: 700;
}

.site-footer__tags > span i {
	color: #F1AE2D;
}

#footer.site-footer .site-footer__tags .badge {
	margin: 0 !important;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06) !important;
	color: #cbd5e1 !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	transition: background 0.2s ease;
}

#footer.site-footer .site-footer__tags .badge:hover {
	background: #174EBD !important;
	color: #FFF !important;
}

/* แถบล่างสุด */
.site-footer__bottom {
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(0, 0, 0, 0.25);
	font-size: 14px;
}

.site-footer__bottom .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
}

.site-footer__policy {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}

@media (max-width: 991px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 40px 32px;
	}
}

@media (max-width: 575px) {
	.site-footer__main {
		padding: 56px 0 32px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.site-footer__bottom .container {
		flex-direction: column;
		text-align: center;
	}

	.site-footer__policy {
		justify-content: center;
	}
}
