/* JoyRide single blog post — aligned to the JoyRide design system
   (wp-content/plugins/ctzoum-joyride-core/joyride-design-system.css) */
.jr-blog {
	/* Design-system tokens */
	--joy-font: 'Plus Jakarta Sans', sans-serif;
	--joy-primary: #1a2b4a;
	--joy-accent: #40BEDC;
	--joy-accent-dark: #2980b9;
	--joy-bg-main: #f5f7fa;
	--joy-surface: #ffffff;
	--joy-gray-text: #8a95a5;
	--joy-border: #dde1e6;
	--joy-radius: 14px;
	--joy-radius-lg: 20px;
	--joy-shadow-sm: 0 2px 8px rgba(0, 0, 0, .04);
	--joy-shadow-md: 0 4px 20px rgba(0, 0, 0, .06);
	--joy-shadow-lg: 0 10px 30px rgba(0, 0, 0, .1);
	--joy-shadow-color: 0 6px 20px rgba(41, 128, 185, .3);

	/* Semantic aliases mapped onto the design system */
	--jr-ink: var(--joy-primary);
	--jr-deep: var(--joy-primary);
	--jr-deep-2: var(--joy-accent-dark);
	--jr-teal: var(--joy-accent);
	--jr-accent-strong: var(--joy-accent-dark);
	--jr-body: #4a5568;
	--jr-muted: var(--joy-gray-text);
	--jr-cream: var(--joy-bg-main);
	--jr-line: var(--joy-border);

	font-family: var(--joy-font);
	color: var(--jr-ink);
	background: #fff;
	position: relative;
	-webkit-font-smoothing: antialiased;
}

.jr-blog *,
.jr-blog *::before,
.jr-blog *::after {
	box-sizing: border-box;
}

.jr-blog ::selection {
	background: var(--jr-teal);
	color: #fff;
}

/* Reading progress */
.jr-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: rgba(14, 59, 73, .08);
	z-index: 9999;
}

.jr-progress__bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--jr-teal), var(--jr-accent-strong));
	transition: width .08s linear;
}

/* Hero */
.jr-hero {
	position: relative;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}

.jr-hero__bg {
	position: absolute;
	inset: 0;
	background-color: var(--joy-primary);
	background-image:
		radial-gradient(120% 90% at 78% 14%, rgba(64, 190, 220, .55) 0%, rgba(41, 128, 185, 0) 55%),
		linear-gradient(155deg, #2980b9 0%, #1a2b4a 72%);
}

.jr-hero__bg--img {
	background-size: cover;
	background-position: center;
}

.jr-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 42, 53, .62) 0%, rgba(11, 42, 53, .42) 45%, rgba(11, 42, 53, .82) 100%);
}

.jr-hero__inner {
	position: relative;
	padding: 120px 28px 80px;
	max-width: 920px;
}

.jr-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 12.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, .75);
	margin-bottom: 22px;
}

.jr-breadcrumb a {
	color: rgba(255, 255, 255, .75);
	text-decoration: none;
}

.jr-hero__badge {
	margin-bottom: 20px;
}

.jr-hero__badge span {
	background: var(--jr-accent-strong);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 7px 15px;
	border-radius: 999px;
}

.jr-hero__title {
	font-family: var(--joy-font);
	font-weight: 800;
	color: #fff;
	font-size: clamp(36px, 6vw, 68px);
	line-height: 1.02;
	letter-spacing: -.035em;
	margin: 0 auto;
	max-width: 900px;
	text-wrap: balance;
}

.jr-hero__meta {
	display: inline-flex;
	align-items: center;
	gap: 22px;
	margin-top: 30px;
	color: rgba(255, 255, 255, .86);
	font-size: 13.5px;
	font-weight: 600;
	flex-wrap: wrap;
	justify-content: center;
}

.jr-author {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.jr-author__avatar {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--jr-teal), var(--jr-deep));
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 700;
	font-size: 12.5px;
}

.jr-dot {
	opacity: .5;
}

/* Body layout */
.jr-body {
	max-width: 1180px;
	margin: 0 auto;
	padding: 60px 28px 30px;
	display: flex;
	gap: 56px;
	align-items: flex-start;
}

.jr-article {
	flex: 1 1 600px;
	min-width: 0;
	max-width: 720px;
}

/* Post content (rendered from the editor) */
.jr-post-content {
	counter-reset: jr-section;
	font-size: 17px;
	line-height: 1.75;
	color: var(--jr-body);
}

.jr-post-content > p:first-child {
	font-size: clamp(19px, 2.3vw, 23px);
	line-height: 1.6;
	color: var(--jr-deep);
	font-weight: 500;
	margin: 0 0 30px;
}

.jr-post-content p {
	margin: 14px 0;
}

.jr-post-content h2 {
	counter-increment: jr-section;
	display: flex;
	gap: 20px;
	align-items: baseline;
	font-family: var(--joy-font);
	font-weight: 700;
	font-size: clamp(24px, 3.4vw, 32px);
	line-height: 1.12;
	color: var(--jr-deep);
	letter-spacing: -.025em;
	margin: 40px 0 8px;
	scroll-margin-top: 100px;
}

.jr-post-content h2::before {
	content: counter(jr-section, decimal-leading-zero);
	font-weight: 800;
	font-size: 40px;
	color: var(--jr-teal);
	line-height: 1;
	letter-spacing: -.04em;
}

.jr-post-content h3 {
	font-family: var(--joy-font);
	font-weight: 700;
	font-size: clamp(20px, 2.6vw, 24px);
	color: var(--jr-deep);
	letter-spacing: -.02em;
	margin: 30px 0 8px;
}

.jr-post-content a {
	color: var(--joy-accent-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.jr-post-content strong {
	color: var(--jr-ink);
}

.jr-post-content ul,
.jr-post-content ol {
	padding-left: 0;
	margin: 18px 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
	list-style: none;
}

.jr-post-content li {
	display: flex;
	gap: 12px;
	font-size: 16px;
	line-height: 1.55;
}

.jr-post-content li::before {
	content: '\203A';
	color: var(--jr-accent-strong);
	font-weight: 800;
	margin-top: 1px;
}

.jr-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
}

.jr-post-content figure {
	margin: 34px 0;
}

.jr-post-content figcaption {
	font-size: 13px;
	color: var(--jr-muted);
	margin-top: 10px;
	font-style: italic;
}

.jr-post-content blockquote {
	margin: 28px 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--jr-teal);
	color: var(--jr-deep);
	font-style: italic;
}

/* Tags + share */
.jr-meta-row {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid rgba(14, 59, 73, .10);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
}

.jr-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.jr-tag {
	background: rgba(64, 190, 220, .15);
	color: var(--joy-accent-dark);
	font-size: 12.5px;
	font-weight: 700;
	padding: 7px 14px;
	border-radius: 20px;
	text-decoration: none;
}

.jr-share {
	display: flex;
	align-items: center;
	gap: 10px;
}

.jr-share__label {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--jr-muted);
}

.jr-share__btn {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	border: 1px solid rgba(14, 59, 73, .14);
	display: grid;
	place-items: center;
	text-decoration: none;
	color: var(--jr-deep);
	transition: background .2s, border-color .2s, color .2s;
}

.jr-share__btn:hover {
	background: var(--jr-deep);
	border-color: var(--jr-deep);
	color: #fff;
}

/* Sidebar */
.jr-aside {
	position: sticky;
	top: 96px;
	flex: 1 1 320px;
	min-width: 290px;
	max-width: 360px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.jr-bookcard {
	background: linear-gradient(160deg, var(--joy-primary), var(--joy-accent-dark));
	border-radius: var(--joy-radius-lg);
	padding: 26px 24px;
	box-shadow: 0 18px 40px rgba(14, 59, 73, .20);
}

.jr-bookcard__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	font-family: var(--joy-font);
	font-weight: 700;
	font-size: 17px;
	color: #fff;
}

.jr-bookcard__text {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .72);
}

.jr-bookcard__cta {
	width: 100%;
}

.jr-bookcard__note {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	font-size: 12px;
	color: rgba(255, 255, 255, .62);
}

.jr-popular {
	background: var(--jr-cream);
	border: 1px solid var(--jr-line);
	border-radius: 18px;
	padding: 22px;
}

.jr-popular__title {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	color: var(--joy-accent-dark);
	margin-bottom: 14px;
	text-transform: uppercase;
}

.jr-popular__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.jr-popular__item {
	display: flex;
	gap: 12px;
	align-items: center;
	text-decoration: none;
	transition: opacity .2s;
}

.jr-popular__item:hover {
	opacity: .78;
}

.jr-popular__thumb {
	width: 56px;
	height: 48px;
	border-radius: 10px;
	flex-shrink: 0;
	background-color: var(--joy-accent-dark);
	background-image: radial-gradient(110% 85% at 80% 10%, rgba(64, 190, 220, .55) 0%, rgba(41, 128, 185, 0) 50%), linear-gradient(155deg, #2980b9 0%, #1a2b4a 78%);
	background-size: cover;
	background-position: center;
}

.jr-popular__name {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--jr-ink);
	line-height: 1.35;
}

/* Buttons */
.jr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	text-decoration: none;
	font-family: var(--joy-font);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .02em;
	padding: 14px 28px;
	border-radius: 25px;
	white-space: nowrap;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.jr-btn--accent {
	background: linear-gradient(135deg, var(--joy-accent), var(--joy-accent-dark));
	color: #fff;
	border: none;
	box-shadow: var(--joy-shadow-color);
}

.jr-btn--accent:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(41, 128, 185, .4);
	color: #fff;
}

/* White button — for use on dark navy/teal panels (hero, CTA band, book card) */
.jr-btn--white {
	background: var(--joy-surface);
	color: var(--joy-primary);
	border: none;
	box-shadow: var(--joy-shadow-lg);
}

.jr-btn--white:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
	color: var(--joy-accent-dark);
}

.jr-btn--dark {
	background: var(--joy-primary);
	color: #fff;
}

.jr-btn--dark:hover {
	transform: translateY(-2px);
	box-shadow: var(--joy-shadow-md);
}

.jr-btn--lg {
	padding: 16px 34px;
}

/* CTA band */
.jr-cta {
	background: linear-gradient(120deg, #1a2b4a 0%, #2980b9 55%, #40BEDC 130%);
	margin-top: 30px;
	position: relative;
	overflow: hidden;
}

.jr-cta__blob {
	position: absolute;
	right: -60px;
	bottom: -80px;
	width: 320px;
	height: 320px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
}

.jr-cta__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 56px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
	position: relative;
}

.jr-cta__text {
	max-width: 560px;
}

.jr-cta__text h2 {
	font-family: var(--joy-font);
	font-weight: 800;
	font-size: clamp(26px, 4vw, 40px);
	color: #fff;
	line-height: 1.08;
	letter-spacing: -.03em;
	margin: 0 0 12px;
	text-wrap: balance;
}

.jr-cta__text p {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .8);
	margin: 0;
}

/* Related posts */
.jr-related {
	max-width: 1180px;
	margin: 0 auto;
	padding: 64px 28px 70px;
}

.jr-related__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 30px;
	gap: 16px;
	flex-wrap: wrap;
}

.jr-related__eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .18em;
	color: var(--joy-accent-dark);
	margin-bottom: 8px;
	text-transform: uppercase;
}

.jr-related__title {
	font-family: var(--joy-font);
	font-weight: 700;
	font-size: clamp(26px, 3.6vw, 38px);
	color: var(--jr-deep);
	margin: 0;
	letter-spacing: -.03em;
}

.jr-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.jr-card {
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--jr-line);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(14, 59, 73, .06);
	transition: transform .22s, box-shadow .22s;
	display: block;
}

.jr-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 44px rgba(14, 59, 73, .14);
}

.jr-card__img {
	display: block;
	height: 188px;
	background-color: var(--joy-accent-dark);
	background-image: radial-gradient(120% 90% at 24% 16%, rgba(64, 190, 220, .5) 0%, rgba(26, 43, 74, 0) 55%), linear-gradient(150deg, #2980b9 0%, #1a2b4a 82%);
	background-size: cover;
	background-position: center;
}

.jr-card__body {
	display: block;
	padding: 20px 22px 24px;
}

.jr-card__cat {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	color: var(--jr-accent-strong);
	text-transform: uppercase;
}

.jr-card__title {
	display: block;
	font-family: var(--joy-font);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.22;
	color: var(--jr-ink);
	margin-top: 9px;
	letter-spacing: -.02em;
}

/* Card excerpt + meta (archive cards) */
.jr-card__excerpt {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--jr-body);
}

.jr-card__meta {
	display: block;
	margin-top: 14px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--joy-gray-text);
}

/* -----------------------------------------
   ARCHIVE / BLOG INDEX
----------------------------------------- */
.jr-archive-hero {
	position: relative;
	min-height: 340px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}

.jr-archive-hero__inner {
	position: relative;
	padding: 90px 28px;
	max-width: 820px;
}

.jr-archive-hero__eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--joy-accent);
	margin-bottom: 14px;
}

.jr-archive-hero__title {
	font-family: var(--joy-font);
	font-weight: 800;
	color: #fff;
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.05;
	letter-spacing: -.03em;
	margin: 0;
	text-wrap: balance;
}

.jr-archive-hero__desc {
	margin: 18px auto 0;
	max-width: 620px;
	color: rgba(255, 255, 255, .82);
	font-size: 16px;
	line-height: 1.6;
}

.jr-archive {
	max-width: 1180px;
	margin: 0 auto;
	padding: 60px 28px 40px;
}

.jr-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 28px;
}

.jr-archive__empty {
	text-align: center;
	color: var(--jr-body);
	padding: 50px 0;
	font-size: 17px;
}

/* Pagination */
.jr-pagination {
	margin-top: 46px;
}

.jr-pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.jr-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--joy-border);
	background: var(--joy-surface);
	color: var(--joy-primary);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.jr-pagination .page-numbers:hover {
	border-color: var(--joy-accent);
	color: var(--joy-accent-dark);
}

.jr-pagination .page-numbers.current {
	background: linear-gradient(135deg, var(--joy-accent), var(--joy-accent-dark));
	border-color: transparent;
	color: #fff;
}

.jr-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* Mobile sticky book bar */
.jr-mobilebar {
	display: none;
}

@media (max-width: 759px) {
	.jr-body {
		flex-direction: column;
		gap: 36px;
		padding: 40px 18px 20px;
	}

	.jr-article {
		max-width: none;
	}

	.jr-aside {
		position: static;
		max-width: none;
		width: 100%;
	}

	.jr-hero__inner {
		padding: 90px 20px 60px;
	}

	.jr-archive-hero__inner {
		padding: 70px 20px;
	}

	.jr-archive {
		padding: 40px 18px 20px;
	}

	.jr-mobilebar {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 95;
		background: rgba(255, 255, 255, .96);
		backdrop-filter: blur(14px);
		border-top: 1px solid rgba(14, 59, 73, .10);
		box-shadow: 0 -10px 28px rgba(14, 59, 73, .12);
		padding: 12px 16px;
		display: flex;
		align-items: center;
		gap: 14px;
	}

	.jr-mobilebar__text {
		flex-shrink: 0;
	}

	.jr-mobilebar__t1 {
		font-family: var(--joy-font);
		font-weight: 700;
		font-size: 15px;
		color: var(--jr-deep);
		line-height: 1.1;
	}

	.jr-mobilebar__t2 {
		font-size: 12px;
		color: var(--jr-muted);
		font-weight: 600;
	}

	.jr-mobilebar .jr-btn {
		flex: 1;
	}

	/* room for the fixed bar (single posts only) */
	.jr-blog:not(.jr-blog--archive) {
		padding-bottom: 84px;
	}
}
