/* footer (_footer.php) — ทับสไตล์ #footer เดิมของธีม/custom.css */
#footer.site-footer {
	position: relative;
	margin-top: 0;
	padding: 0;
	border-top: 0;
	background-color: #141414;
	background-image:
		radial-gradient(900px 420px at 0% 0%, rgba(206, 0, 1, .2), transparent 60%),
		radial-gradient(700px 380px at 100% 100%, rgba(206, 0, 1, .1), transparent 60%);
	box-shadow: none;
	color: #bdbdbd;
	font-size: 15px;
}

/* เส้นไล่สีแดงด้านบน */
#footer.site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #8D0104, #CE0001, #ff4d4d, #CE0001, #8D0104);
}

/* ---------- แถบชวนติดต่อ ---------- */
.footer-cta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin-top: 56px;
	padding: 28px 32px;
	border-radius: 24px;
	background: linear-gradient(120deg, #CE0001 0%, #8D0104 100%);
	box-shadow: 0 22px 50px rgba(206, 0, 1, .25);
	overflow: hidden;
}

.footer-cta::after {
	content: "";
	position: absolute;
	right: -70px;
	top: -110px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	pointer-events: none;
}

.footer-cta-text { position: relative; z-index: 1; }

.footer-cta-title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	color: #FFF;
}

#footer .footer-cta p {
	margin-top: 4px !important;
	color: rgba(255, 255, 255, .88) !important;
	font-size: 16px;
}

.footer-cta-actions {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.footer-cta-actions .cbtn {
	min-width: 230px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

/* ---------- 4 คอลัมน์ ---------- */
.footer-grid {
	display: grid;
	grid-template-columns: 1.25fr 1.3fr .9fr 1fr;
	gap: 40px;
	padding: 52px 0 36px;
}

.footer-heading {
	position: relative;
	margin-bottom: 18px;
	padding-bottom: 10px;
	font-size: 18px;
	font-weight: 700;
	color: #FFF;
}

.footer-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 3px;
	border-radius: 3px;
	background: #CE0001;
}

.footer-logo {
	display: inline-block;
	margin-bottom: 16px;
	padding: 12px 16px;
	border-radius: 16px;
	background: #FFF;
	transition: transform .25s ease;
}

.footer-logo:hover { transform: translateY(-3px); }

.footer-logo img {
	display: block;
	max-width: 220px;
	height: auto;
}

#footer .footer-brand p {
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #a9a9a9 !important;
	line-height: 1.75 !important;
}

/* ข้อมูลติดต่อ */
.footer-contact {
	display: flex;
	flex-direction: column;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.fc-icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .08);
	color: #ff5a5a;
	font-size: 15px;
	transition: background .2s ease, color .2s ease;
}

.footer-contact li:hover .fc-icon {
	background: #CE0001;
	color: #FFF;
}

.footer-contact small {
	display: block;
	font-size: 12px;
	line-height: 1.4;
	color: #8a8a8a;
}

#footer .footer-contact a,
#footer .footer-contact .fc-value {
	color: #ececec !important;
	font-size: 15px;
	line-height: 1.55;
	text-decoration: none;
}

#footer .footer-contact a:hover { color: #ff6b6b !important; }

.fc-ext {
	margin-left: 4px;
	font-size: 11px;
	opacity: .7;
}

/* QR Code LINE */
#footer .footer-qr {
	display: block;
	max-width: 190px;
	padding: 12px;
	border-radius: 18px;
	background: #FFF;
	text-align: center;
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease;
}

#footer .footer-qr:hover {
	transform: translateY(-4px) rotate(-1.5deg);
	box-shadow: 0 14px 30px rgba(6, 199, 85, .25);
}

.footer-qr img {
	display: block;
	width: 100%;
	border-radius: 10px;
}

.footer-qr span {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.4;
	color: #444;
}

.footer-qr strong { color: #06a34a; }

/* สถิติการเข้าชม */
.footer-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 12px;
}

.fs-tile {
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .08);
}

.fs-tile.is-total {
	background: rgba(206, 0, 1, .18);
	border-color: rgba(255, 90, 90, .3);
}

.fs-tile small {
	display: block;
	font-size: 12px;
	color: #9a9a9a;
}

.fs-tile strong {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #FFF;
}

.footer-stats-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-stats-list li {
	display: flex;
	justify-content: space-between;
	padding: 6px 2px;
	border-bottom: 1px dashed rgba(255, 255, 255, .08);
	font-size: 14px;
}

.footer-stats-list li span:last-child {
	color: #ececec;
	font-variant-numeric: tabular-nums;
}

/* แท็ก */
.footer-tags {
	padding: 26px 0 34px;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

html #footer.site-footer .footer-tag-list .badge {
	margin: 0 !important;
	padding: 7px 13px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 999px;
	background: rgba(255, 255, 255, .05) !important;
	background-image: none !important;
	color: #cfcfcf !important;
	font-size: 13px;
	font-weight: 400 !important;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

html #footer.site-footer .footer-tag-list .badge:hover {
	background: #CE0001 !important;
	border-color: #CE0001;
	color: #FFF !important;
}

/* ---------- แถบล่างสุด ---------- */
.footer-bottom {
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, .08);
	background: rgba(0, 0, 0, .35);
	text-align: center;
}

.footer-policy-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
	margin-bottom: 6px;
	font-size: 14px;
}

#footer .footer-policy-links a {
	color: #cfcfcf !important;
	text-decoration: none;
}

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

.footer-copy {
	font-size: 13px;
	color: #8a8a8a;
}

@media (prefers-reduced-motion: reduce) {
	.footer-logo, #footer .footer-qr { transition: none; }
	.footer-logo:hover, #footer .footer-qr:hover { transform: none; }
}

/* ---------- แท็บเล็ต / มือถือ ---------- */
@media (max-width: 991px) {
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 28px; }
}

@media (max-width: 575px) {
	.footer-cta {
		margin-top: 36px;
		padding: 22px 18px;
		border-radius: 20px;
	}

	.footer-cta-title { font-size: 22px; }
	.footer-cta-actions { width: 100%; }
	.footer-cta-actions .cbtn { flex: 1 1 100%; min-width: 0; }
	.footer-grid { grid-template-columns: 1fr; padding-top: 40px; }
}
