/* NusaMedika Elementor frontend fixes. */

/* Team cards: prevent Bootstrap columns from shrinking again inside Slick. */
#team .nusamedika-team-carousel {
	margin-left: -15px;
	margin-right: -15px;
}
#team .nusamedika-team-carousel .nusamedika-team-slide {
	padding: 0 15px;
	box-sizing: border-box;
}
#team .single-team,
#team .team-thumb,
#team .team-thumb .brd,
#team .team-thumb .brd > a {
	width: 100%;
	max-width: 100%;
}
#team .team-thumb .brd {
	display: block;
	overflow: hidden;
	border-radius: 10px;
	background: #f4faf8;
}
#team .team-thumb .brd img {
	display: block;
	width: 100%;
	height: 360px;
	max-width: none;
	object-fit: cover;
	object-position: center top;
}
#team .team-info {
	min-height: 125px;
}
#team .team-info h4 {
	font-size: 28px;
	line-height: 1.2;
	word-break: normal;
}

/* Blog cards: show the entire featured image by default, without cropping. */
#blog .blog-thumb {
	width: 100%;
	height: auto;
	min-height: 0;
	background: #f4faf8;
}
#blog .blog-thumb > a {
	display: block;
	position: relative;
	width: 100%;
	height: auto;
}
#blog .blog-thumb img.nusamedika-blog-card-image {
	display: block;
	width: 100% !important;
	height: auto !important;
	max-width: 100%;
	object-fit: contain;
	object-position: center center;
	background: transparent;
}

/* Optional legacy/card-fill mode, selectable from the Elementor widget. */
#blog .single-post.nusamedika-blog-fit-cover .blog-thumb {
	height: 285px;
}
#blog .single-post.nusamedika-blog-fit-cover .blog-thumb > a {
	height: 100%;
}
#blog .single-post.nusamedika-blog-fit-cover .blog-thumb img.nusamedika-blog-card-image {
	height: 100% !important;
	max-width: none;
	object-fit: cover;
}
#blog .blog-thumb img.b-link {
	width: auto;
	height: auto;
}

@media (max-width: 991px) {
	#team .team-thumb .brd img {
		height: 340px;
	}
}

@media (max-width: 767px) {
	#team .team-thumb .brd img {
		height: 360px;
	}
	#blog .single-post.nusamedika-blog-fit-cover .blog-thumb {
		height: 260px;
	}
}


/* Team card navigation and self-contained carousel arrows. */
#team .team-thumb .brd > a,
#team .team-info h4 > a {
	display: block;
	color: inherit;
}
#team .team-info h4 > a:hover {
	color: var(--nusamedika-primary);
}
#team .nusamedika-team-detail-button .xbtn {
	text-decoration: none;
}
#team .team-active .slick-arrow.nusamedika-team-arrow {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	padding: 0;
	color: var(--nusamedika-primary) !important;
	background: #fff !important;
	border: 1px solid rgba(var(--nusamedika-primary-rgb), .10) !important;
	border-radius: 50%;
	box-shadow: 0 12px 32px rgba(16, 46, 60, .16);
	font-size: 18px;
	line-height: 1;
}
#team .team-active .slick-arrow.nusamedika-team-arrow i {
	display: block;
	line-height: 1;
}
#team .team-active .slick-prev.nusamedika-team-arrow { left: -28px; }
#team .team-active .slick-next.nusamedika-team-arrow { left: auto; right: -28px; }
#team .team-active .slick-arrow.nusamedika-team-arrow:hover {
	color: #fff !important;
	background: var(--nusamedika-primary) !important;
}
@media (max-width: 1199px) {
	#team .team-active .slick-prev.nusamedika-team-arrow { left: 4px; }
	#team .team-active .slick-next.nusamedika-team-arrow { right: 4px; }
}


/* Team + button opens detail/social links; card photo and name remain direct detail links. */
#team .nusamedika-team-social-dropdown .xbtn {
	border: 0;
	padding: 0;
	text-align: center;
}
#team .nusamedika-team-social-dropdown .dropdown-menu {
	min-width: 56px;
	margin: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}
#team .nusamedika-team-social-dropdown .team-social ul {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#team .nusamedika-team-social-dropdown .team-social li {
	margin: 0;
	padding: 0;
}
#team .nusamedika-team-social-dropdown .team-social a {
	margin: 0 0 6px;
}
