section.blog-section {
    padding: 30px 0;
}

section.blog-section .site-container {
    display: flex;
    justify-content: space-between;
}

.blog-area {
    flex-basis: 75%;
    width: 100%;
    max-width: 75%;
    margin-right: 15px;
}

.sidebar {
    flex-basis: 25%;
}

.recent-post-area {
    display: flex;
    align-items: flex-start;
}

.left-area {
    margin-right: 15px;
    flex-basis: 50%;
}

.right-area {
    flex-basis: 50%;
    margin-left: 15px;
}

a.right-box {
    display: flex;
    margin: 0 0 30px 0;
    align-items: center;
}

a.right-box img {
    flex: 0 0 25%;
    max-width: 25%;
    border-radius: 10px;
}

a.right-box h3 {
    line-height: 1.3;
    font-size: 18px;
}
a.left-box img {
    border-radius: 10px;
    margin-bottom: 10px;
}
a.left-box h3 {
    line-height: 1.3;
}
a.left-box p {
    margin: 5px 0;
    line-height: 1.4;
    color: #373737;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    padding: 0;
}
.box-content p {
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    padding: 0;
    line-height: 1.3;
    font-size: 16px;
    color: #373737;
}

.box-content {
    padding: 0 15px;
}
.cat-box-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1b1aa1;
    padding: 5px 15px;
}

.cat-box-heading > * {
    color: white;
}
.cat-box {
    margin-bottom: 20px;
}
.cat-box-heading a:hover {
    color: white;
}
.cat-box h2 {
    font-size: 22px;
}
/* css style 1 */
.style1 .cat-box-content {
    display: flex;
    padding: 15px 10px;
    background: #e9e9e9;
    flex-wrap: wrap;
}

.style1 a.item-box {
    display: flex;
    flex-basis: calc(50% - 20px);
    align-items: center;
    margin: 10px;
    background: white;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 6px 0px 50px 0px rgba(7.999999999999972, 0, 63, 0.1);
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

.style1 a.item-box img {
    flex: 0 0 30%;
    max-width: 30%;
    object-fit: cover;
    border-radius: 10px;
    width: 100%;
    height: 100px;
}

.style1 .item-content h3 {
    font-size: 18px;
    line-height: 1.3;
}

.style1 .item-content p {
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    padding: 0;
    color: #383838;
    line-height: 1.3;
}
.style1 a.item-box:hover {
    box-shadow: 35px 10px 50px 0px rgba(7.9, 0, 63, 0.1);
}
/* end css style 1 */
/* css style 2 */
.style2 .cat-box-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.style2 a.item-box {
    flex-basis: calc(33.33% - 15px);
    margin: 15px 10px;
}

.style2 a.item-box img {
    width: 100%;
    height: 185px;
    object-fit: cover;
}

.style2 .item-content {
    padding: 10px 0;
}

.style2 .item-content h3 {
    font-size: 19px;
    line-height: 1.3;
}

.style2 .item-content p {
    margin: 5px 0;
    color: #373737;
    /* line-height: 1.3; */
}

.style2 .cat-box-content a:nth-child(3n) {
    margin-right: 0;
}

.style2 .cat-box-content a:nth-child(3n+1) {
    margin-left: 0;
}

/* end style 2 */
@media screen and (max-width: 768px) {
	.sidebar {
		flex-basis: 40%;
	}
	.blog-area {
		flex-basis: 60%;
		width: 100%;
		max-width: 60%;
		margin-right: 15px;
	}

	.recent-post-area {
		display: flex;
		flex-direction: column;
	}

	.right-area {
		margin-left: 0;
		margin-top: 20px;
	}

	.style2 a.item-box {flex-basis: calc(50% - 15px);}

	.style2 .cat-box-content a:nth-child(3n+1) {
		margin-left: 10px;
	}

	.style2 .cat-box-content a:nth-child(3n) {
		margin-right: 10px;
	}

	.style2 .cat-box-content a:nth-child(2n) {
		margin-right: 0;
	}

	.style2 .cat-box-content a:nth-child(2n+1) {margin-left: 0;}

	.style1 a.item-box {
		display: flex;
		flex-direction: column;
	}

	.style1 a.item-box img {
		flex: 100%;
		max-width: 100%;
		margin-bottom: 10px;
	}

	.style1 .item-content {
		padding: 0;
	}

	.style1 .item-content h3 {
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		padding: 0;
	}
	
}
@media screen and (max-width: 540px) {
	section.blog-section .site-container {
		display: flex;
		flex-direction: column;
	}

	.blog-area {flex-basis: 100%;max-width: 100%;margin-right: 0;}

	.left-area {
		margin-right: 0;
	}
	.style2 a.item-box {
		flex-basis: 100%;
		margin: 15px 0;
	}

	.style1 .cat-box-content {
		display: flex;
		flex-direction: column;
	}

	.style1 a.item-box {
		padding: 10px;
		display: flex;
		flex-direction: row;
		align-items: flex-start;
	}

	.style1 a.item-box img {
		flex: 0 0 30%;
		max-width: 30%;
		margin-right: 10px;
		height: 80px;
	}

	a.right-box {
		display: flex;
		align-items: flex-start;
	}
}