/* ============================================================
   HoangNamDev FAQ — Stylesheet
   Style: Unigrow-inspired (navy + teal, Nunito-like rounded)
   ============================================================ */

/* GRID */
.hnd-faq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

/* CARD */
.hnd-faq-card {
	background: #fff;
	border-radius: 14px;
	border: 1.5px solid #dde6f5;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .2s, box-shadow .2s, border-color .2s;
	box-shadow: 0 4px 20px rgba(13,35,84,.08);
}
.hnd-faq-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 40px rgba(13,35,84,.14);
	border-color: #b3c8f0;
}
/* Card image */
.hnd-faq-card__img {
	position: relative;
	overflow: hidden;
	padding:10px;
}
.hnd-faq-card__img img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	display: block;
	transition: transform .3s;
}
.hnd-faq-card:hover .hnd-faq-card__img img {
	transform: scale(1.04);
}
/* Card body */
.hnd-faq-card__body {
	padding: 16px 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.hnd-faq-card__cat {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}
.hnd-faq-card__cat a {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #3b9edd;
	text-decoration: none;
}
.hnd-faq-card__cat a:hover { text-decoration: underline; }

.hnd-faq-card__title {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.4;
	color: #1a2540;
	margin: 0;
}
.hnd-faq-card__title a {
	color: inherit;
	text-decoration: none;
}
.hnd-faq-card__title a:hover { color: #1e5bc6; }

.hnd-faq-card__asker {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	color: #6b7eaa;
}
.hnd-faq-card__asker svg { flex-shrink: 0; }

.hnd-faq-card__excerpt {
	font-size: 13px;
	color: #6b7eaa;
	line-height: 1.55;
	flex: 1;
}
.hnd-faq-card__excerpt p { margin: 0; }

/* Card footer */
.hnd-faq-card__footer {
	padding: 0 18px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.hnd-faq-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 34px;
	padding: 0 16px;
	border-radius: 17px;
	border: 2px solid #1e5bc6;
	color: #1e5bc6;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	background: transparent;
	transition: background .15s, color .15s;
}
.hnd-faq-btn:hover {
	background: #1e5bc6;
	color: #fff;
}
.hnd-faq-card__date {
	font-size: 12px;
	color: #9aa5c0;
	font-weight: 600;
}

/* Empty */
.hnd-faq-empty {
	text-align: center;
	padding: 32px;
	color: #9aa5c0;
	font-size: 15px;
}

/* ============================================================
   ACCORDION
   ============================================================ */
.hnd-faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hnd-acc-item {
	background: #fff;
	border: 1.5px solid #dde6f5;
	border-radius: 12px;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}
.hnd-acc-item:has(.hnd-acc-trigger[aria-expanded="true"]) {
	border-color: #1e5bc6;
	box-shadow: 0 4px 24px rgba(13,35,84,.1);
}

/* Trigger */
.hnd-acc-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	transition: background .15s;
}
.hnd-acc-trigger:hover { background: #f4f7ff; }
.hnd-acc-trigger[aria-expanded="true"] { background: #eef4ff; }

.hnd-acc-trigger__inner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	flex: 1;
}
.hnd-acc-trigger__icon {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: #eef4ff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1e5bc6;
	flex-shrink: 0;
	margin-top: 1px;
	transition: background .15s;
}
.hnd-acc-trigger[aria-expanded="true"] .hnd-acc-trigger__icon {
	background: #1e5bc6;
	color: #fff;
}
.hnd-acc-trigger__text {
	font-size: 15px;
	font-weight: 700;
	color: #1a2540;
	line-height: 1.4;
}
.hnd-acc-trigger__text small {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #6b7eaa;
	margin-top: 3px;
}
.hnd-acc-trigger__arrow {
	flex-shrink: 0;
	color: #9aa5c0;
	transition: transform .25s;
}
.hnd-acc-trigger[aria-expanded="true"] .hnd-acc-trigger__arrow {
	transform: rotate(180deg);
	color: #1e5bc6;
}

/* Panel */
.hnd-acc-panel { border-top: 1.5px solid #dde6f5; }
.hnd-acc-panel[hidden] { display: none; }

.hnd-acc-panel__inner {
	padding: 20px 20px 20px 68px; /* indent theo icon */
}
.hnd-acc-panel__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}
.hnd-acc-tag {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	border-radius: 12px;
	background: #e6faf8;
	color: #00695c;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.hnd-acc-panel__content {
	font-size: 15px;
	color: #2d3a5e;
	line-height: 1.75;
}
.hnd-acc-panel__content p { margin: 0 0 12px; }
.hnd-acc-panel__content p:last-child { margin-bottom: 0; }
.hnd-acc-panel__content ul {
	padding-left: 20px;
	list-style: disc;
	margin: 8px 0;
}

/* Expert credit */
.hnd-acc-panel__expert {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px dashed #dde6f5;
}
.hnd-acc-panel__expert-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg,#1e5bc6,#0d2354);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.hnd-acc-panel__expert strong {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #1a2540;
}
.hnd-acc-panel__expert span {
	font-size: 12px;
	color: #6b7eaa;
}

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */
.hnd-faq-page,
.hnd-faq-single {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 48px 0;
}

.hnd-faq-page__header,
.hnd-faq-single__header {
	margin-bottom: 28px;
}

.hnd-faq-page__eyebrow {
	margin: 0 0 8px;
	color: #0f8f8a;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.hnd-faq-page__title,
.hnd-faq-single__title {
	margin: 0;
	color: #102044;
	font-size: 34px;
	line-height: 1.2;
	letter-spacing: 0;
}

.hnd-faq-page__desc {
	max-width: 760px;
	margin-top: 12px;
	color: #53637f;
	font-size: 16px;
	line-height: 1.7;
}

.hnd-faq-page__pagination {
	margin-top: 32px;
}

.hnd-faq-single {
	max-width: 880px;
}

.hnd-faq-single__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.hnd-faq-single__terms a {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #e6faf8;
	color: #00796b;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}

.hnd-faq-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
	color: #6b7eaa;
	font-size: 13px;
}

.hnd-faq-single__thumb {
	margin: 0 0 24px;
}

.hnd-faq-single__thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.hnd-faq-single__box,
.hnd-faq-single__footer {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid #dde6f5;
	border-radius: 8px;
	background: #f8fbff;
}

.hnd-faq-single__box h2 {
	margin: 0 0 12px;
	color: #102044;
	font-size: 18px;
	line-height: 1.3;
	letter-spacing: 0;
}

.hnd-faq-single__box p {
	margin: 8px 0 0;
	color: #2d3a5e;
	font-size: 15px;
	line-height: 1.7;
}

.hnd-faq-single__content {
	color: #22304f;
	font-size: 17px;
	line-height: 1.85;
}

.hnd-faq-single__content p {
	margin: 0 0 18px;
}

.hnd-faq-single__expert {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hnd-faq-single__expert-avatar {
	width: 4rem;
    height: 4rem;
    background: url(/wp-content/uploads/2026/08/user-default.png) no-repeat center;
    background-size: cover;
	border-radius: 50%;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.hnd-faq-single__expert strong,
.hnd-faq-single__expert span {
	display: block;
}

.hnd-faq-single__expert strong {
	color: #102044;
}

.hnd-faq-single__expert span {
	color: #6b7eaa;
	font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
	.hnd-faq-grid {
		grid-template-columns: 1fr;
	}
	.hnd-acc-panel__inner {
		padding-left: 20px;
	}
	.hnd-faq-page,
	.hnd-faq-single {
		width: min(100% - 24px, 880px);
		padding: 32px 0;
	}
	.hnd-faq-page__title,
	.hnd-faq-single__title {
		font-size: 26px;
	}
}
