/* ==========================================================================
   Yojana Astra Child — main stylesheet
   ========================================================================== */

:root {
	--yjn-primary: #0b3d91;
	--yjn-primary-dark: color-mix(in srgb, var(--yjn-primary) 78%, #000);
	--yjn-primary-soft: color-mix(in srgb, var(--yjn-primary) 9%, #fff);
	--yjn-accent: #ff7a00;
	--yjn-accent-soft: color-mix(in srgb, var(--yjn-accent) 12%, #fff);
	--yjn-green: #15803d;
	--yjn-green-soft: #e8f6ee;
	--yjn-red: #c2410c;
	--yjn-bg: #f5f7fb;
	--yjn-surface: #ffffff;
	--yjn-text: #0f172a;
	--yjn-muted: #5b6476;
	--yjn-border: #e3e8f1;
	--yjn-radius: 16px;
	--yjn-radius-sm: 10px;
	--yjn-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
	--yjn-shadow-hover: 0 2px 4px rgba(15, 23, 42, .06), 0 18px 40px rgba(15, 23, 42, .12);
	--yjn-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--yjn-font-head: "Poppins", "Inter", system-ui, sans-serif;
	--yjn-wrap: 1220px;
}

/* ---------- Base ---------- */
[class^="yjn-"], [class*=" yjn-"], [class^="yjn-"]::before, [class^="yjn-"]::after, [class*=" yjn-"]::before, [class*=" yjn-"]::after { box-sizing: border-box; }
body.yjn-site {
	font-family: var(--yjn-font);
	color: var(--yjn-text);
	background: var(--yjn-bg);
	-webkit-font-smoothing: antialiased;
}
body.yjn-site h1, body.yjn-site h2, body.yjn-site h3, body.yjn-site h4, body.yjn-site h5, body.yjn-site h6 {
	font-family: var(--yjn-font-head);
	color: var(--yjn-text);
	letter-spacing: -.01em;
}
body.yjn-site a { transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
body.yjn-site :focus-visible { outline: 3px solid color-mix(in srgb, var(--yjn-accent) 70%, transparent); outline-offset: 2px; }
.yjn-icon { flex-shrink: 0; vertical-align: -3px; }

/* Let our templates own the full width inside Astra */
body.yjn-layout #content > .ast-container {
	max-width: 100%;
	padding: 0;
	display: block;
}
body.yjn-layout .site-content { background: var(--yjn-bg); }
body.yjn-layout.ast-separate-container { background: var(--yjn-bg); }

.yjn-wrap { max-width: var(--yjn-wrap); margin: 0 auto; padding: 0 20px; }
.yjn-wrap--narrow { max-width: 860px; }
.yjn-wrap--page { max-width: 920px; padding-top: 32px; padding-bottom: 56px; }

/* ---------- Astra header & navigation ---------- */
body.yjn-site #masthead { position: relative; z-index: 99; }
body.yjn-site .site-header .main-header-bar,
body.yjn-site .ast-primary-header-bar {
	background: #fff;
	border-bottom: 1px solid var(--yjn-border);
	box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
}
body.yjn-site .site-title { margin: 0; }
body.yjn-site .site-title a, body.yjn-site .site-title a:hover {
	font-family: var(--yjn-font-head);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -.02em;
	color: var(--yjn-primary);
}
body.yjn-site .site-description { color: var(--yjn-muted); font-size: 13px; }

/* Desktop menu */
@media (min-width: 922px) {
	body.yjn-site .ast-desktop .main-header-menu > .menu-item > .menu-link,
	body.yjn-site .main-header-menu > .menu-item > .menu-link {
		font-family: var(--yjn-font);
		font-weight: 600;
		font-size: 15px;
		color: var(--yjn-text);
		padding: 0 14px;
		position: relative;
	}
	body.yjn-site .main-header-menu > .menu-item > .menu-link::after {
		content: "";
		position: absolute;
		left: 14px; right: 14px; bottom: 50%;
		margin-bottom: -18px;
		height: 3px;
		border-radius: 3px;
		background: var(--yjn-accent);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .2s ease;
	}
	body.yjn-site .main-header-menu > .menu-item > .menu-link:hover,
	body.yjn-site .main-header-menu > .current-menu-item > .menu-link,
	body.yjn-site .main-header-menu > .current-menu-ancestor > .menu-link {
		color: var(--yjn-primary);
	}
	body.yjn-site .main-header-menu > .menu-item > .menu-link:hover::after,
	body.yjn-site .main-header-menu > .current-menu-item > .menu-link::after,
	body.yjn-site .main-header-menu > .current-menu-ancestor > .menu-link::after {
		transform: scaleX(1);
	}
	body.yjn-site .main-header-menu .sub-menu {
		border: 1px solid var(--yjn-border);
		border-top: 3px solid var(--yjn-accent);
		border-radius: 0 0 12px 12px;
		box-shadow: var(--yjn-shadow-hover);
		padding: 6px 0;
	}
	body.yjn-site .main-header-menu .sub-menu .menu-link { font-size: 14px; padding: 10px 18px; color: var(--yjn-text); }
	body.yjn-site .main-header-menu .sub-menu .menu-link:hover { background: var(--yjn-primary-soft); color: var(--yjn-primary); }
}

/* Mobile header + menu */
@media (max-width: 921px) {
	body.yjn-site .ast-mobile-header-wrap .ast-primary-header-bar,
	body.yjn-site #ast-mobile-header .ast-primary-header-bar { min-height: 60px; }
	body.yjn-site .site-title a { font-size: 19px; }
	body.yjn-site .ast-mobile-header-wrap .menu-toggle,
	body.yjn-site .ast-header-break-point .menu-toggle {
		width: 44px; height: 44px;
		display: inline-flex; align-items: center; justify-content: center;
		border-radius: 12px !important;
		background: var(--yjn-primary-soft) !important;
		color: var(--yjn-primary) !important;
		border: 0 !important;
		padding: 0 !important;
	}
	body.yjn-site .menu-toggle .ast-mobile-svg { fill: var(--yjn-primary) !important; width: 22px; height: 22px; }
	body.yjn-site .ast-mobile-header-content,
	body.yjn-site .ast-mobile-popup-drawer .ast-mobile-popup-inner {
		background: #fff;
		border-top: 1px solid var(--yjn-border);
		box-shadow: 0 18px 30px rgba(15, 23, 42, .12);
	}
	body.yjn-site .ast-mobile-header-content .main-header-menu,
	body.yjn-site .ast-builder-menu-mobile .main-header-menu { padding: 6px 0 10px; border: 0; }
	body.yjn-site .ast-mobile-header-content .main-header-menu .menu-item,
	body.yjn-site .ast-builder-menu-mobile .main-header-menu .menu-item { border: 0; }
	body.yjn-site .ast-mobile-header-content .main-header-menu .menu-link,
	body.yjn-site .ast-builder-menu-mobile .main-header-menu .menu-link {
		display: flex; align-items: center;
		min-height: 50px;
		padding: 12px 22px !important;
		font-family: var(--yjn-font);
		font-size: 16px;
		font-weight: 600;
		line-height: 1.35;
		color: var(--yjn-text);
		border: 0 !important;
		border-bottom: 1px solid #eef1f6 !important;
	}
	body.yjn-site .ast-mobile-header-content .main-header-menu .menu-link:hover,
	body.yjn-site .ast-builder-menu-mobile .main-header-menu .menu-link:hover,
	body.yjn-site .ast-mobile-header-content .main-header-menu .current-menu-item > .menu-link,
	body.yjn-site .ast-builder-menu-mobile .main-header-menu .current-menu-item > .menu-link {
		color: var(--yjn-primary);
		background: var(--yjn-primary-soft);
		box-shadow: inset 4px 0 0 var(--yjn-accent);
	}
	body.yjn-site .ast-mobile-header-content .sub-menu .menu-link,
	body.yjn-site .ast-builder-menu-mobile .sub-menu .menu-link { padding-left: 38px !important; font-size: 15px; font-weight: 500; }
	body.yjn-site .ast-mobile-header-content .ast-menu-toggle,
	body.yjn-site .ast-builder-menu-mobile .ast-menu-toggle { width: 50px; height: 50px; top: 0; }
}

/* ---------- Top ticker ---------- */
.yjn-topbar {
	background: var(--yjn-primary-dark);
	color: #fff;
	font-size: 14px;
}
.yjn-topbar__inner { display: flex; align-items: center; gap: 14px; height: 38px; }
.yjn-topbar__label {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--yjn-accent);
	color: #fff;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 999px;
	white-space: nowrap;
	font-size: 13px;
}
.yjn-topbar__label .yjn-icon { width: 14px; height: 14px; }
.yjn-ticker { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.yjn-ticker__track { display: inline-flex; gap: 40px; white-space: nowrap; animation: yjn-ticker 40s linear infinite; }
.yjn-ticker:hover .yjn-ticker__track { animation-play-state: paused; }
.yjn-ticker__track a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.yjn-ticker__track a::before { content: "●"; color: var(--yjn-accent); margin-right: 10px; font-size: 9px; vertical-align: 2px; }
.yjn-ticker__track a:hover { color: #fff; text-decoration: underline; }
@keyframes yjn-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .yjn-ticker__track { animation: none; } }

/* ---------- Buttons, chips, badges ---------- */
.yjn-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none !important;
	border: 2px solid transparent;
	cursor: pointer;
}
.yjn-btn:hover { transform: translateY(-1px); }
.yjn-btn--primary { background: var(--yjn-primary); color: #fff !important; }
.yjn-btn--primary:hover { background: var(--yjn-primary-dark); }
.yjn-btn--accent { background: var(--yjn-accent); color: #fff !important; box-shadow: 0 6px 18px color-mix(in srgb, var(--yjn-accent) 35%, transparent); }
.yjn-btn--accent:hover { filter: brightness(.95); }
.yjn-btn--outline { background: #fff; color: var(--yjn-primary) !important; border-color: color-mix(in srgb, var(--yjn-primary) 30%, #fff); }
.yjn-btn--outline:hover { border-color: var(--yjn-primary); }
.yjn-btn--wa { background: #1fa855; color: #fff !important; }
.yjn-btn--tg { background: #229ed9; color: #fff !important; }
.yjn-btn--yt { background: #e62117; color: #fff !important; }

.yjn-chip {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: var(--yjn-primary);
	background: var(--yjn-primary-soft);
	padding: 3px 11px;
	border-radius: 999px;
	text-decoration: none !important;
}
.yjn-chip:hover { background: var(--yjn-primary); color: #fff; }
.yjn-chip--light { background: rgba(255, 255, 255, .16); color: #fff; }
.yjn-chip--light:hover { background: #fff; color: var(--yjn-primary); }

.yjn-status {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	line-height: 1.5;
	white-space: nowrap;
}
.yjn-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.yjn-status--open { background: var(--yjn-green-soft); color: var(--yjn-green); }
.yjn-status--upcoming { background: #fff4e0; color: #b45309; }
.yjn-status--closed { background: #f1f2f5; color: #6b7280; }

.yjn-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--yjn-accent);
	margin-bottom: 4px;
}
.yjn-eyebrow--green { color: var(--yjn-green); }

/* ---------- Search ---------- */
.yjn-search {
	position: relative;
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 999px;
	padding: 6px;
	box-shadow: 0 10px 30px rgba(8, 20, 60, .18);
	max-width: 620px;
	margin: 0;
}
.yjn-search__icon { position: absolute; left: 20px; color: var(--yjn-muted); display: flex; }
.yjn-search input[type="search"] {
	flex: 1;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 12px 12px 12px 48px !important;
	font-size: 16px;
	font-family: var(--yjn-font);
	color: var(--yjn-text);
	min-width: 0;
	outline: none;
}
.yjn-search button {
	background: var(--yjn-accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 12px 26px;
	font-weight: 700;
	font-size: 16px;
	font-family: var(--yjn-font);
	cursor: pointer;
}
.yjn-search button:hover { filter: brightness(.94); }
.yjn-search.side, .yjn-search.empty, .yjn-search.notfound { box-shadow: none; border: 1.5px solid var(--yjn-border); }
.yjn-search.side button { padding: 10px 16px; font-size: 14px; }
.yjn-search.side input[type="search"] { font-size: 14px; padding-left: 42px !important; }
.yjn-search.side .yjn-search__icon { left: 16px; }

/* ---------- HERO ---------- */
.yjn-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	padding: 64px 0 72px;
	background: linear-gradient(135deg, var(--yjn-primary-dark) 0%, var(--yjn-primary) 60%, color-mix(in srgb, var(--yjn-primary) 70%, #3b82f6) 100%);
}
.yjn-hero__bg {
	position: absolute; inset: 0;
	background:
		radial-gradient(600px 300px at 85% 10%, color-mix(in srgb, var(--yjn-accent) 35%, transparent), transparent 70%),
		radial-gradient(500px 260px at 0% 100%, rgba(255, 255, 255, .10), transparent 70%);
	pointer-events: none;
}
.yjn-hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.yjn-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.yjn-hero__badge {
	display: inline-block;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .22);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 18px;
}
body.yjn-site .yjn-hero__title {
	color: #fff;
	font-size: clamp(30px, 4.4vw, 50px);
	line-height: 1.2;
	font-weight: 800;
	margin: 0 0 14px;
}
.yjn-hero__sub { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .85); margin: 0 0 26px; max-width: 580px; }
.yjn-hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; }
.yjn-hero__tags span { color: rgba(255, 255, 255, .75); font-weight: 600; }
.yjn-hero__tags a {
	color: #fff; text-decoration: none;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .2);
	padding: 3px 12px; border-radius: 999px;
}
.yjn-hero__tags a:hover { background: #fff; color: var(--yjn-primary); }
.yjn-hero__stats { list-style: none; margin: 30px 0 0; padding: 0; display: flex; gap: 32px; flex-wrap: wrap; }
.yjn-hero__stats li { display: flex; flex-direction: column; }
.yjn-hero__stats strong { font-family: var(--yjn-font-head); font-size: 28px; font-weight: 800; line-height: 1.1; }
.yjn-hero__stats span { color: rgba(255, 255, 255, .75); font-size: 14px; }

.yjn-hero__panel {
	background: #fff;
	color: var(--yjn-text);
	border-radius: 20px;
	padding: 22px;
	box-shadow: 0 30px 60px rgba(4, 14, 50, .35);
}
.yjn-hero__panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
body.yjn-site .yjn-hero__panel-head h2 { font-size: 18px; margin: 0; }
.yjn-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: yjn-pulse 1.8s infinite; }
@keyframes yjn-pulse { 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.yjn-hero__list { list-style: none; margin: 0; padding: 0; counter-reset: yjn; }
.yjn-hero__list li { border-bottom: 1px dashed var(--yjn-border); counter-increment: yjn; }
.yjn-hero__list li:last-child { border-bottom: 0; }
.yjn-hero__list a { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; padding: 11px 0; text-decoration: none; color: var(--yjn-text); }
.yjn-hero__list a::before {
	content: counter(yjn); grid-row: span 2;
	width: 26px; height: 26px; border-radius: 8px;
	display: grid; place-items: center;
	background: var(--yjn-primary-soft); color: var(--yjn-primary);
	font-weight: 800; font-size: 13px;
}
.yjn-hero__list-title { font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yjn-hero__list a:hover .yjn-hero__list-title { color: var(--yjn-primary); }
.yjn-hero__list-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--yjn-muted); margin-top: 3px; }
.yjn-hero__list-meta .yjn-icon { width: 14px; height: 14px; }
.yjn-hero__panel-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; color: var(--yjn-primary); text-decoration: none; }
.yjn-hero__panel-more:hover { gap: 10px; }

/* ---------- Sections ---------- */
.yjn-section { padding: 60px 0; }
.yjn-section--tint { background: #fff; border-top: 1px solid var(--yjn-border); border-bottom: 1px solid var(--yjn-border); }
.yjn-section--tight { padding: 20px 0 60px; }
.yjn-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.yjn-section__head--center { justify-content: center; text-align: center; }
body.yjn-site .yjn-section__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin: 0 0 22px; line-height: 1.3; }
.yjn-section__head .yjn-section__title { margin: 0; }
.yjn-link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--yjn-primary); text-decoration: none; white-space: nowrap; }
.yjn-link-more:hover { gap: 10px; }

/* ---------- Categories ---------- */
.yjn-cats-section { padding-top: 0; margin-top: -34px; position: relative; z-index: 2; }
.yjn-cats-section .yjn-section__head { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yjn-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.yjn-cat {
	--c: var(--yjn-primary);
	display: flex; align-items: center; gap: 14px;
	background: #fff;
	border: 1px solid var(--yjn-border);
	border-radius: var(--yjn-radius);
	padding: 16px 18px;
	text-decoration: none !important;
	color: var(--yjn-text);
	box-shadow: var(--yjn-shadow);
}
.yjn-cat:hover { transform: translateY(-3px); box-shadow: var(--yjn-shadow-hover); border-color: color-mix(in srgb, var(--c) 40%, #fff); }
.yjn-cat--1 { --c: #0b3d91; } .yjn-cat--2 { --c: #ff7a00; } .yjn-cat--3 { --c: #15803d; }
.yjn-cat--4 { --c: #7c3aed; } .yjn-cat--5 { --c: #db2777; } .yjn-cat--6 { --c: #0891b2; }
.yjn-cat__icon {
	flex-shrink: 0;
	width: 52px; height: 52px; border-radius: 14px;
	display: grid; place-items: center;
	font-size: 26px;
	background: color-mix(in srgb, var(--c) 11%, #fff);
}
.yjn-cat__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.yjn-cat__name { font-family: var(--yjn-font-head); font-weight: 700; font-size: 17px; line-height: 1.3; }
.yjn-cat:hover .yjn-cat__name { color: var(--c); }
.yjn-cat__count { font-size: 13px; color: var(--yjn-muted); }
.yjn-cat__go { color: var(--c); opacity: .5; transition: transform .2s ease, opacity .2s ease; }
.yjn-cat:hover .yjn-cat__go { opacity: 1; transform: translateX(3px); }

/* ---------- Deadlines ---------- */
.yjn-deadlines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.yjn-deadline {
	display: flex; align-items: center; gap: 14px;
	background: var(--yjn-bg);
	border: 1px solid var(--yjn-border);
	border-radius: var(--yjn-radius);
	padding: 14px;
	text-decoration: none !important;
	color: var(--yjn-text);
}
.yjn-deadline:hover { background: #fff; box-shadow: var(--yjn-shadow-hover); border-color: transparent; }
.yjn-deadline__days {
	flex-shrink: 0; width: 64px; height: 64px; border-radius: 14px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: var(--yjn-green-soft); color: var(--yjn-green);
}
.yjn-deadline__days strong { font-family: var(--yjn-font-head); font-size: 22px; line-height: 1; }
.yjn-deadline__days small { font-size: 11px; font-weight: 700; }
.yjn-deadline__days.is-urgent { background: #fff1e6; color: var(--yjn-red); }
.yjn-deadline__body { flex: 1; min-width: 0; }
.yjn-deadline__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.4; }
.yjn-deadline__date { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--yjn-muted); margin-top: 4px; }
.yjn-deadline__date .yjn-icon { width: 14px; height: 14px; }
.yjn-deadline__go { color: var(--yjn-muted); }

/* ---------- Cards ---------- */
.yjn-latest-layout.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.yjn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.yjn-latest-layout.has-side .yjn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yjn-card {
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid var(--yjn-border);
	border-radius: var(--yjn-radius);
	overflow: hidden;
	box-shadow: var(--yjn-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
	margin: 0;
}
.yjn-card:hover { transform: translateY(-4px); box-shadow: var(--yjn-shadow-hover); }
.yjn-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--yjn-primary-soft); }
.yjn-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.yjn-card:hover .yjn-card__media img { transform: scale(1.05); }
.yjn-card__media .yjn-status { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.yjn-card__media .yjn-status--closed { background: #fff; }
.yjn-card__placeholder {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--yjn-primary-soft), var(--yjn-accent-soft));
}
.yjn-card__placeholder span { font-size: 52px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); }
.yjn-card__body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.yjn-card__body .yjn-chip { align-self: flex-start; }
body.yjn-site .yjn-card__title { font-size: 18px; line-height: 1.4; margin: 0; font-weight: 700; }
.yjn-card__title a { color: var(--yjn-text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yjn-card__title a:hover { color: var(--yjn-primary); }
.yjn-card__excerpt { color: var(--yjn-muted); font-size: 15px; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yjn-card__meta {
	margin-top: auto; padding-top: 10px; border-top: 1px solid var(--yjn-border);
	display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--yjn-muted);
}
.yjn-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.yjn-card__meta .yjn-icon { width: 14px; height: 14px; }
.yjn-card__deadline { color: var(--yjn-red); font-weight: 700; }

/* ---------- Popular ---------- */
.yjn-popular {
	background: #fff; border: 1px solid var(--yjn-border);
	border-radius: var(--yjn-radius); padding: 20px; box-shadow: var(--yjn-shadow);
	position: sticky; top: 100px;
}
body.yjn-site .yjn-popular__title { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 10px; }
.yjn-popular__title .yjn-icon { color: var(--yjn-accent); }
.yjn-popular ol { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.yjn-popular li { counter-increment: pop; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--yjn-border); }
.yjn-popular li:last-child { border-bottom: 0; }
.yjn-popular li::before {
	content: counter(pop, decimal-leading-zero);
	font-family: var(--yjn-font-head); font-weight: 800; font-size: 22px; line-height: 1;
	color: color-mix(in srgb, var(--yjn-primary) 25%, #fff);
}
.yjn-popular a { color: var(--yjn-text); font-weight: 700; line-height: 1.4; text-decoration: none; }
.yjn-popular a:hover { color: var(--yjn-primary); }

/* ---------- Category columns ---------- */
.yjn-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.yjn-columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yjn-columns--1 { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.yjn-column {
	--c: var(--yjn-primary);
	background: var(--yjn-bg); border: 1px solid var(--yjn-border);
	border-radius: var(--yjn-radius); overflow: hidden; display: flex; flex-direction: column;
}
.yjn-column--2 { --c: var(--yjn-accent); }
.yjn-column--3 { --c: var(--yjn-green); }
.yjn-column__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; background: var(--c); color: #fff; }
.yjn-column__head span { font-size: 22px; }
body.yjn-site .yjn-column__head h3 { color: #fff; font-size: 18px; margin: 0; }
.yjn-column ul { list-style: none; margin: 0; padding: 6px 18px; flex: 1; }
.yjn-column li { border-bottom: 1px solid var(--yjn-border); }
.yjn-column li:last-child { border-bottom: 0; }
.yjn-column li a { display: flex; gap: 6px; padding: 11px 0; color: var(--yjn-text); text-decoration: none; font-weight: 600; line-height: 1.45; }
.yjn-column li a .yjn-icon { color: var(--c); margin-top: 4px; width: 16px; height: 16px; }
.yjn-column li a:hover { color: var(--c); }
.yjn-column__more { display: flex; align-items: center; gap: 6px; padding: 12px 18px; font-weight: 700; color: var(--c); text-decoration: none; border-top: 1px solid var(--yjn-border); background: #fff; }

/* ---------- Steps ---------- */
.yjn-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.yjn-steps li {
	position: relative; background: #fff; border: 1px solid var(--yjn-border);
	border-radius: var(--yjn-radius); padding: 26px 22px; box-shadow: var(--yjn-shadow);
}
.yjn-steps__num {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	background: var(--yjn-primary); color: #fff; font-family: var(--yjn-font-head); font-weight: 800; font-size: 18px;
	margin-bottom: 14px;
}
.yjn-steps li:nth-child(2) .yjn-steps__num { background: var(--yjn-accent); }
.yjn-steps li:nth-child(3) .yjn-steps__num { background: var(--yjn-green); }
.yjn-steps li:nth-child(4) .yjn-steps__num { background: #7c3aed; }
body.yjn-site .yjn-steps h3 { font-size: 18px; margin: 0 0 6px; }
.yjn-steps p { margin: 0; color: var(--yjn-muted); line-height: 1.6; }

/* ---------- CTA ---------- */
.yjn-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: 34px 38px; border-radius: 22px; color: #fff;
	background:
		radial-gradient(400px 200px at 100% 0%, color-mix(in srgb, var(--yjn-accent) 45%, transparent), transparent 70%),
		linear-gradient(135deg, var(--yjn-primary-dark), var(--yjn-primary));
	box-shadow: 0 20px 50px color-mix(in srgb, var(--yjn-primary) 30%, transparent);
}
body.yjn-site .yjn-cta h2 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 6px; }
.yjn-cta p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 520px; }
.yjn-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- FAQ ---------- */
.yjn-faq { display: flex; flex-direction: column; gap: 12px; }
.yjn-faq details { background: #fff; border: 1px solid var(--yjn-border); border-radius: 14px; padding: 0 20px; box-shadow: var(--yjn-shadow); }
.yjn-faq summary {
	cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
	font-weight: 700; font-size: 17px; font-family: var(--yjn-font-head);
}
.yjn-faq summary::-webkit-details-marker { display: none; }
.yjn-faq summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
	background: var(--yjn-primary-soft); color: var(--yjn-primary); font-size: 20px; font-weight: 600;
}
.yjn-faq details[open] summary::after { content: "−"; background: var(--yjn-primary); color: #fff; }
.yjn-faq details p { margin: 0 0 18px; color: var(--yjn-muted); line-height: 1.7; }

/* ---------- Page hero (post / page / archive) ---------- */
.yjn-page-hero {
	background: linear-gradient(135deg, var(--yjn-primary-dark), var(--yjn-primary));
	color: #fff;
	padding: 34px 0 40px;
	position: relative;
	overflow: hidden;
}
.yjn-page-hero::after {
	content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--yjn-accent) 40%, transparent), transparent 70%);
	pointer-events: none;
}
.yjn-page-hero .yjn-wrap { position: relative; z-index: 1; }
.yjn-page-hero--post { padding-bottom: 46px; }
body.yjn-site .yjn-page-hero__title { color: #fff; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.25; font-weight: 800; margin: 10px 0 12px; max-width: 920px; }
.yjn-page-hero__emoji { margin-right: 6px; }
.yjn-page-hero__label { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--yjn-accent) 70%, #fff); margin-top: 6px; }
.yjn-page-hero__desc { color: rgba(255, 255, 255, .85); max-width: 760px; font-size: 17px; line-height: 1.6; }
.yjn-page-hero__desc p { margin: 0 0 6px; }
.yjn-page-hero__count { color: rgba(255, 255, 255, .7); margin: 6px 0 18px; font-size: 14px; }
.yjn-page-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.yjn-page-hero .yjn-search { margin-top: 6px; }

.yjn-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; }
.yjn-breadcrumb li { display: flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .7); }
.yjn-breadcrumb li + li::before { content: "›"; opacity: .6; margin-right: 2px; }
.yjn-breadcrumb a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.yjn-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.yjn-breadcrumb [aria-current] { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.yjn-post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.yjn-post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.yjn-post-meta .yjn-icon { width: 16px; height: 16px; opacity: .8; }

.yjn-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.yjn-subcats a { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 5px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.yjn-subcats a small { opacity: .7; margin-left: 4px; }
.yjn-subcats a:hover { background: #fff; color: var(--yjn-primary); }

/* ---------- Reading progress ---------- */
.yjn-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 9999; pointer-events: none; }
.yjn-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yjn-accent), #ffb347); transition: width .1s linear; }
body.admin-bar .yjn-progress { top: 32px; }

/* ---------- Single layout ---------- */
.yjn-single { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; padding-top: 28px; padding-bottom: 60px; align-items: start; }
.yjn-article {
	background: #fff; border: 1px solid var(--yjn-border); border-radius: 20px;
	padding: 32px; box-shadow: var(--yjn-shadow);
}
.yjn-single .yjn-article { margin-top: -54px; position: relative; z-index: 2; }
.yjn-article__thumb { margin: 0 0 24px; border-radius: 14px; overflow: hidden; }
.yjn-article__thumb img { width: 100%; height: auto; display: block; }

/* Prose */
.yjn-prose { font-size: 18px; line-height: 1.8; color: #1f2937; }
.yjn-prose > *:first-child { margin-top: 0; }
body.yjn-site .yjn-prose h2 {
	font-size: 26px; margin: 1.8em 0 .6em; line-height: 1.35; padding-left: 14px;
	border-left: 5px solid var(--yjn-accent); scroll-margin-top: 90px;
}
body.yjn-site .yjn-prose h3 { font-size: 21px; margin: 1.5em 0 .5em; color: var(--yjn-primary); scroll-margin-top: 90px; }
body.yjn-site .yjn-prose h4 { font-size: 18px; margin: 1.3em 0 .4em; }
.yjn-prose p { margin: 0 0 1.1em; }
.yjn-prose a { color: var(--yjn-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 600; }
.yjn-prose a:hover { color: var(--yjn-accent); }
.yjn-prose ul, .yjn-prose ol { margin: 0 0 1.2em 1.3em; padding: 0; }
.yjn-prose li { margin-bottom: .45em; }
.yjn-prose ul li::marker { color: var(--yjn-accent); }
.yjn-prose ol li::marker { color: var(--yjn-primary); font-weight: 800; }
.yjn-prose img { border-radius: 12px; height: auto; }
.yjn-prose blockquote {
	margin: 1.5em 0; padding: 18px 22px; border: 0; border-left: 5px solid var(--yjn-primary);
	background: var(--yjn-primary-soft); border-radius: 0 12px 12px 0; font-style: normal;
}
.yjn-prose blockquote p:last-child { margin: 0; }
.yjn-prose table, .yjn-prose .wp-block-table table {
	width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.4em 0;
	border: 1px solid var(--yjn-border); border-radius: 12px; overflow: hidden; font-size: 16px;
}
.yjn-prose .wp-block-table { overflow-x: auto; margin: 1.4em 0; }
.yjn-prose .wp-block-table table { margin: 0; }
.yjn-prose th, .yjn-prose td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--yjn-border); text-align: left; vertical-align: top; }
.yjn-prose tr:last-child td { border-bottom: 0; }
.yjn-prose thead th, .yjn-prose tr:first-child th { background: var(--yjn-primary); color: #fff; font-weight: 700; }
.yjn-prose tbody tr:nth-child(even) td { background: #f8fafd; }
.yjn-prose .wp-block-button__link { border-radius: 999px; background: var(--yjn-accent); font-weight: 700; text-decoration: none; color: #fff; }
.yjn-prose code { background: var(--yjn-primary-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

/* Info box */
.yjn-info {
	border: 2px solid color-mix(in srgb, var(--yjn-primary) 18%, #fff);
	border-radius: 16px; overflow: hidden; margin: 0 0 28px; background: #fff;
}
.yjn-info__head {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
	padding: 14px 20px; background: var(--yjn-primary-soft);
}
body.yjn-site .yjn-info__head h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 0; color: var(--yjn-primary); }
.yjn-info__table { width: 100%; border-collapse: collapse; margin: 0; border: 0; font-size: 16px; }
.yjn-info__table th, .yjn-info__table td { padding: 12px 20px; border: 0; border-bottom: 1px solid var(--yjn-border); text-align: left; vertical-align: top; }
.yjn-info__table th { width: 38%; color: var(--yjn-muted); font-weight: 600; background: #fbfcfe; }
.yjn-info__table th .yjn-icon { width: 16px; height: 16px; color: var(--yjn-primary); margin-right: 4px; }
.yjn-info__table td { font-weight: 700; color: var(--yjn-text); }
.yjn-info__table td a { color: var(--yjn-primary); }
.yjn-info__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--yjn-border); }
.yjn-info__list { padding: 18px 20px; }
.yjn-info__list + .yjn-info__list { border-left: 1px solid var(--yjn-border); }
body.yjn-site .yjn-info__list h3 { font-size: 16px; margin: 0 0 10px; }
.yjn-info__list ul { list-style: none; margin: 0; padding: 0; }
.yjn-info__list li { display: flex; gap: 8px; margin-bottom: 8px; line-height: 1.5; font-size: 16px; }
.yjn-info__list li .yjn-icon { color: var(--yjn-green); margin-top: 3px; width: 16px; height: 16px; }
.yjn-info__actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px; background: #fbfcfe; }

/* TOC */
.yjn-toc nav ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.yjn-toc nav li { margin: 0; }
.yjn-toc nav a {
	display: block; padding: 7px 10px; border-radius: 8px; color: var(--yjn-text);
	text-decoration: none; font-size: 15px; line-height: 1.4; border-left: 3px solid transparent;
}
.yjn-toc nav a:hover { background: var(--yjn-primary-soft); color: var(--yjn-primary); }
.yjn-toc nav a.is-active { background: var(--yjn-primary-soft); color: var(--yjn-primary); border-left-color: var(--yjn-accent); font-weight: 700; }
.yjn-toc nav .is-sub a { padding-left: 24px; font-size: 14px; color: var(--yjn-muted); }
.yjn-toc--inline { display: none; border: 1px solid var(--yjn-border); border-radius: 14px; padding: 0 16px; margin: 0 0 24px; background: var(--yjn-bg); }
.yjn-toc--inline summary { cursor: pointer; padding: 14px 0; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.yjn-toc--inline nav { padding-bottom: 12px; }

/* Apply box, tags, share */
.yjn-apply-box {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin: 30px 0 0; padding: 20px 22px; border-radius: 16px;
	background: linear-gradient(135deg, var(--yjn-accent-soft), #fff);
	border: 1px solid color-mix(in srgb, var(--yjn-accent) 30%, #fff);
}
.yjn-apply-box strong { font-size: 18px; font-family: var(--yjn-font-head); }
.yjn-apply-box p { margin: 2px 0 0; color: var(--yjn-muted); font-size: 15px; }
.yjn-apply-box__btns { display: flex; flex-wrap: wrap; gap: 10px; }

.yjn-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.yjn-tags a { background: var(--yjn-bg); border: 1px solid var(--yjn-border); color: var(--yjn-muted); padding: 4px 12px; border-radius: 999px; font-size: 14px; text-decoration: none; font-weight: 600; }
.yjn-tags a:hover { border-color: var(--yjn-primary); color: var(--yjn-primary); }

.yjn-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--yjn-border); }
.yjn-share__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-right: 4px; }
.yjn-share__btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
	font-size: 14px; font-weight: 700; color: #fff !important; text-decoration: none !important; border: 0; cursor: pointer;
	font-family: var(--yjn-font); line-height: 1.2;
}
.yjn-share__btn .yjn-icon { width: 16px; height: 16px; }
.yjn-share__btn:hover { transform: translateY(-2px); filter: brightness(.95); }
.yjn-share__btn--whatsapp { background: #1fa855; }
.yjn-share__btn--telegram { background: #229ed9; }
.yjn-share__btn--facebook { background: #1877f2; }
.yjn-share__btn--x { background: #111; }
.yjn-share__btn--copy { background: var(--yjn-bg); color: var(--yjn-text) !important; border: 1px solid var(--yjn-border); }
.yjn-share__btn--copy.is-done { background: var(--yjn-green); color: #fff !important; border-color: var(--yjn-green); }

.yjn-join-inline {
	margin: 22px 0 0; padding: 18px 20px; border-radius: 14px; background: var(--yjn-primary-soft);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.yjn-join-inline p { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--yjn-primary); }
.yjn-join-inline div { display: flex; flex-wrap: wrap; gap: 8px; }
.yjn-join-inline .yjn-btn { padding: 9px 16px; font-size: 14px; }

.yjn-author { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; padding: 20px; border-radius: 14px; background: var(--yjn-bg); }
.yjn-author img { border-radius: 50%; flex-shrink: 0; }
.yjn-author__label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--yjn-accent); }
.yjn-author strong { font-size: 18px; font-family: var(--yjn-font-head); }
.yjn-author p { margin: 4px 0 0; color: var(--yjn-muted); font-size: 15px; line-height: 1.6; }

.yjn-related { margin-top: 40px; }
.yjn-grid--3, .yjn-related .yjn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.yjn-related .yjn-card__excerpt { display: none; }
body.yjn-site .yjn-related .yjn-card__title { font-size: 16px; }

.yjn-comments { margin-top: 36px; background: #fff; border: 1px solid var(--yjn-border); border-radius: 20px; padding: 28px; box-shadow: var(--yjn-shadow); }
.yjn-comments .comments-area { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.yjn-comments .ast-comment-list .ast-comment, .yjn-comments .comment-respond { background: none; }
.yjn-comments input[type="submit"], .yjn-comments .submit { background: var(--yjn-primary); border-radius: 999px; padding: 12px 26px; font-weight: 700; border: 0; }

/* Sidebar */
.yjn-single__side { position: relative; }
.yjn-side-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
body.admin-bar .yjn-side-sticky { top: 132px; }
.yjn-side-box { background: #fff; border: 1px solid var(--yjn-border); border-radius: 18px; padding: 18px; box-shadow: var(--yjn-shadow); }
body.yjn-site .yjn-side-box h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 12px; }
.yjn-side-box h3 .yjn-icon { color: var(--yjn-accent); }
.yjn-side-box.yjn-toc nav { max-height: 46vh; overflow: auto; }
.yjn-side-list { list-style: none; margin: 0; padding: 0; }
.yjn-side-list li { border-bottom: 1px dashed var(--yjn-border); }
.yjn-side-list li:last-child { border-bottom: 0; }
.yjn-side-list a { display: flex; gap: 10px; padding: 10px 0; text-decoration: none; color: var(--yjn-text); align-items: flex-start; }
.yjn-side-list img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.yjn-side-list__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 15px; line-height: 1.4; }
.yjn-side-list small { display: block; color: var(--yjn-muted); font-size: 12px; margin-top: 2px; }
.yjn-side-list a:hover .yjn-side-list__title { color: var(--yjn-primary); }

/* Page */
.yjn-article--page { padding: 40px; margin-top: -40px; position: relative; z-index: 2; }
.yjn-updated { display: flex; align-items: center; gap: 6px; color: var(--yjn-muted); font-size: 14px; border-top: 1px solid var(--yjn-border); margin: 30px 0 0; padding-top: 16px; }
.yjn-fullwidth-content { margin: 0; }

/* Archive */
.yjn-archive { padding-top: 34px; padding-bottom: 60px; }
.yjn-pagination { margin-top: 40px; }
.yjn-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.yjn-pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center;
	border-radius: 12px; background: #fff; border: 1px solid var(--yjn-border);
	color: var(--yjn-text); font-weight: 700; text-decoration: none;
}
.yjn-pagination .page-numbers:hover { border-color: var(--yjn-primary); color: var(--yjn-primary); }
.yjn-pagination .page-numbers.current { background: var(--yjn-primary); border-color: var(--yjn-primary); color: #fff; }
.yjn-pagination .dots { background: none; border: 0; }

.yjn-empty { text-align: center; background: #fff; border: 1px dashed var(--yjn-border); border-radius: 20px; padding: 50px 24px; }
.yjn-empty__icon { font-size: 48px; display: block; margin-bottom: 8px; }
body.yjn-site .yjn-empty h2 { margin: 0 0 6px; font-size: 24px; }
.yjn-empty p { color: var(--yjn-muted); margin: 0 auto 20px; max-width: 520px; }
.yjn-empty .yjn-search { margin: 0 auto; }

/* 404 */
.yjn-404 { text-align: center; padding: 70px 0 30px; }
.yjn-404__code {
	display: block; font-family: var(--yjn-font-head); font-weight: 800; font-size: clamp(80px, 14vw, 150px); line-height: 1;
	background: linear-gradient(135deg, var(--yjn-primary), var(--yjn-accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.yjn-site .yjn-404 h1 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0 8px; }
.yjn-404 p { color: var(--yjn-muted); margin: 0 auto 24px; max-width: 540px; }
.yjn-404 .yjn-search { margin: 0 auto 22px; }

/* Site disclaimer */
.yjn-site-disclaimer { padding: 0 0 36px; background: var(--yjn-bg); }
.yjn-site-disclaimer__box {
	display: flex; gap: 14px; align-items: flex-start;
	background: #fffaf2; border: 1px solid #fde3bf; border-radius: 16px; padding: 18px 20px;
}
.yjn-site-disclaimer__icon { color: #b45309; margin-top: 2px; }
.yjn-site-disclaimer strong { color: #92400e; font-family: var(--yjn-font-head); }
.yjn-site-disclaimer p { margin: 4px 0 0; color: #6b4a1f; font-size: 15px; line-height: 1.6; }

/* Astra footer polish */
body.yjn-site .site-footer .site-below-footer-wrap,
body.yjn-site .site-footer .ast-small-footer {
	background: #0a1633;
	color: rgba(255, 255, 255, .75);
}
body.yjn-site .site-footer .site-below-footer-wrap a,
body.yjn-site .site-footer .ast-small-footer a { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.yjn-latest-layout.has-side { grid-template-columns: minmax(0, 1fr); }
	.yjn-latest-layout.has-side .yjn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.yjn-popular { position: static; }
	.yjn-deadlines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yjn-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 921px) {
	.yjn-hero { padding: 44px 0 64px; }
	.yjn-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.yjn-grid, .yjn-latest-layout.has-side .yjn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yjn-columns { grid-template-columns: minmax(0, 1fr); }
	.yjn-single { grid-template-columns: minmax(0, 1fr); }
	.yjn-single__side { display: none; }
	.yjn-toc--inline:not([hidden]) { display: block; }
	.yjn-article { padding: 24px; }
	.yjn-article--page { padding: 28px; }
}
@media (max-width: 640px) {
	.yjn-wrap { padding: 0 14px; }
	.yjn-topbar__label { padding: 2px 9px; font-size: 12px; }
	.yjn-hero__sub { font-size: 16px; }
	.yjn-hero__stats { gap: 22px; }
	.yjn-hero__stats strong { font-size: 22px; }
	.yjn-search { padding: 4px; }
	.yjn-search input[type="search"] { font-size: 15px; padding-left: 40px !important; }
	.yjn-search__icon { left: 16px; }
	.yjn-search button { padding: 11px 16px; font-size: 15px; }
	.yjn-deadlines { grid-template-columns: minmax(0, 1fr); }
	.yjn-grid, .yjn-latest-layout.has-side .yjn-grid, .yjn-grid--3, .yjn-related .yjn-grid { grid-template-columns: minmax(0, 1fr); }
	.yjn-steps { grid-template-columns: minmax(0, 1fr); }
	.yjn-section { padding: 44px 0; }
	.yjn-section__head { flex-direction: column; align-items: flex-start; }
	.yjn-section__head--center { align-items: center; }
	.yjn-cta { padding: 26px 22px; }
	.yjn-single { padding-top: 18px; }
	.yjn-single .yjn-article { margin-top: -34px; }
	.yjn-article { padding: 18px; border-radius: 16px; }
	.yjn-article--page { padding: 20px; margin-top: -30px; }
	.yjn-prose { font-size: 17px; }
	body.yjn-site .yjn-prose h2 { font-size: 22px; }
	.yjn-info__table th, .yjn-info__table td { padding: 10px 14px; font-size: 15px; }
	.yjn-info__table th { width: 44%; }
	.yjn-info__lists { grid-template-columns: minmax(0, 1fr); }
	.yjn-info__list + .yjn-info__list { border-left: 0; border-top: 1px solid var(--yjn-border); }
	.yjn-share__btn span { display: none; }
	.yjn-share__btn { padding: 10px; }
	.yjn-breadcrumb [aria-current] { max-width: 220px; }
	body.admin-bar .yjn-progress { top: 46px; }
}

/* ---------- Homepage guide (static front page content) ---------- */
.yjn-wrap--guide { max-width: 980px; }
.yjn-guide .yjn-section__head { display: block; margin-bottom: 22px; }
.yjn-guide .yjn-eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.yjn-guide .yjn-eyebrow .yjn-icon { width: 16px; height: 16px; }
body.yjn-site .yjn-guide__title { font-size: clamp(24px, 3vw, 34px); line-height: 1.3; margin: 0; }
.yjn-guide__meta { display: flex; align-items: center; gap: 6px; color: var(--yjn-muted); font-size: 14px; margin: 10px 0 0; }
.yjn-guide__article { box-shadow: none; }
.yjn-toc--always:not([hidden]) { display: block; }

/* ---------- Footer quick links ---------- */
.yjn-footer-links {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px;
	margin-top: 18px;
}
.yjn-footer-links a {
	color: var(--yjn-muted); font-size: 14px; font-weight: 600;
	text-decoration: none; padding: 6px 12px; border-radius: 999px;
}
.yjn-footer-links a:hover { color: var(--yjn-primary); background: var(--yjn-primary-soft); }

/* ---------- Global mobile safety ---------- */
body.yjn-site { overflow-x: clip; }
body.yjn-site img { max-width: 100%; height: auto; }
.yjn-prose iframe, .yjn-prose video, .yjn-prose embed { max-width: 100%; }
.yjn-prose pre { overflow-x: auto; }
.yjn-prose { overflow-wrap: anywhere; }
@media (max-width: 921px) {
	.yjn-prose table:not(.wp-block-table table) { display: block; overflow-x: auto; white-space: normal; }
}
@media (max-width: 640px) {
	.yjn-topbar__label > span { display: none; }
	.yjn-topbar__label { padding: 4px 8px; }
	.yjn-hero { padding: 34px 0 56px; }
	body.yjn-site .yjn-hero__title { font-size: 28px; }
	.yjn-hero__badge { font-size: 13px; margin-bottom: 14px; }
	.yjn-hero__tags { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: -14px; scrollbar-width: none; }
	.yjn-hero__tags::-webkit-scrollbar { display: none; }
	.yjn-hero__tags a, .yjn-hero__tags span { white-space: nowrap; flex-shrink: 0; }
	.yjn-hero__panel { padding: 18px; border-radius: 16px; }
	.yjn-cats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.yjn-cat { padding: 14px; }
	.yjn-cat__icon { width: 46px; height: 46px; font-size: 22px; }
	.yjn-columns--2 { grid-template-columns: minmax(0, 1fr); }
	.yjn-guide__article { padding: 18px; }
	.yjn-cta__actions, .yjn-cta__actions .yjn-btn { width: 100%; }
	.yjn-apply-box__btns, .yjn-apply-box__btns .yjn-btn, .yjn-info__actions .yjn-btn { width: 100%; }
	.yjn-join-inline div, .yjn-join-inline .yjn-btn { width: 100%; }
	.yjn-footer-links a { font-size: 13px; padding: 6px 10px; }
	.yjn-page-hero { padding: 26px 0 34px; }
	body.yjn-site .yjn-page-hero__title { font-size: 24px; }
	.yjn-post-meta { font-size: 14px; gap: 6px 14px; }
}

/* ==========================================================================
   v1.2 — mobile hardening
   ========================================================================== */
.yjn-hero__grid > *, .yjn-grid > *, .yjn-latest-layout > *, .yjn-single > *,
.yjn-columns > *, .yjn-cats > *, .yjn-deadlines > *, .yjn-steps > *,
.yjn-guide__layout > *, .yjn-info__lists > * { min-width: 0; }
.yjn-hero__title, .yjn-page-hero__title, .yjn-card__title, .yjn-section__title { overflow-wrap: break-word; hyphens: auto; }

/* Sticky header */
body.yjn-site #masthead { position: sticky; top: 0; transition: box-shadow .25s ease; }
body.admin-bar.yjn-site #masthead { top: 32px; }
@media (max-width: 782px) { body.admin-bar.yjn-site #masthead { top: 0; } }
body.yjn-site.yjn-scrolled #masthead { box-shadow: 0 8px 24px rgba(15, 23, 42, .10); }
body.yjn-site .ast-primary-header-bar { transition: min-height .25s ease; }
.yjn-side-sticky, .yjn-popular { top: 110px; }

@media (max-width: 640px) {
	.yjn-wrap { padding: 0 16px; }
	.yjn-hero__sub { font-size: 15px; margin-bottom: 20px; }
	.yjn-search { max-width: 100%; }
	.yjn-search input[type="search"] { font-size: 16px; padding: 11px 8px 11px 40px !important; }
	.yjn-search button { padding: 11px 14px; font-size: 14px; }
	.yjn-hero__tags { margin-right: -16px; padding-right: 16px; }
	.yjn-hero__stats { justify-content: space-between; gap: 10px; margin-top: 24px; }
	.yjn-hero__stats li { flex: 1; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 10px 12px; }
	.yjn-hero__stats strong { font-size: 20px; }
	.yjn-hero__stats span { font-size: 12px; }
	.yjn-hero__list-title { font-size: 15px; }
	.yjn-section { padding: 40px 0; }
	body.yjn-site .yjn-section__title { font-size: 22px; }
	.yjn-card__body { padding: 16px; }
	body.yjn-site .yjn-card__title { font-size: 17px; }
	.yjn-deadline { padding: 12px; }
	.yjn-single { padding-top: 14px; gap: 0; }
	.yjn-single .yjn-article { margin-top: -30px; }
	.yjn-article { padding: 16px; }
	.yjn-article__thumb { margin: -2px -2px 18px; border-radius: 12px; }
	.yjn-prose { font-size: 16.5px; line-height: 1.75; }
	body.yjn-site .yjn-prose h2 { font-size: 21px; padding-left: 10px; border-left-width: 4px; }
	body.yjn-site .yjn-prose h3 { font-size: 18px; }
	.yjn-prose ul, .yjn-prose ol { margin-left: 1.1em; }
	.yjn-info__head { padding: 12px 14px; }
	.yjn-info__table, .yjn-info__table tbody, .yjn-info__table tr, .yjn-info__table th, .yjn-info__table td { display: block; width: 100%; }
	.yjn-info__table th { border-bottom: 0; padding: 10px 14px 2px; background: none; font-size: 13px; }
	.yjn-info__table td { padding: 0 14px 10px; }
	.yjn-related { margin-top: 28px; }
	.yjn-comments { padding: 18px; border-radius: 16px; }
	.yjn-author { padding: 16px; }
	.yjn-cta { padding: 24px 18px; border-radius: 18px; }
	.yjn-faq summary { font-size: 16px; }
	.yjn-steps li { padding: 20px 18px; }
	.yjn-site-disclaimer__box { padding: 14px 16px; }
	.yjn-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; }
}

/* ==========================================================================
   v1.2 — animations
   ========================================================================== */
@keyframes yjn-fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes yjn-fade-left { from { opacity: 0; transform: translateX(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes yjn-float-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.12); } }
@keyframes yjn-float-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(50px, -30px); } }
@keyframes yjn-shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes yjn-wiggle { 0%, 100% { transform: rotate(0) scale(1); } 30% { transform: rotate(-10deg) scale(1.12); } 60% { transform: rotate(8deg) scale(1.12); } }
@keyframes yjn-menu-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes yjn-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes yjn-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--yjn-accent) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

/* Hero entrance */
.yjn-hero__text > * { animation: yjn-fade-up .8s cubic-bezier(.2, .7, .2, 1) both; }
.yjn-hero__text > *:nth-child(1) { animation-delay: .05s; }
.yjn-hero__text > *:nth-child(2) { animation-delay: .15s; }
.yjn-hero__text > *:nth-child(3) { animation-delay: .25s; }
.yjn-hero__text > *:nth-child(4) { animation-delay: .35s; }
.yjn-hero__text > *:nth-child(5) { animation-delay: .45s; }
.yjn-hero__text > *:nth-child(6) { animation-delay: .55s; }
.yjn-hero__panel { animation: yjn-fade-left .9s .3s cubic-bezier(.2, .7, .2, 1) both; }
.yjn-hero__list li { animation: yjn-fade-up .6s cubic-bezier(.2, .7, .2, 1) both; }
.yjn-hero__list li:nth-child(1) { animation-delay: .55s; }
.yjn-hero__list li:nth-child(2) { animation-delay: .65s; }
.yjn-hero__list li:nth-child(3) { animation-delay: .75s; }
.yjn-hero__list li:nth-child(4) { animation-delay: .85s; }
.yjn-hero__list li:nth-child(5) { animation-delay: .95s; }
.yjn-hero__list a { border-radius: 10px; transition: background-color .2s ease, transform .2s ease; }
.yjn-hero__list a:hover { background: var(--yjn-primary-soft); transform: translateX(4px); }
.yjn-search button { animation: yjn-ring 2.4s 1.4s ease-out 2; }

/* Floating background blobs */
.yjn-hero__bg::before {
	content: ""; position: absolute; width: 420px; height: 420px; right: 8%; top: -120px; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--yjn-accent) 45%, transparent), transparent 70%);
	animation: yjn-float-a 14s ease-in-out infinite;
}
.yjn-hero::before {
	content: ""; position: absolute; width: 360px; height: 360px; left: -100px; bottom: -140px; border-radius: 50%;
	background: radial-gradient(circle, rgba(96, 165, 250, .35), transparent 70%);
	animation: yjn-float-b 18s ease-in-out infinite;
	pointer-events: none;
}
.yjn-page-hero::after { animation: yjn-float-a 16s ease-in-out infinite; }

/* Page hero entrance */
.yjn-page-hero .yjn-wrap > * { animation: yjn-fade-up .7s cubic-bezier(.2, .7, .2, 1) both; }
.yjn-page-hero .yjn-wrap > *:nth-child(2) { animation-delay: .08s; }
.yjn-page-hero .yjn-wrap > *:nth-child(3) { animation-delay: .16s; }
.yjn-page-hero .yjn-wrap > *:nth-child(4) { animation-delay: .24s; }
.yjn-page-hero .yjn-wrap > *:nth-child(5) { animation-delay: .32s; }
.yjn-single .yjn-article, .yjn-article--page { animation: yjn-fade-up .8s .2s cubic-bezier(.2, .7, .2, 1) both; }

/* Scroll reveal (class added by JS, so content stays visible without JS) */
.yjn-reveal {
	opacity: 0;
	translate: 0 28px;
	transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1), transform .25s ease, box-shadow .25s ease, border-color .2s ease, background-color .25s ease;
	transition-delay: var(--yjn-delay, 0s), var(--yjn-delay, 0s), 0s, 0s, 0s, 0s;
}
.yjn-reveal.is-visible { opacity: 1; translate: 0 0; }

/* Card shine + richer hover */
.yjn-card__media::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: translateX(-120%) skewX(-20deg); pointer-events: none;
}
.yjn-card:hover .yjn-card__media::after { animation: yjn-shine .9s ease; }
.yjn-card:hover { transform: translateY(-6px); }
.yjn-card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s ease, color .2s ease; }
.yjn-card:hover .yjn-card__title a { background-size: 100% 2px; }

/* Category icon wiggle, steps & columns hover */
.yjn-cat:hover .yjn-cat__icon { animation: yjn-wiggle .6s ease; }
.yjn-steps li { transition: transform .25s ease, box-shadow .25s ease; }
.yjn-steps li:hover { transform: translateY(-6px); box-shadow: var(--yjn-shadow-hover); }
.yjn-steps li:hover .yjn-steps__num { animation: yjn-wiggle .6s ease; }
.yjn-column { transition: transform .25s ease, box-shadow .25s ease; }
.yjn-column:hover { transform: translateY(-4px); box-shadow: var(--yjn-shadow-hover); }
.yjn-column li a { transition: color .2s ease, padding-left .2s ease; }
.yjn-column li a:hover { padding-left: 6px; }
.yjn-deadline { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
.yjn-deadline:hover { transform: translateY(-3px); }
.yjn-deadline__days.is-urgent { animation: yjn-ring 2s ease-out infinite; }
.yjn-popular li a { transition: color .2s ease; }
.yjn-btn, .yjn-share__btn { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease; }
.yjn-btn:hover { box-shadow: 0 10px 24px rgba(15, 23, 42, .18); }

/* FAQ open animation */
.yjn-faq details { transition: box-shadow .25s ease, border-color .25s ease; }
.yjn-faq details[open] { border-color: color-mix(in srgb, var(--yjn-primary) 30%, #fff); box-shadow: var(--yjn-shadow-hover); }
.yjn-faq details[open] p { animation: yjn-drop .35s ease both; }
.yjn-faq summary::after { transition: transform .3s ease, background-color .2s ease; }
.yjn-faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }

/* Mobile menu items slide in when opened */
body.yjn-site.ast-main-header-nav-open .ast-mobile-header-content { animation: yjn-drop .3s ease both; }
body.yjn-site.ast-main-header-nav-open .ast-mobile-header-content .main-header-menu > .menu-item { animation: yjn-menu-in .4s cubic-bezier(.2, .7, .2, 1) both; }
body.yjn-site.ast-main-header-nav-open .main-header-menu > .menu-item:nth-child(1) { animation-delay: .04s; }
body.yjn-site.ast-main-header-nav-open .main-header-menu > .menu-item:nth-child(2) { animation-delay: .08s; }
body.yjn-site.ast-main-header-nav-open .main-header-menu > .menu-item:nth-child(3) { animation-delay: .12s; }
body.yjn-site.ast-main-header-nav-open .main-header-menu > .menu-item:nth-child(4) { animation-delay: .16s; }
body.yjn-site.ast-main-header-nav-open .main-header-menu > .menu-item:nth-child(5) { animation-delay: .20s; }
body.yjn-site.ast-main-header-nav-open .main-header-menu > .menu-item:nth-child(6) { animation-delay: .24s; }
body.yjn-site.ast-main-header-nav-open .main-header-menu > .menu-item:nth-child(7) { animation-delay: .28s; }
body.yjn-site .menu-toggle .ast-mobile-svg { transition: transform .3s ease; }
body.yjn-site .menu-toggle.toggled .ast-mobile-svg { transform: rotate(90deg); }

/* TOC active indicator */
.yjn-toc nav a { transition: background-color .2s ease, color .2s ease, border-color .2s ease, padding-left .2s ease; }
.yjn-toc nav a.is-active { padding-left: 14px; }

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.yjn-reveal { opacity: 1; translate: 0 0; }
}
