/**
 * TIBOMED v4.9.0 — Blog grid + single post
 */

body.tibo-blog-page .page_content_wrap,
body.tibo-blog-single .page_content_wrap {
	padding: 0 !important;
	background: var(--t-bg-alt) !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

body.tibo-blog-page .page_content_wrap,
body.tibo-blog-page .content_wrap,
body.tibo-blog-page .content,
body.tibo-blog-single .page_content_wrap,
body.tibo-blog-single .content_wrap,
body.tibo-blog-single .content {
	display: contents !important;
}

body.tibo-blog-page .content_wrap > .content,
body.tibo-blog-single .content_wrap > .content {
	display: contents !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	background: transparent !important;
}

body.tibo-blog-page #tibo-blog,
body.tibo-blog-single #tibo-blog-single {
	display: block;
	width: 100%;
}

body.tibo-blog-page #tibo-blog > .tibo-wrap,
body.tibo-blog-single #tibo-blog-single > .tibo-wrap {
	width: var(--t-wrap);
	max-width: 100%;
	margin-inline: auto;
	padding-inline: clamp(12px, 3vw, 24px);
	box-sizing: border-box;
}

body.tibo-blog-page .sidebar,
body.tibo-blog-page .sidebar_overlay,
body.tibo-blog-single .sidebar,
body.tibo-blog-single .sidebar_overlay {
	display: none !important;
}

body.tibo-blog-page.sidebar_hide .content_wrap > .content,
body.tibo-blog-page.sidebar_left .content_wrap > .content,
body.tibo-blog-page.sidebar_right .content_wrap > .content,
body.tibo-blog-single.sidebar_hide .content_wrap > .content,
body.tibo-blog-single.sidebar_left .content_wrap > .content,
body.tibo-blog-single.sidebar_right .content_wrap > .content {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	width: 100% !important;
}

/* Lab theme qoldiqlari yashirish */
body.tibo-blog-single .sc_layouts_title,
body.tibo-blog-single .post_header_wrap,
body.tibo-blog-single .post_featured.post_featured_always,
body.tibo-blog-single .nav-links-single,
body.tibo-blog-single .related_wrap,
body.tibo-blog-single .post_item.post_item_single {
	display: none !important;
}

/* ── Intro ── */
.tibo-blog-page__head {
	padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(0.75rem, 2vw, 1.25rem);
}

.tibo-blog-page__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.65rem, 3.5vw, 2.25rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--t-text);
}

.tibo-blog-page__lead {
	margin: 0;
	max-width: 42rem;
	font-size: 0.95rem;
	color: var(--t-muted);
	line-height: 1.55;
}

/* ── Grid ── */
.tibo-blog-page__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1rem, 2.5vw, 1.5rem);
	padding-bottom: clamp(2rem, 5vw, 3rem);
}

.tibo-blog-page .tibo-blog-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.tibo-blog-page .tibo-blog-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tibo-blog-page .tibo-blog-card__title {
	flex: 1;
}

.tibo-blog-card__cats {
	margin: 0 0 0.45rem;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
}

.tibo-blog-card__cats a {
	color: var(--t-green);
	text-decoration: none;
}

.tibo-blog-card__cats a:hover {
	color: var(--t-blue);
}

/* ── Pagination ── */
.tibo-blog-page__pagination {
	padding: 0 0 clamp(2rem, 5vw, 3rem);
}

.tibo-blog-page__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.35rem;
	height: 2.35rem;
	padding: 0 0.65rem;
	margin: 0.15rem;
	border-radius: 999px;
	border: 1px solid var(--t-border);
	background: var(--t-white);
	color: var(--t-text);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tibo-blog-page__pagination .page-numbers:hover,
.tibo-blog-page__pagination .page-numbers.current {
	background: var(--t-green);
	border-color: var(--t-green);
	color: #fff;
}

.tibo-blog-page__pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.tibo-blog-page__pagination li {
	margin: 0;
	padding: 0;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
	.tibo-blog-page__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.tibo-blog-page__grid {
		grid-template-columns: 1fr;
	}
}

/* ═══════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════ */
.tibo-blog-single {
	padding: clamp(1rem, 2.5vw, 1.75rem) 0 clamp(2.5rem, 6vw, 4rem);
	font-family: var(--t-font);
}

.tibo-post-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.55rem;
	margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
	font-size: 0.78rem;
	color: var(--t-muted);
}

.tibo-post-crumb a {
	color: var(--t-green);
	text-decoration: none;
	font-weight: 600;
}

.tibo-post-crumb a:hover {
	color: var(--t-blue);
}

.tibo-post-crumb__current {
	color: var(--t-text);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tibo-post__head {
	max-width: 52rem;
	margin: 0 auto clamp(1.25rem, 3vw, 2rem);
	text-align: center;
}

.tibo-post__cats {
	margin: 0 0 0.75rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tibo-post__cats a {
	color: var(--t-green);
	text-decoration: none;
}

.tibo-post__cats a:hover {
	color: var(--t-blue);
}

.tibo-post__title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 4vw, 2.65rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--t-text);
}

.tibo-post__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.82rem;
	color: var(--t-muted);
}

.tibo-post__meta a {
	color: inherit;
	text-decoration: none;
}

.tibo-post__meta a:hover {
	color: var(--t-green);
}

.tibo-post__media {
	max-width: 56rem;
	margin: 0 auto clamp(1.25rem, 3vw, 2rem);
	border-radius: calc(var(--t-radius) + 4px);
	overflow: hidden;
	border: 1px solid var(--t-border);
	box-shadow: var(--t-shadow);
	aspect-ratio: 16 / 9;
	background: var(--t-white);
}

.tibo-post__media img,
.tibo-post__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tibo-post__card {
	max-width: 46rem;
	margin: 0 auto;
	background: var(--t-white);
	border: 1px solid var(--t-border);
	border-radius: calc(var(--t-radius) + 4px);
	box-shadow: var(--t-shadow);
	padding: clamp(1.35rem, 3vw, 2.25rem);
}

.tibo-post__content {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--t-text);
}

.tibo-post__content > *:first-child {
	margin-top: 0;
}

.tibo-post__content p {
	margin: 0 0 1.15rem;
}

.tibo-post__content h2,
.tibo-post__content h3,
.tibo-post__content h4 {
	margin: 1.75rem 0 0.75rem;
	line-height: 1.3;
	color: var(--t-text);
}

.tibo-post__content ul,
.tibo-post__content ol {
	margin: 0 0 1.15rem 1.2rem;
	padding: 0;
}

.tibo-post__content li {
	margin-bottom: 0.45rem;
}

.tibo-post__content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--t-green);
	background: var(--t-green-pale);
	border-radius: 0 var(--t-radius) var(--t-radius) 0;
}

.tibo-post__content img {
	border-radius: var(--t-radius);
	margin: 1.25rem 0;
}

.tibo-post__content a {
	color: var(--t-green);
	font-weight: 600;
}

.tibo-post__content a:hover {
	color: var(--t-blue);
}

.tibo-post__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--t-border);
	font-size: 0.8rem;
}

.tibo-post__tags-label {
	font-weight: 700;
	color: var(--t-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.68rem;
}

.tibo-post__tags a {
	display: inline-flex;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: var(--t-bg-alt);
	color: var(--t-text);
	text-decoration: none;
	font-weight: 600;
}

.tibo-post__tags a:hover {
	background: var(--t-green-pale);
	color: var(--t-green);
}

.tibo-post-author {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	max-width: 46rem;
	margin: clamp(1.5rem, 3vw, 2rem) auto 0;
	padding: 1.15rem 1.25rem;
	background: var(--t-white);
	border: 1px solid var(--t-border);
	border-radius: var(--t-radius);
	box-shadow: var(--t-shadow);
}

.tibo-post-author__avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.tibo-post-author__label {
	margin: 0 0 0.2rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--t-muted);
}

.tibo-post-author__name {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--t-text);
}

.tibo-post-author__bio {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--t-muted);
}

.tibo-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	max-width: 46rem;
	margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
}

.tibo-post-nav__item {
	padding: 1rem 1.1rem;
	background: var(--t-white);
	border: 1px solid var(--t-border);
	border-radius: var(--t-radius);
	min-height: 100%;
}

.tibo-post-nav__item--next {
	text-align: right;
}

.tibo-post-nav__dir {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--t-muted);
}

.tibo-post-nav__item a {
	color: var(--t-text);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.35;
}

.tibo-post-nav__item a:hover {
	color: var(--t-green);
}

.tibo-post-related {
	margin-top: clamp(2rem, 5vw, 3rem);
	padding-top: clamp(1.5rem, 3vw, 2rem);
	border-top: 1px solid var(--t-border);
}

.tibo-post-related__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.tibo-post-related__title {
	margin: 0;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 800;
	color: var(--t-text);
}

.tibo-post-related__grid {
	padding-bottom: 0;
}

/* Comments */
.tibo-post-comments {
	max-width: 46rem;
	margin: clamp(2rem, 4vw, 2.75rem) auto 0;
}

.tibo-post-comments .comments_wrap,
.tibo-post-comments .comments_form_wrap,
.tibo-post-comments .comments_form,
.tibo-post-comments .show_comments_single {
	all: unset;
	display: block;
}

.tibo-comments__title,
.tibo-post-comments .comment-reply-title {
	margin: 0 0 1.15rem;
	font-size: clamp(1.2rem, 2.2vw, 1.5rem);
	font-weight: 800;
	color: var(--t-text);
	font-family: var(--t-font) !important;
}

.tibo-comments__title small {
	font-size: 0.75rem;
	font-weight: 600;
	margin-left: 0.5rem;
}

.tibo-comments__title small a {
	color: var(--t-green);
	text-decoration: none;
}

.tibo-comments__list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.tibo-comment {
	margin: 0 0 0.85rem;
}

.tibo-comment__body {
	display: flex;
	gap: 0.85rem;
	padding: 1rem 1.1rem;
	background: var(--t-white);
	border: 1px solid var(--t-border);
	border-radius: var(--t-radius);
}

.tibo-comment__avatar img {
	border-radius: 50%;
}

.tibo-comment__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
	margin-bottom: 0.45rem;
}

.tibo-comment__author {
	font-size: 0.92rem;
	color: var(--t-text);
}

.tibo-comment__date {
	font-size: 0.78rem;
	color: var(--t-muted);
}

.tibo-comment__text {
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--t-text);
}

.tibo-comment__text p {
	margin: 0 0 0.65rem;
}

.tibo-comment__reply {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--t-green);
	text-decoration: none;
}

.tibo-comment__reply:hover {
	color: var(--t-blue);
}

.tibo-comment-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.1rem;
	padding: clamp(1.15rem, 2.5vw, 1.5rem);
	background: var(--t-white);
	border: 1px solid var(--t-border);
	border-radius: calc(var(--t-radius) + 2px);
	box-shadow: var(--t-shadow);
}

.tibo-comment-form > .tibo-comments__title,
.tibo-comment-form > .comment-reply-title {
	grid-column: 1 / -1;
	margin-bottom: 0.25rem;
}

.tibo-comment-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
}

.tibo-comment-form__field--half {
	grid-column: span 1;
}

.tibo-comment-form__field--full {
	grid-column: 1 / -1;
}

.tibo-comment-form__field label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--t-text);
}

.tibo-comment-form__field .required {
	color: #d32f2f;
}

.tibo-comment-form__field input[type="text"],
.tibo-comment-form__field input[type="email"],
.tibo-comment-form__field textarea {
	width: 100%;
	padding: 0.78rem 0.95rem;
	border: 1px solid var(--t-border);
	border-radius: var(--t-radius);
	background: var(--t-white);
	font-family: var(--t-font);
	font-size: 0.92rem;
	color: var(--t-text);
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
	resize: vertical;
	min-height: 0;
}

.tibo-comment-form__field textarea {
	min-height: 9rem;
}

.tibo-comment-form__field input:focus,
.tibo-comment-form__field textarea:focus {
	outline: none;
	border-color: var(--t-green);
	box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.14);
}

.tibo-comment-form__check {
	margin: 0;
}

.tibo-comment-form__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--t-muted);
	font-weight: 500;
	cursor: pointer;
}

.tibo-comment-form__checkbox input {
	width: 1rem;
	height: 1rem;
	margin: 0.15rem 0 0;
	flex-shrink: 0;
	accent-color: var(--t-blue);
}

.tibo-comment-form__actions {
	grid-column: 1 / -1;
	margin: 0.25rem 0 0;
}

.tibo-comment-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.65rem;
	border: none;
	border-radius: var(--t-radius-pill);
	background: var(--t-blue);
	color: #fff;
	font-family: var(--t-font);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.tibo-comment-form__submit:hover {
	background: var(--t-blue-dark);
	transform: translateY(-1px);
	box-shadow: var(--t-shadow);
}

.tibo-comments__closed {
	margin: 0;
	color: var(--t-muted);
}

@media (max-width: 768px) {
	.tibo-post-nav {
		grid-template-columns: 1fr;
	}

	.tibo-post-related__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.tibo-post-crumb__current {
		white-space: normal;
	}

	.tibo-comment-form {
		grid-template-columns: 1fr;
	}

	.tibo-comment-form__field--half {
		grid-column: 1 / -1;
	}
}
