/*================== Blog Item (listing / sidebar cards) ===================*/
.blog-item {
    box-shadow: 0px 2px 15px hsl(var(--dark)/0.1);
    border-radius: 0px;
    overflow: hidden;
    height: 100%;
}

.blog-item:hover .blog-item__thumb img {
    transform: scale(1.2);
}

.blog-item__thumb {
    overflow: hidden;
    border-radius: 0px;
    max-height: 300px;
}

.blog-item__thumb img {
    transition: 0.3s linear;
    border-radius: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-item__content {
    background-color: hsl(var(--white)/0.07);
    padding: 35px 25px;
    height: 100%;
}

@media screen and (max-width: 767px) {
    .blog-item__content {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 424px) {
    .blog-item__content {
        padding: 25px 15px;
    }
}

.blog-item__title {
    margin-top: 20px;
}

.blog-item__title-link {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/*================== Blog Details Page ===================*/
.blog-details {
    overflow: hidden;
    box-shadow: 0px 2px 15px hsl(var(--white)/0.25);
    padding-right: 50px;
}

@media screen and (max-width: 991px) {
    .blog-details {
        padding-right: 0px;
    }
}

.blog-details .blog-item {
    box-shadow: none;
}

.blog-details .blog-item__thumb {
    height: 450px;
    max-height: 100%;
}

@media screen and (max-width: 991px) {
    .blog-details .blog-item__thumb {
        height: 350px;
    }
}

@media screen and (max-width: 767px) {
    .blog-details .blog-item__thumb {
        height: 300px;
    }
}

.blog-details .blog-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-details .blog-item__content {
    padding-bottom: 0;
}

.blog-details__content {
    padding: 20px 25px;
}

@media screen and (max-width: 575px) {
    .blog-details__content {
        padding: 15px 15px;
    }
}

.blog-details__title {
    margin-bottom: 15px;
}

.blog-details__desc {
    margin-bottom: 15px;
    color: hsl(var(--dark)/0.85);
    font-size: 16px;
    line-height: 1.8;
}

.blog-details__desc h2,
.blog-details__desc h3,
.blog-details__desc h4 {
    color: hsl(var(--dark));
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-details__desc p {
    margin-bottom: 18px;
}

.blog-details__desc ul,
.blog-details__desc ol {
    margin-bottom: 18px;
    padding-left: 20px;
}

.blog-details__desc a {
    color: hsl(var(--base));
    text-decoration: underline;
}

/* Images pasted from the editor must never exceed the article column width. */
.blog-details__desc img {
    max-width: 770px !important;
    width: auto;
    height: auto !important;
    border-radius: 10px;
    margin: 10px 0 20px;
    display: block;
}

/*================== Blog Sidebar ===================*/
.blog-sidebar-wrapper {
    position: sticky;
    top: 100px;
}

.blog-sidebar {
    border: 1px solid hsl(var(--base)/0.3);
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 17px;
}

.blog-sidebar:last-of-type {
    margin-bottom: 0;
}

@media screen and (max-width: 575px) {
    .blog-sidebar {
        padding: 20px 15px;
    }
}

.blog-sidebar span.border {
    display: block;
    margin-bottom: 32px;
    width: 100%;
    height: 4px;
    background: hsl(var(--base)/0.1);
    border-radius: 30px;
}

.blog-sidebar .hr-line {
    height: 4px;
    width: 60px;
    margin-top: 10px;
    margin-left: 6px;
    border-radius: 30px;
    background-color: hsl(var(--base));
    display: inline-block;
}

.blog-sidebar__title {
    position: relative;
    color: hsl(var(--dark)) !important;
    display: inline-block;
    font-weight: 600;
}

.latest-blog {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.latest-blog:last-of-type {
    margin-bottom: 0;
}

.latest-blog__thumb {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    border-radius: 10px;
    overflow: hidden;
}

.latest-blog__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-blog__title a {
    color: hsl(var(--dark));
}

.latest-blog__title a:hover {
    color: hsl(var(--base));
}

.latest-blog__date {
    font-size: 13px;
    color: hsl(var(--dark)/0.6);
}
