/**
 * Team Directory for Elementor — frontend styles.
 * All colors/spacing here are DEFAULTS; Elementor style controls override
 * them per-instance via inline CSS custom selectors ({{WRAPPER}} ...).
 */

.tde-team-directory {
	box-sizing: border-box;
	max-width: 100%;
}

.tde-team-directory *,
.tde-team-directory *::before,
.tde-team-directory *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------------
 * Alphabet filter
 * ------------------------------------------------------------------- */

.tde-alphabet-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0 0 32px;
	max-width: 100%;
}

.tde-letter-btn {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	line-height: 1;
	color: #2b2b2b;
	background-color: #f5f2ec;
	border: 1px solid transparent;
	border-radius: 4px;
	padding: 6px 14px;
	transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.tde-letter-btn:focus-visible {
	outline: 2px solid #2673ff;
	outline-offset: 2px;
}

.tde-letter-btn:not(.is-disabled):hover {
	background-color: #ece6d9;
}

.tde-letter-btn.is-active {
	background-color: #c9a15a;
	color: #ffffff;
}

.tde-letter-btn.is-disabled {
	cursor: not-allowed;
	opacity: 0.35;
}

/* ---------------------------------------------------------------------
 * Grid
 * ------------------------------------------------------------------- */

.tde-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 24px;
	row-gap: 24px;
	width: 100%;
}

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

@media (max-width: 767px) {
	.tde-grid {
		grid-template-columns: repeat(1, 1fr);
	}

	.tde-alphabet-filter {
		gap: 4px;
	}

	.tde-letter-btn {
		padding: 5px 10px;
		font-size: 13px;
	}
}

.tde-card[hidden] {
	display: none;
}

.tde-no-results {
	text-align: center;
	padding: 40px 0;
	color: #888;
}

/* ---------------------------------------------------------------------
 * Card — base structure (shared by every layout)
 * ------------------------------------------------------------------- */

.tde-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e7e2d8;
	border-radius: 8px;
	overflow: hidden;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Whole-card-clickable mode: the wrapper is an <a>, so reset link defaults */
a.tde-card {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.tde-card-image {
	position: relative;
	width: 100%;
	height: 240px;
	background-color: #f2f0eb;
	overflow: hidden;
}

.tde-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.tde-card-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #efece4, #e2ddd0);
}

.tde-card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px;
	text-align: center;
}

.tde-card-name {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	transition: color 0.2s ease;
}

.tde-card-position {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #8a7a5c;
	margin-bottom: 14px;
	transition: color 0.2s ease;
}

/* ---------------------------------------------------------------------
 * Generic Details rows (replaces the old dedicated Skills/Country blocks)
 * ------------------------------------------------------------------- */

.tde-card-details {
	margin-bottom: 4px;
}

.tde-detail-row {
	display: flex;
	gap: 6px;
	font-size: 13px;
	margin-bottom: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.tde-meta-label {
	font-weight: 700;
	text-transform: uppercase;
	color: #9a9a9a;
	letter-spacing: 0.03em;
}

.tde-meta-value {
	color: #444444;
}

.tde-card-button {
	margin-top: auto;
	padding-top: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #c9a15a;
	text-decoration: none;
	background: transparent;
	border: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.tde-card-button:hover {
	text-decoration: underline;
}

/* When the whole card is the link, the button is a <span> that should
   not re-trigger its own hover underline (the card handles the hover). */
span.tde-card-button:hover {
	text-decoration: none;
}

.tde-btn-icon {
	display: inline-block;
	transition: transform 0.15s ease;
}

.tde-card-button:hover .tde-btn-icon,
a.tde-card:hover .tde-btn-icon {
	transform: translateX(3px);
}

/* ---------------------------------------------------------------------
 * Default hover feel (Elementor "Hover" tab controls override these)
 * ------------------------------------------------------------------- */

.tde-card:hover,
a.tde-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.tde-card:hover .tde-card-image img {
	transform: scale(1.05);
}

/* ---------------------------------------------------------------------
 * Predefined layout variations
 * ------------------------------------------------------------------- */

/* Minimal: smaller image, tighter spacing, left-aligned meta */
.tde-card--minimal .tde-card-image {
	height: 160px;
}

.tde-card--minimal .tde-card-content {
	padding: 14px 16px;
	text-align: left;
}

.tde-card--minimal .tde-detail-row,
.tde-card--minimal .tde-card-button {
	justify-content: flex-start;
}

.tde-card--minimal .tde-card-name {
	font-size: 16px;
}

/* Modern: larger image, more breathing room, pill button */
.tde-card--modern .tde-card-image {
	height: 300px;
}

.tde-card--modern .tde-card-content {
	padding: 28px 24px;
}

.tde-card--modern .tde-card-button {
	margin-top: 16px;
	padding: 10px 22px;
	background-color: #1a1a1a;
	color: #ffffff;
	border-radius: 999px;
}

.tde-card--modern .tde-card-button:hover {
	text-decoration: none;
	opacity: 0.85;
}

/* Profile: image + name/position emphasis, compact meta list */
.tde-card--profile {
	flex-direction: row;
	align-items: stretch;
}

.tde-card--profile .tde-card-image {
	width: 40%;
	height: auto;
	flex-shrink: 0;
}

.tde-card--profile .tde-card-content {
	text-align: left;
	justify-content: center;
}

.tde-card--profile .tde-detail-row,
.tde-card--profile .tde-card-button {
	justify-content: flex-start;
}

@media (max-width: 480px) {
	.tde-card--profile {
		flex-direction: column;
	}

	.tde-card--profile .tde-card-image {
		width: 100%;
		height: 200px;
	}
}

/* ---------------------------------------------------------------------
 * Single Team Member profile page (auto-generated template)
 * ------------------------------------------------------------------- */

.tde-single-wrap {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 20px;
}

.tde-single-profile {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
}

.tde-single-image {
	flex: 1 1 280px;
	max-width: 320px;
}

.tde-single-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

.tde-single-content {
	flex: 2 1 400px;
}

.tde-single-name {
	margin: 0 0 6px;
	font-size: 32px;
}

.tde-single-position {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #8a7a5c;
	margin-bottom: 20px;
}

.tde-single-details .tde-detail-row {
	justify-content: flex-start;
	font-size: 14px;
}

.tde-single-bio {
	margin-top: 20px;
	line-height: 1.7;
}

.tde-single-back {
	margin-top: 30px;
}

.tde-single-back a {
	text-decoration: none;
	font-weight: 600;
}
