/* ============================================================
   Homepage layout — native, Elementor-free.
   Loads only on the front page (see inc/bootstrap.php).
   The splash hero already rendered by header.php sits above this.
   ============================================================ */

.uj-front {
	font: 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #1f2937;
}
.uj-front__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 3rem;
}

/* Headings shared across rows */
.uj-front h2 {
	font-family: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif !important;
	letter-spacing: 0.01em;
}

/* ------------------------------------------------------------
   Newsletter band — wraps the inline shortcode in extra spacing.
   The actual newsletter banner styling lives in site-chrome.css so
   it works on every page that renders the [uj_newsletter_inline]
   shortcode (homepage, Tours, thank-you, etc.).
   ------------------------------------------------------------ */
.uj-front-band--newsletter {
	margin: 0 0 2.5rem;
}

/* ------------------------------------------------------------
   Tours promo strip — split layout: image on left, copy on right.
   Image gets brand-red gradient panel as a sibling on the right
   so the headline/subhead/CTA always sit on a controlled background
   (no contrast roulette like the old gradient-only band).
   ------------------------------------------------------------ */
.uj-front-tours-promo {
	margin: 0 0 3rem;
	background: linear-gradient(135deg, #B3421D 0%, #8E331A 100%);
	color: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(179, 66, 29, 0.2);
}
.uj-front-tours-promo__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	min-height: 280px;
}
.uj-front-tours-promo__image {
	position: relative;
	overflow: hidden;
}
.uj-front-tours-promo__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.uj-front-tours-promo__copy {
	padding: 2rem 2rem 2.25rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 0.5rem;
}
.uj-front-tours-promo__heading {
	margin: 0 !important;
	font-size: clamp(1.875rem, 3.4vw, 2.75rem) !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.uj-front-tours-promo__sub {
	margin: 0.25rem 0 1.25rem;
	color: rgba(255, 255, 255, 0.95);
	max-width: 44ch;
	line-height: 1.5;
}
.uj-front-tours-promo__cta {
	display: inline-block;
	padding: 0.875rem 1.875rem;
	background: #ffffff;
	color: #B3421D !important;
	text-decoration: none;
	border-radius: 999px;
	font: 600 1rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.uj-front-tours-promo__cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

/* ------------------------------------------------------------
   Category rows
   ------------------------------------------------------------ */
.uj-front-row {
	margin: 0 0 3rem;
}
.uj-front-row__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding-bottom: 0.625rem;
	border-bottom: 2px solid #B3421D;
}
.uj-front-row__heading {
	margin: 0;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 600;
}
.uj-front-row__heading a {
	color: #B3421D;
	text-decoration: none;
}
.uj-front-row__heading a:hover { text-decoration: underline; }
.uj-front-row__more {
	color: #B3421D;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
	white-space: nowrap;
}
.uj-front-row__more:hover { text-decoration: underline; }

.uj-front-row__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

/* Cards */
.uj-front-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.uj-front-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	border-color: #d1d5db;
}
.uj-front-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.uj-front-card__image-wrap {
	aspect-ratio: 16 / 10;
	background: #f3f4f6;
	overflow: hidden;
}
.uj-front-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.uj-front-card__body {
	padding: 0.875rem 1rem 1rem !important;
}
.uj-front-card__title {
	margin: 0 0 0.375rem !important;
	padding: 0 !important;
	font: 700 1rem/1.3 Georgia, serif !important;
	color: #B3421D !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.uj-front-card__excerpt {
	margin: 0 !important;
	padding: 0 !important;
	font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	color: #4b5563 !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ------------------------------------------------------------
   /latest/ archive page — paginated card stream.
   Re-uses .uj-front-card from the homepage.
   ------------------------------------------------------------ */
.uj-latest-page__header {
	margin: 0 0 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #B3421D;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.uj-latest-page__heading {
	margin: 0;
	font-size: clamp(1.625rem, 3vw, 2.25rem);
	font-weight: 600;
	color: #B3421D;
}
.uj-latest-page__page-num {
	margin: 0;
	font-size: 0.875rem;
	color: #6b7280;
}
.uj-latest-page__grid {
	margin: 0 0 2.5rem;
}
.uj-latest-page__empty {
	margin: 2rem 0;
	color: #6b7280;
	text-align: center;
}

/* Pagination */
.uj-latest-page__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	justify-content: center;
	margin: 1.5rem 0 0;
	font: 600 0.9375rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.uj-latest-page__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.5rem 0.875rem;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fff;
	color: #1f2937;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.uj-latest-page__pagination a.page-numbers:hover {
	background: #FFF5F0;
	border-color: #B3421D;
	color: #B3421D;
}
.uj-latest-page__pagination .page-numbers.current {
	background: #B3421D;
	border-color: #B3421D;
	color: #fff;
}
.uj-latest-page__pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: #9ca3af;
}

/* Search results highlight — the user's query in the H1. */
.uj-search-page__q {
	color: #1f2937;
	font-style: italic;
}
.uj-search-page__empty {
	margin: 2.5rem 0;
	color: #4b5563;
	text-align: center;
	font-size: 1.0625rem;
}

/* ------------------------------------------------------------
   Category archive page — /category/{slug}/.
   Reuses the .uj-latest-page__* heading, grid, and pagination
   styles above, with extra rules below for category-specific bits.
   ------------------------------------------------------------ */
.uj-category-page__header {
	margin: 0 0 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #B3421D;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.uj-category-page__heading {
	margin: 0;
	font-size: clamp(1.625rem, 3vw, 2.25rem);
	font-weight: 600;
	color: #B3421D;
}
.uj-category-page__page-num {
	margin: 0;
	font-size: 0.875rem;
	color: #6b7280;
}
.uj-category-page__description {
	margin: 0 0 1.75rem;
	color: #4b5563;
	font-size: 1rem;
	line-height: 1.55;
}
.uj-category-page__grid {
	margin: 0 0 2.5rem;
}
.uj-category-page__empty {
	margin: 2rem 0;
	color: #6b7280;
	text-align: center;
}

/* Insider category intro blurb — warm gradient card with two CTAs */
.uj-category-page__insider-blurb {
	margin: 0 0 2.25rem;
	padding: 1.75rem 2rem 2rem;
	background: linear-gradient(135deg, #FFF5F0 0%, #FCE9DF 100%);
	border: 1px solid #F0C7B3;
	border-left: 4px solid #B3421D;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(179, 66, 29, 0.06);
}
.uj-category-page__insider-heading {
	margin: 0 0 0.875rem !important;
	font: 600 clamp(1.5rem, 2.6vw, 1.875rem)/1.2 "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif !important;
	color: #B3421D !important;
	letter-spacing: 0.01em;
}
.uj-category-page__insider-blurb p {
	margin: 0 0 0.75rem;
	color: #1f2937;
	line-height: 1.55;
}
.uj-category-page__insider-blurb a {
	color: #B3421D;
	font-weight: 600;
}
.uj-category-page__insider-blurb a:hover { text-decoration: underline; }
.uj-category-page__insider-fineprint {
	font-size: 0.875rem !important;
	color: #6b7280 !important;
}
.uj-category-page__insider-actions {
	display: flex;
	gap: 0.625rem;
	flex-wrap: wrap;
	margin: 1rem 0 0 !important;
}
.uj-category-page__insider-cta {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: #B3421D;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 999px;
	font: 600 0.9375rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	transition: background 0.15s ease, transform 0.15s ease;
}
.uj-category-page__insider-cta:hover {
	background: #8E331A;
	transform: translateY(-1px);
}
.uj-category-page__insider-cta--ghost {
	background: transparent;
	color: #B3421D !important;
	border: 2px solid #B3421D;
	padding: 0.625rem 1.375rem;
}
.uj-category-page__insider-cta--ghost:hover {
	background: #B3421D;
	color: #fff !important;
}

/* Date stamp on the latest-headlines cards — small, gray, sits above
   the title. Only used on .uj-front-card--latest so categorized rows
   stay clean. */
.uj-front-card--latest .uj-front-card__date {
	display: block;
	margin: 0 0 0.25rem;
	font: 600 0.75rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #6b7280;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Category badge for the latest-headlines cards (only the first row uses
   per-card category badges; categorized rows already have the section
   heading provide context). */
.uj-front-card__cat {
	position: absolute;
	bottom: 0.625rem;
	left: 0.625rem;
	display: inline-block;
	padding: 0.25rem 0.625rem;
	background: #B3421D;
	color: #fff;
	font: 700 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 3px;
}
.uj-front-card__image-wrap { position: relative; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 960px) {
	.uj-front-row__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
	.uj-front__inner { padding: 1.75rem 1rem 2.25rem; }
	.uj-front-tours-promo__inner {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.uj-front-tours-promo__image { aspect-ratio: 16 / 10; }
	.uj-front-tours-promo__copy { padding: 1.5rem 1.25rem 1.75rem; }
}
@media (max-width: 540px) {
	.uj-front-row__grid { grid-template-columns: 1fr; gap: 1rem; }
	.uj-front-row__head { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}
