/* ==========================================================
   CATEGORY ARCHIVE — CuracaoJobs.co
   Adapted from: blog_archive_v1.html, category_archive_v1.html
   Scoped to body.category (WordPress's automatic body class
   for all category archive URLs).

   Newsletter + WPForms blocks reuse the same CSS already
   declared in blog-archive.css — those selectors work here
   too because they only require the .cj-blog-newsletter and
   .cj-wpforms-wrap classes, which this template also uses.
   ========================================================== */

body.category .cj-category-archive {
	background: #F4F8F6;
	color: #174035;
	font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── BREADCRUMB ── */
body.category .cj-cat-breadcrumb {
	max-width: 760px;
	margin: 0 auto;
	padding: 1rem 2.5rem 0;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #8a9aaa;
	flex-wrap: wrap;
}

body.category .cj-cat-breadcrumb a {
	color: #8a9aaa;
	text-decoration: none;
}

body.category .cj-cat-breadcrumb a:hover {
	color: #2E8B72;
}

body.category .cj-cat-breadcrumb span {
	color: #174035;
}

body.category .cj-cat-breadcrumb i {
	font-size: 11px;
}

body.category .cj-cat-breadcrumb .rank-math-breadcrumb p {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

body.category .cj-cat-breadcrumb .separator {
	color: #8a9aaa;
}

/* ── CATEGORY HERO ── */
body.category .cj-cat-hero-wrap {
	max-width: 760px;
	margin: 1.25rem auto 0;
	padding: 0 2.5rem;
}

body.category .cj-cat-hero {
	background: #fff;
	border: 0.5px solid #D8E8E4;
	border-radius: 14px;
	padding: 1.5rem 1.75rem;
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

body.category .cj-cat-icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

body.category .cj-cat-icon i {
	font-size: 24px;
}

body.category .cj-cat-hero-text {
	flex: 1;
	min-width: 0;
}

body.category .cj-cat-hero-text h1 {
	font-size: 20px;
	font-weight: 700;
	color: #174035 !important;
	letter-spacing: -0.3px;
	margin-bottom: 3px;
}

body.category .cj-cat-hero-text p {
	font-size: 13px;
	color: #6B7280;
	line-height: 1.5;
	margin: 0;
}

body.category .cj-cat-count {
	font-size: 12px;
	font-weight: 600;
	color: #8a9aaa;
	background: #F4F8F6;
	border: 0.5px solid #D8E8E4;
	padding: 5px 12px;
	border-radius: 20px;
	flex-shrink: 0;
	white-space: nowrap;
}

/* ── CATEGORY PILLS ── */
body.category .cj-cat-filters-wrap {
	max-width: 760px;
	margin: 1.5rem auto 0;
	padding: 0 2.5rem;
}

body.category .cj-cat-pills {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

body.category .cj-cat-pill {
	font-size: 12px;
	font-weight: 500;
	padding: 6px 14px;
	border-radius: 20px;
	border: 0.5px solid #D8E8E4;
	background: #fff;
	color: #6B7280 !important;
	cursor: pointer;
	transition: all 0.15s;
	text-decoration: none;
}

body.category .cj-cat-pill:hover {
	border-color: #B8DDD5;
	color: #174035 !important;
}

/* Active pill color comes from inline style in the template
   (driven by the category's saved color from blog-functions.php).
   These rules handle text and a soft hover state. */
body.category .cj-cat-pill.cj-cat-pill-active {
	color: #fff !important;
	font-weight: 600;
}

body.category .cj-cat-pill.cj-cat-pill-active:hover {
	opacity: 0.9;
}

/* ── ARTICLE LIST ── */
body.category .cj-cat-article-list {
	max-width: 760px;
	margin: 1.5rem auto 0;
	padding: 0 2.5rem;
	display: flex;
	flex-direction: column;
}

body.category .cj-cat-article-row {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	padding: 1.5rem 0;
	border-bottom: 0.5px solid #D8E8E4;
	text-decoration: none;
	color: inherit;
}

body.category .cj-cat-article-row:first-child {
	padding-top: 0;
}

body.category .cj-cat-article-row:last-child {
	border-bottom: none;
}

body.category .cj-cat-article-row:hover .cj-cat-art-title {
	color: #2E8B72 !important;
}

/* Thumbnail */
body.category .cj-cat-art-thumb {
	width: 110px;
	height: 80px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

body.category .cj-cat-art-thumb i {
	font-size: 22px;
}

/* Article body */
body.category .cj-cat-art-body {
	flex: 1;
	min-width: 0;
}

body.category .cj-cat-art-tags {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

body.category .cj-cat-art-cat {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
}

body.category .cj-cat-art-title {
	font-size: 15px;
	font-weight: 700;
	color: #174035 !important;
	line-height: 1.3;
	margin-bottom: 5px;
	transition: color 0.12s;
}

body.category .cj-cat-art-excerpt {
	font-size: 12px;
	color: #6B7280;
	line-height: 1.65;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.category .cj-cat-art-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: #8a9aaa;
}

body.category .cj-cat-art-meta span {
	display: flex;
	align-items: center;
	gap: 3px;
}

body.category .cj-cat-art-meta i {
	font-size: 11px;
}

body.category .cj-cat-dot {
	color: #D8E8E4;
}

/* ── EMPTY STATE ── */
body.category .cj-cat-empty {
	padding: 3rem 0;
	text-align: center;
}

body.category .cj-cat-empty i {
	font-size: 36px;
	color: #D8E8E4;
	display: block;
	margin-bottom: 12px;
}

body.category .cj-cat-empty p {
	font-size: 13px;
	color: #8a9aaa;
	margin-bottom: 1rem;
}

body.category .cj-cat-empty a {
	font-size: 13px;
	font-weight: 600;
	color: #2E8B72 !important;
	text-decoration: none;
}

/* ── NEWSLETTER ──
   Reuses .cj-blog-newsletter / .cj-newsletter-inner / .cj-wpforms-wrap
   from blog-archive.css. Those class names work here without duplication
   because they are not scoped to body.blog in this file.
   We only need to declare the newsletter rules once here for body.category. */

body.category .cj-blog-newsletter {
	background: #E6F3EF;
	border-top: 0.5px solid #B8DDD5;
	border-bottom: 0.5px solid #B8DDD5;
	padding: 2.5rem;
	margin-top: 2rem;
}

body.category .cj-newsletter-inner {
	max-width: 520px;
	margin: 0 auto;
}

body.category .cj-newsletter-inner h3 {
	font-size: 18px;
	font-weight: 700;
	color: #174035 !important;
	margin-bottom: 6px;
	letter-spacing: -0.3px;
}

body.category .cj-newsletter-inner p {
	font-size: 13px;
	color: #6b7a8d;
	margin-bottom: 1.25rem;
}

body.category .cj-newsletter-note {
	font-size: 11px;
	color: #aab0bb;
	margin-top: 10px;
}

/* WPForms overrides — mirror of blog-archive.css, scoped to body.category */
body.category .cj-wpforms-wrap .wpforms-field {
	padding: 0 0 12px !important;
}

body.category .cj-wpforms-wrap .wpforms-field-checkbox legend {
	display: none !important;
}

body.category .cj-wpforms-wrap .wpforms-field-checkbox ul {
	list-style: none !important;
	display: flex !important;
	gap: 1.5rem !important;
	margin: 0 !important;
	padding: 0 !important;
	flex-wrap: wrap;
}

body.category .cj-wpforms-wrap .wpforms-field-checkbox li {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
}

body.category .cj-wpforms-wrap .wpforms-field-checkbox input[type="checkbox"] {
	accent-color: #2E8B72 !important;
	width: 15px !important;
	height: 15px !important;
}

body.category .cj-wpforms-wrap .wpforms-field-checkbox label {
	font-size: 13px !important;
	color: #174035 !important;
	cursor: pointer;
}

body.category .cj-wpforms-wrap .wpforms-field-description {
	display: none !important;
}

body.category .cj-wpforms-wrap form {
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-end !important;
	gap: 0 !important;
}

body.category .cj-wpforms-wrap .wpforms-field-container {
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-start !important;
	gap: 8px !important;
	flex: 1 !important;
	min-width: 0;
}

body.category .cj-wpforms-wrap .wpforms-submit-container {
	flex-shrink: 0 !important;
	margin-top: 0 !important;
}

body.category .cj-wpforms-wrap .wpforms-field-checkbox {
	width: 100% !important;
	order: 1;
	padding-bottom: 10px !important;
}

body.category .cj-wpforms-wrap [data-field-id="3"] {
	order: 2;
}

body.category .cj-wpforms-wrap .wpforms-field-email {
	order: 3;
	flex: 1 !important;
	min-width: 200px;
	padding: 0 !important;
	margin: 0 !important;
}

body.category .cj-wpforms-wrap .wpforms-field-label-hide {
	display: none !important;
}

body.category .cj-wpforms-wrap input[type="email"],
body.category .cj-wpforms-wrap input[type="text"] {
	flex: 1 !important;
	border: 0.5px solid #B8DDD5 !important;
	border-radius: 8px !important;
	padding: 11px 16px !important;
	font-size: 13px !important;
	color: #174035 !important;
	background: #fff !important;
	outline: none !important;
	font-family: 'Plus Jakarta Sans', sans-serif !important;
}

body.category .cj-wpforms-wrap button[type="submit"],
body.category .cj-wpforms-wrap .wpforms-submit {
	background: #2E8B72 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 11px 20px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	font-family: 'Plus Jakarta Sans', sans-serif !important;
	white-space: nowrap !important;
}

/* ── PAGINATION ──
   Same paginate_links() output as home.php — identical CSS. */
body.category .cj-cat-pagination {
	width: 100%;
	max-width: 760px;
	margin: 1.5rem auto;
	padding: 0 2.5rem;
	box-sizing: border-box;
}

body.category .cj-cat-pagination ul.page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 100%;
}

body.category .cj-cat-pagination a.page-numbers,
body.category .cj-cat-pagination span.page-numbers {
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0.5px solid #D8E8E4;
	border-radius: 7px;
	background: #fff;
	font-size: 13px;
	color: #5a6a7a !important;
	text-decoration: none;
	font-family: 'Plus Jakarta Sans', sans-serif;
}

body.category .cj-cat-pagination a.page-numbers:hover,
body.category .cj-cat-pagination span.page-numbers:hover {
	border-color: #B8DDD5;
}

body.category .cj-cat-pagination span.page-numbers.current {
	background: #2E8B72;
	color: #fff !important;
	border-color: #2E8B72;
	font-weight: 600;
}

body.category .cj-cat-pagination span.page-numbers.dots {
	border: none;
	background: transparent;
	color: #D8E8E4 !important;
}

/* ── MOBILE ── */
@media (max-width: 700px) {
	body.category .cj-cat-hero {
		flex-wrap: wrap;
		gap: 1rem;
	}

	body.category .cj-cat-count {
		order: -1;
	}

	body.category .cj-cat-article-row {
		gap: 1rem;
	}

	body.category .cj-cat-art-thumb {
		width: 80px;
		height: 64px;
	}
}

@media (max-width: 480px) {
	body.category .cj-cat-breadcrumb,
	body.category .cj-cat-hero-wrap,
	body.category .cj-cat-filters-wrap,
	body.category .cj-cat-article-list,
	body.category .cj-cat-pagination {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	body.category .cj-cat-pagination {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	body.category .cj-cat-pagination ul.page-numbers {
		gap: 3px;
	}

	body.category .cj-cat-pagination a.page-numbers,
	body.category .cj-cat-pagination span.page-numbers {
		min-width: 30px;
		height: 30px;
		padding: 0 7px;
		font-size: 12px;
	}

	body.category .cj-blog-newsletter {
		padding: 2rem 1.5rem;
	}

	body.category .cj-wpforms-wrap form {
		flex-direction: column;
	}
}
