/* JDL Jobs / Projects — native ACF-driven styling */

.jdl-archive,
.jdl-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 20px 72px;
}

/* ---- Archive header + filter ---- */
.jdl-archive__header { text-align: center; margin-bottom: 40px; }
.jdl-archive__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; }
.jdl-archive__intro { color: #5a6472; margin: 0 auto 24px; max-width: 640px; }

.jdl-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.jdl-filter__pill {
	display: inline-block; padding: 8px 16px; border-radius: 999px;
	border: 1px solid #d5dae1; color: #33404f; text-decoration: none;
	font-size: .9rem; line-height: 1; transition: all .15s ease;
}
.jdl-filter__pill:hover { border-color: #0a66c2; color: #0a66c2; }
.jdl-filter__pill.is-active { background: #0a66c2; border-color: #0a66c2; color: #fff; }

/* ---- Section wrapper (homepage / service pages) ---- */
.jdl-jobs { max-width: 1200px; margin: 56px auto; padding: 0 20px; }
.jdl-jobs__heading { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 32px; }

/* ---- Grid ---- */
.jdl-jobs__grid { display: grid; gap: 28px; }
.jdl-cols-3 { grid-template-columns: repeat(3, 1fr); }
.jdl-cols-2 { grid-template-columns: repeat(2, 1fr); }
.jdl-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .jdl-jobs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .jdl-jobs__grid { grid-template-columns: 1fr; } }

/* ---- Card ---- */
.jdl-job-card {
	display: flex; flex-direction: column; background: #fff; border-radius: 14px;
	overflow: hidden; box-shadow: 0 2px 10px rgba(20,30,50,.08);
	transition: transform .18s ease, box-shadow .18s ease;
}
.jdl-job-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(20,30,50,.14); }
.jdl-job-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef1f5; }
.jdl-job-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.jdl-job-card:hover .jdl-job-card__media img { transform: scale(1.05); }
.jdl-job-card__tag {
	position: absolute; left: 12px; top: 12px; background: rgba(10,102,194,.95); color: #fff;
	font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px;
}
.jdl-job-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.jdl-job-card__title { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.jdl-job-card__title a { color: #16202e; text-decoration: none; }
.jdl-job-card__title a:hover { color: #0a66c2; }
.jdl-job-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: .82rem; color: #6b7686; }
.jdl-job-card__loc::before { content: "\1F4CD"; margin-right: 4px; }
.jdl-job-card__excerpt { margin: 2px 0 0; color: #4a5563; font-size: .92rem; line-height: 1.5; }
.jdl-job-card__link { margin-top: auto; padding-top: 8px; color: #0a66c2; font-weight: 600; text-decoration: none; font-size: .9rem; }
.jdl-job-card__link:hover { text-decoration: underline; }

/* ---- Pagination ---- */
.jdl-pagination { margin-top: 44px; text-align: center; }
.jdl-pagination .page-numbers {
	display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: 8px;
	border: 1px solid #d5dae1; color: #33404f; text-decoration: none;
}
.jdl-pagination .page-numbers.current { background: #0a66c2; border-color: #0a66c2; color: #fff; }

.jdl-empty { text-align: center; color: #6b7686; padding: 40px 0; }

/* ---- Single ---- */
.jdl-single__header { text-align: center; margin-bottom: 28px; }
.jdl-single__service {
	display: inline-block; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem;
	font-weight: 700; color: #0a66c2; text-decoration: none; margin-bottom: 10px;
}
.jdl-single__title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 10px; }
.jdl-single__meta { display: flex; gap: 20px; justify-content: center; color: #6b7686; font-size: .95rem; }
.jdl-single__meta span:first-child::before { content: "\1F4CD"; margin-right: 5px; }
.jdl-single__hero { margin: 0 0 32px; border-radius: 16px; overflow: hidden; }
.jdl-single__hero img { width: 100%; height: auto; display: block; }
.jdl-single__body { max-width: 780px; margin: 0 auto 40px; font-size: 1.05rem; line-height: 1.7; color: #2c3644; }
.jdl-single__lead { font-size: 1.2rem; font-weight: 500; color: #16202e; }

/* ---- Gallery ---- */
.jdl-gallery { margin: 8px 0 48px; }
.jdl-gallery__heading { text-align: center; font-size: 1.5rem; margin: 0 0 24px; }
.jdl-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .jdl-gallery__grid { grid-template-columns: repeat(2, 1fr); } }
.jdl-gallery__item { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; }
.jdl-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.jdl-gallery__item:hover img { transform: scale(1.06); }

/* ---- CTA ---- */
.jdl-single__cta { text-align: center; background: #f4f7fb; border-radius: 16px; padding: 40px 24px; margin: 24px 0 32px; }
.jdl-single__cta h2 { margin: 0 0 8px; }
.jdl-single__cta p { margin: 0 0 20px; color: #5a6472; }
.jdl-btn {
	display: inline-block; background: #0a66c2; color: #fff; text-decoration: none;
	padding: 12px 28px; border-radius: 8px; font-weight: 600;
}
.jdl-btn:hover { background: #084d92; }
.jdl-single__back { text-align: center; }
.jdl-single__back a { color: #0a66c2; text-decoration: none; }
