/* Hide title, divider, view all */
.hc-services-title,
.hc-services-divider,
.hc-view-all {
	display: none !important;
}

/* Section */
.hc-services-section {
	padding: 20px 40px 50px;
	background: white;
}

/* Equal height */
.hc-services-swiper .swiper-wrapper {
	align-items: stretch;
}

.hc-services-swiper .swiper-slide {
	height: auto;
	display: flex;
	flex-direction: column;
}

.hc-service-card-link {
	display: none;
}

/* Card */
.hc-service-card {
	background: white;
	border-radius: 12px;
	padding: 30px;
	height: 100%;
	min-height: 380px;
	display: flex;
	flex-direction: column;
	cursor: default;
	box-sizing: border-box;
	transition: box-shadow 0.35s ease;
	border: 3px solid transparent;
	background-image:
		linear-gradient(white, white),
		linear-gradient(to bottom, #1a3ea8 0%, #25AAE1 100%);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	flex: 1;
}

.hc-service-card:hover {
	background-image: linear-gradient(145deg, #1a54c8 0%, #3a9fd6 100%) !important;
	background-clip: unset !important;
	border: 3px solid transparent !important;
	box-shadow: 0 12px 40px rgba(26, 84, 200, 0.3);
}

.hc-service-card:hover .hc-card-title {
	color: white !important;
}

.hc-service-card:hover .hc-card-desc {
	color: rgba(255, 255, 255, 0.9) !important;
}

.hc-service-card:hover .hc-read-more {
	color: white !important;
}

.hc-service-card:hover .hc-card-icon img {
	filter: brightness(0) invert(1) !important;
}

.hc-service-card:hover .hc-arrow-img {
	opacity: 1 !important;
	filter: brightness(0) invert(1) !important;
}

/* Card title */
.hc-card-title {
	color: #1a3ea8;
	font-size: 20px;
	font-weight: 700;
	margin: 16px 0;
	line-height: 1.3;
	transition: color 0.35s ease;
}

/* Card description */
.hc-card-desc {
	flex-grow: 1;
	color: #444444;
	font-size: 15px;
	line-height: 1.7;
	transition: color 0.35s ease;
}

/* Card icon */
.hc-card-icon {
	display: flex;
	align-items: center;
}

.hc-card-icon img {
	width: 55px;
	height: 55px;
	object-fit: contain;
	transition: filter 0.35s ease;
	filter: none;
}

/* Read more */
.hc-read-more {
	display: inline-flex;
	text-decoration: none;
	outline: none;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #1a3ea8;
	text-transform: uppercase;
	transition: color 0.35s ease;
	cursor: pointer;
}

.hc-arrow-img {
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	min-height: 26px !important;
	max-width: 26px !important;
	max-height: 26px !important;
	object-fit: contain;
	opacity: 0;
	flex-shrink: 0;
	transform: none !important;
	transition: opacity 0.3s ease, filter 0.3s ease !important;
}

/* Pagination */
.hc-pagination {
	display: flex !important;
	justify-content: center;
	align-items: flex-end !important;
	gap: 2px !important;
	margin-top: 36px;
	position: static !important;
	bottom: auto !important;
	height: 14px;
	width: 100%;
}

.hc-pagination .swiper-pagination-bullet {
	width: 64px !important;
	height: 4px !important;
	border-radius: 2px !important;
	opacity: 1 !important;
	margin: 0 !important;
	transition: height 0.3s ease, background 0.3s ease;
	flex-shrink: 0;
	display: block;
}

.hc-pagination .swiper-pagination-bullet:nth-child(1) {
	background: #1E497E !important;
}

.hc-pagination .swiper-pagination-bullet:nth-child(2) {
	background: #2966B1 !important;
}

.hc-pagination .swiper-pagination-bullet:nth-child(3) {
	background: #25AAE1 !important;
}

.hc-pagination .swiper-pagination-bullet-active {
	height: 10px !important;
	border-radius: 3px !important;
}

/* =====================
   RESPONSIVE
   ===================== */

/* Large desktop — default, already set */
@media (min-width: 1025px) {
	.hc-services-section {
		padding: 20px 60px 50px;
	}

	.hc-service-card {
		padding: 30px;
		min-height: 380px;
	}

	.hc-card-title {
		font-size: 20px;
	}

	.hc-card-desc {
		font-size: 15px;
	}
}

/* Tablet landscape — 2 cards visible */
@media (max-width: 1024px) {
	.hc-services-section {
		padding: 20px 30px 50px;
	}

	.hc-service-card {
		padding: 24px;
		min-height: 340px;
	}

	.hc-card-title {
		font-size: 18px;
	}

	.hc-card-desc {
		font-size: 14px;
	}

	.hc-card-icon img {
		width: 48px;
		height: 48px;
	}

	.hc-view-all {
		font-size: 12px;
	}
}

/* Tablet portrait — 2 cards visible */
@media (max-width: 900px) {
	.hc-services-section {
		padding: 20px 24px 44px;
	}

	.hc-services-title {
		font-size: 28px;
	}

	.hc-service-card {
		padding: 22px;
		min-height: 320px;
	}

	.hc-card-title {
		font-size: 17px;
		margin: 12px 0;
	}

	.hc-card-desc {
		font-size: 14px;
		line-height: 1.6;
	}

	.hc-read-more {
		font-size: 11px;
		margin-top: 18px;
	}
}

/* Mobile landscape — 1 card visible */
@media (max-width: 768px) {
	.hc-services-section {
		padding: 16px 16px 40px;
	}

	.hc-services-title {
		font-size: 26px;
	}

	.hc-services-divider {
		margin: 0 auto 28px;
	}

	.hc-view-all {
		margin-bottom: 16px;
		font-size: 11px;
	}

	.hc-service-card {
		padding: 22px;
		min-height: unset;
		border-width: 2.5px;
	}

	.hc-card-icon img {
		width: 44px;
		height: 44px;
	}

	.hc-card-title {
		font-size: 18px;
		margin: 14px 0 10px;
	}

	.hc-card-desc {
		font-size: 14px;
		line-height: 1.65;
	}

	.hc-read-more {
		font-size: 11px;
		letter-spacing: 1px;
		margin-top: 16px;
		gap: 8px;
	}

	.hc-arrow-img {
		width: 22px;
		height: 22px;
	}

	.hc-pagination {
		margin-top: 24px;
	}

	.hc-pagination .swiper-pagination-bullet {
		width: 44px !important;
		height: 5px !important;
	}

	.hc-pagination .swiper-pagination-bullet-active {
		width: 54px !important;
		height: 8px !important;
	}
}

/* Mobile portrait — 1 card, full width */
@media (max-width: 480px) {
	.hc-services-section {
		padding: 14px 12px 36px;
	}

	.hc-services-title {
		font-size: 22px;
	}

	.hc-service-card {
		padding: 20px;
		border-radius: 10px;
	}

	.hc-card-icon img {
		width: 40px;
		height: 40px;
	}

	.hc-card-title {
		font-size: 16px;
		margin: 12px 0 8px;
	}

	.hc-card-desc {
		font-size: 13px;
		line-height: 1.6;
	}

	.hc-read-more {
		font-size: 11px;
		margin-top: 14px;
	}

	.hc-arrow-img {
		width: 20px;
		height: 20px;
	}

	.hc-pagination {
		margin-top: 20px;
		gap: 2px !important;
	}

	.hc-pagination .swiper-pagination-bullet {
		width: 36px !important;
		height: 4px !important;
	}

	.hc-pagination .swiper-pagination-bullet-active {
		width: 44px !important;
		height: 7px !important;
	}
}

/* Very small screens */
@media (max-width: 360px) {
	.hc-services-section {
		padding: 12px 10px 30px;
	}

	.hc-card-title {
		font-size: 15px;
	}

	.hc-card-desc {
		font-size: 13px;
	}

	.hc-service-card {
		padding: 16px;
	}
}

/* Make sure swiper slides stretch full height on all sizes */
.hc-services-swiper .swiper-wrapper {
	align-items: stretch;
}

.hc-services-swiper .swiper-slide {
	height: auto;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.hc-service-card {
	flex: 1;
	box-sizing: border-box;
}

/* Prevent any horizontal overflow from the swiper */
.hc-services-section {
	overflow-x: hidden;
	box-sizing: border-box;
	width: 100%;
}

.hc-services-swiper {
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

/* Hard-lock arrow size — prevent any theme a:hover img scaling */
.hc-read-more .hc-arrow-img,
.hc-read-more:hover .hc-arrow-img,
.hc-read-more:focus .hc-arrow-img,
.hc-service-card:hover .hc-read-more .hc-arrow-img {
	width: 26px !important;
	height: 26px !important;
	max-width: 26px !important;
	max-height: 26px !important;
	transform: none !important;
}

/* Only change on card hover: show arrow + turn white */
.hc-service-card:hover .hc-read-more .hc-arrow-img {
	opacity: 1 !important;
	filter: brightness(0) invert(1) !important;
}
