/**
 * From Board Members Plugin — Front-end Styles
 * Mirrors the style conventions of my-custom-news-articles/public/css/style.css
 */

/* -------------------------------------------------------------------------
   Archive page — section layout
   ---------------------------------------------------------------------- */

.hg-board-section {
	padding-top: 3.5rem;
	padding-bottom: 3.5rem;
}

.hg-board-section-header {
	border-bottom: 3px solid #002D42;
	padding-bottom: 1rem;
	margin-bottom: 2.5rem;
}

.hg-board-section-heading {
	font-size: 2rem;
	font-weight: 700;
	color: #002D42;
	margin-bottom: 0.4rem;
}

.hg-board-section-desc {
	font-size: 1rem;
	color: #555;
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Board member grouping
   ---------------------------------------------------------------------- */

.hg-board-member-section {
	border-bottom: 1px solid #e9ecef;
	padding-bottom: 2rem;
	margin-bottom: 2rem;
}

.hg-board-member-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.hg-board-member-name {
	font-size: 1.4rem;
	font-weight: 700;
	color: #002D42;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e9ecef;
}

/* -------------------------------------------------------------------------
   Items list
   ---------------------------------------------------------------------- */

.hg-board-items-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hg-board-items-list-item {
	padding: 0.65rem 0;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	line-height: 1.5;
}

.hg-board-items-list-item:last-child {
	border-bottom: none;
}

.hg-board-item-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hg-board-item-link {
	color: #002D42;
	text-decoration: none;
	font-size: 0.97rem;
}

.hg-board-item-link:hover {
	text-decoration: underline;
	color: #004d73;
}

.hg-board-item-date {
	font-size: 0.85rem;
	color: #6c757d;
	font-style: italic;
}

/* -------------------------------------------------------------------------
   Item type badge
   ---------------------------------------------------------------------- */

.hg-board-item-type-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
	flex-shrink: 0;
	margin-top: 2px;
	background: #e9ecef;
	color: #495057;
}

.hg-board-type-book          { background: #d4edda; color: #155724; }
.hg-board-type-article       { background: #cce5ff; color: #004085; }
.hg-board-type-blog          { background: #fff3cd; color: #856404; }
.hg-board-type-policy-paper  { background: #f8d7da; color: #721c24; }
.hg-board-type-policy-brief  { background: #f5c6cb; color: #721c24; }
.hg-board-type-working-paper { background: #e2d9f3; color: #432874; }
.hg-board-type-interview     { background: #d1ecf1; color: #0c5460; }
.hg-board-type-lecture       { background: #fde8d8; color: #7d3c00; }
.hg-board-type-opinion       { background: #e8f4f8; color: #1a6a8a; }

/* -------------------------------------------------------------------------
   Grid layout (shortcode [board_members_list])
   ---------------------------------------------------------------------- */

.hg-board-list-shortcode {
	margin-bottom: 2rem;
}

.hg-board-grid-item {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 20px;
	background: #fff;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hg-board-grid-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hg-board-grid-title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: #002D42;
	margin: 0.5rem 0 0.75rem;
	flex: 1;
}

.hg-board-grid-title a {
	color: inherit;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hg-board-grid-title a:hover {
	text-decoration: underline;
}

.hg-board-grid-meta {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 0.75rem;
}

/* -------------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------- */

.hg-board-btn-read {
	display: inline-block;
	padding: 8px 18px;
	background: #002D42;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.875rem;
	transition: background 0.3s ease;
	margin-top: auto;
	align-self: flex-start;
}

.hg-board-btn-read:hover {
	background: #004d73;
	color: #fff;
}

.hg-board-btn-outline {
	display: inline-block;
	padding: 8px 16px;
	border: 2px solid #002D42;
	color: #002D42;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.3s ease;
}

.hg-board-btn-outline:hover {
	background: #002D42;
	color: #fff;
}

/* -------------------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------------- */

.hg-board-pagination {
	margin-top: 2rem;
	text-align: center;
}

.hg-board-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 3px;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	color: #002D42;
	text-decoration: none;
	font-size: 0.9rem;
}

.hg-board-pagination .page-numbers.current {
	background: #002D42;
	color: #fff;
	border-color: #002D42;
}

.hg-board-pagination .page-numbers:hover:not(.current) {
	background: #e9ecef;
}

/* -------------------------------------------------------------------------
   Single post page
   ---------------------------------------------------------------------- */

.hg-board-single-section {
	padding-top: 3.5rem;
	padding-bottom: 3.5rem;
}

.hg-board-single-content {
	font-size: 1.05rem;
	line-height: 1.75;
	color: #333;
}

.hg-board-single-content p {
	margin-bottom: 1.2em;
}

.hg-board-single-thumb img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 1.5rem;
}

.hg-board-single-cta {
	margin-top: 1.5rem;
}

.hg-board-btn-primary {
	display: inline-block;
	padding: 12px 28px;
	background: #002D42;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	font-size: 1rem;
	transition: background 0.3s ease;
}

.hg-board-btn-primary:hover {
	background: #004d73;
	color: #fff;
}

/* -------------------------------------------------------------------------
   Sidebar
   ---------------------------------------------------------------------- */

.hg-board-sidebar-card {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 1.5rem;
}

.hg-board-sidebar-heading {
	font-size: 1.1rem;
	font-weight: 700;
	color: #002D42;
	margin-bottom: 1rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid #dee2e6;
}

.hg-board-sidebar-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hg-board-sidebar-list-item {
	padding: 0.5rem 0;
	border-bottom: 1px solid #e9ecef;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.9rem;
}

.hg-board-sidebar-list-item:last-child {
	border-bottom: none;
}

.hg-board-sidebar-link {
	color: #002D42;
	text-decoration: none;
	line-height: 1.4;
	flex: 1;
}

.hg-board-sidebar-link:hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Advisors section background
   ---------------------------------------------------------------------- */

.hg-board-advisors-section {
	background: #f8f9fa;
}

/* -------------------------------------------------------------------------
   Read More functionality
   ---------------------------------------------------------------------- */

.hg-board-read-more-btn {
	background: #002D42;
	color: #fff;
	border: none;
	padding: 8px 20px;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	margin-top: 12px;
	transition: background 0.3s ease;
}

.hg-board-read-more-btn:hover {
	background: #004d73;
}

.hg-board-items-collapsed {
	margin-top: 0;
}

/* -------------------------------------------------------------------------
   Responsive adjustments
   ---------------------------------------------------------------------- */

@media (max-width: 767px) {
	.hg-board-section-heading {
		font-size: 1.5rem;
	}
	.hg-board-member-name {
		font-size: 1.2rem;
	}
	.hg-board-grid-item {
		padding: 14px;
	}
}
