/* Jelarmmy Blog. Selectors are scoped and a little specific on purpose: Flatsome styles bare h1–h6, p, a, input and button. */
.jlb {
	--navy: #0b2545;
	--red: #c8102e;
	--text: #44526b;
	--muted: #5a6880;
	--line: #e8ecf2;
	color: var(--navy);
	background: #fff;
	font-size: 16px;
}
.jlb *, .jlb *::before, .jlb *::after { box-sizing: border-box; }
.jlb h1, .jlb h2, .jlb h3 { margin: 0; width: auto; color: inherit; font-weight: 700; }
.jlb p { margin: 0; }
.jlb form { margin: 0; }
.jlb a, .jlb a:hover, .jlb a:focus { color: inherit; text-decoration: none; }
.jlb a:focus-visible, .jlb button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.jlb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.jlb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.jlb-section { padding-top: 72px; }
.jlb .jlb-heading { font-size: 32px; line-height: 1.25; margin-bottom: 28px; }

/* Banner */
.jlb-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.jlb .jlb-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.jlb-hero::after { content: ""; position: absolute; inset: 0; background: rgba(11, 37, 69, .66); }
.jlb-hero-inner {
	position: relative; z-index: 1;
	max-width: 1200px; margin: 0 auto; padding: 88px 24px 72px;
	display: flex; flex-direction: column; gap: 20px;
}
.jlb .jlb-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.jlb h1 { font-size: 60px; line-height: 1.1; max-width: 820px; }
.jlb .jlb-hero-sub { font-size: 20px; line-height: 1.5; max-width: 620px; }

.jlb .jlb-search {
	display: flex; width: 100%; max-width: 560px; margin-top: 12px; padding: 6px;
	background: #fff; border-radius: 999px;
}
.jlb .jlb-search:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.jlb .jlb-search input[type="search"],
.jlb .jlb-search input[type="search"]:focus {
	flex: 1; min-width: 0; width: auto; max-width: none; height: 44px; margin: 0; padding: 0 20px;
	border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0;
	color: var(--navy); font-size: 16px; line-height: normal;
}
.jlb .jlb-search button {
	min-height: 44px; margin: 0; padding: 0 28px;
	border: 0; border-radius: 999px; background: var(--red); color: #fff;
	font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none; cursor: pointer;
}

.jlb-topics { display: flex; flex-wrap: wrap; gap: 10px; }
.jlb .jlb-topics a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; white-space: nowrap;
	border: 1px solid #fff; border-radius: 999px; color: #fff;
	font-size: 15px; font-weight: 700; transition: background .2s ease, color .2s ease;
}
.jlb .jlb-topics a:hover, .jlb .jlb-topics a[aria-current] { background: #fff; color: var(--navy); }

/* Cards */
.jlb .jlb-card {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border-radius: 16px; box-shadow: 0 6px 20px rgba(11, 37, 69, .08);
	transition: transform .25s ease, box-shadow .25s ease;
}
.jlb .jlb-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
@media (hover: hover) {
	.jlb .jlb-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 37, 69, .16); }
	.jlb .jlb-card:hover img { transform: scale(1.04); }
}
.jlb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 32px 28px; }
.jlb-grid:empty { display: none; }
#jlb-more { margin-top: 32px; }
.jlb-card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.jlb-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
.jlb-pill { padding: 5px 12px; border-radius: 999px; background: #fdecef; color: var(--red); font-size: 13px; font-weight: 700; line-height: 1.3; }
.jlb .jlb-card-title { font-size: 21px; line-height: 1.3; }
.jlb .jlb-card-excerpt {
	color: var(--text); font-size: 16px; line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.jlb .jlb-meta { margin-top: auto; padding-top: 4px; color: var(--muted); font-size: 14px; }

/* Featured story */
.jlb .jlb-feature {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	border-radius: 18px; box-shadow: 0 8px 26px rgba(11, 37, 69, .1);
}
.jlb-feature-media { position: relative; min-height: 440px; overflow: hidden; background: var(--line); }
.jlb .jlb-feature-media img { position: absolute; inset: 0; }
.jlb-feature-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 48px; }
.jlb .jlb-kicker { color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.jlb .jlb-feature h2 { font-size: 38px; line-height: 1.2; }
.jlb .jlb-feature-excerpt { color: var(--text); font-size: 18px; line-height: 1.6; }
.jlb .jlb-feature .jlb-meta { margin-top: 0; font-size: 15px; }
.jlb .jlb-read { color: var(--red); font-size: 16px; font-weight: 700; }
.jlb-empty { font-size: 18px; color: var(--text); }
.jlb .jlb-empty a { color: var(--red); font-weight: 700; }

/* Trips row */
.jlb-trips { margin-top: 80px; padding: 64px 0; background: #f3f6fa; }
.jlb-trips-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.jlb .jlb-trips-head .jlb-heading { margin-bottom: 0; }
.jlb .jlads--group { max-width: none; margin: 0; padding: 0; }

/* Load more */
.jlb-more { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 24px 64px; }
.jlb .jlb-more-btn {
	display: inline-flex; align-items: center; min-height: 52px; padding: 0 36px;
	border: 2px solid var(--navy); border-radius: 999px; color: var(--navy);
	font-size: 16px; font-weight: 700; transition: background .2s ease, color .2s ease;
}
.jlb .jlb-more-btn:hover { background: var(--navy); color: #fff; }
.jlb .jlb-count { color: var(--muted); font-size: 14px; }

/* Closing strip */
.jlb-cta { background: var(--navy); color: #fff; }
.jlb-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; padding-top: 64px; padding-bottom: 64px; }
.jlb-cta h2 { font-size: 32px; line-height: 1.25; margin-bottom: 8px; }
.jlb .jlb-cta p { font-size: 18px; line-height: 1.5; }
.jlb .jlb-cta-btn {
	display: inline-flex; align-items: center; min-height: 52px; padding: 0 32px;
	border-radius: 999px; background: var(--red); color: #fff; font-size: 16px; font-weight: 700;
}
.jlb .jlb-cta-btn:hover { color: #fff; opacity: .92; }

@media (max-width: 849px) {
	.jlb h1 { font-size: 46px; }
	.jlb-feature-body { padding: 32px; }
	.jlb .jlb-feature h2 { font-size: 30px; }
}

/* Phone: compact story rows */
@media (max-width: 640px) {
	.jlb-hero-inner { padding: 44px 24px 32px; gap: 14px; }
	.jlb h1 { font-size: 38px; line-height: 1.12; }
	.jlb .jlb-hero-sub { font-size: 17px; }
	.jlb .jlb-search button { padding: 0 20px; }
	.jlb .jlb-search input[type="search"], .jlb .jlb-search input[type="search"]:focus { padding: 0 16px; }
	.jlb-topics { flex-wrap: nowrap; overflow-x: auto; margin-right: -24px; padding-right: 24px; scrollbar-width: none; }
	.jlb-topics::-webkit-scrollbar { display: none; }
	.jlb .jlb-topics a { flex: 0 0 auto; padding: 0 16px; font-size: 14px; }

	.jlb-section { padding-top: 32px; }
	.jlb .jlb-heading { font-size: 25px; margin-bottom: 16px; }

	.jlb-feature-media { min-height: 0; aspect-ratio: 3 / 2; }
	.jlb-feature-body { padding: 20px; gap: 10px; }
	.jlb .jlb-feature h2 { font-size: 25px; line-height: 1.22; }
	.jlb .jlb-feature-excerpt { font-size: 16px; line-height: 1.5; }
	.jlb .jlb-feature .jlb-meta { font-size: 14px; }

	.jlb-grid { gap: 18px; }
	#jlb-more { margin-top: 18px; }
	.jlb .jlb-grid .jlb-card { flex-direction: row; gap: 14px; align-items: flex-start; border-radius: 0; box-shadow: none; overflow: visible; }
	.jlb-grid .jlb-card-media { flex: 0 0 104px; width: 104px; height: 104px; aspect-ratio: auto; border-radius: 12px; }
	.jlb-grid .jlb-card-body { min-width: 0; padding: 0; gap: 5px; }
	.jlb .jlb-grid .jlb-pill { padding: 0; background: none; font-size: 12px; }
	.jlb .jlb-card-title { font-size: 16px; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.jlb .jlb-card-excerpt { display: none; }
	.jlb .jlb-grid .jlb-meta { margin-top: 0; padding-top: 0; font-size: 13px; }

	.jlb-trips { margin-top: 36px; padding: 32px 0 28px; }
	.jlb-more { padding: 28px 24px; }
	.jlb .jlb-more-btn { width: 100%; justify-content: center; }
	.jlb-cta-inner { padding-top: 36px; padding-bottom: 44px; }
	.jlb-cta h2 { font-size: 25px; }
	.jlb .jlb-cta p { font-size: 16px; }
	.jlb .jlb-cta-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.jlb .jlb-card, .jlb .jlb-card img { transition: none; }
	.jlb .jlb-card:hover, .jlb .jlb-card:hover img { transform: none; }
}
