.template-pilar .hero {
    margin-top: 89px;
    height: 400px;
}

.template-pilar .hero-content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    margin-top: 70px;
}

.template-pilar .post-back {
    margin-bottom: 65px;
}

.template-pilar .hero-content span{
    font-weight: 500;
    font-size: 10px;
    line-height: 150%;
    letter-spacing: 0px;
    text-transform: capitalize;
    color: #D4D6D8;
    padding-bottom: 8px;
}

.template-pilar .main{
    background: #FFFFFF;
}

.template-pilar h1 {
    font-family: 'Roboto';
    font-size: 40px;
    font-weight: 500;
    line-height: 48px;
    letter-spacing: 0px;
}

.template-pilar h1 span {
    font-size: 36px;
}

.template-pilar .post__container__content h2 {
    font-family: 'Roboto';
    font-weight: 500;
    font-size: 28px;
    line-height: 33px;
    letter-spacing: 0px;
    margin: 0;
    padding-bottom: 19px;
    padding-top: 34px;
}

.template-pilar .post__container__content img {
    margin-bottom: 0px !important;
    margin-top: 0px !important;
}

.template-pilar .post__container__content h3 {
    color: #141414;
    font-family: 'Roboto';
    font-weight: 500;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 0px;
    margin: 0;
}

.template-pilar .post__container__content p {
    font-family: 'Roboto';
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0px;
    color: #141414;
}

.template-pilar .toc-sidebar {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-left: 20px;
}

.template-pilar .lwptoc {
    position: static !important;
    width: 100% !important;
    top: auto !important;
}

.template-pilar .lwptoc .lwptoc_i {
    background-color: #FFFFFF;
    border: none;
}

.template-pilar .lwptoc_item {
    border-bottom: none;
    margin-bottom: 10px;
    margin-top: 0px;
    padding-bottom: 10px;
}

.template-pilar .lwptoc .lwptoc_i a, .template-pilar .lwptoc .lwptoc_i a:visited {
    color: #8C9298;
    font-size: 12px;
    font-weight: 500;
}

.template-pilar .lwptoc .lwptoc_i a:visited:hover {
    color: #141414;
}

.template-pilar .toc-sidebar .lwptoc_i {
    background: #fff;
    border: none;
    padding: 20px;
}

.template-pilar .toc-sidebar .lwptoc_item {
    margin-bottom: 0px;
    padding-bottom: 10px;
}

.template-pilar .toc-sidebar a {
    color: #8C9298;
    font-size: 12px;
    font-weight: 500;
}

.template-pilar .toc-sidebar a:hover {
    color: #141414;
}

.lwptoc:first-child {
    margin-top: 30px;
}

.template-pilar .lwptoc-baseItems .lwptoc_items {
    font-family: 'Roboto';
    font-weight: 500;
    font-size: 12px;
    line-height: 150%;
    letter-spacing: 0px;
}

.template-pilar .toc-sidebar .lwptoc_item {
    position: relative; 
    padding: 16px;
}

.template-pilar .toc-sidebar .lwptoc_item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background .2s ease;
}

.template-pilar .toc-sidebar .lwptoc_item a:hover {
    color: #141414 !important;
    text-decoration: underline !important;
}

.template-pilar .toc-sidebar .lwptoc_item:hover::before {
    background: #141414;
}

.template-pilar .toc-sidebar .lwptoc_item a:visited,
.template-pilar .toc-sidebar .lwptoc_item a.active {
    color: #141414 !important;
    text-decoration: underline !important;
}

.template-pilar .toc-sidebar .lwptoc_item a:visited::before,
.template-pilar .toc-sidebar .lwptoc_item.active::before {
    background: #141414;
}

.template-pilar .toc-sidebar .lwptoc_item.lwptoc_item_active a {
    color: #141414 !important;
    text-decoration: underline !important;
}

.template-pilar .toc-sidebar .lwptoc_item.lwptoc_item_active::before {
    background: #141414;
}

.template-pilar .toc-sidebar .hubspot-sidebar-widget {
    margin-top: 0px;
    padding: 20px 20px;
}

.template-pilar .toc-sidebar .hubspot-sidebar-widget img {
   width: 100% !important;
   height: auto !important;
   object-fit: contain;
}

.template-pilar .toc-sidebar .hubspot-sidebar-widget a {
   display: block;
}

.post-back img{
    position: relative;
    top: -1px;
    padding-right: 4px;
}

.archive .page-header.author h1{
    margin-top: 10px;
}

.author-top-container .post-back {
    margin-bottom: 15px !important;
}

.template-pilar .post__container {
    margin-top: 15px;
}

.template-pilar .post__container {
    margin-bottom: 64px;
}

.navigation .nav-previous a, .navigation .nav-next a {
    width: auto;
    background: none;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    font-weight: 500;
    padding: 9px 40px;
}

.navigation .nav-previous a:hover, .navigation .nav-next a:hover{
    background: #FFFFFF;
    border: 1px solid #000000;
    color: #000000;
}


@media (max-width: 1200px) {
    .template-pilar .hubspot-sidebar-widget {
        position: static !important;
        width: 100% !important;
        margin-top: 20px;
        padding: 0 0 20px 0; 
    }

    .template-pilar .hero {
        margin-top: 15px;
    }

    .mobile-toc-btn {
        position: fixed;
        bottom: 20px;
        width: 90%;
        z-index: 9999;
        background: #141414;
        color: #fff;
        border: none;
        padding: 12px 18px;
        font-size: 16px;
        cursor: pointer;
        margin-left: 24px;
        font-family: 'Roboto';
    }

    .mobile-toc-overlay {
        display: none;
        position: fixed;
        top: 127px;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,1);
        z-index: 9998;
        overflow-y: auto;
    }

    .mobile-toc-overlay .lwptoc {
        display: block !important;
    }

    .mobile-toc-inner {
        padding: 4px;
    }

    .mobile-toc-close {
        display: block;
        margin-top: 20px;
        background: #141414;
        color: #fff;
        border: none;
        padding: 10px 15px;
        border-radius: 6px;
        cursor: pointer;
    }

    .mobile-toc-overlay a {
        display: block;
        margin-bottom: 12px;
        color: #8C9298;
        font-weight: 500;
        font-size: 14px;
        text-decoration: none;
    }

    .mobile-toc-overlay a:hover,
    .mobile-toc-overlay a:active {
        color: #141414;
        text-decoration: underline;
    }

    .template-pilar h1 {
        font-size: 28px;
        line-height: 33px;
    }
}

@media (max-width: 1199.98px) {
    body {
        padding-top: 106px;
    }
}

@media (max-width: 850px) {
    .ancho-total-grid {
        padding: 0 24px;
    }
    header .ancho-total-grid {
        padding: 8px 24px;
    }
    .home .list-category{
        padding: 64px 24px;
    }
    .header>.container>.row.preheader {
        height: auto;
    }
    .ancho-total-grid .row{
        margin-left: 0;
        margin-right: 0;
    }
    .home .article-category{
        padding: 64px 24px;
    }
}

@media (max-width: 783px) {
    .template-pilar .hero {
        margin-top: 0px;
    }
}

@media (max-width: 768px) {
    .author .card-post {
        margin-bottom: 0;
    }
    
    .row.article-author {
        gap: 32px;
    }
}

@media (max-width: 767.98px) {
    .author .card-post:nth-of-type(1n+3) {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 112.8px;
    }
    .featured-hero {
        padding-top: 0;
    }
    .author-top-container .author-info-left {
        padding: 40px 30px 64px 30px;
    }

    .template-pilar .hero-content {
        margin-top: 100px;
    }
}


@media (min-width: 992px) {
    .template-pilar .hero-content {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .template-pilar .form-title, .template-pilar .hero-content, .template-pilar .post__container {
        margin-left: 0;
    }
}