/**
 * Public-facing styles for Staff Directory plugin
 */

/* CSS variables are scoped to plugin-specific wrapper classes to prevent conflicts with other plugins */
.ct-staff-directory-list-wrapper,
.ct-staff-directory-grid-wrapper {
	margin: 30px 0;
	font-size: var(--ct-staff-font-size-base, 16px);
}

/* Filter Position: Left (Default) */
.ct-filter-position-left .ct-staff-directory-layout {
	display: grid;
	grid-template-columns: var(--ct-staff-sidebar-width, 250px) 1fr;
	gap: 20px;
	min-height: 600px;
}

/* Filter Position: Right */
.ct-filter-position-right .ct-staff-directory-layout {
	display: grid;
	grid-template-columns: 1fr var(--ct-staff-sidebar-width, 250px);
	gap: 20px;
	min-height: 600px;
}

.ct-filter-position-right .ct-staff-directory-filters-sidebar {
	order: 2;
}

.ct-filter-position-right .ct-staff-directory-listing {
	order: 1;
}

/* Filter Position: Top */
.ct-filter-position-top .ct-staff-directory-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-height: auto;
}

.ct-filter-position-top .ct-staff-directory-filters-sidebar {
	order: 1;
	min-height: auto;
}

.ct-filter-position-top .ct-staff-directory-listing {
	order: 2;
}

/* Hide filters when show_filter is 'no' */
.ct-staff-directory-list-wrapper[data-show-filter="no"] .ct-staff-directory-filters-sidebar,
.ct-staff-directory-grid-wrapper[data-show-filter="no"] .ct-staff-directory-filters-sidebar {
	display: none;
}

.ct-staff-directory-list-wrapper[data-show-filter="no"] .ct-staff-directory-layout,
.ct-staff-directory-grid-wrapper[data-show-filter="no"] .ct-staff-directory-layout {
	grid-template-columns: 1fr;
}

/* Filters Sidebar */
.ct-staff-directory-filters-sidebar {
	background: var(--ct-staff-filter-sidebar-bg, #f8f9fa);
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Sticky sidebar for left and right positions */
.ct-filter-position-left .ct-staff-directory-filters-sidebar,
.ct-filter-position-right .ct-staff-directory-filters-sidebar {
	position: sticky;
	top: 20px;
	height: fit-content;
}

/* Explicitly prevent sticky for top position */
.ct-filter-position-top .ct-staff-directory-filters-sidebar {
	position: static;
}

.ct-staff-directory-filters-sidebar h3 {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 700;
	color: #333;
}

.ct-filter-group {
	margin-bottom: 25px;
}

.ct-filter-group:last-child {
	margin-bottom: 0;
}

.ct-filter-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 10px;
	color: #333;
}

.ct-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ct-filter-list li {
	margin-bottom: 8px;
}

.ct-filter-list label {
	font-weight: normal;
	cursor: pointer;
	display: flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 4px;
	transition: all 0.2s;
}

.ct-filter-list label:hover {
	background: rgba(0, 0, 0, 0.05);
}

.ct-filter-radio:checked + span {
	font-weight: 600;
}

.ct-filter-list input[type="radio"] {
	margin-right: 8px;
}

/* Hierarchical category dropdowns in filter sidebars */
.ct-staff-directory-filters-sidebar .ct-filter-parent {
	margin-bottom: 8px;
}

.ct-staff-directory-filters-sidebar .ct-filter-parent-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.ct-staff-directory-filters-sidebar .ct-filter-parent-header label {
	flex: 1;
	margin: 0;
}

.ct-staff-directory-filters-sidebar .ct-filter-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px 12px;
	color: #666;
	font-size: 12px;
	transition: all 0.2s;
	border-radius: 4px;
	margin-left: 4px;
}

.ct-staff-directory-filters-sidebar .ct-filter-toggle:hover {
	color: #0073aa;
	background: rgba(0, 0, 0, 0.05);
}

.ct-staff-directory-filters-sidebar .ct-filter-toggle-icon {
	display: inline-block;
	transition: transform 0.2s ease;
	margin-left: 4px;
}

.ct-staff-directory-filters-sidebar .ct-filter-toggle-icon.rotated {
	transform: rotate(-90deg);
}

.ct-staff-directory-filters-sidebar .ct-filter-children,
.ct-staff-directory-filters-sidebar .ct-category-children {
	list-style: none;
	padding: 0;
	margin: 0;
	background: rgba(0, 0, 0, 0.02);
	border-top: 1px solid rgba(0, 0, 0, 0.05);
	display: none;
}

.ct-staff-directory-filters-sidebar .ct-filter-children.expanded,
.ct-staff-directory-filters-sidebar .ct-category-children.expanded {
	display: block;
}

.ct-staff-directory-filters-sidebar .ct-filter-children li,
.ct-staff-directory-filters-sidebar .ct-category-children li {
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ct-staff-directory-filters-sidebar .ct-filter-children li:last-child,
.ct-staff-directory-filters-sidebar .ct-category-children li:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.ct-staff-directory-filters-sidebar .ct-filter-children label,
.ct-staff-directory-filters-sidebar .ct-category-children label {
	padding-left: 32px;
	font-weight: 400;
	font-size: 14px;
}

.ct-staff-directory-filters-sidebar .ct-category-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ct-staff-directory-filters-sidebar .ct-category-nav-item {
	margin-bottom: 8px;
}

.ct-staff-directory-filters-sidebar .ct-category-nav-item:last-child {
	margin-bottom: 0;
}

/* Filter links - normal state */
.ct-staff-directory-filters-sidebar .ct-filter-link {
	display: block;
	padding: 8px 12px;
	color: var(--ct-staff-filter-text-color, #555);
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.2s;
}

.ct-staff-directory-filters-sidebar .ct-category-nav-item a {
	display: block;
	padding: 8px 12px;
	color: var(--ct-staff-filter-text-color, #555);
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.2s;
}

/* Filter links - hover and active state */
.ct-staff-directory-filters-sidebar .ct-filter-link:hover,
.ct-staff-directory-filters-sidebar .ct-filter-link.active,
.ct-staff-directory-filters-sidebar .ct-category-nav-item a:hover,
.ct-staff-directory-filters-sidebar .ct-category-nav-item a.active {
	background: var(--ct-staff-filter-active-bg, #0073aa);
	color: var(--ct-staff-filter-active-text, #ffffff);
}

/* News Releases Listing */
.ct-staff-directory-listing {
	background: #fff;
}

.ct-staff-directory-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Staff Member Card Styles - List View */
.ct-staff-member-item {
	background: var(--ct-staff-card-bg, #ffffff);
	border: 1px solid var(--ct-staff-card-border, #e0e0e0);
	border-radius: 8px;
	padding: 25px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	display: flex;
	gap: 25px;
	align-items: flex-start;
	transition: box-shadow 0.3s;
}

.ct-staff-member-item:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ct-staff-photo {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	border-radius: 8px;
	overflow: hidden;
	background: #f0f0f0;
}

.ct-staff-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ct-staff-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ct-staff-name {
	font-size: var(--ct-staff-font-size-name, 20px);
	font-weight: 700;
	color: var(--ct-staff-name-color, #333);
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.ct-staff-name a {
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s;
}

.ct-staff-name a:hover {
	border-bottom-color: #dc2626;
}

.ct-staff-title {
	font-size: var(--ct-staff-font-size-title, 16px);
	color: var(--ct-staff-title-color, #666);
	margin: 0 0 12px 0;
	font-weight: 500;
}

.ct-staff-company,
.ct-staff-department,
.ct-staff-categories {
	font-size: 14px;
	color: var(--ct-staff-contact-color, #555);
	margin: 0 0 8px 0;
}

.ct-staff-company a {
	color: #0073aa;
	text-decoration: none;
}

.ct-staff-company a:hover {
	text-decoration: underline;
}

.ct-staff-contact-wrapper {
	flex-shrink: 0;
	min-width: 200px;
	text-align: right;
}

.ct-staff-contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-end;
}

.ct-staff-email,
.ct-staff-phone,
.ct-staff-office {
	font-size: 14px;
	color: var(--ct-staff-contact-color, #555);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ct-staff-contact-wrapper .ct-staff-email,
.ct-staff-contact-wrapper .ct-staff-phone,
.ct-staff-contact-wrapper .ct-staff-office {
	justify-content: flex-end;
}

.ct-staff-email a,
.ct-staff-phone a {
	color: #0073aa;
	text-decoration: none;
}

.ct-staff-email a:hover,
.ct-staff-phone a:hover {
	text-decoration: underline;
}

.ct-contact-icon-small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: #0073aa;
}

.ct-staff-social {
	display: flex;
	gap: 8px;
	margin-top: 15px;
	flex-wrap: wrap;
}

.ct-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 4px;
	background: #f0f0f0;
	color: #666;
	text-decoration: none;
	transition: all 0.2s;
}

.ct-social-link:hover {
	background: #0073aa;
	color: #ffffff;
}

.ct-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Staff Member Card Styles - Grid View */
.ct-staff-member-card {
	background: var(--ct-staff-card-bg, #ffffff);
	border: 1px solid var(--ct-staff-card-border, #e0e0e0);
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.3s;
	text-align: center;
}

.ct-staff-member-card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ct-staff-member-card .ct-staff-photo {
	width: 150px;
	height: 150px;
	margin: 0 auto 20px;
	border-radius: 50%;
}

.ct-staff-member-card .ct-staff-info {
	text-align: center;
	margin-bottom: 15px;
}

.ct-staff-member-card .ct-staff-info .ct-staff-name {
	margin-bottom: 8px;
}

.ct-staff-member-card .ct-staff-info .ct-staff-title {
	margin-bottom: 8px;
}

.ct-staff-member-card .ct-staff-info .ct-staff-company,
.ct-staff-member-card .ct-staff-info .ct-staff-department,
.ct-staff-member-card .ct-staff-info .ct-staff-categories {
	margin-bottom: 6px;
}

.ct-staff-member-card .ct-staff-contact {
	align-items: center;
	text-align: center;
	margin-top: 15px;
}

.ct-staff-member-card .ct-staff-social {
	justify-content: center;
}

/* Responsive adjustments for list view */
@media (max-width: 768px) {
	.ct-staff-member-item {
		flex-direction: column;
	}
	
	.ct-staff-contact-wrapper {
		width: 100%;
		text-align: left;
	}
	
	.ct-staff-contact {
		align-items: flex-start;
	}
	
	.ct-staff-contact-wrapper .ct-staff-email,
	.ct-staff-contact-wrapper .ct-staff-phone,
	.ct-staff-contact-wrapper .ct-staff-office {
		justify-content: flex-start;
	}
}

/* Search Field */
.ct-staff-search-wrapper {
	position: relative;
	margin-bottom: 30px;
}

.ct-staff-search-input {
	width: 100%;
	padding: 12px 45px 12px 15px;
	font-size: 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	transition: border-color 0.3s ease;
}

.ct-staff-search-input:focus {
	outline: none;
	border-color: var(--ct-staff-filter-active-bg, #0073aa);
}

.ct-staff-search-icon {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ct-staff-search-wrapper:focus-within .ct-staff-search-icon {
	color: var(--ct-staff-filter-active-bg, #0073aa);
}

/* Category Title/Description for Shortcodes */
.ct-shortcode-category-header {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ct-shortcode-category-title {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #333;
}

.ct-shortcode-category-description {
	font-size: 16px;
	color: #666;
	line-height: 1.6;
	margin: 0;
}

.ct-news-release-item {
	display: flex;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	transition: none;
	align-items: flex-start;
}

.ct-news-release-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.ct-news-release-item:hover {
	box-shadow: none;
}

.ct-news-release-image-wrapper {
	flex-shrink: 0;
	width: 200px;
	position: relative;
}

.ct-news-release-image {
	display: block;
	width: 200px;
	height: 200px;
	overflow: hidden;
	border-radius: 0;
	background: #f0f0f0;
}

.ct-news-release-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	display: block;
}

.ct-news-release-category-tags {
	position: absolute;
	bottom: 0;
	left: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
}

.ct-news-category-tag {
	display: inline-block;
	padding: 4px 8px;
	background: var(--ct-category-tag-bg);
	color: var(--ct-category-tag-text);
	border-radius: 0;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.2;
	white-space: nowrap;
}

.ct-news-release-content {
	flex: 1;
	padding-top: 0;
	min-width: 0;
}

.ct-news-release-meta {
	margin-bottom: 8px;
	font-size: var(--ct-font-size-date);
	color: var(--ct-date-color);
	line-height: 1.4;
}

.ct-news-release-date {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ct-date-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	vertical-align: middle;
}

.ct-news-release-title {
	margin: 0 0 10px 0;
	font-size: var(--ct-font-size-title);
	color: var(--ct-staff-title-color, #666);
	font-weight: 700;
	line-height: 1.3;
}

.ct-news-release-title a {
	color: inherit;
	text-decoration: none;
}

.ct-news-release-title a:hover {
	text-decoration: underline;
	color: #0073aa;
}

.ct-news-release-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	color: var(--ct-staff-title-color, #666);
	text-decoration: none;
	font-weight: 500;
	font-size: var(--ct-staff-font-size-base, 16px);
	transition: color 0.2s ease;
}

.ct-news-release-read-more:hover {
	color: var(--ct-staff-filter-active-bg, #0073aa);
	text-decoration: none;
}

/* Button Style */
.ct-news-release-read-more.ct-read-more-button-style {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 20px;
	background-color: #0073aa;
	color: #ffffff;
	text-decoration: none;
	font-weight: 500;
	font-size: var(--ct-staff-font-size-base, 16px);
	border-radius: 4px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ct-news-release-read-more.ct-read-more-button-style:hover {
	background-color: var(--ct-read-more-bg-hover, #005a87);
	color: var(--ct-read-more-text-hover, #ffffff);
	text-decoration: none;
}

.ct-read-more-text {
	order: 1;
}

.ct-read-more-icon {
	order: 2;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: transform 0.2s ease, fill 0.2s ease;
	fill: currentColor;
}

.ct-news-release-read-more:hover .ct-read-more-icon {
	transform: translateX(4px);
}

.ct-news-release-read-more.ct-read-more-button-style .ct-read-more-icon {
	fill: currentColor;
}

.ct-news-release-excerpt {
	margin-bottom: 0;
	font-size: var(--ct-font-size-excerpt);
	color: var(--ct-excerpt-color);
	line-height: 1.6;
}

/* Grid View */
.ct-staff-directory-grid {
	display: grid;
	grid-template-columns: repeat(var(--ct-staff-grid-columns, 3), 1fr);
	gap: 30px;
}

.ct-news-release-card {
	background: var(--ct-staff-card-bg, #ffffff);
	border: 1px solid var(--ct-staff-card-border, #e0e0e0);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.3s;
	display: flex;
	flex-direction: column;
}

.ct-news-release-card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ct-news-release-card .ct-news-release-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.ct-news-release-card .ct-news-release-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ct-news-release-card .ct-news-release-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Pagination */
.ct-staff-directory-pagination {
	margin-top: 30px;
	text-align: center;
}

.ct-load-more-btn {
	padding: 12px 30px;
	background: var(--ct-staff-filter-active-bg, #0073aa);
	color: var(--ct-staff-filter-active-text, #ffffff);
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
	transition: opacity 0.3s;
}

.ct-load-more-btn:hover {
	opacity: 0.9;
}

.ct-load-more-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Loading */
.ct-staff-directory-loading {
	text-align: center;
	padding: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
	.ct-filter-position-left .ct-staff-directory-layout,
	.ct-filter-position-right .ct-staff-directory-layout {
		grid-template-columns: 200px 1fr;
		gap: 15px;
	}

	.ct-staff-directory-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.ct-filter-position-left .ct-staff-directory-layout,
	.ct-filter-position-right .ct-staff-directory-layout,
	.ct-filter-position-top .ct-staff-directory-layout {
		grid-template-columns: 1fr;
		flex-direction: column;
		gap: 20px;
	}

	.ct-staff-directory-filters-sidebar {
		margin-bottom: 20px;
	}

	.ct-news-release-item {
		flex-direction: column;
	}

	.ct-news-release-image-wrapper {
		width: 100%;
	}

	.ct-news-release-image {
		width: 100%;
		height: auto;
		min-height: 200px;
	}

	.ct-staff-directory-grid {
		grid-template-columns: 1fr;
	}
}

/* Category Archive Pages */
.ct-news-category-header,
.ct-staff-category-header {
	margin-bottom: 30px;
}

.ct-category-title {
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #333;
}

.ct-category-description {
	font-size: 16px;
	color: #666;
	line-height: 1.6;
}

.ct-news-category-layout,
.ct-staff-category-layout {
	display: grid;
	gap: 30px;
}

/* Sidebar Position: Left */
.ct-sidebar-position-left.ct-news-category-layout,
.ct-sidebar-position-left.ct-staff-category-layout {
	grid-template-columns: var(--ct-staff-sidebar-width, 250px) 1fr;
}

/* Sidebar Position: Right */
.ct-sidebar-position-right.ct-news-category-layout,
.ct-sidebar-position-right.ct-staff-category-layout {
	grid-template-columns: 1fr var(--ct-staff-sidebar-width, 250px);
}

.ct-sidebar-position-right .ct-category-sidebar {
	order: 2;
}

.ct-sidebar-position-right .ct-news-category-content,
.ct-sidebar-position-right .ct-staff-category-content {
	order: 1;
}

/* Hide sidebar when setting is 'no' */
.ct-news-category-layout[data-sidebar-show="no"],
.ct-staff-category-layout[data-sidebar-show="no"] {
	grid-template-columns: 1fr;
}

.ct-news-category-layout[data-sidebar-show="no"] .ct-category-sidebar,
.ct-staff-category-layout[data-sidebar-show="no"] .ct-category-sidebar {
	display: none;
}

/* Category Sidebar Navigation */
.ct-category-sidebar {
	background: var(--ct-staff-filter-sidebar-bg, #f8f9fa);
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	height: fit-content;
}

/* Sticky sidebar for category pages - only for left and right positions */
.ct-sidebar-position-left .ct-category-sidebar,
.ct-sidebar-position-right .ct-category-sidebar {
	position: sticky;
	top: 20px;
}

/* View Toggle for Category Pages */
.ct-view-toggle {
	display: flex;
	gap: 8px;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ct-view-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 14px;
	font-weight: 500;
	color: #666;
}

.ct-view-btn:hover {
	background: #e9ecef;
	border-color: #0073aa;
	color: #0073aa;
}

.ct-view-btn.active {
	background: #0073aa;
	border-color: #0073aa;
	color: #ffffff;
}

.ct-view-icon {
	font-size: 16px;
	line-height: 1;
}

.ct-view-label {
	font-size: 14px;
}

.ct-category-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ct-category-nav-item {
	margin: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ct-category-nav-item:last-child {
	border-bottom: none;
}

.ct-category-nav-item a {
	display: block;
	padding: 12px 16px;
	color: #333;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s;
	border-radius: 4px;
	margin: 4px 0;
}

.ct-category-nav-item a:hover {
	background: rgba(0, 0, 0, 0.05);
	color: #0073aa;
}

/* Parent category with children */
.ct-filter-parent {
	margin-bottom: 0;
}

.ct-filter-parent-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.ct-filter-parent-header a {
	flex: 1;
	margin: 0;
	padding: 12px 16px;
}

.ct-filter-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 12px 16px;
	color: #666;
	font-size: 12px;
	transition: all 0.2s;
	border-radius: 4px;
	margin-left: 4px;
}

.ct-filter-toggle:hover {
	color: #0073aa;
	background: rgba(0, 0, 0, 0.05);
}

.ct-filter-toggle-icon {
	display: inline-block;
	transition: transform 0.2s ease;
	margin-left: 4px;
}

.ct-filter-toggle-icon.rotated {
	transform: rotate(-90deg);
}

.ct-filter-children {
	list-style: none;
	padding: 0;
	margin: 0;
	background: rgba(0, 0, 0, 0.02);
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.ct-filter-children li {
	margin-bottom: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ct-filter-children li:last-child {
	border-bottom: none;
}

.ct-filter-children a {
	padding-left: 32px;
	font-weight: 400;
	font-size: 14px;
}

.ct-category-nav-item.active a {
	background: var(--ct-staff-filter-active-bg, #0073aa);
	color: var(--ct-staff-filter-active-text, #ffffff);
	font-weight: 600;
}

/* Category Content Area */
.ct-news-category-content {
	min-width: 0;
}

/* Pagination */
.ct-pagination {
	margin-top: 40px;
	text-align: center;
}

.ct-pagination .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 4px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	transition: all 0.2s;
}

.ct-pagination .page-numbers:hover,
.ct-pagination .page-numbers.current {
	background: var(--ct-staff-filter-active-bg, #0073aa);
	color: var(--ct-staff-filter-active-text, #ffffff);
	border-color: var(--ct-staff-filter-active-bg, #0073aa);
}

/* Responsive Category Pages */
@media (max-width: 768px) {
	.ct-news-category-archive {
		padding: 20px 15px;
	}

	.ct-category-title {
		font-size: 28px;
	}

	.ct-news-category-layout {
		grid-template-columns: 1fr !important;
	}

	.ct-category-sidebar {
		position: static;
		margin-bottom: 30px;
	}
}

/* Single Staff Member Page */
.ct-staff-single-header {
	display: flex;
	gap: 30px;
	margin-bottom: 40px;
}

.ct-staff-single-photo {
	flex-shrink: 0;
	width: 200px;
	height: 200px;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
}

.ct-staff-single-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ct-staff-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
}

.ct-staff-placeholder svg {
	width: 120px;
	height: 120px;
	opacity: 0.5;
}

.ct-staff-single-info {
	flex: 1;
}

.ct-staff-single-name {
	font-size: 36px;
	font-weight: 700;
	color: var(--ct-staff-name-color, #333);
	margin: 0 0 15px 0;
	line-height: 1.2;
}

.ct-staff-single-position {
	font-size: 22px;
	color: var(--ct-staff-title-color, #666);
	margin: 0 0 20px 0;
	font-weight: 500;
}

.ct-staff-single-department,
.ct-staff-single-company {
	margin: 12px 0;
	font-size: 16px;
	color: var(--ct-staff-contact-color, #555);
}

.ct-staff-single-department .ct-label,
.ct-staff-single-company .ct-label {
	font-weight: 600;
	margin-right: 8px;
}

.ct-staff-single-company a {
	color: var(--ct-staff-filter-active-bg, #0073aa);
	text-decoration: none;
	transition: opacity 0.2s;
}

.ct-staff-single-company a:hover {
	opacity: 0.8;
	text-decoration: underline;
}

.ct-staff-single-categories {
	margin-top: 20px;
}

.ct-staff-single-categories .ct-label {
	display: block;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--ct-staff-contact-color, #555);
}

.ct-category-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ct-category-tag {
	display: inline-block;
	padding: 6px 12px;
	background: var(--ct-staff-filter-active-bg, #0073aa);
	color: var(--ct-staff-filter-active-text, #ffffff);
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
	transition: opacity 0.2s;
}

.ct-category-tag:hover {
	opacity: 0.8;
}

.ct-staff-single-content {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 40px;
	align-items: start;
}

.ct-staff-single-main {
	min-width: 0;
}

.ct-staff-single-bio {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid var(--ct-staff-card-border, #e0e0e0);
}

.ct-staff-single-bio h2 {
	font-size: 28px;
	font-weight: 700;
	color: var(--ct-staff-name-color, #333);
	margin: 0 0 20px 0;
}

.ct-bio-content {
	font-size: var(--ct-staff-font-size-base, 16px);
	line-height: 1.7;
	color: var(--ct-staff-contact-color, #555);
}

.ct-bio-content p {
	margin-bottom: 15px;
}

.ct-staff-single-sidebar {
	position: sticky;
	top: 20px;
}

.ct-staff-contact-info,
.ct-staff-social-links {
	background: var(--ct-staff-card-bg, #ffffff);
	border: 1px solid var(--ct-staff-card-border, #e0e0e0);
	border-radius: 8px;
	padding: 25px;
	margin-bottom: 25px;
}

.ct-staff-contact-info h3,
.ct-staff-social-links h3 {
	font-size: 20px;
	font-weight: 700;
	color: var(--ct-staff-name-color, #333);
	margin: 0 0 20px 0;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--ct-staff-card-border, #e0e0e0);
}

.ct-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 20px;
}

.ct-contact-item:last-child {
	margin-bottom: 0;
}

.ct-contact-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	color: var(--ct-staff-filter-active-bg, #0073aa);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ct-contact-icon svg {
	width: 100%;
	height: 100%;
}

.ct-contact-link,
.ct-contact-text {
	flex: 1;
	color: var(--ct-staff-contact-color, #555);
	text-decoration: none;
	font-size: 16px;
	line-height: 1.5;
	word-break: break-word;
}

.ct-contact-link:hover {
	color: var(--ct-staff-filter-active-bg, #0073aa);
	text-decoration: underline;
}

.ct-extension {
	display: block;
	font-size: 14px;
	color: var(--ct-staff-title-color, #666);
	margin-top: 4px;
}

.ct-social-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ct-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ct-staff-card-border, #e0e0e0);
	border-radius: 6px;
	text-decoration: none;
	color: var(--ct-staff-contact-color, #555);
	background: #fff;
	transition: all 0.2s;
}

.ct-social-link:hover {
	background: var(--ct-staff-filter-active-bg, #0073aa);
	border-color: var(--ct-staff-filter-active-bg, #0073aa);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ct-social-icon {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ct-social-icon svg {
	width: 100%;
	height: 100%;
}

.ct-social-label {
	display: none;
}

/* Contact Icons in Loop */
.ct-contact-icon-small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	vertical-align: middle;
	color: var(--ct-staff-filter-active-bg, #0073aa);
	flex-shrink: 0;
}

.ct-contact-icon-small svg {
	width: 100%;
	height: 100%;
}

.ct-staff-email,
.ct-staff-phone,
.ct-staff-office {
	display: flex;
	align-items: center;
	margin: 6px 0;
	font-size: 14px;
}

.ct-staff-email a,
.ct-staff-phone a {
	color: var(--ct-staff-contact-color, #555);
	text-decoration: none;
	transition: color 0.2s;
}

.ct-staff-email a:hover,
.ct-staff-phone a:hover {
	color: var(--ct-staff-filter-active-bg, #0073aa);
	text-decoration: underline;
}

.ct-staff-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.ct-staff-social .ct-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 4px;
	border: 1px solid var(--ct-staff-card-border, #e0e0e0);
	background: transparent;
	color: var(--ct-staff-contact-color, #555);
	text-decoration: none;
	transition: all 0.2s;
}

.ct-staff-social .ct-social-link:hover {
	background: var(--ct-staff-filter-active-bg, #0073aa);
	border-color: var(--ct-staff-filter-active-bg, #0073aa);
	color: var(--ct-staff-filter-active-text, #ffffff);
}

.ct-staff-social .ct-social-icon {
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ct-staff-social .ct-social-icon svg {
	width: 100%;
	height: 100%;
}

/* Responsive Single Staff Page */
@media (max-width: 968px) {
	.ct-staff-single-content {
		grid-template-columns: 1fr;
	}
	
	.ct-staff-single-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	.ct-staff-single {
		padding: 20px 15px;
	}
	
	.ct-staff-single-header {
		flex-direction: column;
		gap: 25px;
	}
	
	.ct-staff-single-photo {
		width: 200px;
		height: 200px;
		margin: 0 auto;
	}
	
	.ct-staff-single-name {
		font-size: 28px;
		text-align: center;
	}
	
	.ct-staff-single-position {
		font-size: 18px;
		text-align: center;
	}
	
	.ct-staff-single-department,
	.ct-staff-single-company,
	.ct-staff-single-categories {
		text-align: center;
	}
	
	.ct-category-tags {
		justify-content: center;
	}
}
