/**
 * Homepage about stats — #home_about_c_ul
 * Desktop overlay (1281px+): base block below — unchanged.
 * Responsive: 1280 | 1200 | 991 | 768 | 576 | 480
 *
 * @package dreamtime
 */

/* ------------------------------------------------------------------ base (desktop overlay, 1281px+) */
#home_about_c_ul {
	width: 94%;
	left: 3%;
	bottom: clamp(12px, 1.4vw, 16px);
}

#home_about_c_ul ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(8px, 0.9vw, 10px);
	width: 100%;
	float: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

#home_about_c_ul ul li {
	position: relative;
	float: none;
	width: auto;
	margin: 0;
	padding: clamp(14px, 1.4vw, 16px) clamp(10px, 1vw, 12px) clamp(12px, 1.2vw, 14px);
	text-align: center;
	background: rgba(255, 255, 255, 0.93);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease,
		border-color 0.28s ease;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	box-sizing: border-box;
}

#home_about_c_ul ul li::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 32px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, #9b7b58, transparent);
	opacity: 0.75;
}

#home_about_c_ul ul li:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 255, 255, 1);
	box-shadow: 0 10px 28px rgba(27, 58, 149, 0.12);
}

#home_about_c_ul ul li big {
	display: block;
	float: none;
	width: 100%;
	margin: 0 0 4px;
	padding-top: 4px;
	font-size: clamp(1.25rem, 2vw, 2rem);
	line-height: 1.12;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: #1b3a95;
}

#home_about_c_ul ul li small {
	display: block;
	float: none;
	width: 100%;
	margin: 0;
	font-size: clamp(0.6875rem, 1vw, 0.875rem);
	line-height: 1.4;
	font-weight: 400;
	color: #555;
	letter-spacing: 0.01em;
}

/* ------------------------------------------------------------------ 1280px — 2×2 overlay */
@media (max-width: 1280px) {
	#home_about_c_ul {
		width: 92%;
		left: 4%;
		bottom: 12px;
	}

	#home_about_c_ul ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	#home_about_c_ul ul li {
		padding: 12px 10px 11px;
		min-height: 66px;
		border-radius: 12px;
	}

	#home_about_c_ul ul li big {
		font-size: clamp(1.125rem, 2vw, 1.5rem);
		margin-bottom: 3px;
		padding-top: 3px;
		line-height: 1.15;
	}

	#home_about_c_ul ul li small {
		font-size: clamp(0.6875rem, 1vw, 0.8125rem);
		line-height: 1.35;
	}
}

/* ------------------------------------------------------------------ 1200px */
@media (max-width: 1200px) {
	#home_about_c_ul ul {
		gap: 7px;
	}

	#home_about_c_ul ul li {
		padding: 11px 9px 10px;
		min-height: 62px;
	}

	#home_about_c_ul ul li::before {
		width: 28px;
	}

	#home_about_c_ul ul li big {
		font-size: clamp(1.0625rem, 1.9vw, 1.375rem);
	}

	#home_about_c_ul ul li small {
		font-size: 0.6875rem;
		line-height: 1.32;
	}
}

/* ------------------------------------------------------------------ 991px — below image, 2×2 card grid */
@media (max-width: 991px) {
	#home_about_c_ul {
		position: relative;
		left: auto;
		bottom: auto;
		width: 100%;
		margin-top: clamp(14px, 2.5vw, 18px);
		padding: 0;
	}

	#home_about_c_ul ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(10px, 2vw, 14px);
	}

	#home_about_c_ul ul li {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		padding: clamp(14px, 2.5vw, 18px) clamp(12px, 2vw, 16px);
		min-height: 0;
		border-radius: 14px;
		background: #fff;
		border: 1px solid #edf1f4;
		box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
	}

	#home_about_c_ul ul li::before {
		position: absolute;
		top: 0;
		left: 50%;
		transform: translateX(-50%);
		width: 28px;
		height: 2px;
	}

	#home_about_c_ul ul li:hover {
		box-shadow: 0 8px 22px rgba(27, 58, 149, 0.1);
	}

	#home_about_c_ul ul li big {
		width: 100%;
		margin: 0 0 5px;
		padding-top: 5px;
		font-size: clamp(1.3125rem, 3.2vw, 1.5625rem);
		line-height: 1.1;
		text-align: center;
	}

	#home_about_c_ul ul li small {
		width: 100%;
		max-width: none;
		font-size: clamp(0.75rem, 1.8vw, 0.8125rem);
		line-height: 1.4;
		color: #666;
		text-align: center;
		text-wrap: balance;
	}
}

/* ------------------------------------------------------------------ 768px */
@media (max-width: 768px) {
	#home_about_c_ul {
		margin-top: 14px;
	}

	#home_about_c_ul ul {
		gap: 10px;
	}

	#home_about_c_ul ul li {
		padding: 15px 12px 14px;
	}

	#home_about_c_ul ul li big {
		font-size: 1.4375rem;
		margin-bottom: 4px;
	}

	#home_about_c_ul ul li small {
		font-size: 0.8125rem;
		line-height: 1.38;
	}
}

/* ------------------------------------------------------------------ 576px — single column, horizontal stat rows */
@media (max-width: 576px) {
	#home_about_c_ul {
		margin-top: 12px;
	}

	#home_about_c_ul ul {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	#home_about_c_ul ul li {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-start;
		gap: 0;
		padding: 0;
		min-height: 0;
		text-align: left;
		overflow: visible;
	}

	/* Left accent bar — vertically centered beside content */
	#home_about_c_ul ul li::before {
		position: static;
		flex: 0 0 3px;
		width: 3px;
		height: 2.5rem;
		margin: 0 0 0 0;
		transform: none;
		border-radius: 0 2px 2px 0;
		background: linear-gradient(180deg, #9b7b58 0%, #c4a574 100%);
		opacity: 1;
		align-self: center;
	}

	#home_about_c_ul ul li big {
		flex: 0 0 auto;
		width: auto;
		min-width: 3.75rem;
		margin: 0;
		padding: 14px 0 14px 14px;
		font-size: 1.375rem;
		line-height: 1;
		text-align: left;
		white-space: nowrap;
	}

	#home_about_c_ul ul li small {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		margin: 0;
		padding: 14px 16px 14px 10px;
		font-size: 0.875rem;
		line-height: 1.45;
		color: #555;
		text-align: left;
		text-wrap: pretty;
	}
}

/* ------------------------------------------------------------------ 480px */
@media (max-width: 480px) {
	#home_about_c_ul ul {
		gap: 7px;
	}

	#home_about_c_ul ul li::before {
		height: 2.25rem;
	}

	#home_about_c_ul ul li big {
		min-width: 3.25rem;
		padding: 12px 0 12px 12px;
		font-size: 1.25rem;
	}

	#home_about_c_ul ul li small {
		padding: 12px 14px 12px 8px;
		font-size: 0.8125rem;
		line-height: 1.42;
	}
}

/* no hover lift on touch devices */
@media (hover: none) {
	#home_about_c_ul ul li:hover {
		transform: none;
	}
}
