/* ══════════════════════════════════════════════
   CourageAll Resources Hub — styles
   Color system matches the provided design:
   violet accent (#7C3AED), warm category colors,
   clean white cards on a soft off-white background.
══════════════════════════════════════════════ */

.ja-res-page {
	background: #FAFAFB;
	padding: 36px 0 70px;
	font-family: inherit;
}
.ja-res-page .container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.ja-res-header h1 { font-size: 32px; font-weight: 800; color: #111827; margin: 0 0 6px; }
.ja-res-header p { font-size: 15px; color: #6B7280; margin: 0 0 28px; }

/* ── Search bar ── */
.ja-res-search-bar { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.ja-res-search-bar__input {
	flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px;
	background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: 12px 16px;
}
.ja-res-search-bar__input i { color: #9CA3AF; }
.ja-res-search-bar__input input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; }
.ja-res-search-bar__filter {
	display: flex; align-items: center; gap: 8px; background: #fff;
	border: 1px solid #E5E7EB; border-radius: 10px; padding: 12px 16px; min-width: 170px;
}
.ja-res-search-bar__filter i:first-child { color: #9CA3AF; }
.ja-res-search-bar__filter select {
	border: none; outline: none; background: transparent; font-size: 14px; flex: 1;
	-webkit-appearance: none; appearance: none; cursor: pointer;
}
.ja-res-search-bar__filter i:last-child { color: #9CA3AF; font-size: 12px; }

/* ── Section headers ── */
.ja-res-section-header { margin-bottom: 18px; }
.ja-res-section-header h2 { font-size: 21px; font-weight: 800; color: #111827; margin: 0 0 4px; }
.ja-res-section-header p { font-size: 13.5px; color: #6B7280; margin: 0; }
.ja-res-section-header--with-link { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 44px; }
.ja-res-view-all { color: #7C3AED; font-weight: 700; font-size: 13.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ja-res-view-all:hover { text-decoration: underline; }

/* ── Category grid ── */
.ja-res-category-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 10px;
}
@media (max-width: 1000px) { .ja-res-category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ja-res-category-grid { grid-template-columns: 1fr; } }

.ja-res-category-card {
	background: #fff; border: 1px solid #EEF0F2; border-radius: 14px; padding: 22px;
	text-decoration: none; display: block; transition: box-shadow .15s, transform .15s;
}
.ja-res-category-card:hover { box-shadow: 0 6px 18px rgba(17,24,39,0.07); transform: translateY(-2px); }
.ja-res-category-card__icon {
	width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
	font-size: 22px; margin-bottom: 16px;
}
.ja-res-category-card h3 { font-size: 16px; font-weight: 700; color: #111827; margin: 0 0 6px; line-height: 1.3; }
.ja-res-category-card p { font-size: 13px; color: #6B7280; margin: 0 0 18px; line-height: 1.5; min-height: 38px; }
.ja-res-category-card__footer { display: flex; align-items: center; justify-content: space-between; }
.ja-res-category-card__footer span { font-weight: 700; font-size: 13.5px; }
.ja-res-category-card__footer i { color: #9CA3AF; font-size: 13px; }

/* ── Popular resources grid ── */
.ja-res-popular-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .ja-res-popular-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ja-res-popular-grid { grid-template-columns: 1fr; } }

.ja-res-pop-card {
	background: #fff; border: 1px solid #EEF0F2; border-radius: 14px; overflow: hidden;
	text-decoration: none; display: block; transition: box-shadow .15s, transform .15s;
}
.ja-res-pop-card:hover { box-shadow: 0 6px 18px rgba(17,24,39,0.07); transform: translateY(-2px); }
.ja-res-pop-card__img { position: relative; height: 110px; background: #f0f0f0; }
.ja-res-pop-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ja-res-pop-card__img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 26px; }
.ja-res-pop-card__badge {
	position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700;
	padding: 3px 10px; border-radius: 999px;
}
.ja-res-pop-card__body { padding: 16px; }
.ja-res-pop-card__body h3 { font-size: 14.5px; font-weight: 700; color: #111827; margin: 0 0 6px; line-height: 1.35; }
.ja-res-pop-card__body p { font-size: 12.5px; color: #6B7280; margin: 0 0 12px; line-height: 1.5; }
.ja-res-pop-card__rating { display: flex; align-items: center; gap: 5px; font-size: 12.5px; }
.ja-res-pop-card__rating i { color: #F59E0B; }
.ja-res-pop-card__rating strong { color: #111827; }
.ja-res-pop-card__rating span { color: #9CA3AF; }

/* ── Live search results ── */
.ja-res-live-results { margin-bottom: 30px; }
.ja-res-live-results .ja-res-popular-grid { margin-top: 10px; }
.ja-res-live-empty { text-align: center; padding: 50px 20px; color: #9CA3AF; }
.ja-res-live-empty i { font-size: 36px; margin-bottom: 12px; display: block; }

.ja-res-empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed #E5E7EB; border-radius: 14px; color: #9CA3AF; }
.ja-res-empty i { font-size: 40px; margin-bottom: 14px; display: block; }
.ja-res-empty h3 { color: #374151; margin: 0 0 6px; }

/* ── Single resource page ── */
.ja-res-breadcrumb { font-size: 13px; color: #9CA3AF; margin: 24px 0 20px; }
.ja-res-breadcrumb a { color: #9CA3AF; text-decoration: none; }
.ja-res-breadcrumb a:hover { color: #7C3AED; }
.ja-res-single-hero { border-radius: 16px; overflow: hidden; margin-bottom: 24px; max-height: 360px; }
.ja-res-single-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ja-res-single { background: #fff; border: 1px solid #EEF0F2; border-radius: 16px; padding: 32px; }
.ja-res-single__badges { display: flex; gap: 8px; margin-bottom: 14px; }
.ja-res-single h1 { font-size: 27px; font-weight: 800; color: #111827; margin: 0 0 14px; }
.ja-res-single__rating { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #F3F4F6; }
.ja-res-single__rating i { color: #F59E0B; }
.ja-res-single__rating span { color: #9CA3AF; }
.ja-res-single__content { font-size: 15.5px; line-height: 1.75; color: #374151; }
.ja-res-single__content p { margin: 0 0 16px; }
.ja-res-single__back { margin-top: 24px; }
.ja-res-single__back a { color: #7C3AED; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ja-res-single__back a:hover { text-decoration: underline; }
