/* =========================================================
   Blog Detail
   ========================================================= */

.blog-show-page {
    background: #fff;
}


/* =========================================================
   Breadcrumb
   ========================================================= */

.blog-breadcrumb {
    border-bottom: 1px solid #eee;
    background: #fbfdff;
}

.blog-breadcrumb-inner {
    min-height: 54px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.blog-breadcrumb-inner a,
.blog-breadcrumb-inner span {
    color: #777;
    font-size: 13px;
    line-height: 21px;
}

.blog-breadcrumb-inner a:hover {
    color: #078ad4;
}

.blog-breadcrumb-inner span {
    color: #999;
}

.blog-breadcrumb-inner i {
    width: 6px;
    height: 6px;
    border-top: 1px solid #aaa;
    border-right: 1px solid #aaa;
    transform: rotate(45deg);
}


/* =========================================================
   Layout
   ========================================================= */

.blog-show-section {
    padding: 60px 0 85px;
}

.blog-show-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 55px;
}


/* =========================================================
   Article Header
   ========================================================= */

.blog-show-header {
    margin-bottom: 30px;
}

.blog-show-meta {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 15px;
}

.blog-show-meta a {
    padding: 3px 10px;
    border-radius: 4px;
    background: #eef8fd;
    color: #078ad4;
    font-size: 12px;
    line-height: 20px;
}

.blog-show-meta a:hover {
    background: #078ad4;
    color: #fff;
}

.blog-show-meta time {
    color: #999;
    font-size: 13px;
    line-height: 20px;
}

.blog-show-header h1 {
    margin: 0 0 17px;
    color: #111;
    font-size: 36px;
    line-height: 48px;
}

.blog-show-header > p {
    margin: 0;
    color: #777;
    font-size: 16px;
    line-height: 25px;
}


/* =========================================================
   Main Image
   ========================================================= */

.blog-show-image {
    width: 100%;
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-show-image img {
    width: 100%;
    height: auto;
    display: block;
}


/* =========================================================
   Content
   ========================================================= */

.blog-show-content {
    color: #555;
    font-size: 15px;
    line-height: 27px;
}

.blog-show-content p {
    margin: 0 0 22px;
}

.blog-show-content h2 {
    margin: 38px 0 16px;
    color: #111;
    font-size: 26px;
    line-height: 36px;
}

.blog-show-content h3 {
    margin: 30px 0 13px;
    color: #111;
    font-size: 20px;
    line-height: 29px;
}

.blog-show-content a {
    color: #078ad4;
}

.blog-show-content a:hover {
    text-decoration: underline;
}

.blog-show-content ul,
.blog-show-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.blog-show-content li {
    margin-bottom: 8px;
}

.blog-show-content ul li {
    list-style: disc;
}

.blog-show-content ol li {
    list-style: decimal;
}

.blog-show-content blockquote {
    margin: 28px 0;
    padding: 20px 25px;
    border-left: 4px solid #078ad4;
    border-radius: 0 7px 7px 0;
    background: #f5faff;
    color: #555;
}

.blog-show-content blockquote p {
    margin: 0;
}


/* Content Image */

.blog-show-content-img {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.blog-show-content-img img {
    width: 100%;
    height: auto;
    display: block;
}


/* Tables inside WordPress content */

.blog-show-content table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
}

.blog-show-content th,
.blog-show-content td {
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    color: #555;
    font-size: 14px;
    line-height: 21px;
    text-align: left;
}

.blog-show-content th {
    background: #f5f8fa;
    color: #222;
}


/* =========================================================
   Bottom
   ========================================================= */

.blog-show-bottom {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.blog-show-category {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.blog-show-category span {
    color: #777;
    font-size: 14px;
}

.blog-show-category a {
    color: #078ad4;
    font-size: 14px;
}

.blog-show-back {
    color: #555;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.blog-show-back i {
    width: 7px;
    height: 7px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease;
}

.blog-show-back:hover {
    color: #078ad4;
}

.blog-show-back:hover i {
    transform: translateX(-3px) rotate(45deg);
}


/* =========================================================
   Sidebar
   ========================================================= */

.blog-show-sidebar {
    min-width: 0;
}


/* Keep categories and related content sticky together */

.blog-show-sidebar-inner {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}


/* =========================================================
   Sidebar Box
   ========================================================= */

.blog-side-box {
    padding: 25px 23px 22px;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .035);
}

.blog-side-title {
    margin-bottom: 20px;
}

.blog-side-title > span {
    display: block;
    margin-bottom: 3px;
    color: #078ad4;
    font-size: 12px;
    line-height: 20px;
}

.blog-side-title h2 {
    margin: 0;
    color: #111;
    font-size: 22px;
    line-height: 30px;
}


/* =========================================================
   Categories
   ========================================================= */

.blog-side-category {
    border-top: 1px solid #eee;
}

.blog-side-category > a {
    min-height: 47px;
    border-bottom: 1px solid #eee;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    transition:
        color .25s ease,
        padding-left .25s ease;
}

.blog-side-category > a::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #078ad4;
    position: absolute;
    left: 0;
    top: 50%;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .25s ease;
}

.blog-side-category > a:hover {
    color: #078ad4;
    padding-left: 12px;
}

.blog-side-category > a:hover::before {
    opacity: 1;
}

.blog-side-category > a span {
    min-width: 0;
    font-size: 14px;
    line-height: 20px;
}

.blog-side-category > a em {
    min-width: 27px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: #f3f5f6;
    color: #888;
    font-size: 11px;
    line-height: 22px;
    text-align: center;
}

.blog-side-category > a:hover em {
    background: #eef8fd;
    color: #078ad4;
}



.blog-side-category > a.current {
    color: #078ad4;
    padding-left: 12px;
}

.blog-side-category > a.current::before {
    opacity: 1;
}

.blog-side-category > a.current em {
    background: #eef8fd;
    color: #078ad4;
}

.blog-side-category > a.current:hover {
    color: #078ad4;
    padding-left: 12px;
}

.blog-side-category > a.current:hover::before {
    opacity: 1;
}

.blog-side-category > a.current:hover em {
    background: #eef8fd;
    color: #078ad4;
}

/* =========================================================
   Related News
   ========================================================= */

.blog-related-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blog-related-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}

.blog-related-item + .blog-related-item {
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.blog-related-img {
    width: 92px;
    height: 68px;
    border-radius: 6px;
    display: block;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-related-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.blog-related-item:hover .blog-related-img img {
    transform: scale(1.05);
}

.blog-related-info {
    min-width: 0;
}

.blog-related-info time {
    display: block;
    margin-bottom: 5px;
    color: #999;
    font-size: 11px;
    line-height: 18px;
}

.blog-related-info h3 {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

.blog-related-info h3 a {
    color: #222;
}

.blog-related-info h3 a:hover {
    color: #078ad4;
}


/* =========================================================
   Tablet
   ========================================================= */

@media screen and (max-width: 1100px) {

    .blog-show-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 35px;
    }

    .blog-show-header h1 {
        font-size: 31px;
        line-height: 42px;
    }

    .blog-side-box {
        padding-left: 19px;
        padding-right: 19px;
    }

    .blog-related-item {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 10px;
    }

    .blog-related-img {
        width: 78px;
        height: 60px;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media screen and (max-width: 767px) {

    .blog-breadcrumb-inner {
        min-height: 48px;
    }

    .blog-breadcrumb-inner a,
    .blog-breadcrumb-inner span {
        font-size: 12px;
    }


    .blog-show-section {
        padding: 42px 0 55px;
    }

    .blog-show-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }


    /* Header */

    .blog-show-header {
        margin-bottom: 24px;
    }

    .blog-show-header h1 {
        margin-bottom: 13px;
        font-size: 27px;
        line-height: 36px;
    }

    .blog-show-header > p {
        font-size: 14px;
        line-height: 22px;
    }


    /* Image */

    .blog-show-image {
        margin-bottom: 28px;
        border-radius: 8px;
    }


    /* Content */

    .blog-show-content {
        font-size: 14px;
        line-height: 24px;
    }

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

    .blog-show-content h2 {
        margin: 30px 0 13px;
        font-size: 22px;
        line-height: 31px;
    }

    .blog-show-content h3 {
        margin: 25px 0 11px;
        font-size: 18px;
        line-height: 27px;
    }

    .blog-show-content-img {
        margin: 24px 0;
    }


    /* Bottom */

    .blog-show-bottom {
        margin-top: 35px;
        align-items: flex-start;
        flex-direction: column;
    }


    /* Disable sticky sidebar on mobile */

    .blog-show-sidebar-inner {
        position: static;
        top: auto;
    }

    .blog-side-box {
        padding: 22px 20px 20px;
    }

    .blog-side-title h2 {
        font-size: 21px;
        line-height: 29px;
    }

    .blog-related-item {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 13px;
    }

    .blog-related-img {
        width: 100px;
        height: 72px;
    }

    .blog-related-info h3 {
        font-size: 14px;
        line-height: 20px;
    }

}