/*
	Theme Name:	Xtra Child
	Theme URI:	http://themeforest.net/user/Codevz/portfolio
	Description:Sample child theme of Xtra theme for customization.
	Author:		Codevz
	Author URI:	http://themeforest.net/user/Codevz
	Template:	xtra
	Version:	1.0
*/

/* Сетка архива */
.blog-grid {
	margin-top: 40px;
	margin-bottom: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.blog-archive-wrapper{
	padding-top: 100px;
}
.blog-archive-wrapper .page-title{
	color:#b56b9b;
}
.blog-archive-wrapper .pagination{
	display: flex;
	justify-content: center;
}

.blog-card {
		border-radius:8px;
		width: calc(33.33% - 22px);
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s;
		background: #f7f7f7;
}
.blog-grid-small{
	margin-top: 40px;
}
.blog-card-small{
	margin-bottom: 40px;
	display: flex;
	gap: 40px;
	justify-content: space-between;
  max-width: 685px;
}
.blog-card-small h3 a{
	color:#52658d;
}
.blog-card-image-small img{
	min-width: 100px;
	border-radius:12px;
}
.blog-card:hover {
    border-color: #52658d;
}
.blog-card:hover .blog-arrow-link{
    background:#52658d;
		transition: all ease .3s;
}
.blog-card:hover .blog-date{
    color:#52658d;
		transition: all ease .3s;
}
.blog-card-image-small img{
	width: 100px;
	height: 100px;
	object-fit: cover;
}
.blog-card-image {
		
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
		height: 260px;
}

.blog-card-image img {
		border-top-left-radius: 8px;
		border-top-right-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
		color:#52658d;
}
.blog-grid-small .blog-card-title{
	max-width: 685px;
}
.blog-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.blog-arrow-link {
    background: #222;
    color: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
		border-radius:4px;
}

/* Одиночная страница */
.single-blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
		padding-top: 100px;
}
.single-blog-container  .entry-title{
	color: #b56b9b;
}
.blog-main__img{
	margin-bottom: 40px;
}
.blog-main__img img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	overflow: hidden;
}
.entry-meta-bottom {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.entry-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 30px 0;
}
.blog-post-full blockquote{
	margin: 20px 0 !important;
}
.blog-post-full ul{
	margin: 20px 0;
	margin-left: 15px;
}
.blog-post-full p {
	margin-bottom: 20px;
}
.blog-post-full h2,.blog-post-full h3,.blog-post-full h4{
	color:#52658d;
}
.related-topics{
	margin-top: 60px;
}
.blog-post-full img{
	border-radius:8px;
}
.blog-post-full a{
	font-weight: 600;
	text-decoration: underline;
}
.related-topics a{
	text-decoration: none;
	font-weight: normal;
}
.related-topics .related-excerpt{
	line-height: normal;
}
.related-topics__title{
	font-size: 32px;
	font-weight: 700;
	color:#b56b9b;	
}
.related-grid{
	display: flex;
	flex-wrap: wrap;
	margin-top: 40px;
	gap: 30px;
}
.related-item{
	width: calc(33.33% - 22px);
	border: 1px solid #e0e0e0;
	transition: all ease .3s;
	border-radius: 8px;
  
}
.related-item:hover{
	 border: 1px solid #52658d;
	 transition: all ease .3s;
}
.related-item:hover .related-arrow{
	 background:#52658d;
	  transition: all ease .3s;
}
.related-image{
	width: 100%;
	height: 260px;
	overflow: hidden;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}
.related-image img{
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all ease .4s;
}
.related-content{
	padding: 20px;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	background:#f7f7f7;
}
.related-title{
	color:#52658d;	
	font-size: 24px;	
}
.related-footer{
	margin-top: 20px;
	display: flex;
	align-items:center;
	justify-content: space-between;
}
.related-arrow{
	display: flex;
	align-items:center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius:4px;
	color:#fff;
	font-size: 18px;
	background:#222;
	 transition: all ease .3s;
}
.cta-card {
  background: #ffffff;
  border-left: 5px solid #52658d;
  border-radius: 8px;
  padding: 24px;
  max-width: 450px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-family: sans-serif;
  margin: 20px 0;
}

.cta-content h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 18px;
}

.cta-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-flex;
  background-color: #52658d;
  color: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s ease;
}
.cta-button br{
	display: none;
}
.cta-button:hover {
  background-color: #52658d;
	color: #ffffff;
}
.blog-card-excerpt{
  line-height: normal;
}
.blog-archive-wrapper h1{
	font-size: 40px;
}
.all-posts-section h2{
	color:#b56b9b;
}
@media(max-width:992px){
	.related-item,.blog-card{
		width: calc(50% - 17px);
	}
}
@media(max-width:768px){
	.single-blog-container{
		padding-top: 60px;
	}
	.related-item,.blog-card{
		width: 100%;
	}
	.blog-card-image,.related-image{
		height: 200px;
	}
	.single-blog-container .entry-title{
		font-size: 32px !important;
		line-height: normal;
	}
	.blog-post-full h2, .blog-post-full h3, .blog-post-full h4{
		font-size: 26px;
  	line-height: normal;
	}
	.blog-archive-wrapper h1{
	font-size: 32px;
}
}