.post-template-default .sidebar-main .meta-label {
    color: #2E75B6;
    font-size: 14px;
    font-family: "Karla";
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.12px;
    text-transform: uppercase;
    text-box: trim-both cap alphabetic;
    margin-bottom: 0.25rem;
}

.post-template-default h1.entry-title {
    color: #1E1E1E;
    font-family: "Inter Tight";
    font-size: 42px !important;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    margin-bottom: 3.5rem !important;
}

.post-template-default .sidebar-main .meta-value {
    color: #1E1E1E;
    font-family: "Inter Tight";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
}

.post-template-default #primary h2 {
    color: #2E75B6;
    font-family: "Inter Tight";
    font-size: 34px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
}

.post-template-default #primary h3 {
    color: #2E75B6;
    font-family: "Inter Tight";
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
}

.post-template-default #primary h4 {
    color: #2E75B6;
    font-family: "Inter Tight";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
}

.post-template-default #primary h5 {
    color: #2E75B6;
    font-family: "Inter Tight";
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
}

.post-template-default #primary h6 {
    color: #2E75B6;
    font-family: "Inter Tight";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
}

.post-template-default .ast-single-entry-banner img {
    max-height: 540px;
    object-fit: cover;
}

.post-template-default #content {
    background: #F4F4F7;
}

.post-template-default .sidebar-main aside,
.ast-separate-container .ast-article-single {
    background: transparent !important;
}

.post-template-default #secondary,
.post-template-default #primary {
    margin-top:  0 !important;
}

.ast-separate-container .ast-article-single p,
.ast-separate-container .ast-article-single li {
    color: #1E1E1E;
    font-family: "Inter Tight";
    font-size: 20px;
    font-weight: 300;
    line-height: 180%;
}

.post-template-default.ast-separate-container.ast-two-container #secondary .widget {
    padding: 2.5em 2em;
}

.post-template-default .sidebar-main  {
    position: sticky;
    top: 100px;   
}

.back-blog-link,
.related-posts-cta-wrapper a {
    color: #2E75B6;
    font-family: Karla;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 5px;
    width: fit-content;
    border-bottom: 1px solid transparent;
    position: relative;
    margin-bottom: 2.5rem !important;
}

.back-blog-link:hover,
.related-posts-cta-wrapper a:hover {
    border-bottom: 1px solid; 
}

.back-blog-link img {
    transform: rotate(180deg);
    height: 10px;
    width: 10px;
}

.back-blog-link::after {
    content: "Blog";
    background: #2E75B6;
    color: #FFFAFA;
    padding: 10px 15px;
    font-family: Karla;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0.96px;
    text-transform: uppercase;
    right: -80px;
    position: absolute;
}

/* Top layout for the Related Posts block */
.ast-single-related-posts-container {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr);
    grid-auto-rows: auto;
    column-gap: 2.5rem;
    row-gap: 0.4rem;
    margin-top: 3rem;
}

/* Subhead: top-left */
.ast-single-related-posts-container .related-posts-subhead {
    grid-column: 1;
    grid-row: 1;
    color: #2E75B6;
    font-family: Karla;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 1.28px;
    text-transform: uppercase;
    position: relative;
    padding-left: 21px;
    margin-bottom: 10px;
}

/* Title: under subhead, still left column */
.ast-single-related-posts-container .ast-related-posts-title-section {
    grid-column: 1;
    grid-row: 2;
}

/* Intro: right column, vertically spanning subhead + title */
.ast-single-related-posts-container .related-posts-intro {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 22px;
    line-height: 1.60;
    max-width: 745px;
    font-weight: 300;
    align-self: flex-end;
    margin-bottom: 20px;
}

/* Cards: full width, under header row */
.ast-single-related-posts-container .ast-related-posts-wrapper {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 1.5rem;
}

.ast-related-posts-title {
    color: #1E1E1E;
    font-family: "Inter Tight";
    font-size: 38px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    max-width: 400px;
}

.related-posts-subhead:before {
    position: absolute;
    content: '';
    width: 11px;
    height: 11px;
    background-image: url(/wp-content/uploads/2025/08/heading-icon.svg);
    top: 2px;
    left: 0;
}

.related-posts-cta-wrapper a span {
    position: relative;
    padding-right: 14px;
}

.related-posts-cta-wrapper a span:after {
    position: absolute;
    content: '';
    width: 6px;
    height: 6px;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    background-image: url(/wp-content/uploads/2025/08/button-hover-arrow.svg);
    background-size: cover;
}

.ast-related-posts-wrapper .ast-taxonomy-container.cat-links {
    position: absolute;
    top: 5px;
    right: 5px;
    margin: 5px 5px 0 0;
    background: #FFF;
    padding: 8px 15px;
    font-size: 12px;
    font-family: "Karla";
    font-weight: 600;
    letter-spacing: 0.96px;
    text-transform: uppercase;
    line-height: 1;
}

.ast-related-posts-wrapper .ast-taxonomy-container.cat-links a {
    font-size: inherit;
    color: #1E1E1E;
    line-height: 1;
}

a.related-read-more-btn {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    line-height: 0.9em;
    letter-spacing: 1px;
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-family: Karla;
    width: fit-content;
    border-bottom: 1px solid transparent;
    padding-bottom: 5px;
}

a.related-read-more-btn:after {
    content: '';
    width: 6px;
    height: 6px;
    background-image: url(http://segmatics.liftedsolutions.com/wp-content/uploads/2025/08/button-hover-arrow.svg);
    background-size: cover;
    display: block;
    position: relative;
}

a.related-read-more-btn:hover {
    border-bottom: 1px solid;
}

.post-template-default .navigation.post-navigation {
    display: none;
}

.post-template-default .ast-related-post-excerpt.entry-content.clear {
    display: none;
}

.ast-related-post-content .entry-header .ast-related-post-title {
    font-size: 24px !important;
    line-height: 1.2;
}

/* Responsive CSS */

@media (min-width: 922px) {
    .post-template-default .ast-single-related-posts-container {
        max-width: 1326px;
        margin-left: auto;
        margin-right: auto;
    }
    .related-posts-cta-wrapper {
        max-width: 1326px;
        padding-left: 40px;
        padding-right: 40px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        justify-items: flex-end;
    }
}


/* Mobile CSS */

@media (max-width: 500px) {
    .post-template-default .ast-single-entry-banner {
        padding: 3.5em 1.5em 0;
    }
    
    .post-template-default h1.entry-title,
    h2.ast-related-posts-title {
        font-size: 30px !important;
    }
    
    .ast-separate-container .ast-article-single p,
    .ast-separate-container .ast-article-single li,
    .ast-single-related-posts-container .related-posts-intro {
        font-size: 16px !important;
        margin-bottom: 0;
    }
    
    .post-template-default .sidebar-main .meta-value {
        font-size: 20px !important;
    }
    
    .post-template-default.ast-separate-container.ast-two-container #secondary .widget {
        padding: 0 1rem;
    }
    
    .ast-single-related-posts-container {
        display: flex;
        flex-direction: column;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .related-posts-cta-wrapper a {
        padding-left: 20px;
    }
}

@media screen and (min-width:501px){
	.related-posts-cta-wrapper a {
        padding-left: 2.5em;
    }
}