/**
 * UIBS Faculty Profiles - Front-end Styles
 *
 * Provides layout and visual styling for faculty profile pages.
 * Uses Avada-compatible class names where possible and provides
 * self-contained fallback styles for non-Avada themes.
 *
 * @package UIBS_Faculty_Profiles
 * @since   1.0.0
 */

/* ==========================================================================
   Profile Header Layout
   ========================================================================== */

.uibs-faculty-profile {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px;
}

.uibs-faculty-header {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
	margin-bottom: 50px;
	padding-bottom: 40px;
	border-bottom: 1px solid #e2e2e2;
}

/* ==========================================================================
   Faculty Photo
   ========================================================================== */

.uibs-faculty-photo-wrapper {
	flex: 0 0 280px;
	max-width: 280px;
}

.uibs-faculty-photo {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.uibs-faculty-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 3 / 4;
}

/* Placeholder SVG when no photo is set. */
.uibs-faculty-placeholder {
	background-color: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 4;
}

.uibs-faculty-placeholder-svg {
	width: 100%;
	height: auto;
}

/* ==========================================================================
   Faculty Info
   ========================================================================== */

.uibs-faculty-info {
	flex: 1;
	min-width: 280px;
}

.uibs-faculty-name {
	font-size: 2.2em;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 8px 0;
	color: #212934;
}

.uibs-faculty-credentials {
	display: inline;
	font-size: 0.55em;
	font-weight: 400;
	color: #65737e;
	vertical-align: middle;
}

.uibs-faculty-credentials::before {
	content: "\2014\00a0";
}

.uibs-faculty-position {
	font-size: 1.25em;
	font-weight: 400;
	color: #4a4a4a;
	margin: 0 0 24px 0;
	line-height: 1.4;
}

/* ==========================================================================
   LinkedIn Button
   ========================================================================== */

.uibs-faculty-linkedin {
	margin-top: 20px;
}

.uibs-faculty-linkedin-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background-color: #0077b5;
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.95em;
	font-weight: 600;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
	border: none;
	cursor: pointer;
}

.uibs-faculty-linkedin-btn:hover,
.uibs-faculty-linkedin-btn:focus {
	background-color: #005f8d;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 119, 181, 0.3);
	text-decoration: none;
}

.uibs-linkedin-icon {
	flex-shrink: 0;
}

/* ==========================================================================
   Biography Section
   ========================================================================== */

.uibs-faculty-bio {
	margin-bottom: 40px;
}

.uibs-faculty-section-heading {
	font-size: 1.5em;
	font-weight: 700;
	color: #212934;
	margin: 0 0 20px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #0077b5;
	display: inline-block;
}

.uibs-faculty-bio p {
	font-size: 1.05em;
	line-height: 1.75;
	color: #3e3e3e;
	margin-bottom: 1em;
}

/* ==========================================================================
   Expertise Tags
   ========================================================================== */

.uibs-faculty-expertise {
	margin-bottom: 40px;
}

.uibs-faculty-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.uibs-expertise-tag {
	display: inline-block;
	padding: 8px 18px;
	background-color: #f4f6f8;
	color: #333333;
	border: 1px solid #d8dde3;
	border-radius: 30px;
	font-size: 0.9em;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.uibs-expertise-tag:hover,
.uibs-expertise-tag:focus {
	background-color: #0077b5;
	color: #ffffff;
	border-color: #0077b5;
	text-decoration: none;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
	.uibs-faculty-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 24px;
	}

	.uibs-faculty-photo-wrapper {
		flex: 0 0 220px;
		max-width: 220px;
	}

	.uibs-faculty-info {
		min-width: auto;
		width: 100%;
	}

	.uibs-faculty-name {
		font-size: 1.8em;
	}

	.uibs-faculty-position {
		font-size: 1.1em;
	}

	.uibs-faculty-tags {
		justify-content: center;
	}

	.uibs-faculty-profile {
		padding: 20px 15px;
	}
}

@media (max-width: 480px) {
	.uibs-faculty-photo-wrapper {
		flex: 0 0 180px;
		max-width: 180px;
	}

	.uibs-faculty-name {
		font-size: 1.5em;
	}

	.uibs-faculty-credentials {
		display: block;
		margin-top: 4px;
	}

	.uibs-faculty-credentials::before {
		content: "";
	}

	.uibs-faculty-section-heading {
		font-size: 1.25em;
	}
}
