/* ============================================
   COMPONENT: Stats Section
   Used for displaying key statistics
   Breakpoints: Desktop (default), Tablet (max-width: 1199px), Mobile (max-width: 575px)
   ============================================ */

/* Desktop-first base styles */
.stats-section-wrapper {
	padding: var(--sp-7) 0;
}

.stats-section {
	position: relative;
	width: 100%;
	margin: 0 auto;
	padding: var(--sp-6) var(--sp-5);
}

.stats-section--thacsi {
	background-color: var(--brand-primary);
	background-image: url("/assets/images/thacsi_img2.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: var(--radius-20);
	height: 22.5rem; /* 225px */
	display: flex;
	align-items: center;
}

.stats-section .row {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0;
}

/* Add relative positioning to columns for absolute divider */
.stats-section .col-6,
.stats-section .col-md-3 {
	position: relative;
	flex: 1;
	max-width: none;
	padding: 0;
}

/* Stat Item */
.stat-item {
	position: relative;
	text-align: center;
	padding: var(--sp-4) 0;
}

/* Vertical dividers between stats - on column level */
.stats-section .col-6::after,
.stats-section .col-md-3::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	width: 0.2rem; /* 2px */
	height: 11.8rem; /* 118px */
	background-color: rgba(255, 255, 255, 0.2);
	z-index: 1;
}

/* Remove divider from last column */
.stats-section .col-6:last-child::after,
.stats-section .col-md-3:last-child::after {
	display: none;
}

.stat-item__number {
	font-family: var(--font-family-body);
	font-size: 8rem; /* 80px */
	font-weight: var(--fw-semibold);
	line-height: 1.2;
	color: var(--color-light);
	margin-bottom: var(--sp-3);
}

.stat-item__label {
	font-family: var(--font-family-body);
	font-size: var(--fs-body);
	font-weight: var(--fw-medium);
	line-height: 1.2;
	color: var(--color-light);
	text-transform: capitalize;
}

/* ================================================
   TABLET (max-width: 1199px)
   ================================================ */
@media (max-width: 1199px) {
	.stats-section-wrapper {
		padding: var(--sp-6) 0;
	}

	.stats-section--thacsi {
		height: auto;
		padding: var(--sp-5) var(--sp-4);
	}

	.stat-item__number {
		font-size: 4.8rem; /* 48px */
		margin-bottom: var(--sp-2);
	}

	.stat-item__label {
		font-size: var(--fs-body-sm);
	}

	.stat-item {
		padding: var(--sp-3) 0;
	}

	/* Dividers smaller on tablet */
	.stats-section .col-6::after,
	.stats-section .col-md-3::after {
		height: 7rem; /* 70px */
	}
}

/* ================================================
   MOBILE (max-width: 575px)
   ================================================ */
@media (max-width: 575px) {
	/* Hide stats section on mobile - controlled via Bootstrap class in HTML */
	.stats-section-wrapper {
		padding: var(--sp-5) 0;
	}

	.stats-section--thacsi {
		padding: var(--sp-4) var(--sp-3);
		border-radius: var(--radius-10);
	}

	.stat-item__number {
		font-size: 3.2rem; /* 32px */
		margin-bottom: var(--sp-1);
	}

	.stat-item__label {
		font-size: var(--fs-caption);
	}

	.stat-item {
		padding: var(--sp-2) 0;
	}

	/* Hide dividers on mobile 2x2 layout */
	.stats-section .col-6:nth-child(2)::after {
		display: none;
	}

	.stats-section .col-6::after {
		height: 5rem; /* 50px */
	}
}
