/* blog styles Start */
.post-thumbnail .wp-post-image{
    aspect-ratio: 1.926 / 1;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media(max-width: 425px){
    .post-thumbnail .wp-post-image{
    aspect-ratio: 1.359 / 1;
    height: 100%;
    width: 100%;
    object-fit: cover;
}
}

.media-attachment img {
    border-radius: 20px;
    border: 1px solid #F5F5F7;
}

.content-body {
    max-height: 468px;
    min-height: 260px;
    position: relative;
}
.woocommerce-pagination{
    float: left;
}
.post-readmore{
    position: absolute !important;
    bottom: 0 !important;
}

.post-readmore .btn{
    background-color: black !important;
    color: #fff !important;
    transition: 0.3s;
    border-radius: 25px;
    border-color: black !important;
    font-size: 18px !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
}

.post-readmore .btn:hover{
    background-color: #fff !important;
    color: black !important;
}

article .entry-content{
    color: #000000 !important;
}

.entry-meta a{
    font-size: 15px !important;
}
@media(min-width:768px){
.content-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.entry-header {
    flex-shrink: 0;
    min-height: 100px; /* Adjust this value */
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.entry-title {
    line-height: 1.3;
    margin-bottom: 10px;
    /* Force 2 lines maximum */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em; /* line-height × number of lines */
    font-size: 25px;
    font-weight: 700;
}

.entry-meta {
    margin-top: auto;
}

.entry-content {
    flex: 1;
}

.blog{
    padding-inline: 25px;
}
}

.sidebar-blog{
    display: block !important;
}

.entry-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* ✅ number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



@media (min-width: 992px) and (min-width: 1200px) {
    .blog-grid article.post {
        padding-right: 25px;
        padding-left: 25px;
    }
}

@media (max-width: 1199px) {
    .woocommerce-breadcrumb {
        display: block;
    }
}

/* Remove default WordPress meta separators */
.entry-meta .posted-on::after,
.entry-meta .author::after,
.entry-meta .cat-links::after,
.entry-meta .meta-separator::after {
    display: none !important;
}

/* Remove any other potential separator elements */
.entry-meta .sep,
.entry-meta .meta-sep {
    display: none;
}

/* blog side bar styles */
.single-blog .custom-slick-nav a:first-child{
    padding: 2px 13px 3px 12px !important;
    margin-right: 7px;
}

.single-blog .custom-slick-nav a{
    padding: 2px 12px 3px 14px !important;
    border:1px solid black;
    border-radius: 100%;
    font-size: 20px !important;
    color: #fff !important;
    background-color: black !important;
}

.single-blog .custom-slick-nav a:hover{
    border:1px solid black;
    border-radius: 100%;
    font-size: 20px !important;
    color: black !important;
    background-color: #fff !important;
}

.single-blog .custom-slick-nav{
    margin-top: -8px;
}
    
article .entry-header h1.entry-title, article.post .entry-header h1.entry-title {
    font-size: 30px !important;
    letter-spacing: -0.01em;
    font-weight: 700;
    margin-bottom: 0.32em;
    padding-bottom: 0.32em;
    min-height: 0;
}

#secondary.sidebar-blog .widget .widget-title, #secondary.sidebar-blog .widget .section-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 1.842em;
    padding-bottom: 1.053em;
    position: relative;
    line-height: 1em;
}
.sidebar-blog .post-thumbnail{
    aspect-ratio: 1/1 !important;
    height: auto;
    border-radius: 25px;
}

.sidebar-blog .post-thumbnail img{
    aspect-ratio: 1/1 !important;
    height: auto;
    border-radius: 25px;
}

.techmarket_posts_carousel_widget .post-item .post-content .post-name{
    font-weight: 700 !important;
}

@media(min-width: 1700px){
.single-blog #primary {
    max-width: 83.3333% !important;
    order: 2;
    flex: 0 0 83.3333% !important;
}
}

@media (min-width: 1200px) and (max-width: 1699px) {
    .single-blog #primary {
        max-width: 78.3333%;
        order: 2;
        flex: 0 0 78.3333%;
    }
}

@media (min-width: 1200px) and (max-width: 1589px) {
.single-blog #primary {
    max-width: 75% !important;
    flex: 0 0 75% !important;
}
}

@media (min-width: 992px) and (max-width: 1199px) {
.single-blog #primary {
    max-width: 70.8333% !important;
    flex: 0 0 70.8333% !important;
}
}
/* blog side bar styles end */
/* blog styles END */

@media (max-width: 450px) {
    .single-blog .custom-slick-nav {
        display: block;
;
    }
}

/* Desktop: uniform heights */
@media (min-width: 769px) {
    .content-body {
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* pushes button to bottom */
        min-height: 318px;
        max-height: 468px; /* same height for all cards */
    }

    .post-content {
        overflow: hidden; /* in case excerpt is too long */
    }
}

/* Mobile: dynamic heights */
@media (max-width: 768px) {
    .content-body {
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* button follows content */
        min-height: auto;
        max-height: none; /* let content grow naturally */
    }

    .post-readmore {
		position: relative !important;
        margin-top: 10px; /* spacing after content */
    }
}

.single-blog .woocommerce-breadcrumb, .blog .woocommerce-breadcrumb{
    padding-left: 15px !important
}

/* temporary: should find where the one px is skipped */
@media (width: 768px) {
    .content-body {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 350px;
        max-height: none;
    }

    .post-readmore{
        position: absolute !important;
    }
}