h1 {
    color: #613842;
}

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

.blog-header .row {
    align-items: center;
}

.blog-header-img,.blog-list-thumb {
    position: relative;
}

.blog-header-img img,
.blog-list-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-header-img::before,
.blog-list-thumb::before {
    content: "";
    display: block;
    padding: 50% 0;
}

.blog-header.category h1{
    margin: 0 0 30px;
}

.blog-header.category .blog-header-img::before{
    padding: 25% 0;
}

.blog-list {
    padding: 90px 0;
}

.blog-list h2 {
    text-align: center;
    margin: 0 0 24px;
    font-family: 'NocturneSerif-Normal';
}

.blog-list .owl-nav {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 18px;
}

.blog-list .owl-carousel .owl-nav button {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #555;
    border-radius: 50%;
    transition: all 0.5s ease;
}
.blog-list .owl-carousel .owl-nav button:hover{
    transform: scale(1.1);
}

.blog-list-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-list-link {
    display: block;
    color: #3E4B4E;
    transition: color 0.3s ease;
}

.blog-list-link:hover {
    color: #000;
}

.blog-list-thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.blog-list-thumb img {
    transition: transform 0.5s ease;
}

.blog-list-thumb:hover img,
.blog-list-item:hover img {
    transform: scale(1.1);
}

.blog-single-content {
    font-size: 16px;
}

.blog-categories {
    background: #f9f9f9;
}

/* Horizontal list layout for recent blogs */

.blog-list-horizontal {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e0de;
}

.blog-list-row-item:first-child .blog-list-horizontal {
    padding-top: 0;
}

.blog-list-horizontal-thumb {
    flex: 0 0 320px;
    width: 320px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #f0eeec;
}

.blog-list-horizontal-thumb::before {
    content: "";
    display: block;
    padding-top: 66%;
}

.blog-list-horizontal-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.blog-list-horizontal:hover .blog-list-horizontal-thumb img {
    transform: scale(1.05);
}

.blog-list-horizontal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.blog-list-horizontal-content h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.35;
}

.blog-list-horizontal-content article p {
    margin: 0;
    color: #726b67;
    line-height: 1.6;
}

/* Media Queries */

@media screen and (min-width: 992px) {
    .blog-categories .blog-list:nth-child(2n) .col-lg-6:first-child {
        order: 2;
    }
    
    .blog-categories .blog-list:nth-child(2n) .owl-nav {
        justify-content: flex-start;
    }

    .blog-list .row .col-lg-3:nth-child(n+5){
        margin-top: 60px;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .blog-list .row .col-lg-3:nth-child(n+4){
        margin-top: 40px;
    }
}

@media screen and (max-width: 1200px) {
    .blog-categories .blog-list .col-lg-6:first-child {
        margin-bottom: 24px;
    }
}

@media screen and (max-width: 767px) {
    .blog-list {
        padding: 30px 0;
    }
    .blog-list .row .col-lg-3:not(:first-child){
        margin-top: 30px;
    }

    .blog-list-horizontal {
        flex-direction: column;
        gap: 14px;
    }

    .blog-list-horizontal-thumb {
        flex: 0 0 auto;
        width: 100%;
    }
}