/**
 * Counter Section
 *
 * Generated by Dreamz Page Builder on 2026-07-29.
 */

.counter_section {
	padding-top: 50px;
}
section.counter_section.pb-80 {
	padding-bottom: 50px;
}
.counter_section .counter_row {
	/* display: flex; */
	  display: grid;
    grid-template-columns: repeat(3, 1fr); 
	width: 100%;
	border-radius: 20px;
	overflow: hidden;
}

.counter_section .counter_item:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
}

/* First item in the last row (7) */
.counter_section .counter_item:nth-last-child(2):nth-child(3n + 1) {
    grid-column: span 1.5;
}

/* Last item (8) */
.counter_section .counter_item:last-child:nth-child(3n + 2) {
    grid-column: span 1.5;
}

.counter_section .counter_item {
	flex: 1;
}

.counter_section .counter_item:nth-child(3n + 1) .counter_box {
	background: #0C8389;
}

.counter_section .counter_item:nth-child(3n + 2) .counter_box {
	background: #DF607E;
}

.counter_section .counter_item:nth-child(3n) .counter_box {
	background: #F9C221;
}

.counter_section .counter_box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 32px 15px;
}

.counter_section .counter_number {
	margin-bottom: 10px;
}

.counter_section .counter_number span {
	display: inline-block;
	font-family: "Fraunces", serif;
	font-weight: 700;
	font-size: 36px;
	line-height: normal;
	color: #FFF;
}

.counter_section .counter_title h4 {
	font-weight: 400;
	line-height: normal;
	color: #FFF;
}

@media (max-width: 1199px) {

	.counter_section {
		padding-top: 40px;
	}

	.counter_section .counter_box {
		padding: 25px 15px;
	}

	.counter_section .counter_number {
		margin-bottom: 5px;
	}

	.counter_section .counter_number span {
		font-size: 32px;
	}

}

@media (max-width: 991px) {

	.counter_section {
		padding-top: 40px;
	}

	.counter_section .counter_box {
		padding: 20px 15px;
	}

	.counter_section .counter_number span {
		font-size: 28px;
	}

}

@media (max-width: 767px) {

	.counter_section {
		padding-top: 30px;
	}
	section.counter_section.pb-80 {
		padding-bottom: 30px;
	}
	.counter_section .counter_row {
		/* flex-direction: column; */
		border-radius: 15px;
		  grid-template-columns: 1fr; 
	}

	.counter_section .counter_box {
		padding: 15px;
	}

	.counter_section .counter_number span {
		font-size: 24px;
	}
}