.cfm-frontend-wrap {
	max-width: 1420px;
	margin: 20px auto;
	padding: 0 16px 22px;
	direction: rtl;
	text-align: right;
}

.cfm-front-head {
	position: relative;
	overflow: hidden;
	margin-bottom: 20px;
	padding: 22px 24px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 28px;
	background:
		radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 28%),
		linear-gradient(145deg, #071225 0%, #0a1730 52%, #10244b 100%);
	color: #fff;
	box-shadow: 0 24px 70px rgba(3, 8, 20, 0.34);
}

.cfm-front-head-text h2 {
	margin: 0 0 6px;
	font-size: 21px;
	line-height: 1.5;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.cfm-front-head-text p {
	margin: 0;
	color: rgba(255, 255, 255, 0.74);
	font-size: 13px;
	line-height: 1.8;
}

.cfm-country-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.cfm-country-box {
	position: relative;
	overflow: hidden;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 28px;
	background:
		linear-gradient(180deg, rgba(23, 37, 66, 0.92) 0%, rgba(12, 25, 49, 0.98) 100%);
	box-shadow: 0 22px 55px rgba(2, 10, 24, 0.34);
	backdrop-filter: blur(12px);
}

.cfm-country-box::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	opacity: 0.85;
}

.cfm-country-box-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.cfm-country-box-head h3 {
	margin: 0;
	font-size: 21px;
	line-height: 1.3;
	font-weight: 800;
	color: #ffffff;
}

.cfm-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 13px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.11);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	line-height: 1;
}

.cfm-headline-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cfm-headline-item {
	padding: 14px 0 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.cfm-headline-item:last-child {
	padding-bottom: 2px;
	border-bottom: 0;
}

.cfm-headline-list a,
.cfm-title-text {
	display: block;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.95;
	color: #f8fbff;
	text-decoration: none;
}

.cfm-headline-list a:hover {
	color: #dbeafe;
}

.cfm-headline-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.cfm-media-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.15);
	border: 1px solid rgba(148, 163, 184, 0.18);
	color: #d1d9e6;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.cfm-time-text {
	color: rgba(255, 255, 255, 0.76);
	font-size: 12px;
	line-height: 1.5;
}

.cfm-country-empty,
.cfm-empty-state {
	padding: 26px 18px;
	text-align: center;
	border: 1px dashed rgba(255, 255, 255, 0.2);
	border-radius: 22px;
	background: rgba(15, 23, 42, 0.7);
	color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 980px) {
	.cfm-country-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.cfm-frontend-wrap {
		margin: 10px auto;
		padding: 0 10px 18px;
	}

	.cfm-front-head {
		padding: 18px 16px;
		border-radius: 24px;
	}

	.cfm-front-head-text h2 {
		font-size: 18px;
		line-height: 1.65;
	}

	.cfm-front-head-text p {
		font-size: 12px;
	}

	.cfm-country-box {
		padding: 16px 14px;
		border-radius: 24px;
	}

	.cfm-country-box-head {
		margin-bottom: 12px;
	}

	.cfm-country-box-head h3 {
		font-size: 18px;
	}

	.cfm-count-badge {
		min-width: 38px;
		height: 38px;
		font-size: 12px;
	}

	.cfm-headline-item {
		padding: 12px 0 14px;
	}

	.cfm-headline-list a,
	.cfm-title-text {
		font-size: 15px;
		line-height: 1.9;
	}

	.cfm-headline-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.cfm-media-tag {
		font-size: 9px;
		padding: 4px 9px;
	}

	.cfm-time-text {
		font-size: 11px;
	}
}
