/* Auto-extracted from page-training-hub.php (P1-5) */
/* ==========================================================
   Training Hub — Cards Layout
   ========================================================== */
.abq-page-wrapper .th-grid {
	width: 100%;
}
.th-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	margin-bottom: 28px;
}
.th-card {
	background: white;
	border-radius: var(--abq-radius-xl);
	overflow: hidden;
	box-shadow: var(--abq-shadow-md);
	transition: all 0.3s ease;
	border: 2px solid transparent;
	display: flex;
	flex-direction: column;
}
.th-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--abq-shadow-xl);
}
.th-card.active:hover {
	border-color: var(--abq-primary-light);
}
.th-card-inner {
	padding: 32px 28px 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.th-card-icon {
	font-size: 2.8rem;
	margin-bottom: 12px;
	display: block;
	line-height: 1;
}
.th-card-title {
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--abq-gray-800);
	margin: 0 0 6px;
}
.th-card-desc {
	font-size: 0.92rem;
	color: var(--abq-gray-500);
	margin: 0 0 16px;
	line-height: 1.5;
	flex: 1;
}
.th-card-meta {
	font-size: 0.85rem;
	color: var(--abq-gray-400);
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.th-progress-bar {
	width: 100%;
	height: 6px;
	background: var(--abq-gray-100);
	border-radius: 3px;
	margin: 8px 0 14px;
	overflow: hidden;
}
.th-progress-fill {
	height: 100%;
	border-radius: 3px;
	transition: width 0.6s ease;
}
.th-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	border-radius: var(--abq-radius-full);
	font-weight: 700;
	font-size: 0.95rem;
	color: white;
	text-decoration: none;
	transition: all 0.3s ease;
	margin-top: auto;
	align-self: center;
	cursor: pointer;
}
.th-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0,0,0,0.15);
	color: white;
}
.th-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: var(--abq-radius-full);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.th-badge-soon {
	background: #fef3c7;
	color: #92400e;
}
.th-badge-live {
	background: #d1fae5;
	color: #065f46;
}

/* ── Accent colors per card ── */
.ac-phonics  .th-progress-fill { background: linear-gradient(90deg, #f97316, #fb923c); }
.ac-phonics  .th-btn          { background: #f97316; }
.ac-listening .th-progress-fill { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.ac-listening .th-btn          { background: #3b82f6; }
.ac-speaking  .th-progress-fill { background: linear-gradient(90deg, #10b981, #34d399); }
.ac-speaking  .th-btn          { background: #10b981; }
.ac-grammar   .th-progress-fill { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.ac-grammar   .th-btn          { background: #8b5cf6; }
.ac-wordgames .th-progress-fill { background: linear-gradient(90deg, #ec4899, #f472b6); }
.ac-wordgames .th-btn          { background: #ec4899; }

/* ── Full-width word games card ── */
.th-card-full {
	grid-column: 1 / -1;
}
.th-card-full .th-card-inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
}
.th-card-full .th-card-icon-wrap {
	flex-shrink: 0;
}
.th-card-full .th-card-body {
	flex: 1;
	min-width: 200px;
	display: flex;
	flex-direction: column;
}
.th-card-full .th-btn {
	align-self: flex-start;
}
.th-games-badges {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.th-game-chip {
	font-size: 0.8rem;
	padding: 4px 14px;
	border-radius: var(--abq-radius-full);
	background: var(--abq-gray-50);
	color: var(--abq-gray-600);
	font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.th-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.th-card-full .th-card-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.th-card-full .th-btn {
		align-self: center;
	}
}
