/*
Theme Name: SehGO Pro Lite
Theme URI: https://sehgo.com
Author: SehGo Infotech
Author URI: https://sehgo.com
Description: Ultra-fast SEO & news/blog WordPress theme. Rich Google snippets, plugin-friendly, zero bloat. Designed By SehGo Infotech.
Version: 2.2.64
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sehgo-pro-lite
Tags: blog, news, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support
*/

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

:root {
	--c-bg:        #f6f7f9;
	--c-surface:   #ffffff;
	--c-text:      #12151c;
	--c-muted:     #5c6370;
	--c-accent:    #1565c0;
	--c-accent-dk: #0d47a1;
	--c-border:    #e3e7ee;
	--c-focus:     #1976d2;
	--radius:      8px;
	--shadow:      0 1px 12px rgba(18, 21, 28, .06);
	--max-w:       760px;
	--site-w:      1140px;
	--header-h:    58px;
	--font:        system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--line:        1.7;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
	width: 100%;
}

body {
	margin: 0;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	overflow-wrap: anywhere;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: var(--line);
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}

.site-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Post thumbnails — full image visible, never cropped */
.entry-thumb,
.home-featured-media,
.home-featured-mini-thumb,
.home-news-card-thumb,
.home-cat-item-thumb,
.related-card-thumb {
	overflow: hidden;
	background: color-mix(in srgb, var(--c-border) 28%, var(--c-surface));
	line-height: 0;
}

.entry-thumb img,
.home-featured-media img,
.home-featured-mini-thumb img,
.home-news-card-thumb img,
.home-cat-item-thumb img,
.related-card-thumb img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

a {
	color: var(--c-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover { color: var(--c-accent-dk); }

/* Card links — avoid nested anchors; stretch one link over full card */
.sehgo-card-interactive { position: relative; }

.sehgo-stretched-link {
	color: inherit;
	text-decoration: none;
}

.sehgo-stretched-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.sehgo-card-interactive .cat-badge {
	position: relative;
	z-index: 2;
}

.sehgo-card-interactive:hover .sehgo-stretched-link {
	color: var(--c-accent);
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; top: -100%; left: 1rem; z-index: 9999;
	padding: .6rem 1.2rem;
	background: var(--c-accent); color: #fff;
	border-radius: var(--radius); font-weight: 600; text-decoration: none;
}

.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }

/* Header */
.site-header {
	--header-bg: color-mix(in srgb, var(--c-surface) 92%, transparent);
	background: var(--header-bg);
	border-bottom: 1px solid var(--c-border);
	position: sticky; top: 0; z-index: 100;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	box-sizing: border-box;
	transition: box-shadow .25s ease, border-color .25s ease;
}

@supports (backdrop-filter: blur(8px)) {
	.site-header {
		--header-bg: color-mix(in srgb, var(--c-surface) 82%, transparent);
		backdrop-filter: blur(10px) saturate(1.2);
		-webkit-backdrop-filter: blur(10px) saturate(1.2);
	}
}

.site-header.is-scrolled {
	border-color: color-mix(in srgb, var(--c-border) 70%, transparent);
	box-shadow: 0 4px 24px rgba(18, 21, 28, .07);
}

html.admin-bar .site-header { top: 32px; }

@media screen and (max-width: 782px) {
	html.admin-bar .site-header { top: 46px; }
}

.header-inner,
.site-footer-inner,
.archive-header-inner {
	max-width: var(--site-w);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: .75rem 1.25rem;
	min-height: var(--header-h);
	min-width: 0;
	max-width: 100%;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-width: 0;
	flex: 0 1 auto;
	max-width: min(220px, 42vw);
}

.site-title {
	margin: 0;
	font-size: clamp(1rem, 2.4vw, 1.2rem);
	font-weight: 800;
	letter-spacing: -.02em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.site-title a { color: var(--c-text); text-decoration: none; }
.site-title a:hover { color: var(--c-accent); }

.custom-logo-link {
	display: block;
	line-height: 0;
	max-width: 100%;
	flex-shrink: 0;
}

.custom-logo-link img { max-height: 40px; max-width: 100%; width: auto; height: auto; }

/* Header actions — search + menu toggle */
.header-actions {
	display: flex;
	align-items: center;
	gap: .35rem;
	flex-shrink: 0;
}

.header-search-toggle,
.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	color: var(--c-text);
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.header-search-toggle:hover,
.nav-toggle:hover,
.header-search-toggle[aria-expanded="true"],
.nav-toggle[aria-expanded="true"] {
	background: color-mix(in srgb, var(--c-accent) 8%, transparent);
	border-color: color-mix(in srgb, var(--c-accent) 18%, var(--c-border));
	color: var(--c-accent);
}

.header-icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.nav-toggle { display: none; }

.nav-toggle-bars {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 18px;
	height: 14px;
}

.nav-toggle-bars span {
	display: block;
	height: 2px;
	width: 100%;
	background: currentColor;
	border-radius: 1px;
	transition: transform .22s ease, opacity .15s ease, width .22s ease;
	transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
	opacity: 0;
	width: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Primary navigation */
.primary-nav {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.primary-nav > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: .1rem;
	flex-wrap: nowrap;
}

.primary-nav li {
	position: relative;
}

.primary-nav a {
	display: block;
	padding: .5rem .75rem;
	color: var(--c-muted);
	text-decoration: none;
	font-size: .875rem;
	font-weight: 600;
	border-radius: 8px;
	line-height: 1.3;
	white-space: nowrap;
	transition: color .15s ease, background .15s ease;
}

.primary-nav > ul > li > a {
	position: relative;
}

.primary-nav > ul > li > a::after {
	content: "";
	position: absolute;
	left: .75rem;
	right: .75rem;
	bottom: .35rem;
	height: 2px;
	background: var(--c-accent);
	border-radius: 1px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a,
.primary-nav .current_page_ancestor > a {
	color: var(--c-accent);
	background: color-mix(in srgb, var(--c-accent) 7%, transparent);
}

.primary-nav > ul > li > a:hover::after,
.primary-nav > ul > li > a:focus-visible::after,
.primary-nav > ul > li.current-menu-item > a::after,
.primary-nav > ul > li.current-menu-ancestor > a::after,
.primary-nav > ul > li.current_page_item > a::after,
.primary-nav > ul > li.current_page_ancestor > a::after {
	transform: scaleX(1);
}

/* Submenus — desktop dropdown */
.primary-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: .35rem;
	min-width: 190px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.primary-nav .sub-menu a {
	font-size: .84rem;
	font-weight: 600;
	padding: .5rem .65rem;
	white-space: normal;
}

.primary-nav .sub-menu a::after { display: none; }

@media (min-width: 769px) {
	.primary-nav .menu-item-has-children > a {
		padding-right: 1.5rem;
	}

	.primary-nav .menu-item-has-children > a::before {
		content: "";
		position: absolute;
		right: .55rem;
		top: 50%;
		width: 5px;
		height: 5px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-65%) rotate(45deg);
		opacity: .55;
		pointer-events: none;
	}

	.primary-nav .sub-menu {
		position: absolute;
		top: calc(100% + .35rem);
		left: 0;
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity .18s ease, transform .18s ease, visibility .18s;
		z-index: 20;
	}

	.primary-nav .menu-item-has-children:hover > .sub-menu,
	.primary-nav .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

/* Header search panel */
.header-search-panel {
	border-top: 1px solid var(--c-border);
	background: var(--c-surface);
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height .28s ease, opacity .2s ease, padding .28s ease;
}

.header-search-panel.is-open {
	max-height: 80px;
	opacity: 1;
}

.header-search-panel-inner {
	max-width: var(--site-w);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.header-search-panel.is-open .header-search-panel-inner {
	padding-top: .65rem;
	padding-bottom: .75rem;
}

.header-search-panel .search-form {
	display: flex;
	align-items: stretch;
	gap: .5rem;
	margin: 0;
}

.header-search-panel .search-form label {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.header-search-panel .search-form input[type="search"] {
	width: 100%;
	padding: .55rem .85rem;
	font: inherit;
	font-size: .9375rem;
	color: var(--c-text);
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: 8px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.header-search-panel .search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 15%, transparent);
}

.header-search-panel .search-form button[type="submit"] {
	flex-shrink: 0;
	padding: .55rem 1rem;
	font: inherit;
	font-size: .875rem;
	font-weight: 600;
	color: #fff;
	background: var(--c-accent);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease;
}

.header-search-panel .search-form button[type="submit"]:hover {
	background: var(--c-accent-dk);
}

/* Mobile nav backdrop */
.nav-backdrop {
	display: none;
}

@media (max-width: 768px) {
	.header-search-toggle { display: inline-flex; }

	.nav-toggle { display: inline-flex; }

	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex: none;
		display: block;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		background: var(--c-surface);
		border-bottom: 1px solid var(--c-border);
		box-shadow: 0 12px 32px rgba(18, 21, 28, .08);
		transition: max-height .32s ease, opacity .22s ease, visibility .22s;
		z-index: 101;
	}

	.primary-nav.is-open {
		max-height: min(75vh, 520px);
		opacity: 1;
		visibility: visible;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.primary-nav > ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: .5rem 1rem 1rem;
	}

	.primary-nav a {
		padding: .7rem .65rem;
		font-size: .9375rem;
		border-radius: 8px;
		white-space: normal;
	}

	.primary-nav > ul > li > a::after { display: none; }

	.primary-nav .menu-item-has-children > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: .5rem;
	}

	.primary-nav .menu-item-has-children > a::after {
		content: "";
		display: block;
		position: static;
		width: 7px;
		height: 7px;
		flex-shrink: 0;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		opacity: .45;
		transition: transform .2s ease;
		background: none;
	}

	.primary-nav .menu-item-has-children.sub-open > a::after {
		transform: rotate(-135deg);
	}

	.primary-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		background: transparent;
		padding: 0 0 .25rem .75rem;
		min-width: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height .25s ease;
	}

	.primary-nav .menu-item-has-children.sub-open > .sub-menu {
		max-height: 400px;
	}

	.primary-nav .sub-menu a {
		padding: .55rem .65rem;
		font-size: .875rem;
		color: var(--c-muted);
	}

	.nav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		top: var(--header-h);
		background: rgba(18, 21, 28, .35);
		opacity: 0;
		visibility: hidden;
		transition: opacity .22s ease, visibility .22s;
		z-index: 99;
		border: none;
		padding: 0;
		cursor: pointer;
	}

	html.admin-bar .nav-backdrop { top: calc(var(--header-h) + 46px); }

	.nav-backdrop.is-visible {
		opacity: 1;
		visibility: visible;
	}

	body.nav-open { overflow: hidden; }
}

@media (min-width: 769px) {
	.header-search-toggle { display: inline-flex; }

	.primary-nav > ul {
		overflow-x: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		max-width: 100%;
	}

	.primary-nav > ul::-webkit-scrollbar { display: none; }
}

@media (min-width: 992px) {
	.site-branding { max-width: 240px; }
}

/* Breadcrumbs */
.breadcrumbs {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: .85rem 1.25rem 0;
	font-size: .82rem;
	color: var(--c-muted);
	box-sizing: border-box;
	overflow-x: hidden;
}

.breadcrumbs ol {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: .35rem;
	overflow-wrap: anywhere;
	min-width: 0;
	max-width: 100%;
}

.breadcrumbs li {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.breadcrumbs li::after { content: "/"; margin-left: .35rem; color: var(--c-border); }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-accent); }

/* Archive header */
.archive-header {
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-border);
	padding: 1.5rem 0;
	margin-bottom: 1.25rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
}

.archive-header-inner {
	max-width: var(--site-w);
	margin: 0 auto;
	padding: 0 1.25rem;
	width: 100%;
	box-sizing: border-box;
}

.archive-header h1 {
	margin: 0 0 .35rem;
	font-size: clamp(1.4rem, 3vw, 1.85rem);
	font-weight: 800;
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
}

.archive-header p { margin: 0; color: var(--c-muted); font-size: .95rem; }

/* Layout */
.site-main {
	padding: 1.25rem 1.25rem 3rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-x: hidden;
}

.site-layout {
	width: 100%;
	max-width: var(--site-w);
	margin: 0 auto;
	display: grid;
	gap: 1.75rem;
	min-width: 0;
	overflow-x: hidden;
}

body:not(.has-sidebar) .site-layout { max-width: var(--max-w); }
body.has-sidebar .site-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }

.content-area { min-width: 0; max-width: 100%; overflow-x: hidden; }
.sidebar { min-width: 0; max-width: 100%; overflow-x: hidden; }
.content-narrow { max-width: var(--max-w); margin: 0 auto; }

/* Hero */
.hero {
	text-align: center;
	padding: 2rem 1.25rem 1rem;
	max-width: 680px; margin: 0 auto;
}

.hero h1 {
	margin: 0 0 .5rem;
	font-size: clamp(1.55rem, 4vw, 2.15rem);
	font-weight: 800; line-height: 1.2;
}

.hero p { margin: 0; color: var(--c-muted); }

/* Posts grid */
.posts-grid {
	display: grid;
	gap: 1.25rem;
}

body.blog-layout-grid .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.blog-layout-grid-3 .posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Cards */
.entry-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.5rem;
	margin-bottom: 1.25rem;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
}

.posts-grid .entry-card { margin-bottom: 0; height: 100%; display: flex; flex-direction: column; }

.entry-title {
	margin: 0 0 .6rem;
	font-size: clamp(1.1rem, 4.5vw, 1.35rem);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.02em;
	overflow-wrap: anywhere;
	word-break: break-word;
	min-width: 0;
	max-width: 100%;
}

.entry-title a { color: var(--c-text); text-decoration: none; }
.entry-title a:hover { color: var(--c-accent); }

.entry-meta {
	font-size: .8rem; color: var(--c-muted);
	margin-bottom: .85rem;
	display: flex; flex-wrap: wrap; gap: .35rem .65rem;
	min-width: 0;
	max-width: 100%;
}

.cat-badge {
	display: inline-block;
	padding: .15rem .55rem;
	background: color-mix(in srgb, var(--c-accent) 10%, transparent);
	color: var(--c-accent);
	border-radius: 4px;
	font-size: .72rem; font-weight: 700;
	text-decoration: none; text-transform: uppercase;
	letter-spacing: .03em;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
}

.entry-thumb {
	border-radius: calc(var(--radius) - 2px);
	overflow: hidden; margin-bottom: 1rem;
}

.entry-content p { margin: 0 0 1rem; }
.entry-content p:last-child { margin-bottom: 0; }

.entry-content {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.entry-content pre {
	max-width: 100%;
	overflow: auto;
}

/* LuckyWP Table of Contents & other widgets overflow fix */
.entry-content .lwptoc,
.entry-content .lwptoc_i,
.entry-content .lwptoc_items,
.entry-content .lwptoc_itemWrap,
.entry-content .lwptoc_item {
	max-width: 100% !important;
	box-sizing: border-box !important;
	overflow-wrap: anywhere !important;
	word-break: break-word !important;
	white-space: normal !important;
}

.entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
	max-width: 100%;
}

/* WordPress auto-sized images — prevent 3000px intrinsic width blowout */
img:is([sizes="auto" i], [sizes^="auto," i]) {
	contain-intrinsic-size: auto 200px !important;
	max-width: 100% !important;
	height: auto !important;
}

/* AddToAny + other in-content share plugins */
.entry-content .addtoany_content,
.entry-content .a2a_kit {
	max-width: 100% !important;
	overflow-x: hidden;
}

.entry-content .a2a_kit {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: .35rem;
}

.entry-content h2, .entry-content h3 { margin: 1.4rem 0 .55rem; line-height: 1.3; }
.entry-content ul, .entry-content ol { padding-left: 1.35rem; margin: 0 0 1rem; }

.read-more {
	display: inline-block; margin-top: auto; padding-top: .75rem;
	font-size: .88rem; font-weight: 700; text-decoration: none;
}

/* Single post extras */
.post-nav {
	display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
	margin: 1.5rem 0;
}

.post-nav a {
	display: block; padding: 1rem;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	text-decoration: none; color: var(--c-text);
	font-size: .9rem; font-weight: 600;
}

.post-nav .nav-next { text-align: right; }
.post-nav span { display: block; font-size: .75rem; color: var(--c-muted); font-weight: 500; margin-bottom: .25rem; }

.author-box {
	display: flex; gap: 1rem; align-items: flex-start;
	padding: 1.25rem; margin-top: 1.5rem;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-box h3 { margin: 0 0 .35rem; font-size: 1rem; }
.author-box p { margin: 0; font-size: .9rem; color: var(--c-muted); }

.share-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 1rem 0;
	max-width: 100%;
}

.share-bar--header {
	margin-top: .85rem;
	margin-bottom: 1.25rem;
}

.share-bar--footer {
	margin-top: 1.25rem;
	margin-bottom: 0;
}

.share-bar__label {
	font-size: .78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--c-muted);
}

.share-bar__icons {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: none;
	border-radius: 5px;
	background: var(--c-surface);
	color: var(--c-text);
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}

.share-btn svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.share-btn:hover,
.share-btn:focus-visible {
	transform: translateY(-1px);
}

.share-btn--facebook { background: #1877f2; color: #fff; }
.share-btn--facebook:hover,
.share-btn--facebook:focus-visible { filter: brightness(.92); }

.share-btn--x { background: #000; color: #fff; }
.share-btn--x:hover,
.share-btn--x:focus-visible { filter: brightness(.92); }

.share-btn--whatsapp { background: #25d366; color: #fff; }
.share-btn--whatsapp:hover,
.share-btn--whatsapp:focus-visible { filter: brightness(.92); }

.share-btn--linkedin { background: #0a66c2; color: #fff; }
.share-btn--linkedin:hover,
.share-btn--linkedin:focus-visible { filter: brightness(.92); }

.share-btn--telegram { background: #0088cc; color: #fff; }
.share-btn--telegram:hover,
.share-btn--telegram:focus-visible { filter: brightness(.92); }

.share-btn--email { background: #ea4335; color: #fff; }
.share-btn--email:hover,
.share-btn--email:focus-visible { filter: brightness(.92); }

.share-btn--copy { background: #5c6370; color: #fff; }
.share-btn--copy:hover,
.share-btn--copy:focus-visible { filter: brightness(.92); }

.share-btn--copy.is-copied { background: #2e7d32; color: #fff; }

.related-posts { margin-top: 2rem; }
.related-posts h2 { font-size: 1.15rem; margin: 0 0 1rem; }

.related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .75rem;
}

.related-card {
	display: flex;
	flex-direction: column;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: calc(var(--radius) - 2px);
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.related-card:hover {
	border-color: color-mix(in srgb, var(--c-accent) 35%, var(--c-border));
	box-shadow: 0 2px 10px rgba(18, 21, 28, .05);
}

.related-card-body {
	padding: .65rem .75rem .75rem;
	display: flex;
	flex-direction: column;
	gap: .35rem;
	min-width: 0;
}

.related-card-title {
	margin: 0;
	font-size: .9rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--c-text);
}

.related-card-title a {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.related-card .home-card-date {
	font-size: .72rem;
	color: var(--c-muted);
}

/* Sidebar */
.sidebar .widget {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: 1.15rem;
	margin-bottom: 1.25rem;
}

.sidebar .widget-title {
	margin: 0 0 .75rem;
	font-size: .95rem; font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.sidebar ul { margin: 0; padding-left: 1.1rem; }
.sidebar li { margin-bottom: .4rem; font-size: .9rem; }

.sidebar .widget,
.sidebar .wp-block-group,
.sidebar .wp-block-group__inner-container,
.sidebar .wp-block-columns,
.sidebar .wp-block-column {
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.sidebar .wp-block-columns {
	flex-wrap: wrap !important;
}

.sidebar select,
.sidebar input[type="search"],
.sidebar .wp-block-search__input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.sidebar .wp-block-search__inside-wrapper {
	display: flex;
	flex-wrap: wrap !important;
	gap: 0.5rem;
}

.sidebar .wp-block-search__button {
	width: auto;
	max-width: 100%;
}

/* Search form */
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
	flex: 1; padding: .55rem .75rem;
	border: 1px solid var(--c-border);
	border-radius: 6px; font: inherit;
}

.search-form button {
	padding: .55rem 1rem;
	background: var(--c-accent); color: #fff;
	border: none; border-radius: 6px;
	font-weight: 700; cursor: pointer;
}

/* Pagination */
.pagination {
	display: flex; gap: .45rem; justify-content: center;
	flex-wrap: wrap; margin-top: 1.75rem;
}

.pagination a, .pagination span {
	padding: .45rem .85rem;
	border: 1px solid var(--c-border);
	border-radius: 6px;
	font-size: .86rem;
	text-decoration: none; color: var(--c-text);
}

.pagination .current {
	background: var(--c-accent);
	border-color: var(--c-accent);
	color: #fff;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--c-border);
	background: var(--c-surface);
	padding: 2rem 0 1.5rem;
	margin-top: auto;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.site-footer-inner {
	display: flex; flex-wrap: wrap;
	align-items: center; justify-content: space-between;
	gap: .75rem;
	font-size: .84rem; color: var(--c-muted);
	border-top: 1px solid var(--c-border);
	padding-top: 1.25rem;
}

.site-footer a { color: var(--c-muted); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }

.sehgo-credit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem .65rem;
	font-size: .8rem;
}

.sehgo-theme-version {
	font-size: .72rem;
	color: var(--c-muted);
	opacity: .9;
}

.sehgo-theme-version::before {
	content: "·";
	margin-right: .15rem;
	opacity: .55;
}

/* 404 */
.error-404 { text-align: center; padding: 3rem 1rem; }
.error-404 h1 { font-size: 4rem; margin: 0; color: var(--c-accent); font-weight: 800; }

/* Comments */
.sehgo-comments {
	margin-top: 1.5rem;
	padding: 1.5rem;
}

.sehgo-comments__head {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--c-border);
}

.comments-title {
	display: flex;
	align-items: center;
	gap: .55rem;
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
}

.comments-title svg {
	width: 22px;
	height: 22px;
	fill: var(--c-accent);
	flex-shrink: 0;
}

.sehgo-comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
}

.sehgo-comment-list .children {
	list-style: none;
	margin: .75rem 0 0;
	padding: 0 0 0 1.25rem;
	border-left: 2px solid color-mix(in srgb, var(--c-accent) 25%, var(--c-border));
}

.sehgo-comment {
	margin-bottom: .85rem;
}

.sehgo-comment__body {
	padding: 1rem 1.1rem;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

.sehgo-comment__header {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-bottom: .65rem;
}

.sehgo-comment__avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.sehgo-comment__meta {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	min-width: 0;
}

.sehgo-comment__author {
	font-style: normal;
	font-size: .92rem;
	font-weight: 700;
	color: var(--c-text);
}

.sehgo-comment__author a {
	color: inherit;
	text-decoration: none;
}

.sehgo-comment__author a:hover { color: var(--c-accent); }

.sehgo-comment__date {
	font-size: .78rem;
	color: var(--c-muted);
}

.sehgo-comment__moderation {
	margin: 0 0 .65rem;
	padding: .45rem .65rem;
	font-size: .82rem;
	color: #8a6d3b;
	background: #fcf8e3;
	border-radius: 6px;
}

.sehgo-comment__content {
	font-size: .95rem;
	line-height: 1.65;
	color: var(--c-text);
}

.sehgo-comment__content p { margin: 0 0 .65rem; }
.sehgo-comment__content p:last-child { margin-bottom: 0; }

.sehgo-comment__reply {
	margin-top: .65rem;
}

.sehgo-comment__reply a,
.comment-reply-link {
	display: inline-block;
	padding: .3rem .75rem;
	font-size: .78rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--c-accent);
	background: color-mix(in srgb, var(--c-accent) 8%, transparent);
	border-radius: 999px;
}

.sehgo-comment__reply a:hover,
.comment-reply-link:hover {
	background: color-mix(in srgb, var(--c-accent) 15%, transparent);
}

.comment-respond {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--c-border);
}

.comment-reply-title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 800;
}

.comment-reply-title small {
	display: block;
	margin-top: .35rem;
	font-size: .82rem;
	font-weight: 600;
}

.sehgo-comment-form .comment-form-author,
.sehgo-comment-form .comment-form-email,
.sehgo-comment-form .comment-form-url {
	margin: 0 0 .85rem;
}

.sehgo-comment-form label {
	display: block;
	margin-bottom: .35rem;
	font-size: .82rem;
	font-weight: 700;
	color: var(--c-text);
}

.sehgo-comment-form .required {
	color: #c62828;
}

.sehgo-comment-form input[type="text"],
.sehgo-comment-form input[type="email"],
.sehgo-comment-form input[type="url"],
.sehgo-comment-form textarea {
	width: 100%;
	padding: .6rem .75rem;
	border: 1px solid var(--c-border);
	border-radius: 6px;
	font: inherit;
	background: var(--c-surface);
	color: var(--c-text);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.sehgo-comment-form input:focus,
.sehgo-comment-form textarea:focus {
	outline: none;
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 15%, transparent);
}

.sehgo-comment-form textarea {
	min-height: 130px;
	resize: vertical;
}

.sehgo-comment-form .form-submit {
	margin: 1rem 0 0;
}

.sehgo-comment-form .submit {
	padding: .65rem 1.35rem;
	background: var(--c-accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease;
}

.sehgo-comment-form .submit:hover {
	background: var(--c-accent-dk);
}

.no-comments {
	margin: 0 0 1rem;
	padding: .75rem 1rem;
	font-size: .9rem;
	color: var(--c-muted);
	background: var(--c-bg);
	border-radius: var(--radius);
}

.comments-area .comment-navigation {
	display: flex;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: 1.25rem;
	font-size: .85rem;
}

.comments-area .comment-navigation a {
	text-decoration: none;
	font-weight: 600;
}

@media (min-width: 640px) {
	.sehgo-comment-form {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		column-gap: 1rem;
	}

	.sehgo-comment-form .comment-form-comment,
	.sehgo-comment-form .form-submit,
	.sehgo-comment-form .comment-form-cookies-consent {
		grid-column: 1 / -1;
	}
}

/* AdSense ad slots — reserved height via --sehgo-ad-min / --sehgo-ad-wide (CLS) */
.sehgo-ad {
	--sehgo-ad-min: 280px;
	--sehgo-ad-wide: var(--sehgo-ad-min);
	margin: 1.25rem auto;
	padding: .75rem;
	max-width: 100%;
	width: 100%;
	text-align: center;
	overflow: hidden;
	box-sizing: border-box;
	background: var(--c-surface);
	border: 1px dashed var(--c-border);
	border-radius: var(--radius);
	min-height: var(--sehgo-ad-min);
	contain: layout style;
}

@media (min-width: 468px) {
	.sehgo-ad[style*="--sehgo-ad-wide"] {
		min-height: var(--sehgo-ad-wide);
	}
}

.sehgo-ad iframe,
.sehgo-ad ins {
	display: block;
	max-width: 100% !important;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.sehgo-ad ins.adsbygoogle {
	display: block !important;
	min-height: var(--sehgo-ad-min);
}

@media (min-width: 468px) {
	.sehgo-ad[style*="--sehgo-ad-wide"] ins.adsbygoogle {
		min-height: var(--sehgo-ad-wide);
	}
}

.sehgo-ad-label {
	display: block;
	margin-bottom: .5rem;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.sehgo-ad--header,
.sehgo-ad--footer {
	max-width: var(--site-w);
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.sehgo-ad--sidebar {
	margin-top: 0;
	margin-bottom: 1.25rem;
}

.posts-grid .sehgo-ad--archive {
	grid-column: 1 / -1;
}

.entry-content .wpcf7 input,
.entry-content .wpcf7 textarea,
.entry-content .wpcf7 select {
	width: 100%; max-width: 100%;
	padding: .55rem .75rem;
	border: 1px solid var(--c-border);
	border-radius: 6px; font: inherit;
}

.entry-content .wpcf7-submit {
	width: auto; padding: .6rem 1.25rem;
	background: var(--c-accent); color: #fff;
	border: none; border-radius: 6px; font-weight: 700; cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
	body.has-sidebar .site-layout {
		grid-template-columns: minmax(0, 1fr);
		max-width: 100%;
	}

	.footer-widgets { grid-template-columns: 1fr; }
	body.blog-layout-grid-3 .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.related-grid { grid-template-columns: 1fr; }

	/* Long current-page title already shown in h1 */
	.breadcrumbs li:last-child { display: none; }
	.breadcrumbs li:nth-last-child(2)::after { content: none; }

	.entry-content .wp-block-columns,
	.sidebar .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.entry-content .wp-block-column,
	.sidebar .wp-block-column {
		min-width: 0 !important;
		flex-basis: 100% !important;
	}
}

/* WP admin bar — stops 600px min-width overflow when logged in on phone */
@media screen and (max-width: 782px) {
	html #wpadminbar {
		position: fixed !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		overflow-x: hidden !important;
	}
}

/* Base override for ALL elements to prevent horizontal overflow */
body {
	overflow-wrap: anywhere;
}
img, picture, video, iframe, figure {
	max-width: 100% !important;
	height: auto;
}
.alignfull, .alignwide {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

@media (max-width: 768px) {
	.home-top-inner {
		flex-direction: column;
		align-items: stretch;
	}

	.home-top-desc { white-space: normal; }
}

@media (max-width: 640px) {
	.site-main { padding: 1rem 1rem 2.5rem; }

	.header-inner,
	.breadcrumbs,
	.archive-header-inner,
	.site-footer-inner {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.site-layout {
		width: 100%;
		max-width: 100%;
	}

	.entry-card {
		padding: 1rem;
		max-width: 100%;
	}

	.share-btn {
		width: 32px;
		height: 32px;
	}

	.share-btn svg {
		width: 18px;
		height: 18px;
	}

	body.blog-layout-grid .posts-grid,
	body.blog-layout-grid-3 .posts-grid { grid-template-columns: 1fr; }

	.post-nav { grid-template-columns: 1fr; }
	.post-nav .nav-next { text-align: left; }
}

/* ── Homepage — compact magazine layout ─────────────────── */
.home-top {
	background: linear-gradient(120deg, var(--c-accent) 0%, var(--c-accent-dk) 100%);
	color: #fff;
	border-bottom: 3px solid color-mix(in srgb, var(--c-accent) 40%, #fff);
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
}

.home-top-inner {
	max-width: var(--site-w);
	margin: 0 auto;
	padding: .55rem 1.15rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

.home-top-brand { min-width: 0; flex-shrink: 0; max-width: 42%; }

.home-top-title {
	margin: 0;
	font-size: clamp(1rem, 2.2vw, 1.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.home-top-title a {
	color: inherit;
	text-decoration: none;
}

.home-top-title a:hover { opacity: .88; }

.home-top-desc {
	margin: .15rem 0 0;
	font-size: .78rem;
	opacity: .9;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home-top-ticker {
	flex: 1;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	gap: .55rem;
	padding: .45rem .65rem;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 6px;
}

.home-ticker-link {
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: .82rem;
	font-weight: 600;
	min-width: 0;
	flex: 1;
	transition: opacity .22s ease;
}

.home-ticker-link.is-changing { opacity: 0; }

.home-ticker-link:hover { opacity: .85; }

.home-main {
	padding: 0;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

.home-wrap {
	max-width: var(--site-w);
	margin: 0 auto;
	padding: .85rem 1.15rem 1.5rem;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.home-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: .65rem;
	min-width: 0;
}

.home-section-head--compact { margin-bottom: .5rem; }

.home-section-title {
	margin: 0;
	padding-left: .55rem;
	border-left: 3px solid var(--c-accent);
	font-size: .95rem;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.2;
	min-width: 0;
}

.home-section-link {
	font-size: .78rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--c-accent);
	white-space: nowrap;
}

.home-featured {
	padding: 0 0 .65rem;
}

.home-tools {
	position: relative;
	margin-bottom: .45rem;
	padding: .32rem .45rem .38rem;
	border-radius: var(--radius);
	background: linear-gradient(
		160deg,
		color-mix(in srgb, var(--c-accent) 12%, var(--c-surface)) 0%,
		var(--c-surface) 50%,
		color-mix(in srgb, var(--c-accent) 6%, var(--c-bg)) 100%
	);
	border: 1px solid color-mix(in srgb, var(--c-accent) 28%, var(--c-border));
	box-shadow: 0 4px 16px rgba(18, 21, 28, .06);
	overflow: hidden;
	max-width: 100%;
	min-width: 0;
}

.home-tools::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: linear-gradient(180deg, var(--c-accent) 0%, var(--c-accent-dk) 100%);
	pointer-events: none;
}

.home-tools-head {
	position: relative;
	margin-bottom: .28rem;
	padding-left: .22rem;
}

.home-tools-title {
	margin: 0;
	font-size: .78rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--c-accent);
}

.home-tools-desc {
	margin: .1rem 0 0;
	font-size: .68rem;
	color: var(--c-muted);
	line-height: 1.25;
}

.home-tools-grid {
	display: flex;
	flex-wrap: wrap;
	gap: .22rem .18rem;
	align-items: flex-start;
	max-width: 100%;
	min-width: 0;
}

.home-tool-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 4.85rem;
	padding: .14rem .1rem .16rem;
	text-decoration: none;
	color: var(--c-text);
	text-align: center;
	border-radius: 12px;
	transition: transform .15s ease, background .15s ease;
}

.home-tool-card:hover {
	transform: translateY(-2px);
	background: color-mix(in srgb, var(--c-accent) 7%, transparent);
	color: var(--c-text);
}

.home-tool-card:active {
	transform: scale(.96);
}

.home-tool-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.65rem;
	height: 3.65rem;
	border-radius: 22%;
	--tool-bg: var(--c-accent);
	background: radial-gradient(
		circle at 50% 70%,
		color-mix(in srgb, var(--tool-bg) 12%, #fff) 0%,
		color-mix(in srgb, var(--tool-bg) 4%, #fff) 40%,
		color-mix(in srgb, var(--tool-bg) 35%, #fff) 62%,
		var(--tool-bg) 76%,
		color-mix(in srgb, var(--tool-bg) 78%, #000) 90%,
		color-mix(in srgb, var(--tool-bg) 92%, #000) 100%
	);
	color: #fff;
	font-size: 1.95rem;
	font-weight: 800;
	line-height: 1;
	padding: .58rem;
	box-sizing: border-box;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .28),
		inset 0 -10px 18px color-mix(in srgb, var(--tool-bg) 55%, #000),
		0 3px 10px color-mix(in srgb, var(--tool-bg) 35%, transparent);
	transition: transform .15s ease, box-shadow .15s ease;
}

.home-tool-card:hover .home-tool-icon {
	transform: scale(1.04);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .32),
		inset 0 -10px 18px color-mix(in srgb, var(--tool-bg) 55%, #000),
		0 10px 24px color-mix(in srgb, var(--tool-bg) 48%, transparent);
}

.home-tool-card:nth-child(3n+2) .home-tool-icon:not([style*="--tool-bg"]) {
	--tool-bg: #8e24aa;
}

.home-tool-card:nth-child(3n) .home-tool-icon:not([style*="--tool-bg"]) {
	--tool-bg: #00897b;
}

.home-tool-label {
	display: -webkit-box;
	margin-top: .22rem;
	max-width: 100%;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.25;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

@media (min-width: 901px) {
	.home-tool-card {
		width: 5.15rem;
	}

	.home-tool-icon {
		width: 3.9rem;
		height: 3.9rem;
		font-size: 2.05rem;
		padding: .62rem;
	}

	.home-tool-label {
		font-size: .76rem;
	}
}

@media (max-width: 640px) {
	.home-tools-grid {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: .18rem .12rem;
	}

	.home-tool-card {
		width: auto;
	}
}

/* Featured categories — distinct from tools (tile cards + circle icons) */
.home-fcats {
	position: relative;
	margin-bottom: .5rem;
	padding: .55rem .55rem .6rem;
	border-radius: calc(var(--radius) + 4px);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .75),
		0 6px 20px rgba(18, 21, 28, .05);
	overflow: hidden;
	max-width: 100%;
	min-width: 0;
}

.home-fcats-head {
	margin-bottom: .35rem;
	padding-top: .12rem;
}

.home-fcats-title {
	margin: 0;
	font-size: .84rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--c-text);
}

.home-fcats-desc {
	margin: .12rem 0 0;
	font-size: .68rem;
	color: var(--c-muted);
	line-height: 1.25;
}

.home-fcats-grid {
	display: flex;
	flex-wrap: nowrap;
	gap: .55rem;
	overflow-x: auto;
	padding: .1rem .08rem .2rem;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	max-width: 100%;
	min-width: 0;
	overscroll-behavior-x: contain;
}

.home-fcat-card {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 5.85rem;
	padding: .4rem .3rem .45rem;
	background: color-mix(in srgb, var(--c-bg) 55%, var(--c-surface));
	border: none;
	border-radius: 14px;
	text-decoration: none;
	color: var(--c-text);
	text-align: center;
	scroll-snap-align: start;
	transition: transform .15s ease, box-shadow .15s ease;
}

.home-fcat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(18, 21, 28, .08);
	color: var(--c-text);
}

.home-fcat-card:active {
	transform: scale(.97);
}

.home-fcat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.35rem;
	height: 4.35rem;
	border-radius: 50%;
	--fcat-bg: #546e7a;
	background: radial-gradient(
		circle at 42% 38%,
		color-mix(in srgb, var(--fcat-bg) 24%, #fff) 0%,
		color-mix(in srgb, var(--fcat-bg) 16%, #fff) 28%,
		color-mix(in srgb, var(--fcat-bg) 82%, #fff) 58%,
		color-mix(in srgb, var(--fcat-bg) 78%, #000) 88%,
		color-mix(in srgb, var(--fcat-bg) 92%, #000) 100%
	);
	color: #fff;
	font-size: 2.1rem;
	font-weight: 800;
	line-height: 1;
	padding: .58rem;
	box-sizing: border-box;
	border: none;
	box-shadow: none;
	transition: transform .15s ease;
}

.home-fcat-card:hover .home-fcat-icon {
	transform: scale(1.05);
}

.home-fcat-card:nth-child(3n+2) .home-fcat-icon:not([style*="--fcat-bg"]) {
	--fcat-bg: #ef6c00;
}

.home-fcat-card:nth-child(3n) .home-fcat-icon:not([style*="--fcat-bg"]) {
	--fcat-bg: #6a1b9a;
}

.home-fcat-label {
	display: -webkit-box;
	margin-top: .32rem;
	max-width: 100%;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.25;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

@media (min-width: 901px) {
	.home-fcats-grid {
		flex-wrap: wrap;
		overflow: visible;
	}

	.home-fcat-card {
		width: 6.15rem;
	}

	.home-fcat-icon {
		width: 4.65rem;
		height: 4.65rem;
		font-size: 2.25rem;
		padding: .62rem;
	}
}

.home-featured-label {
	display: inline-block;
	margin: 0 0 .55rem;
	padding: .2rem .55rem;
	background: color-mix(in srgb, var(--c-accent) 12%, transparent);
	color: var(--c-accent);
	border-radius: 4px;
	font-size: .68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.home-featured-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: .55rem;
	align-items: stretch;
}

.home-featured-main,
.home-featured-side {
	min-width: 0;
}

.home-featured-main {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: calc(var(--radius) - 2px);
	overflow: hidden;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.home-featured-main:hover {
	border-color: color-mix(in srgb, var(--c-accent) 35%, var(--c-border));
	box-shadow: 0 2px 10px rgba(18, 21, 28, .05);
}

.home-featured-body {
	padding: .75rem .85rem .85rem;
	display: flex;
	flex-direction: column;
	gap: .35rem;
	min-width: 0;
}

.home-featured-title {
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.15rem);
	font-weight: 800;
	line-height: 1.35;
	color: var(--c-text);
}

.home-featured-title a {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home-featured-body .home-card-date {
	font-size: .72rem;
	color: var(--c-muted);
}

.home-featured-side {
	display: flex;
	flex-direction: column;
	gap: .65rem;
	min-width: 0;
}

.home-featured-mini {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: calc(var(--radius) - 2px);
	overflow: hidden;
}

.home-featured-mini-body {
	flex-shrink: 0;
	padding: .55rem .65rem .6rem;
	display: flex;
	flex-direction: column;
	gap: .2rem;
	min-width: 0;
}

.home-featured-mini-title {
	margin: 0;
	font-size: .82rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--c-text);
}

.home-featured-mini-title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home-featured-mini .home-card-date {
	font-size: .7rem;
}

@media (min-width: 901px) {
	.home-featured {
		padding: 0 0 .5rem;
	}

	.home-featured-label {
		margin-bottom: .45rem;
	}

	.home-featured-main {
		display: flex;
		flex-direction: column;
		height: 100%;
		min-height: 0;
	}

	.home-featured-media {
		flex: 1;
		min-height: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		border-right: none;
		border-bottom: 1px solid var(--c-border);
	}

	.home-featured-media img {
		width: 100%;
		height: 100%;
		max-height: none;
		object-fit: contain;
		margin: 0;
	}

	.home-featured-body {
		flex-shrink: 0;
		padding: .55rem .65rem .6rem;
		gap: .25rem;
	}

	.home-featured-title {
		font-size: .9rem;
	}

	.home-featured-title a {
		-webkit-line-clamp: 2;
	}

	.home-featured-side {
		display: grid;
		grid-template-rows: repeat(2, minmax(0, 1fr));
		gap: .55rem;
		height: 100%;
		min-height: 0;
	}

	.home-featured-mini {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: stretch;
		min-height: 0;
	}

	.home-featured-mini-thumb {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 110px;
		height: 100%;
		border-right: 1px solid var(--c-border);
	}

	.home-featured-mini-thumb img {
		width: 100%;
		height: 100%;
		max-height: none;
		object-fit: contain;
		margin: 0;
	}

	.home-featured-mini-body {
		padding: .45rem .55rem;
		justify-content: center;
		gap: .15rem;
	}

	.home-featured-mini-title {
		font-size: .78rem;
	}

	.home-featured-mini .cat-badge {
		font-size: .58rem;
		padding: .08rem .35rem;
	}
}

.home-card-date,
.home-card-reading {
	font-size: .72rem;
	color: var(--c-muted);
}

.home-layout { margin-top: .35rem; }

body.sehgo-home-magazine .home-layout { max-width: 100%; }

body.sehgo-home-magazine.has-sidebar .site-layout {
	grid-template-columns: 1fr 250px;
	gap: 1rem;
}

.home-news-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
}

.home-latest { margin-bottom: 1rem; }

.home-news-card {
	display: flex;
	flex-direction: column;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: calc(var(--radius) - 2px);
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.home-news-card:hover {
	border-color: color-mix(in srgb, var(--c-accent) 35%, var(--c-border));
	box-shadow: 0 2px 10px rgba(18, 21, 28, .05);
}

.home-news-card-body {
	padding: .65rem .75rem .75rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	gap: .45rem;
}

.home-news-card-footer {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.home-news-card-title {
	margin: 0;
	font-size: .92rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--c-text);
}

.home-news-card-title a {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home-news-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .5rem;
	padding-top: .35rem;
	border-top: 1px solid var(--c-border);
}

.home-news-card .cat-badge {
	font-size: .62rem;
	padding: .1rem .4rem;
}

.home-cats-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .85rem;
	margin-bottom: .5rem;
}

.home-category-block { margin-bottom: 0; }

.home-cat-grid {
	display: flex;
	flex-direction: column;
	gap: .55rem;
}

.home-cat-item {
	display: flex;
	flex-direction: column;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: calc(var(--radius) - 2px);
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.home-cat-item:hover {
	border-color: color-mix(in srgb, var(--c-accent) 35%, var(--c-border));
	box-shadow: 0 2px 10px rgba(18, 21, 28, .05);
}

.home-cat-item-body {
	padding: .55rem .65rem .65rem;
	display: flex;
	flex-direction: column;
	gap: .25rem;
	min-width: 0;
}

.home-cat-item-title {
	margin: 0;
	font-size: .84rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--c-text);
}

.home-cat-item-title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home-cat-item .home-card-date {
	font-size: .72rem;
	color: var(--c-muted);
}

.home-page-content {
	margin-top: .75rem;
	padding: 1rem;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: calc(var(--radius) - 2px);
}

body.sehgo-home-magazine .sidebar .widget {
	padding: .85rem;
	margin-bottom: .85rem;
}

@media (max-width: 900px) {
	.home-featured-grid { grid-template-columns: 1fr; }
	.home-cats-row { grid-template-columns: 1fr; }
	body.sehgo-home-magazine.has-sidebar .site-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.home-top-inner { padding: .65rem 1rem; }

	.home-wrap { padding: .65rem 1rem 1.25rem; }

	.home-news-grid { grid-template-columns: 1fr; }

	.home-section-head { flex-direction: column; align-items: flex-start; }
}
