/* MEDIA BLOCK FIX */
.media-block-row .wp-block-column.is-layout-flow {
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Media Block - Container */
.media-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 24px;
	gap: 18px;
	background: #FFFFFF;
	box-shadow: 4px 4px 8px 2px rgba(0, 0, 0, 0.15);
	border-radius: var(--umbc-radius-md, 8px);
	flex: 1; /* Allow blocks to grow equally */
	height: auto;
}

/* Flex Container for Media Blocks */
.media-block .wp-block-columns.is-layout-flex {
	display: flex;
	flex-wrap: wrap;
	gap: 18px; /* Space between columns */
	align-items: stretch; /* Ensure all columns stretch to the same height */
}

.media-block .wp-block-column.is-layout-flow {
	display: flex;
	flex-direction: column;
	flex: 1; /* Allow columns to grow equally */
}

/* Media Portrait */
.media-portrait {
	box-sizing: border-box;
	width: 160px;
	height: 160px;
	border-radius: 50%; 
	background: #D9D9D9; /* Fallback color */
	border: 4px solid #FDB515;
}

/* Full Name and Email */
.media-block .media-details h2 {
	display: flex;
	align-items: center;
	justify-content: center; /* Center the content */
	font-family: 'Inter', sans-serif;
	font-style: normal;
	font-weight: 800;
	font-size: 20px !important; /* Enforce 20px */
	line-height: 24px;
	color: #000000;
	margin: 0; /* Remove default margin */
}

.email-icon {
	width: 25px;
	margin-left: 10px; /* Add space between name and icon */
}

.media-info {
	display: flex;
	flex-direction: column;
	gap: 18px; /* 24px gap between items */
}

/* Media Info Section */
.media-block .media-details .media-info {
	font-family: 'Inter', sans-serif;
	font-style: normal;
	font-size: 14px !important; /* Enforce 14px */
	line-height: 24px; 
	text-align: center;
	width: 100%; 
	color: #000000;
	margin: 0; /* Remove default margin */
}

/* Alum Information Styling */
.media-block .media-details .alum {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: #000000; /* A soft grey color */
	margin: 4px 0; /* Consistent margin */
}

/* Divider Line */
.media-divider {
	/* Inside auto layout */
	align-self: stretch;
	border-bottom: 1px solid #9F9F9F;
	height: 0;
	margin: 8px 0; /* Adjust margin as needed */
}

/* Toggle Expertise Section */
.toggle-expertise {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 0;
	gap: 18px;
	height: 38px;
	cursor: pointer; /* Indicate clickable area */
}

.toggle-expertise p, .expertise-section p {
	font-family: 'Inter', sans-serif;
	font-style: normal;
	font-size: 14px !important;
	line-height: 24px;
	font-weight: 500;
	color: #000000;
	margin: 0; /* Remove default margin */
	cursor: pointer; /* Make it clear the text is clickable */
}

/* Plus/Minus Icon */
.plusminus {
	width: 32px;
	height: 32px;
	display: inline-block;
	text-align: center;
	line-height: 38px;
	font-weight: bold;
	border: none; /* Remove the border */
	font-size: 24px; /* Increase the font size */
	cursor: pointer; /* Indicate it's clickable */
}

/* Expertise Content */
.expertise-content {
	display: none; /* Initially hidden, toggled with JavaScript */
	flex-direction: column;
	align-items: center;
	padding: 24px 0 0 0;
	gap: 18px;
	width: 100%; /* Ensure it fills the container width */
	padding-bottom: 24px; /* Consistent padding */
}

.expertise-content p {
	font-family: 'Inter', sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: 14px !important; /* Enforce 14px */
	line-height: 18px;
	color: #000000;
	text-align: left;
	margin: 0; /* Remove default margin */
}

.expertise-content ul li {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-size: 14px !important; /* Enforce 14px */
	line-height: 18px;
	align-items: center;
}

.expertise-content ul li a { 
	text-decoration-line: underline;
	color: #007176;
}

.expertise-content ul {
	padding-bottom: 0;
}

/* Expertise Tags Container */
.expertise-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px; /* Space between tags */
	margin-bottom: 24px; 
	justify-content: center;
	align-items: center;
}

/* Individual Tag Styling */
.expertise-tag {
	background-color: #d9d9d9; /* gray bg */
	color: #252525; /* Text color */
	padding: 10px 12px;
	line-height: 12px;
	border-radius: var(--umbc-radius-xl, 24px);
	font-size: 12px;
	height: 32px; 
	font-weight: 600;
	text-transform: capitalize; 
	display: inline-block;
}

/* Expertise Tags Hover Effect */
.expertise-tag:hover {
	background-color: #d9d9d9;
	cursor: text;
}

.media-cta p {
	margin-bottom: 0; 
}

/* Media Details - Profile Content */
.media-details {
	display: flex;
	flex-direction: column;
	flex: 1; /* Allow media-details to fill the column height */
	align-items: center;
	gap: 18px;
	width: 100%;
}

/* Let the expertise section grow to fill available space */
.expertise-section {
	flex-grow: 1;
}

/* Closing CTA */
#media-cta-link {
	font-family: 'Inter', sans-serif;
	font-style: normal;
	font-size: 14px !important; /* Enforce 14px */
	line-height: 18px;
	color: #007176;
	text-decoration: none;
	margin-bottom: 0; 
	padding-bottom: 0; 
	margin: 0; /* Remove default margin */
}

#media-cta-link:hover {
	text-decoration: underline;
}

/* =============================================================
   Dark Mode — Media Block
   ============================================================= */

/* Card surface */
[data-theme="dark"] .media-block {
	background: var(--umbc-surface-card-alt, #232323);
	box-shadow: 4px 4px 8px 2px rgba(0, 0, 0, 0.5);
}

/* Portrait circle: gold border stays — gold on dark bg is valid */
[data-theme="dark"] .media-portrait {
	background: var(--umbc-surface-card, #2d2d2d);
}

/* Name heading */
[data-theme="dark"] .media-block .media-details h2 {
	color: #e0e0e0;
}

/* Info and alum text */
[data-theme="dark"] .media-block .media-details .media-info,
[data-theme="dark"] .media-block .media-details .alum {
	color: #c0c0c0;
}

/* Divider */
[data-theme="dark"] .media-divider {
	border-bottom-color: var(--umbc-border, #3d3d3d);
}

/* Toggle expertise label and icon */
[data-theme="dark"] .toggle-expertise p,
[data-theme="dark"] .expertise-section p {
	color: #c0c0c0;
}

[data-theme="dark"] .plusminus {
	color: #c0c0c0;
}

/* Expertise content body text */
[data-theme="dark"] .expertise-content p {
	color: #e0e0e0;
}

/* Expertise list links */
[data-theme="dark"] .expertise-content ul li a {
	color: #00a8af;
}

/* Expertise tags: grey pill */
[data-theme="dark"] .expertise-tag {
	background-color: #333;
	color: #e0e0e0;
}

/* CTA link */
[data-theme="dark"] #media-cta-link {
	color: #00a8af;
}