/* Tabassom Team Showcase v2 */
.tbts {
	/* Tabassom theme (from tabassomrehab.com Elementor kit) */
	--tbts-navy: #2A3F82; --tbts-navy-dark: #1B2B6B; --tbts-ink: #141F52;
	--tbts-green: #2FBE6E; --tbts-green-text: #128537; --tbts-green-soft: #E7F7EC; --tbts-green-line: #B9E9CE;
	--tbts-muted: #6B7391; --tbts-line: #E8ECF7; --tbts-ghost-line: #D8DEEA; --tbts-soft-bg: #F8F9F4;
	--tbts-shadow: 0 24px 60px rgba(30, 45, 100, .10);
	--tbts-accent: var(--tbts-green);
	direction: rtl;
	font-family: "Estedad", "IRANSans", Tahoma, sans-serif;
}
.tbts button, .tbts input, .tbts h1, .tbts h2, .tbts h3, .tbts h4, .tbts p, .tbts a { font-family: inherit; }
.tbts *, .tbts *::before, .tbts *::after { box-sizing: border-box; }

.tbts-empty { padding: 24px; text-align: center; border: 1px dashed #cbd5e1; color: #64748b; border-radius: 8px; }

/* Heading */
.tbts-head { text-align: center; margin-bottom: 32px; }
.tbts-head__sub { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 22px; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--tbts-green-text); background: var(--tbts-green-soft); border-radius: 15px; }
.tbts-head__sub::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tbts-head__title { margin: 0 0 10px; font-size: 26px; font-weight: 600; line-height: 1.6; color: var(--tbts-navy); }
.tbts-head__desc { margin: 0 auto; max-width: 640px; font-size: 15px; font-weight: 600; line-height: 2.1; color: #5A6486; }

/* Filters */
.tbts-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.tbts-filter {
	cursor: pointer; margin: 0; padding: 8px 22px;
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1.5;
	color: var(--tbts-ink); background: #fff;
	border: 1px solid var(--tbts-ghost-line); border-radius: 40px;
	transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.tbts-filter:hover { border-color: var(--tbts-navy); color: var(--tbts-navy); }
.tbts-filter.is-active { background: var(--tbts-navy-dark); border-color: var(--tbts-navy-dark); color: #fff; }
.tbts-filter:focus-visible { outline: 2px solid var(--tbts-accent); outline-offset: 2px; }

/* Grid */
.tbts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; }

/* Card */
.tbts-card {
	position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
	background: #fff; border: 1px solid var(--tbts-line); border-radius: 22px;
	transition: transform .3s ease, box-shadow .3s ease, background-color .3s, border-color .3s;
}
.tbts-card:hover { transform: translateY(-5px); border-color: var(--tbts-green-line); box-shadow: var(--tbts-shadow); }
.tbts-card.is-hidden { display: none; }
.tbts-card.is-in { animation: tbts-in .35s ease both; }
@keyframes tbts-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tbts-card__media { position: relative; overflow: hidden; height: 0; padding-top: 115%; background: var(--tbts-soft-bg); }
.tbts-card__media img {
	position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
	object-fit: cover; object-position: center top; border: 0; border-radius: 0;
	transition: transform .5s ease, filter .4s ease;
}
.tbts-card:hover .tbts-card__media img { transform: scale(1.06); }
.tbts-card__media.is-clickable { cursor: pointer; }
.tbts-card__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #C9D2E8; background: linear-gradient(160deg, #F8F9F4 0%, #EEF2FB 100%); }
.tbts-card__noimg svg { width: 42%; height: auto; }
.tbts-card__shade { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .3s; }
.tbts-card:hover .tbts-card__shade { opacity: 1; }

.tbts-gray-yes .tbts-card__media img { filter: grayscale(1); }
.tbts-gray-yes .tbts-card:hover .tbts-card__media img { filter: none; }

.tbts-card__badge {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	padding: 5px 14px; font-size: 12px; font-weight: 600; line-height: 1.6;
	color: var(--tbts-green-text); background: var(--tbts-green-soft); border-radius: 15px;
}

.tbts-card__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; padding: 20px 22px 24px; text-align: center; }
.tbts-card__name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.6; color: var(--tbts-ink); transition: color .2s; }
.tbts-card__divider { display: block; width: 40px; height: 2px; margin-inline: auto; background: var(--tbts-accent); border-radius: 2px; }
.tbts-card__role { font-size: 14px; font-weight: 600; line-height: 1.8; color: var(--tbts-green); transition: color .2s; }
.tbts-card__bio { margin: 0; font-size: 14px; font-weight: 600; line-height: 2.05; color: var(--tbts-muted); }

/* Overlay style */
.tbts-card--overlay .tbts-card__body {
	position: absolute; right: 0; left: 0; bottom: 0; z-index: 3;
	background: linear-gradient(to top, rgba(15, 23, 42, .85), rgba(15, 23, 42, 0));
	padding-top: 60px;
}
.tbts-card--overlay .tbts-card__name { color: #fff; }
.tbts-card--overlay .tbts-card__role { color: rgba(255, 255, 255, .85); }
.tbts-card--overlay .tbts-card__bio { color: rgba(255, 255, 255, .8); }

/* Side style */
.tbts-card--side { flex-direction: row; }
.tbts-card--side .tbts-card__media { flex: 0 0 40%; width: 40%; height: auto; padding-top: 0 !important; min-height: 200px; }
.tbts-card--side .tbts-card__body { justify-content: center; }

/* Social */
.tbts-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tbts-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; color: var(--tbts-green); background: var(--tbts-green-soft);
	border: 1px solid transparent; border-radius: 50%; text-decoration: none;
	transition: color .2s, background-color .2s, border-color .2s;
}
.tbts-social a:hover { color: #fff; background: var(--tbts-green); border-color: var(--tbts-green); }
.tbts-social svg { display: block; width: 16px; height: 16px; }

/* Button */
.tbts-btn {
	display: inline-flex; align-items: center; justify-content: center;
	margin: 0; padding: 9px 24px; cursor: pointer;
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none;
	color: #fff; background: var(--tbts-navy);
	border: 1px solid var(--tbts-navy); border-radius: 15px;
	transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.tbts-btn:hover { color: #fff; background: var(--tbts-green); border-color: var(--tbts-green); }
.tbts-card__actions { margin-top: auto; padding-top: 4px; }

.tbts-tpl { display: none !important; }

/* Modal (moved to <body> by JS so it always covers the viewport) */
.tbts-modal {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center; padding: 20px;
	background: rgba(20, 31, 82, .55); direction: rtl; font-family: "Estedad", "IRANSans", Tahoma, sans-serif;
	opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.tbts-modal *, .tbts-modal *::before, .tbts-modal *::after { box-sizing: border-box; }
.tbts-modal h3, .tbts-modal p, .tbts-modal button, .tbts-modal div { font-family: inherit; }
.tbts-modal.is-open { opacity: 1; visibility: visible; }
.tbts-modal__box {
	position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 40px); overflow-y: auto;
	padding: 36px; background: #fff; border-radius: 26px; box-shadow: 0 24px 60px rgba(30, 45, 100, .18);
	transform: translateY(16px) scale(.98); transition: transform .25s ease;
}
.tbts-modal.is-open .tbts-modal__box { transform: none; }
.tbts-modal__close {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
	font-size: 24px; line-height: 1; cursor: pointer;
	color: #141F52; background: #F8F9F4; border: 0; border-radius: 50%;
}
.tbts-modal__layout { display: flex; gap: 28px; align-items: flex-start; }
.tbts-modal__media { flex: 0 0 200px; width: 200px; overflow: hidden; border-radius: 22px; background: #F8F9F4; }
.tbts-modal__media img { display: block; width: 100%; height: auto; max-width: none; }
.tbts-modal__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tbts-modal__name { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.6; color: #2A3F82; }
.tbts-modal__role { font-size: 15px; font-weight: 600; color: #2FBE6E; }
.tbts-modal__badge { align-self: flex-start; padding: 4px 14px; font-size: 13px; font-weight: 600; color: #128537; background: #E7F7EC; border-radius: 15px; }
.tbts-modal__bio { margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 2.1; color: #5A6486; }
.tbts-modal__bio p { margin: 0 0 10px; }
.tbts-modal .tbts-social { justify-content: flex-start; margin-top: 6px; }
.tbts-modal .tbts-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #2FBE6E; background: #E7F7EC; border: 0; border-radius: 50%; }
.tbts-modal .tbts-social a:hover { color: #fff; background: #2FBE6E; }
.tbts-modal .tbts-social svg { width: 16px; height: 16px; }
.tbts-modal__actions { margin-top: 10px; }
.tbts-modal__more {
	display: inline-flex; align-items: center; justify-content: center; padding: 11px 26px;
	font-size: 15px; font-weight: 600; line-height: 1.5; text-decoration: none;
	color: #fff; background: #1B2B6B; border-radius: 40px; transition: background-color .2s, color .2s;
}
.tbts-modal__more:hover, .tbts-modal__more:focus { color: #fff; background: #2FBE6E; }
html.tbts-lock, html.tbts-lock body { overflow: hidden; }

/* Responsive fallbacks (Elementor's responsive column control overrides these) */
@media (max-width: 1024px) { .tbts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.tbts-modal__badge { align-self: center; }
	.tbts-grid { grid-template-columns: minmax(0, 1fr); }
	.tbts-card--side { flex-direction: column; }
	.tbts-card--side .tbts-card__media { flex-basis: auto; width: 100% !important; min-height: 0; height: 0; padding-top: 100% !important; }
	.tbts-modal__box { padding: 28px 18px; }
	.tbts-modal__layout { flex-direction: column; align-items: center; text-align: center; }
	.tbts-modal .tbts-social { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.tbts-card, .tbts-card__media img, .tbts-modal, .tbts-modal__box { transition: none; }
	.tbts-card.is-in { animation: none; }
}
