.bg-block::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 580px;
	background: url('/wp-content/themes/wimpoleclinic/assets/img/gallery/section-2.jpg') center / cover no-repeat;
	z-index: 0;
}

.bg-block {
	position: relative;
	padding-top: 100px;
}

.wc-case {
	position: relative;
	z-index: 2;
	margin-top: 100px;
}

.wc-case {
	margin: 0 auto;
}

.gallery-wrapper {
	max-width: 956px;
	margin: 0 auto;
}

/* === Wimpole Case Layout === */
.wc-case__title {
	color: #FFF;
	font-family: Roboto !important;
	font-size: 48px;
	font-style: normal;
	font-weight: 700 !important;
	line-height: 160%;
	margin-bottom: 50px;
	margin-top: 0;
}

@media (max-width: 1024px) {
	.wc-case__stats {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.wc-case__stats {
		grid-template-columns: 1fr;
	}
}

.wc-case__stat {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
}

.wc-case__stat-label {
	color: #FFF;
	font-family: Roboto;
	font-size: 20px;
	font-style: normal;
	font-weight: 700;
	line-height: 160%;
}

.wc-case__stat-value {
	color: #FFF;
	font-family: Roboto;
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	line-height: 160%;
	text-transform: capitalize;
}

.wc-case__stats {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 24px;
	border-radius: 6px;
	overflow: hidden;
}

.wc-case__stats {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wc-case__stat {
	display: flex;
	align-items: center;
}

.wc-case__icon {
	padding-top: 10px;
}

.wc-case__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	align-items: flex-start;
}

.wc-case__icon img {
	display: block;
	width: 24px;
	height: 34px;
}

.wc-case__text {
	display: flex;
	flex-direction: column;
}

/* Divider */
.wc-case__divider {
	width: 1px;
	height: 60px;
	background: rgba(255, 255, 255, 0.2);
	align-self: center;
}

.wc-case__quote {
	margin: 70px 0;
	padding: 35px 60px;
	background: #DCEAF0;
	border: none;
}

.gallery-wrapper .wc-case__quote p {
	margin: 0;
	padding: 0 30px;
	border-left: 3px solid #56AFCB;
	border-radius: none;
	font-family: 'gill-sans-nova' !important;
	font-size: 25px!important;
	font-weight: 500 !important;
	line-height: 154%;
	color: #093449;
	font-style: italic !important;
}

.sidebar-doctor.in_content .sidebar-doctor-item {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 28px 16px;
	align-items: start;
	position: relative;
	align-items: center;
	padding: 25px 40px;
}

span.sidebar-doctor-item--num a {
	color: #16435A !important;
	font-size: 18px;
	font-weight: 400;
	line-height: 160%;
	font-style: italic;
	text-decoration: none !important;
	letter-spacing: -0.09px;
}

.sidebar-doctor.in_content .sidebar-doctor-item--description {
	margin-top: 0px;
}

.sidebar-doctor.in_content .sidebar-doctor-item--heading .sidebar-arrow-toggle {
	position: absolute;
	right: 46px;
	top: initial;
	width: 46px;
	display: flex;
	justify-content: flex-end;
	height: 30px;
}

.wc-case__ba {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin: 40px 0 70px;
}

.wc-case__ba-item img {
	width: 100%;
	height: auto;
	display: block;
}


.gallery-wrapper h2 {
	font-family: 'gill-sans-nova';
	font-size: 42px !important;
	font-style: normal;
	font-weight: 700 !important;
	line-height: 115.9%;
}

.gallery-wrapper h3 {
	font-family: 'Roboto' !important;
	font-size: 22px !important;
	font-style: normal;
	font-weight: 700 !important;
	line-height: 160%;
}

.gallery-wrapper p,
.gallery-wrapper ul li {
	color: #595857;
	font-family: 'Roboto';
	font-size: 22px !important;
	font-style: normal;
	font-weight: 400;
	line-height: 160%;
}

.wc-case__ctas {
	display: flex;
	gap: 16px;
	margin-top: 28px;
}

.wc-case__ctas .wc-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	padding: 12px 40px;
	font-weight: 600;
	text-decoration: none;
	background: #2D5D70;
	color: #fff;
}

.wc-case__ctas .wc-btn:hover {
	filter: brightness(0.95);
}

.wc-case__ctas .wc-btn--primary {
	background: #8CD0E5;
	color: #093449;
}

.wc-case__ctas .wc-btn--primary:hover {
	filter: brightness(0.97);
}

.wc-case__ctas .wc-btn a {
	font-size: 18px;
}

.card_metadata .titlerow {
	color: #595857;
	font-size: 18px;
	font-style: normal;
	font-weight: 700;
	line-height: 160%;
	margin-bottom: 20px;
}

.slide-container {
	margin-bottom: 25px;
}

.card_row {
	padding: 8px 0 8px;
}

.rowbtn {
	padding-top: 28px;
}

.case-button {
	text-align: center;
}

.view-result-btn {
	display: inline-block;
	float: left;
	padding: 14px 18px;
	border-radius: 8px;
	border: 2px solid #2D5D70;
	font-size: 16px;
	font-weight: 500;
	max-width: 240px;
	width: 100%;
	color: #2d5d70;
	background-color: #fff;
	transition: all 0.3s ease;
	color: #2D5D70;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.view-result-btn:hover {
	background-color: #2d5d70;
	color: #fff;
}


@media (max-width: 1024px) {
	.bg-block::before {
		height: 420px;
		background: url('/wp-content/themes/wimpoleclinic/assets/img/gallery/section-2.jpg') center / cover no-repeat;
	}

	.bg-block {
		padding-top: 40px;
	}

	.wc-case {
		position: relative;
		z-index: 2;
		margin-top: 0px;
	}

	.wc-case__divider {
		display: none;
	}

	.wc-case__title {
		color: #FFF;
		font-size: 35px;
		line-height: 113%;
		margin-bottom: 25px;
	}
	
	

	.wc-case__stat {
		flex: 1;
		display: flex;
		align-items: center;
		gap: 8px;
		position: relative;
	}

	.wc-case__stat-label {
		font-size: 16px;
		line-height: 160%;
	}

	.wc-case__stat-value {
		font-size: 16px;
		line-height: 160%;
	}

	.wc-case__stats {
		display: flex;
		align-items: flex-start;
		justify-content: center;
		flex-direction: column;
		gap: 12px;
	}

	.wc-case__stat {
		display: flex;
		align-items: center;
	}

	.wc-case__icon {
		padding-top: 0px;
	}

	.wc-case__inner {
		display: flex;
		gap: 18px;
		align-items: center;
	}

	.wc-case__icon img {
		display: block;
		width: 25px;
		height: 32px;
	}

	.wc-case__text {
		display: flex;
		flex-direction: row;
		gap: 8px;
	}

	.wc-case__quote {
		margin-top: 0;
		margin-bottom: 32px;
		padding: 21px 17px;
	}

	.gallery-wrapper .wc-case__quote p {
		padding: 0 15px;
		font-size: 18px!important;
		line-height: 146%;
	}

	.sidebar-doctor.in_content .sidebar-doctor-item {
		gap: 28px 16px;
		padding: 13px 15px;
	}
	
	.sidebar-doctor-item--heading picture {
		display: flex;
		align-items: center;
	}

	span.sidebar-doctor-item--num a {
		font-size: 14px;
		font-weight: 400;
	}
	.sidebar-doctor.in_content .sidebar-doctor-item--heading img {
		width: 52px !important;
		height: 52px !important;
	}
	.sidebar-doctor-item--description {
		max-width: calc(100% - 68px);
	}
	span.sidebar-doctor-item--date {
		font-size: 12px;
	}

	.sidebar-doctor.in_content .sidebar-doctor-item--description {
		margin-top: 0px;
	}

	.sidebar-doctor.in_content .sidebar-doctor-item--heading .sidebar-arrow-toggle {
		right: 9px;
		width: 18px;
		height: 18px;
	}
	
	.sidebar-doctor.in_content {
		margin-bottom: 32px;
	}

	.wc-case__ba {
		grid-template-columns: 1fr 1fr;
		gap: 0;
		margin: 32px 0 18px
	}

	.wc-case__ba-item img {
		width: 100%;
		height: auto;
		display: block;
	}

	.gallery-wrapper h2 {
		font-size: 20px !important;
	}

	.gallery-wrapper h3 {
		font-size: 18px !important;
	}

	.gallery-wrapper p,
	.gallery-wrapper ul li {
		font-size: 18px !important;
	}
	.gallery-wrapper ul {
		margin-left: 16px;
	}

	.wc-case__ctas {
		display: flex;
		flex-direction: column;
		gap: 16px;
		margin-top: 40px;
	}
	
	.card-inside-single-gallery {
		padding: 0!important;
	}
	
	.single-gallery-items .inservicegrid {
		gap: 40px!important;
	}
	.card-inside-single-gallery .card_row {
		gap: 12px;
	}
	.card-inside-single-gallery .c_icon{
		display: flex;
	}
	.card-inside-single-gallery .c_icon img {
		width: 18px;
		height: 19px;
		object-fit: contain;
	}
	.card-inside-single-gallery .c_icon picture, .card-inside-single-gallery .c_icon img{
		display: flex;
		align-items: center;
	}
	.case-button a {
		width: 100%;
		max-width: 380px;
		margin: 0 auto;
		float: none;
	}
	.card_metadata .titlerow {
		color: #595857;
		font-size: 18px;
		font-style: normal;
		font-weight: 700;
		line-height: 160%;
		margin-bottom: 20px;
	}
	.single-gallery-items .elementor-widget-video .elementor-wrapper iframe{
		min-height: initial!important;
	}

	.slide-container {
		margin-bottom: 25px;
	}

	.card_row {
		padding: 8px 0 8px;
	}

	.rowbtn {
		padding-top: 28px;
	}

	.case-button {
		text-align: center;
	}

	.view-result-btn {
		display: inline-block;
		float: left;
		padding: 14px 18px;
		border-radius: 8px;
		border: 2px solid #2D5D70;
		font-size: 16px;
		font-weight: 500;
		max-width: 240px;
		width: 100%;
		color: #2d5d70;
		background-color: #fff;
		transition: all 0.3s ease;
		color: #2D5D70;
		font-size: 14px;
		font-style: normal;
		font-weight: 700;
		line-height: normal;
	}

	.view-result-btn:hover {
		background-color: #2d5d70;
		color: #fff;
	}
	.single_card.single_card_v2.card-inside-single-gallery {
		width: 100%;
	}
}