/* =========================================================
   DR. KAPIL PATIL - REVIEW SECTION
   All styles are scoped to .kp_reviews_section
   ========================================================= */

.kp_reviews_section .kp_review_card {
	width: 100%;
	height: 100%;
	display: block;
	padding: 0;
	margin: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.kp_reviews_section .kp_reviews_carousel .carousel_item {
	height: auto;
	display: flex;
}

.kp_reviews_section .kp_review_card_inner {
	width: 100%;
	min-height: 390px;
	height: 100%;
	box-sizing: border-box;

	display: flex;
	flex-direction: column;

	padding: 40px;

	background: #ffffff;
	border: 1px solid #e8eeee;
	border-radius: 16px;

	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);

	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

/* Hover */
.kp_reviews_section .kp_review_card:hover .kp_review_card_inner {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.10);
}

/* Keyboard accessibility */
.kp_reviews_section .kp_review_card:focus-visible {
	outline: 3px solid rgba(43, 171, 160, 0.35);
	outline-offset: 3px;
	border-radius: 16px;
}

/* Stars */
.kp_reviews_section .kp_review_rating {
	display: flex;
	gap: 5px;
	margin-bottom: 20px;

	color: #f5a623;
	font-size: 16px;
}

/* Author */
.kp_reviews_section .kp_review_author {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.kp_reviews_section .kp_review_author .author_box_name {
	text-transform: capitalize;
}

/* Review text */
.kp_reviews_section .kp_review_excerpt {
	display: -webkit-box;

	overflow: hidden;

	margin: 0;

	color: #333333;

	font-size: 16px;
	line-height: 1.65;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
}

/* Read more */
.kp_reviews_section .kp_review_read_more {
	display: block;

	margin-top: auto;
	padding-top: 20px;

	color: #19a99d;

	font-size: 14px;
	font-weight: 600;
}

.kp_reviews_section .kp_review_read_more i {
	margin-left: 5px;
	transition: transform 0.25s ease;
}

.kp_reviews_section .kp_review_card:hover
.kp_review_read_more i {
	transform: translate(3px, -3px);
}


/* =========================================================
   REVIEW MODAL
   ========================================================= */

.kp_review_modal {
	position: fixed;

	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	z-index: 999999;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 20px;

	visibility: hidden;
	opacity: 0;

	pointer-events: none;

	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
}

.kp_review_modal.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}


/* Dark background */
.kp_review_modal_backdrop {
	position: absolute;

	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	background: rgba(0, 0, 0, 0.70);
}


/* Modal box */
.kp_review_modal_dialog {
	position: relative;
	z-index: 2;

	width: 100%;
	max-width: 700px;

	max-height: 85vh;

	overflow-y: auto;

	padding: 40px;

	background: #ffffff;

	border-radius: 18px;

	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);

	transform: translateY(20px);

	transition: transform 0.25s ease;
}

.kp_review_modal.is-open .kp_review_modal_dialog {
	transform: translateY(0);
}


/* Close button */
.kp_review_modal_close {
	position: absolute;

	top: 15px;
	right: 15px;

	width: 42px;
	height: 42px;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 0;

	border: 0;
	border-radius: 50%;

	background: #eef6f5;

	color: #222;

	font-size: 20px;

	cursor: pointer;

	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.kp_review_modal_close:hover {
	background: #19a99d;
	color: #ffffff;
}


/* Modal rating */
.kp_review_modal_rating {
	display: flex;
	gap: 5px;

	margin-bottom: 20px;

	color: #f5a623;
}


/* Modal author */
.kp_review_modal_author {
	display: flex;
	align-items: center;
	gap: 15px;

	margin-bottom: 25px;

	padding-right: 50px;
}

.kp_review_modal_photo {
	width: 65px;
	height: 65px;

	flex: 0 0 65px;

	overflow: hidden;

	border-radius: 50%;

	background: #eef6f5;
}

.kp_review_modal_photo img {
	width: 100%;
	height: 100%;

	object-fit: cover;
}

.kp_review_modal_author h3 {
	margin: 0 0 5px;

	font-size: 21px;
}

.kp_review_modal_author span {
	font-size: 14px;
	color: #777777;
}


/* Full review */
.kp_review_modal_text {
	white-space: pre-line;

	font-size: 17px;
	line-height: 1.75;

	color: #333333;
}


/* Prevent page scrolling when modal open */
body.kp_review_modal_open {
	overflow: hidden;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.kp_reviews_section .kp_review_card_inner {
		min-height: 350px;
		padding: 30px 25px;
	}

	.kp_review_modal {
		padding: 12px;
	}

	.kp_review_modal_dialog {
		max-height: 90vh;
		padding: 35px 22px 25px;

		border-radius: 15px;
	}

	.kp_review_modal_text {
		font-size: 16px;
		line-height: 1.65;
	}
}