/* =============================================
   Railway Products Page
============================================= */

.rail-products-section {
	position: relative;
	padding: 70px 0 90px;
	background-color: #f7f8fb;
}

.rail-intro {
	max-width: 720px;
	margin: 0 auto 50px;
	text-align: center;
}

.rail-eyebrow {
	position: relative;
	display: inline-block;
	color: var(--main-color, #c20b0b);
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-size: 13px;
	margin-bottom: 14px;
	padding-bottom: 12px;
}

.rail-eyebrow::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 42px;
	height: 3px;
	background-color: var(--main-color, #c20b0b);
}

.rail-heading {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.3;
	color: #0f0f35;
	margin-bottom: 14px;
	font-family: var(--font-family-Roboto);
}

.rail-subtitle {
	color: #5a5a5a;
	font-size: 15px;
	line-height: 1.8;
	margin: 0;
}

/* Category */

.rail-category {
	margin-bottom: 55px;
}

.rail-category:last-child {
	margin-bottom: 0;
}

.rail-category-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 26px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e7ee;
}

.rail-category-icon {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 50%;
	background-color: rgba(194, 11, 11, .1);
	color: var(--main-color, #c20b0b);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.rail-category-head h3 {
	font-size: 22px;
	font-weight: 700;
	color: #0f0f35;
	margin: 0;
	font-family: var(--font-family-Roboto);
}

.rail-category-count {
	margin-left: auto;
	font-size: 13px;
	font-weight: 600;
	color: #6a6a6a;
	background-color: #eef0f5;
	padding: 5px 14px;
	border-radius: 50px;
}

/* Grid + Card */

.rail-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.rail-card {
	background-color: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 15, 53, .06);
	transition: transform 300ms ease, box-shadow 300ms ease;
}

.rail-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 36px rgba(15, 15, 53, .12);
}

.rail-card-media {
	position: relative;
	height: 180px;
	background-color: #f1f2f7;
}

.rail-card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 20px;
	display: block;
}

.rail-card-body {
	position: relative;
	padding: 22px 22px 24px;
}

.rail-card-body::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 36px;
	height: 3px;
	border-radius: 3px;
	background-color: var(--main-color, #c20b0b);
}

.rail-card-body h4 {
	font-size: 16.5px;
	font-weight: 700;
	color: #0f0f35;
	margin: 8px 0 10px;
	line-height: 1.35;
}

.rail-card-body p {
	font-size: 13.5px;
	line-height: 1.7;
	color: #6a6a6a;
	margin: 0;
}

/* Responsive */

@media only screen and (max-width:1199px) {
	.rail-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media only screen and (max-width:991px) {
	.rail-products-section {
		padding: 55px 0 65px;
	}

	.rail-heading {
		font-size: 27px;
	}

	.rail-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media only screen and (max-width:767px) {
	.rail-intro {
		margin-bottom: 36px;
	}

	.rail-heading {
		font-size: 23px;
	}

	.rail-category-head {
		gap: 12px;
		margin-bottom: 20px;
	}

	.rail-category-icon {
		width: 40px;
		height: 40px;
		min-width: 40px;
		font-size: 17px;
	}

	.rail-category-head h3 {
		font-size: 19px;
	}

	.rail-category-count {
		font-size: 12px;
		padding: 4px 10px;
	}

	.rail-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.rail-card-media {
		height: 160px;
	}
}

@media only screen and (max-width:480px) {
	.rail-category-count {
		display: none;
	}
}
