/* Solchem Training Manager — Training Card Styles
   Font: Inter | Accent: #FF9900 */

.str-listing-grid {
	--str-orange: #FF9900;
	--str-navy: #0B172B;
	--str-navy-badge: #13294B;
	--str-desc: #56606F;
	--str-category: #7C8798;
	--str-border: #E7EAEE;
	--str-meta-border: #EEF0F2;
	--str-btn-outline-border: #D8DCE3;

	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	box-sizing: border-box;
	width: 100%;
}

.str-listing-grid * {
	box-sizing: border-box;
}

.str-listing-grid.str-columns-2 { grid-template-columns: repeat(2, 1fr); }
.str-listing-grid.str-columns-1 { grid-template-columns: 1fr; max-width: 420px; }
.str-listing-grid.str-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.str-listing-grid.str-columns-3,
	.str-listing-grid.str-columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.str-listing-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Card */
.str-card {
	background: #FFFFFF;
	border: 1px solid var(--str-border);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.str-card:hover {
	box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
	transform: translateY(-2px);
}

/* Image */
.str-card-image-wrap {
	position: relative;
	width: 100%;
	height: 238.75px;
	overflow: hidden;
	background: #0B172B;
}

.str-card-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.str-card-image-placeholder {
	background: linear-gradient(135deg, #eef0f2, #e2e5ea);
}

/* Badge */
.str-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #FFFFFF;
	padding: 5px 12px;
	border-radius: 999px;
	line-height: 1;
	white-space: nowrap;
}

.str-badge-orange {
	background: var(--str-orange);
}

.str-badge-dark {
	background: var(--str-navy-badge);
}

.str-badge-muted {
	background: #6B7280;
}

/* Body */
.str-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.str-category {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--str-category);
	margin-bottom: 8px;
}

.str-title {
	margin: 0 0 8px 0;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 17.4px;
	line-height: 1.3;
	color: var(--str-navy);
}

.str-title a {
	color: inherit;
	text-decoration: none;
}

.str-title a:hover {
	text-decoration: underline;
}

.str-desc {
	margin: 0 0 16px 0;
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 12.9px;
	line-height: 1.55;
	color: var(--str-desc);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Meta rows */
.str-meta {
	border-top: 1px solid var(--str-meta-border);
	padding-top: 14px;
	margin-top: auto;
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.str-meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: var(--str-desc);
	line-height: 1.4;
}

.str-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
}

/* Footer */
.str-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.str-card-footer-past {
	justify-content: flex-end;
}

.str-btn {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 16px;
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.str-btn-fill {
	background: var(--str-orange);
	color: #FFFFFF;
	border: 1px solid var(--str-orange);
}

.str-btn-fill:hover {
	background: #E68A00;
	border-color: #E68A00;
}

.str-btn-outline {
	background: #FFFFFF;
	color: var(--str-navy);
	border: 1px solid var(--str-btn-outline-border);
}

.str-btn-outline:hover {
	border-color: #B9C0CC;
}

.str-view-details {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--str-navy);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.str-view-details svg {
	color: var(--str-navy);
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.str-view-details:hover svg {
	transform: translateX(2px);
}

.str-empty-state {
	font-family: 'Inter', sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 64px 20px;
	grid-column: 1 / -1;
}

.str-empty-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #FFF4E5;
	color: var(--str-orange, #FF9900);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.str-empty-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--str-navy, #0B172B);
	margin: 0 0 8px;
}

.str-empty-text {
	font-size: 14px;
	color: var(--str-desc);
	max-width: 380px;
	margin: 0 0 22px;
	line-height: 1.5;
}

.str-clear-filters {
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: #FFFFFF;
	background: var(--str-navy, #0B172B);
	border: none;
	border-radius: 8px;
	padding: 11px 22px;
	cursor: pointer;
}

.str-clear-filters:hover {
	background: #182541;
}

/* ==========================================================================
   Listing wrapper: toolbar (filter pills + search), results, pagination
   ========================================================================== */

.str-listing-wrap {
	--str-orange: #FF9900;
	--str-navy: #0B172B;
	--str-navy-badge: #13294B;
	--str-desc: #56606F;
	--str-category: #7C8798;
	--str-border: #E7EAEE;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	box-sizing: border-box;
	width: 100%;
}

.str-listing-wrap *,
.str-listing-wrap *::before,
.str-listing-wrap *::after {
	box-sizing: border-box;
}

/* Toolbar row: pills left, search right */
.str-listing-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.str-filter-pills {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.str-pill {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--str-navy);
	background: #FFFFFF;
	border: 1px solid var(--str-border);
	border-radius: 999px;
	padding: 9px 16px;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.str-pill:hover {
	border-color: #C7CCD4;
}

.str-pill-active {
	background: var(--str-navy);
	border-color: var(--str-navy);
	color: #FFFFFF;
}

.str-pill-active:hover {
	border-color: var(--str-navy);
}

/* Search box */
.str-listing-wrap .str-search-box {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-width: 220px;
}

.str-listing-wrap .str-search-icon {
	position: absolute !important;
	left: 12px !important;
	top: 50% !important;
	transform: translateY(-50%);
	pointer-events: none;
	z-index: 1;
}

.str-listing-wrap .str-search-input {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: var(--str-navy);
	width: 100%;
	box-sizing: border-box !important;
	padding: 10px 14px 10px 38px !important;
	border: 1px solid var(--str-border) !important;
	border-radius: 8px !important;
	background: #FFFFFF !important;
	outline: none !important;
	box-shadow: none !important;
	transition: border-color 0.15s ease;
}

.str-listing-wrap .str-search-input::placeholder {
	color: #9AA3AF;
}

.str-listing-wrap .str-search-input:focus {
	border-color: var(--str-orange) !important;
}

/* Results loading state */
.str-listing-results.str-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* Pagination */
.str-listing-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 32px;
}

.str-listing-pagination:empty {
	margin-top: 0;
}

.str-page-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--str-navy);
	background: #FFFFFF;
	border: 1px solid var(--str-border);
	border-radius: 8px;
	padding: 9px 14px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.str-page-btn:hover:not(:disabled) {
	border-color: #C7CCD4;
}

.str-page-btn:disabled {
	color: #C2C8D0;
	cursor: not-allowed;
}

.str-page-numbers {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 4px;
}

.str-page-num {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--str-navy);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
	min-width: 34px;
	height: 34px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.str-page-num:hover {
	border-color: var(--str-border);
}

.str-page-num-active {
	background: var(--str-navy);
	border-color: var(--str-navy);
	color: #FFFFFF;
}

.str-page-num-active:hover {
	border-color: var(--str-navy);
}

.str-page-ellipsis {
	color: var(--str-category);
	padding: 0 2px;
	font-size: 13px;
}

@media (max-width: 640px) {
	.str-listing-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.str-search-box {
		width: 100%;
	}
}
