/**
 * Blog styles — Hello Elementor Child
 * Подключай в functions.php через wp_enqueue_style()
 * или вставь в дочернюю style.css
 */

/* =====================================================
   LAYOUT
   ===================================================== */

.archive-container,
.single-container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 20px;
}

/* =====================================================
   ARCHIVE HEADER
   ===================================================== */

.archive-header {
	margin-bottom: 48px;
}

.archive-title {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 700;
	margin: 0 0 12px;
}

.archive-description {
	color: #666;
	font-size: 1.05rem;
}

/* =====================================================
   POSTS GRID
   ===================================================== */

.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 32px;
	margin-bottom: 60px;
}

.posts-grid--related {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

/* =====================================================
   POST CARD
   ===================================================== */

.post-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
}

/* Thumbnail */
.post-card__thumbnail {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.post-card__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.post-card:hover .post-card__thumbnail img {
	transform: scale(1.04);
}

/* Body */
.post-card__body {
	padding: 20px 24px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Categories */
.post-card__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.post-card__cat {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: #0073aa;
	padding: 3px 9px;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.15s;
}

.post-card__cat:hover {
	background: #005b8e;
}

/* Title */
.post-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 10px;
}

.post-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s;
}

.post-card__title a:hover {
	color: #0073aa;
}

/* Meta */
.post-card__meta {
	font-size: 0.82rem;
	color: #999;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.post-card__meta-sep {
	color: #ccc;
}

/* Excerpt */
.post-card__excerpt {
	font-size: 0.9rem;
	color: #555;
	line-height: 1.65;
	flex: 1;
	margin-bottom: 16px;
}

.post-card__excerpt p {
	margin: 0;
}

/* Read more */
.post-card__readmore {
	font-size: 0.85rem;
	font-weight: 600;
	color: #0073aa;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: gap 0.2s ease, color 0.15s;
}

.post-card__readmore:hover {
	color: #005b8e;
	gap: 8px;
}

/* =====================================================
   PAGINATION
   ===================================================== */

.blog-pagination {
	display: flex;
	justify-content: center;
	margin-bottom: 60px;
}

.blog-pagination ul.page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	/*border-radius: 6px;*/
	/*border: 1px solid #ddd;*/
	color: #333;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.blog-pagination .page-numbers:hover {
	background: #f5f5f5;
	border-color: #bbb;
}

.blog-pagination .page-numbers.current {
	background: #0073aa;
	border-color: #0073aa;
	color: #fff;
}

.blog-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	cursor: default;
}

/* =====================================================
   SINGLE POST
   ===================================================== */

.single-post__header {
	margin-bottom: 32px;
}

.single-post__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.single-post__cat {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: #0073aa;
	padding: 3px 9px;
	border-radius: 4px;
	text-decoration: none;
}

.single-post__cat:hover {
	background: #005b8e;
}

.single-post__title {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 16px;
}

.single-post__meta {
	font-size: 0.85rem;
	color: #999;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.single-post__meta-sep {
	color: #ccc;
}

.single-post__thumbnail {
	margin-bottom: 40px;
	border-radius: 10px;
	overflow: hidden;
}

.single-post__thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.single-post__header {
	margin-top: 100px;
}

/* Content */
.single-post__content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #2d2d2d;
	max-width: 800px;
	margin: 0 auto 40px;
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
	margin-top: 2em;
	margin-bottom: 0.5em;
	font-weight: 700;
}

.single-post__content a {
	color: #0073aa;
	text-decoration: underline;
}

.single-post__content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.single-post__content blockquote {
	border-left: 4px solid #0073aa;
	padding-left: 20px;
	margin-left: 0;
	color: #555;
	font-style: italic;
}

/* Tags */
.single-post__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 48px;
}

.single-post__tag {
	font-size: 0.82rem;
	color: #555;
	background: #f2f2f2;
	padding: 4px 12px;
	border-radius: 20px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.single-post__tag:hover {
	background: #0073aa;
	color: #fff;
}

.archive-header {
	margin-top: 100px;
}

/* Post navigation */
.post-navigation {
	/*display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;*/
	margin-bottom: 60px;
	padding: 32px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

.post-navigation .nav-next {
	margin-left: auto;
}

.nav-links {
	display: -webkit-box;
display: -ms-flexbox;
display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    width: 100%;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation .nav-label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #999;
	display: block;
}

.post-navigation .nav-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: #0073aa;
}

.post-navigation a {
	text-decoration: none;
}

.post-navigation a:hover .nav-title {
	text-decoration: underline;
}

.post__back {
    display: table;
    margin: 100px auto 50px;
}

.post__back a {
	color: #00b0d9;
	border-bottom: 1px solid;
}

.post__back a:hover {
	color: #0a1f3d;
	border-bottom-color: transparent;
}

/* Related posts */
.related-posts {
	margin-bottom: 60px;
}

.related-posts__title {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 24px;
}

/* No posts */
.no-posts {
	text-align: center;
	padding: 80px 20px;
	color: #999;
	font-size: 1.05rem;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
	/*.archive-container,
	.single-container {
		padding: 40px 16px;
	}*/

	.post__back {
	    display: table;
	    margin: 60px auto 40px;
	}

	.posts-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.post-navigation {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		text-align: left;
	}

	.single-post__header,
	.archive-header {
		margin-top: 80px;
	}

	.blog-pagination,
	.posts-grid {
		margin-bottom: 40px;
	}

	.nav-links {
		    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
                -ms-grid-row-align: flex-start;
            align-items: flex-start;
	}

	.post-navigation .nav-next {
		margin-top: 10px;
	}
}

/**/
.ekit-template-content-footer .elementor-heading-title a {
	color: #fff;
}