/**
 * Staff Grid Shortcode Styles
 */

:root {
	--orange-primary: #e0650a;
}

.staff-grid-wrapper {
	width: 100%;
}

/* Filter Tabs */
.staff-filters {
	display: flex;
	gap: 0;
	margin-bottom: 40px;
	border-radius: 8px 8px 0 0;
	overflow: hidden;
}

.staff-filter-btn {
	flex: 1;
	padding: 15px 20px;
	border: none;
	background: #e8e8e8;
	color: #000000;
	font-size: 18px;
	font-weight: 400;
	cursor: pointer;
	transition: all 0.3s ease;
}

.staff-filter-btn:hover {
	background: #d8d8d8;
}

.staff-filter-btn.active {
	background: var(--orange-primary);
	color: #ffffff;
}

/* Staff Grid */
.staff-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.staff-card {
	background: #ffffff;
	border-radius: 0 0 8px 8px;
	overflow: hidden;
}

/* Photo Container */
.staff-card__photo {
	position: relative;
	width: 100%;
	padding-top: 112.5%; /* 270/240 aspect ratio */
	overflow: hidden;
	background: #f0f0f0;
}

.staff-card__photo img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.4s ease-in-out;
}

.staff-photo-main {
	opacity: 1;
	z-index: 1;
}

.staff-photo-hover {
	opacity: 0;
	z-index: 2;
}

.staff-card:hover .staff-photo-main {
	opacity: 0;
}

.staff-card:hover .staff-photo-hover {
	opacity: 1;
}

.staff-photo-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #cccccc;
}

/* Info Section */
.staff-card__info {
	padding: 20px;
	background: #f5f5f5;
	height: 270px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.staff-card__name {
	margin-bottom: 8px;
}

.staff-card__firstname,
.staff-card__lastname {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	color: #000000;
}

.staff-card__title {
	font-size: 16px;
	line-height: 1.4;
	color: #000000;
	margin-bottom: 12px;
}

.staff-card__contact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: auto;
}

.staff-card__phone,
.staff-card__email {
	font-size: 16px;
	color: var(--orange-primary);
	text-decoration: none;
	line-height: 1.5;
	display: block;
}

.staff-card__phone:hover,
.staff-card__email:hover {
	text-decoration: underline;
}

/* Tablet: 2 columns */
@media screen and (max-width: 980px) {
	.staff-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 30px;
	}

	.staff-filters {
		flex-wrap: wrap;
	}

	.staff-filter-btn {
		flex: 1 1 45%;
		font-size: 16px;
	}
}

/* Mobile: 1 column */
@media screen and (max-width: 767px) {
	.staff-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.staff-filter-btn {
		flex: 1 1 100%;
		font-size: 16px;
		padding: 12px 15px;
	}

	.staff-filters {
		margin-bottom: 30px;
	}
}
