/* ========================================
   HỘI VIÊN — MEMBER LISTING PAGE
   ======================================== */

:root {
	--hv-primary: #043791;
	--hv-accent: #cf0707;
	--hv-green: #22c55e;
	--hv-bg-light: #f0f4fa;
	--hv-card-shadow: 0 4px 20px rgba(4, 55, 145, 0.08);
	--hv-card-hover: 0 8px 30px rgba(4, 55, 145, 0.15);
	--hv-radius: 16px;
}

.page-hv {
	background: #fff;
}

/* Hero → dùng chung dpa-common.css */

/* ────────── SEARCH & FILTER ────────── */

.hv-search {
	padding: 30px 0 0;
}

.hv-search__form {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	max-width: 820px;
	margin: 0 auto;
	background: #fff;
	padding: 14px 20px;
	border-radius: var(--hv-radius);
	box-shadow: 0 4px 24px rgba(4, 55, 145, 0.08);
	border: 1px solid rgba(4, 55, 145, 0.08);
}

.hv-search__input-wrap {
	flex: 1;
	min-width: 200px;
	position: relative;
	display: flex;
	align-items: center;
}

.hv-search__input-wrap svg {
	position: absolute;
	left: 14px;
	top: 10px !important;
	width: 18px;
	height: 18px;
	color: #999;
	pointer-events: none;
	z-index: 1;
	flex-shrink: 0;
}

.hv-search__input-wrap input {
	width: 100%;
	height: 44px;
	padding: 0 14px 0 44px !important;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	font-size: 14px;
	color: #333;
	background: var(--hv-bg-light);
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.hv-search__input-wrap input:focus {
	outline: none;
	border-color: var(--hv-primary);
	box-shadow: 0 0 0 3px rgba(4, 55, 145, 0.08);
	background: #fff;
}

.hv-search__select-wrap {
	min-width: 200px;
}

.hv-search__select-wrap select {
	width: 100%;
	height: 44px;
	padding: 0 32px 0 14px;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	font-size: 14px;
	color: #333;
	background: var(--hv-bg-light);
	cursor: pointer;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.hv-search__select-wrap select:focus {
	outline: none;
	border-color: var(--hv-primary);
}

.hv-search__btn {
	height: 44px;
	padding: 0 28px;
	background: var(--hv-primary);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	white-space: nowrap;
}

.hv-search__btn:hover {
	background: #032d75;
	transform: translateY(-1px);
}

.hv-search__clear {
	color: var(--hv-accent) !important;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: opacity 0.2s;
}

.hv-search__clear:hover {
	opacity: 0.7;
}

.hv-empty__reset {
	display: inline-block;
	margin-top: 12px;
	color: var(--hv-primary) !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 14px;
	padding: 8px 20px;
	border: 2px solid var(--hv-primary);
	border-radius: 50px;
	transition: all 0.2s;
}

.hv-empty__reset:hover {
	background: var(--hv-primary);
	color: #fff !important;
}

/* ────────── MEMBER LISTING ────────── */

.hv-listing {
	padding: 50px 0;
}

.hv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

/* ────────── MEMBER CARD ────────── */

a.hv-card {
	text-decoration: none !important;
	color: inherit;
}

.hv-card {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px;
	background: #fff;
	border-radius: var(--hv-radius);
	box-shadow: var(--hv-card-shadow);
	border: 1px solid rgba(4, 55, 145, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hv-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--hv-card-hover);
}

.hv-card__avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	flex-shrink: 0;
	border: 2px solid var(--hv-primary);
	position: relative;
	background: var(--hv-bg-light);
}

.hv-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}

.hv-card__verified {
	position: absolute;
	bottom: -2px;
	right: -2px;
	background: var(--hv-green);
	border-radius: 50%;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
	border: 2px solid #fff;
}

.hv-card__body {
	flex: 1;
	min-width: 0;
}

.hv-card__name {
	font-size: 16px;
	font-weight: 700;
	color: var(--hv-primary);
	margin: 0 0 6px;
	line-height: 1.3;
}

.hv-card__badge {
	display: inline-block;
	background: var(--hv-bg-light);
	color: var(--hv-primary);
	padding: 3px 12px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 6px;
}

.hv-card__workplace {
	font-size: 13px;
	color: #666;
	margin: 0;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ────────── DETAILED CARD (Bảo chứng mode) ────────── */

.hv-grid--detailed {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}

.hv-card--detailed {
	display: flex;
	flex-direction: column;
	padding: 0;
	border: 1px solid rgba(4, 55, 145, 0.08);
	overflow: hidden;
}

.hv-card--detailed .hv-card__top {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px 12px;
}

.hv-card--detailed .hv-card__avatar {
	width: 56px;
	height: 56px;
}

.hv-card--detailed .hv-card__details {
	padding: 0 16px 10px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	border-top: 1px solid rgba(4, 55, 145, 0.06);
	padding-top: 10px;
}

.hv-card__detail-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.hv-card__detail-item svg {
	color: var(--hv-primary);
	flex-shrink: 0;
}

.hv-card__detail-label {
	color: #888;
	flex-shrink: 0;
}

.hv-card__detail-value {
	color: #333;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Fee status (detailed card) */

.hv-card__fee-status {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	margin: 0 16px;
	background: #eef7ee;
	border-radius: 8px;
	font-size: 13px;
	color: #2e7d32;
}

.hv-card__fee-status svg {
	flex-shrink: 0;
}

.hv-card__fee-status--expired {
	background: #fdecea;
	color: #c62828;
}

.hv-card__fee-label {
	font-weight: 500;
}

.hv-card__fee-value {
	font-weight: 700;
}

/* Fee tag (normal card) */

.hv-card__fee-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: #2e7d32;
	background: #eef7ee;
	padding: 3px 10px;
	border-radius: 4px;
	margin-top: 6px;
}

.hv-card__fee-tag--expired {
	color: #c62828;
	background: #fdecea;
}

.hv-card__actions {
	display: flex;
	gap: 8px;
	padding: 0 16px 14px;
	margin-top: auto;
}

.hv-card__action-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.2s;
	white-space: nowrap;
}

.hv-card__action-btn--view {
	background: var(--hv-primary);
	color: #fff !important;
	flex: 1;
	justify-content: center;
}

.hv-card__action-btn--view:hover {
	background: #032d75;
	color: #fff !important;
}

.hv-card__action-btn--cv {
	background: var(--hv-bg-light);
	color: var(--hv-primary) !important;
	border: 1.5px solid rgba(4, 55, 145, 0.15);
}

.hv-card__action-btn--cv:hover {
	background: var(--hv-primary);
	color: #fff !important;
	border-color: var(--hv-primary);
}

/* ────────── EMPTY STATE ────────── */

.hv-empty {
	text-align: center;
	padding: 60px 20px;
	color: #999;
}

.hv-empty svg {
	margin-bottom: 16px;
	opacity: 0.4;
}

.hv-empty p {
	font-size: 16px;
	margin: 0;
}

/* ────────── PAGINATION ────────── */

.hv-pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}

.hv-pagination ul {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hv-pagination li {
	margin: 0;
}

.hv-pagination a,
.hv-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.2s;
}

.hv-pagination a {
	background: #fff;
	color: var(--hv-primary) !important;
	border: 1px solid rgba(4, 55, 145, 0.15);
}

.hv-pagination a:hover {
	background: var(--hv-primary);
	color: #fff !important;
	border-color: var(--hv-primary);
}

.hv-pagination span.current {
	background: var(--hv-primary);
	color: #fff;
	border: 1px solid var(--hv-primary);
}

.hv-pagination span.dots {
	border: none;
	background: transparent;
	color: #999;
	min-width: 30px;
}

.hv-pagination .prev,
.hv-pagination .next {
	padding: 0 10px;
}

/* ────────── REGISTRATION SECTION ────────── */

.hv-register {
	background: var(--hv-bg-light);
	padding: 60px 0;
}

.hv-register__header {
	text-align: center;
	margin-bottom: 36px;
}

.hv-register__title {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 800;
	color: var(--hv-primary);
	margin: 0 0 10px;
	text-transform: uppercase;
}

.hv-register__desc {
	color: #666;
	font-size: 16px;
	margin: 0;
}

/* ────────── FORM RESTYLE (override member-form.css) ────────── */

.hv-register .dpa-member-form-wrap {
	max-width: 720px;
	padding: 40px 36px;
	border-radius: var(--hv-radius);
	box-shadow: 0 8px 40px rgba(4, 55, 145, 0.08);
	border: 1px solid rgba(4, 55, 145, 0.06);
}

.hv-register .dpa-form-title {
	color: var(--hv-primary);
	font-size: 22px;
	border-bottom-color: var(--hv-primary);
	margin-bottom: 28px;
	padding-bottom: 14px;
}

.hv-register .dpa-form-row label {
	font-size: 14px;
	color: #333;
	font-weight: 600;
}

.hv-register .dpa-form-row input[type="text"],
.hv-register .dpa-form-row input[type="email"],
.hv-register .dpa-form-row input[type="tel"],
.hv-register .dpa-form-row input[type="date"],
.hv-register .dpa-form-row select {
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 15px;
	border: 1.5px solid #e0e0e0;
	background: #fff;
}

.hv-register .dpa-form-row select {
	width: 100%;
	height: auto;
	min-height: 48px;
	line-height: 1.4;
	white-space: normal;
	text-overflow: ellipsis;
	padding-right: 36px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px;
}

.hv-register .dpa-form-row input:focus,
.hv-register .dpa-form-row select:focus {
	border-color: var(--hv-primary);
	box-shadow: 0 0 0 3px rgba(4, 55, 145, 0.08);
}

.hv-register .dpa-form-row input[type="file"] {
	padding: 14px;
	border: 2px dashed rgba(4, 55, 145, 0.2);
	border-radius: 10px;
	background: rgba(4, 55, 145, 0.02);
}

.hv-register .dpa-form-row input[type="file"]:hover {
	border-color: var(--hv-primary);
	background: rgba(4, 55, 145, 0.04);
}

.hv-register .dpa-btn-submit {
	padding: 14px 56px;
	background: var(--hv-primary);
	border-radius: 50px;
	font-size: 15px;
	letter-spacing: 1.5px;
	transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.hv-register .dpa-btn-submit:hover {
	background: #032d75;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(4, 55, 145, 0.3);
}

.hv-register .dpa-btn-submit:disabled {
	background: #aaa;
	box-shadow: none;
	transform: none;
}

.hv-register .dpa-form-message.success {
	background: #ecfdf5;
	color: #065f46;
	border-color: #a7f3d0;
	border-radius: 10px;
}

.hv-register .dpa-form-message.error {
	background: #fef2f2;
	color: #991b1b;
	border-color: #fecaca;
	border-radius: 10px;
}

.hv-register .dpa-form-row .required {
	color: var(--hv-accent);
}

.hv-register .dpa-spinner {
	border-top-color: var(--hv-primary);
}

/* ────────── RESPONSIVE ────────── */

@media (max-width: 768px) {
	.hv-listing {
		padding: 30px 0;
	}

	.hv-grid,
	.hv-grid--detailed {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.hv-register {
		padding: 40px 0;
	}

	.hv-register .dpa-member-form-wrap {
		padding: 24px 18px;
		margin: 0;
	}

	.hv-register .dpa-btn-submit {
		width: 100%;
		padding: 14px 20px;
	}

	.hv-search__form {
		flex-direction: column;
		padding: 16px;
	}

	.hv-search__input-wrap,
	.hv-search__select-wrap {
		width: 100%;
		min-width: 0;
	}

	.hv-search__btn {
		width: 100%;
		text-align: center;
	}

	.hv-search__clear {
		text-align: center;
		width: 100%;
		display: block;
	}
}

@media (max-width: 480px) {
	.hv-card {
		padding: 16px;
		gap: 14px;
	}

	.hv-card__avatar {
		width: 64px;
		height: 64px;
	}

	.hv-card__name {
		font-size: 14px;
	}
}

/* ========================================
   SINGLE HỘI VIÊN — DETAIL PAGE
   ======================================== */

.hv-single {
	background: #fff;
}

/* Hero / Breadcrumb → dùng chung dpa-common.css */

/* ── Profile Card ── */

.hv-single__profile {
	padding: 50px 0 40px;
}

.hv-single__card {
	display: flex;
	gap: 44px;
	align-items: flex-start;
	max-width: 900px;
	margin: 0 auto;
}

.hv-single__avatar-wrap {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.hv-single__avatar {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	border: 4px solid var(--hv-primary);
	box-shadow: 0 8px 30px rgba(4, 55, 145, 0.15);
	background: var(--hv-bg-light);
	overflow: hidden;
}

.hv-single__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hv-single__verified {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--hv-green);
	color: #fff;
	padding: 6px 16px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 3px 12px rgba(34, 197, 94, 0.35);
}

.hv-single__info {
	flex: 1;
	padding-top: 6px;
}

.hv-single__name {
	font-size: 28px;
	font-weight: 800;
	color: var(--hv-primary);
	margin: 0 0 10px;
	line-height: 1.2;
}

.hv-single__badge {
	display: inline-block;
	background: linear-gradient(135deg, var(--hv-primary), #0a4fba);
	color: #fff;
	padding: 6px 22px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
}

.hv-single__workplace {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	color: #666;
	margin: 0 0 24px;
}

.hv-single__workplace svg {
	color: var(--hv-primary);
	flex-shrink: 0;
}

/* ── Meta Info ── */

.hv-single__meta {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	background: var(--hv-bg-light);
	border-radius: var(--hv-radius);
	border-left: 4px solid var(--hv-primary);
}

.hv-single__meta-item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
}

.hv-single__meta-item svg {
	color: var(--hv-primary);
	flex-shrink: 0;
}

.hv-single__meta-label {
	color: #888;
	min-width: 160px;
	flex-shrink: 0;
}

.hv-single__meta-value {
	color: #333;
	font-weight: 600;
}

.hv-single__meta-link {
	color: var(--hv-primary) !important;
	text-decoration: none !important;
	transition: opacity 0.2s;
}

.hv-single__meta-link:hover {
	opacity: 0.7;
}

/* ── CV Button ── */

.hv-single__cv {
	margin-top: 20px;
}

.hv-single__cv-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	background: var(--hv-primary);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 14px;
	border-radius: 50px;
	transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.hv-single__cv-btn:hover {
	background: #032d75;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(4, 55, 145, 0.3);
	color: #fff !important;
}

/* ── Back Link ── */

.hv-single__back {
	padding: 0 0 50px;
}

.hv-single__back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--hv-primary) !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 15px;
	padding: 12px 24px;
	border: 2px solid var(--hv-primary);
	border-radius: 50px;
	transition: all 0.3s;
	max-width: 900px;
	margin: 0 auto;
}

.hv-single__back-link:hover {
	background: var(--hv-primary);
	color: #fff !important;
}

.hv-single__back-link svg {
	transition: transform 0.3s;
}

.hv-single__back-link:hover svg {
	transform: translateX(-4px);
}

/* ── Single Responsive ── */

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

	.hv-single__avatar {
		width: 160px;
		height: 160px;
	}

	.hv-single__info {
		padding-top: 0;
	}

	.hv-single__workplace {
		justify-content: center;
	}

	.hv-single__meta {
		text-align: left;
		border-left: none;
		border-top: 4px solid var(--hv-primary);
	}

	.hv-single__meta-item {
		flex-direction: column;
		gap: 4px;
		text-align: center;
	}

	.hv-single__meta-label {
		min-width: auto;
	}

	.hv-single__name {
		font-size: 22px;
	}

	.hv-single__cv {
		text-align: center;
	}
}
