/*
 * Services Section — Static Grid Layout
 * Scoped to #events_and_celebrations_services_section
 */

#events_and_celebrations_services_section.cm-services-section {
	position: relative;
	padding: 35px 0 66px;
	overflow: hidden;
}

#events_and_celebrations_services_section .asterthemes-wrapper {
	position: relative;
	z-index: 1;
}

#events_and_celebrations_services_section .cm-services__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	margin-bottom: 30px;
}

#events_and_celebrations_services_section .cm-services__header-main {
	max-width: 760px;
}

#events_and_celebrations_services_section .cm-services__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 4px;
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 400;
	color: var(--primary-color);
	position: relative;
	margin-bottom: 5px;
}

#events_and_celebrations_services_section .cm-services__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.15;
	color: #0B0B0B;
}

#events_and_celebrations_services_section .cm-services__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px;
	align-items: stretch;
}

#events_and_celebrations_services_section .cm-services__slide {
	position: relative;
	overflow: hidden;
	border-radius: 0;
	min-height: 380px;
}

#events_and_celebrations_services_section .cm-services__card {
	position: relative;
	height: 100%;
	border-radius: 0;
	overflow: hidden;
}

#events_and_celebrations_services_section .cm-services__card-bg-img {
	display: block;
	width: 100%;
	height: 380px;
	object-fit: cover;
	object-position: center;
	border-radius: 5px;
}

#events_and_celebrations_services_section .cm-services__card-title {
	margin: 15px 0 10px;
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	color: #000000;
	text-align: center;
}

a.cm-services__card-category {
	font-family: var(--font-second);
	font-size: 16px;
	color: var(--primary-color);
	text-align: center;
}

.cm-services__card-title-div{
	text-align: center;
}

#events_and_celebrations_services_section .cm-services__card-title a {
	color: inherit;
	text-decoration: none;
}

#events_and_celebrations_services_section .cm-services__card-title a:hover,
#events_and_celebrations_services_section .cm-services__card-title a:focus {
	color: var(--primary-color);
}

.cm-services__card-bg {
  position: relative;
  display: block;
  overflow: hidden;
}

.cm-services__card-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    var(--primary-color) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: all 1s ease-in-out;
  z-index: 2;
  opacity: 0.3;
}

.cm-services__slide:hover .cm-services__card-bg::before {
  left: 150%;
}

@media only screen and (min-width: 1920px) {
	#events_and_celebrations_services_section.cm-services-section {
		padding: 40px 0 60px;
	}
}

@media only screen and (min-width: 1150px) and (max-width: 1700px) {
	#events_and_celebrations_services_section.cm-services-section {
		padding: 58px 0 68px;
	}
}

@media only screen and (min-width: 1366px) and (max-width: 1439px) {
	#events_and_celebrations_services_section.cm-services-section {
		padding: 55px 0 65px;
	}

	#events_and_celebrations_services_section .cm-services__card-bg,
	#events_and_celebrations_services_section .cm-services__slide,#events_and_celebrations_services_section .cm-services__card-bg-img {
		min-height: 380px;
	}

	#events_and_celebrations_services_section .cm-services__card-title {
		font-size: 30px;
	}

	#events_and_celebrations_services_section .cm-services__card-info {
		padding-top: 34px;
		padding-bottom: 30px;
	}
}

@media only screen and (max-width: 1366px) {
	#events_and_celebrations_services_section .cm-services__title {
		font-size: 40px;
	}

	#events_and_celebrations_services_section .cm-services__card-bg,
	#events_and_celebrations_services_section .cm-services__slide {
		min-height: 300px;
	}
}

@media only screen and (max-width: 1150px) {
	#events_and_celebrations_services_section.cm-services-section {
		padding: 56px 0 64px;
	}

	#events_and_celebrations_services_section .cm-services__title {
		font-size: 34px;
	}

	#events_and_celebrations_services_section .cm-services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	#events_and_celebrations_services_section .cm-services__title,
	#events_and_celebrations_services_section .cm-services__header-main {
		max-width: 100%;
	}
	#events_and_celebrations_services_section .cm-services__card-bg,
	#events_and_celebrations_services_section .cm-services__slide {
		min-height: 280px;
	}

	#events_and_celebrations_services_section .cm-services__card-title {
		font-size: 23px;
	}

	#events_and_celebrations_services_section .cm-services__card-excerpt {
		font-size: 16px;
		line-height: 1.55;
	}

}

@media only screen and (max-width: 599px) {
	#events_and_celebrations_services_section .cm-services__title {
		font-size: 24px;
	}

	#events_and_celebrations_services_section .cm-services__card-title {
		font-size: 21px;
	}

	#events_and_celebrations_services_section .cm-services__card-excerpt {
		font-size: 14px;
		text-align: center;
	}
	#events_and_celebrations_services_section .cm-services__card-head {
		justify-content: center;
	}

	#events_and_celebrations_services_section .cm-services__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

@media only screen and (max-width: 350px) {
	#events_and_celebrations_services_section .cm-services__card-icon {
		width: 40px;
	}
}