/* Reach HR Trainings — front-end styles.
   Neutral, self-contained styling so the feature looks good in any theme. */

.reach-hr-trainings-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(3, 1fr);
}
.reach-hr-cols-1 { grid-template-columns: 1fr; }
.reach-hr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.reach-hr-cols-3 { grid-template-columns: repeat(3, 1fr); }
.reach-hr-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
	.reach-hr-trainings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
	.reach-hr-trainings-grid { grid-template-columns: 1fr; }
}

/* Card */
.reach-hr-training-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e7ebf3;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.reach-hr-training-card:hover {
	box-shadow: 0 12px 30px rgba(16, 33, 86, .10);
	transform: translateY(-3px);
}
.reach-hr-card-thumb { display: block; aspect-ratio: 16 / 10; background: #f1f4fb; }
.reach-hr-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reach-hr-card-thumb-placeholder {
	display: block; width: 100%; height: 100%;
	background: linear-gradient(135deg, #e9eefb, #f6f8fe);
}
.reach-hr-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.reach-hr-card-cats a { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #3c65f5; text-decoration: none; }
.reach-hr-card-title { font-size: 19px; line-height: 1.3; margin: 8px 0 12px; }
.reach-hr-card-title a { color: #05264e; text-decoration: none; }
.reach-hr-card-title a:hover { color: #3c65f5; }
.reach-hr-card-meta { list-style: none; padding: 0; margin: 0 0 12px; }
.reach-hr-card-meta li { font-size: 14px; color: #4f5e74; margin-bottom: 5px; }
.reach-hr-ico { margin-right: 6px; }
.reach-hr-card-excerpt { font-size: 14px; color: #66738c; margin-bottom: 16px; }
.reach-hr-card-footer {
	margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.reach-hr-card-fee { font-weight: 700; color: #05264e; }

/* Buttons */
.reach-hr-btn {
	display: inline-block;
	background: #3c65f5;
	color: #fff !important;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease;
}
.reach-hr-btn:hover { background: #2348d6; color: #fff; }
.reach-hr-btn-block { display: block; text-align: center; margin-top: 16px; }
.reach-hr-showcase-badge {
	display: block; text-align: center; margin-top: 16px;
	padding: 10px 16px; border-radius: 8px;
	background: #f0f1f4; color: #66738c; font-weight: 600; font-size: 14px;
}

/* Single */
.reach-hr-single-title { color: #05264e; margin: 6px 0 24px; }
.reach-hr-single-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 40px; align-items: start; }
@media (max-width: 850px) { .reach-hr-single-layout { grid-template-columns: 1fr; } }
.reach-hr-single-thumb img { width: 100%; border-radius: 12px; margin-bottom: 24px; }
.reach-hr-detail-box {
	background: #f7f9ff; border: 1px solid #e7ebf3; border-radius: 12px; padding: 24px;
	position: sticky; top: 20px;
}
.reach-hr-detail-box h3 { margin-top: 0; color: #05264e; }
.reach-hr-detail-box ul { list-style: none; padding: 0; margin: 0; }
.reach-hr-detail-box li {
	display: flex; flex-direction: column; gap: 2px;
	padding: 10px 0; border-bottom: 1px solid #e7ebf3; font-size: 14px;
}
.reach-hr-detail-box li:last-child { border-bottom: none; }
.reach-hr-detail-label {
	color: #66738c; font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
}
.reach-hr-detail-value {
	color: #05264e; font-weight: 600; text-align: left;
	white-space: normal; word-break: break-word; overflow-wrap: anywhere;
}

/* Single training gallery */
.reach-hr-gallery { margin-top: 36px; }
.reach-hr-gallery-title { color: #05264e; margin: 0 0 16px; }
.reach-hr-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}
.reach-hr-gallery-item {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border: 1px solid #e7ebf3;
	background: #f1f4fb;
}
.reach-hr-gallery-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .25s ease;
}
.reach-hr-gallery-item:hover .reach-hr-gallery-img { transform: scale(1.06); }

/* Apply form */
.reach-hr-apply-box {
	margin-top: 40px; padding: 28px; border: 1px solid #e7ebf3; border-radius: 12px; background: #fff;
}
.reach-hr-apply-box h3 { margin-top: 0; color: #05264e; }
.reach-hr-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.reach-hr-field label { font-size: 14px; font-weight: 600; color: #05264e; margin-bottom: 6px; }
.reach-hr-field input, .reach-hr-field textarea {
	border: 1px solid #d7deee; border-radius: 8px; padding: 11px 14px; font-size: 15px; width: 100%;
}
.reach-hr-field input:focus, .reach-hr-field textarea:focus { outline: none; border-color: #3c65f5; }
.reach-hr-req { color: #e23; }

.reach-hr-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.reach-hr-notice-success { background: #e8f6ee; color: #186a3b; border: 1px solid #bfe3cd; }
.reach-hr-notice-error { background: #fdecea; color: #922; border: 1px solid #f5c6c0; }

.reach-hr-no-trainings { padding: 40px; text-align: center; color: #66738c; }
.reach-hr-archive-title { color: #05264e; }
.reach-hr-archive-sub { color: #66738c; margin-bottom: 32px; }
.reach-hr-pagination { margin-top: 36px; }

.reach-hr-btn-sm { padding: 6px 14px; font-size: 13px; }

/* Login-required notice on the apply form */
.reach-hr-login-required {
	padding: 24px; border: 1px dashed #c7d2f0; border-radius: 10px;
	background: #f7f9ff; text-align: center;
}
.reach-hr-login-required p { margin: 0 0 14px; color: #05264e; font-weight: 600; }

/* My Trainings table (dashboards) */
.reach-hr-mytrainings-table { width: 100%; border-collapse: collapse; }
.reach-hr-mytrainings-table th,
.reach-hr-mytrainings-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #e7ebf3; vertical-align: middle; }
.reach-hr-mytrainings-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: #66738c; background: #f7f9ff; }
.reach-hr-mytrainings-table tbody tr:hover { background: #fafbff; }
.reach-hr-mytrainings-table a { color: #05264e; font-weight: 600; text-decoration: none; }
.reach-hr-mytrainings-table a:hover { color: #3c65f5; }
.reach-hr-mytrainings-empty { padding: 28px; text-align: center; color: #66738c; }
.reach-hr-mytrainings-empty .reach-hr-btn { margin-top: 12px; }

/* Status badges (shared: front + admin) */
.reach-hr-status {
	display: inline-block; padding: 3px 12px; border-radius: 999px;
	font-size: 12px; font-weight: 600; line-height: 1.6;
}
.reach-hr-status-new       { background: #e9eefb; color: #2348d6; }
.reach-hr-status-contacted { background: #fff4e0; color: #9a6700; }
.reach-hr-status-enrolled  { background: #e8f6ee; color: #186a3b; }
.reach-hr-status-closed    { background: #f0f1f4; color: #66738c; }

@media (max-width: 600px) {
	.reach-hr-mytrainings-table thead { display: none; }
	.reach-hr-mytrainings-table tr { display: block; border: 1px solid #e7ebf3; border-radius: 10px; margin-bottom: 14px; padding: 6px 0; }
	.reach-hr-mytrainings-table td { display: flex; justify-content: space-between; gap: 16px; border: none; padding: 8px 16px; }
	.reach-hr-mytrainings-table td::before { content: attr(data-label); font-weight: 600; color: #66738c; }
	.reach-hr-mytrainings-table td:last-child::before { content: ""; }
}
