/* ---------------------------------------------------------
   Card Styles
--------------------------------------------------------- */
.tm-card-33485092 {
	padding: 20px;
	box-sizing: border-box;
}
.tm-photo-wrap {
	margin-bottom: 15px;
}
.tm-photo {
	max-width: 100%;
	height: auto;
	display: inline-block;
	transition: all 0.3s ease;
}
.tm-name {
	margin: 0 0 5px;
	color: #1F2937;
	transition: color 0.3s ease;
}
.tm-designation {
	margin: 0 0 15px;
	color: #666;
	transition: color 0.3s ease;
}

/* ---------------------------------------------------------
   Button Styles
--------------------------------------------------------- */
.tm-btn-33485092 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background: #5E80B7;
	color: #fff;
	border: 1px solid #5E80B7;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s ease;
	font-weight: 600;
	gap: 8px; /* Default gap, can be overridden by Elementor margins */
}
.tm-btn-33485092:hover {
	background: #4A6996;
}
.tm-btn-icon {
	display: inline-flex;
	align-items: center;
}
.tm-btn-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
	transition: fill 0.3s ease;
}

/* ---------------------------------------------------------
   Popup Wrapper & Overlay
--------------------------------------------------------- */
.tm-popup-wrap-33485092 {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition-property: opacity, visibility;
	transition-duration: 0.3s;
	transition-timing-function: ease;
}

/* Admin bar fixes */
body.admin-bar .tm-popup-wrap-33485092 {
	top: var(--wp-admin--admin-bar--height, 32px);
	height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}
@media screen and (max-width: 782px) {
	body.admin-bar .tm-popup-wrap-33485092 {
		top: 46px;
		height: calc(100% - 46px);
	}
}

.tm-popup-wrap-33485092.tm-popup-open {
	opacity: 1;
	visibility: visible;
}

.tm-popup-overlay-33485092 {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	cursor: pointer;
}

/* ---------------------------------------------------------
   Popup Content Container
--------------------------------------------------------- */
.tm-popup-content-33485092 {
	position: relative;
	background: #fff;
	width: 90%;
	max-width: 850px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
	z-index: 2;
	transition-property: transform, opacity;
	transition-duration: 0.3s;
	transition-timing-function: ease;
}

/* ---------------------------------------------------------
   Animation Types
--------------------------------------------------------- */
.tm-popup-anim-none .tm-popup-content-33485092 {
	transform: none;
}
.tm-popup-anim-fade .tm-popup-content-33485092 {
	transform: none; /* Relies on wrap opacity */
}
.tm-popup-anim-scale .tm-popup-content-33485092 {
	transform: scale(0.95);
}
.tm-popup-wrap-33485092.tm-popup-open.tm-popup-anim-scale .tm-popup-content-33485092 {
	transform: scale(1);
}
.tm-popup-anim-slide-up .tm-popup-content-33485092 {
	transform: translateY(50px);
}
.tm-popup-wrap-33485092.tm-popup-open.tm-popup-anim-slide-up .tm-popup-content-33485092 {
	transform: translateY(0);
}
.tm-popup-anim-slide-down .tm-popup-content-33485092 {
	transform: translateY(-50px);
}
.tm-popup-wrap-33485092.tm-popup-open.tm-popup-anim-slide-down .tm-popup-content-33485092 {
	transform: translateY(0);
}


/* ---------------------------------------------------------
   Close Button
--------------------------------------------------------- */
.tm-popup-close-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	color: #333;
	cursor: pointer;
	padding: 5px;
	z-index: 10;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	width: 34px;
	height: 34px;
}
.tm-popup-close-btn svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
	transition: fill 0.3s ease;
}

/* ---------------------------------------------------------
   Popup Grid & Layout
--------------------------------------------------------- */
.tm-popup-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0; /* Can be overridden by Elementor */
}
.tm-layout-two-col .tm-popup-img-col {
	flex: 0 0 40%;
	max-width: 40%;
}
.tm-layout-two-col .tm-popup-text-col {
	flex: 0 0 60%;
	max-width: 60%;
}
.tm-layout-rev {
	flex-direction: row-reverse;
}

.tm-layout-single-col {
	flex-direction: column;
}
.tm-layout-single-col .tm-popup-img-col,
.tm-layout-single-col .tm-popup-text-col {
	flex: 0 0 100%;
	max-width: 100%;
}

.tm-popup-img-col {
	display: flex;
	align-items: center; /* Adjusts if height is smaller */
	justify-content: center;
}
.tm-popup-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 16px 0 0 16px;
}
.tm-layout-rev .tm-popup-photo {
	border-radius: 0 16px 16px 0;
}
.tm-layout-single-col .tm-popup-photo {
	border-radius: 16px 16px 0 0;
}

.tm-popup-text-col {
	padding: 40px;
	box-sizing: border-box;
}

.tm-popup-name {
	color: #5E80B7;
	margin-top: 0;
	margin-bottom: 5px;
}
.tm-popup-designation {
	color: #67C4C9;
	font-weight: 600;
	margin-bottom: 20px;
	text-transform: uppercase;
	font-size: 0.9em;
	letter-spacing: 0.5px;
}
.tm-popup-bio {
	color: #333;
	line-height: 1.6;
}

/* ---------------------------------------------------------
   Responsive Fallbacks (Mobile)
--------------------------------------------------------- */
@media (max-width: 767px) {
	.tm-popup-grid {
		flex-direction: column !important; /* Force column on mobile regardless of layout setting, usually preferred */
	}
	.tm-popup-img-col, 
	.tm-popup-text-col {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
	.tm-popup-photo {
		border-radius: 16px 16px 0 0 !important;
		max-height: 300px;
	}
	.tm-popup-text-col {
		padding: 30px 20px;
	}
}
