/* =========================================
   SJ Electronics Blog Layout 1
========================================= */

.sj-blog-grid {
    row-gap: 30px;
}

.sj-blog-column {
    display: flex;
}

.sj-blog-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
    background: #1b2636;
    overflow: hidden;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 60px),
        calc(100% - 60px) 100%,
        0 100%
    );
    transition: transform 0.35s ease,
                background 0.35s ease;
}

/* Image */
.sj-blog-image-wrap {
    position: relative;
    width: 100%;
    height: 218px;
    overflow: hidden;
    flex-shrink: 0;
}

.sj-blog-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.sj-blog-card:hover .sj-blog-image {
    transform: scale(1.12);
}

.sj-blog-image-placeholder {
    width: 100%;
    height: 100%;
    background: #263447;
}

/* Date Badge */
.sj-blog-date {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    width: 73px;
    height: 95px;
    background: #1b2636;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sj-blog-date-day {
    font-size: 30px;
    line-height: 1;
    /* font-weight: 700; */
    /* font-family: inherit; */
}

.sj-blog-date-month {
    font-size: 15px;
    font-weight: 600;
    margin-top: 6px;
}

/* Content */
.sj-blog-content {
     padding: 20px 20px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sj-blog-title {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 25px;
    transition: color 0.3s ease;
}

.sj-blog-card:hover .sj-blog-title {
    color: #ed1c24;
}

/* Read More */
.sj-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-top: auto;
    transition: color 0.3s ease,
                gap 0.3s ease;
}

.sj-blog-read-more svg {
    transition: transform 0.3s ease;
}

.sj-blog-card:hover .sj-blog-read-more {
    color: #ed1c24;
    gap: 16px;
}

.sj-blog-card:hover .sj-blog-read-more svg {
    transform: translateX(4px);
}
.sj-blog-tab {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 14px;
}
.sj-blog-tab.active, .sj-blog-tab:hover{
    background: #ed1c24;
    border-color: #ed1c24;
}
.page-id-4 .sj-blog-tabs{
    display: none !important;
}
.sj-blog-category {
    font-size: 10px;
    text-transform: uppercase;
    color: #ed1c24;
}

/* Responsive */
@media (max-width: 1199px) {
    .sj-blog-image-wrap {
        height: 200px;
    }

    .sj-blog-content {
        padding: 30px 24px 25px;
    }

    .sj-blog-title {
        font-size: 16px;
    }
    .sj-blog-tabs{
        overflow-x: auto;
    }
    .sj-blog-tab {
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    .sj-blog-grid {
        row-gap: 25px;
    }

    .sj-blog-image-wrap {
        height: 220px;
    }

    .sj-blog-content {
        padding: 28px 22px 25px;
    }

    .sj-blog-date {
        top: 15px;
        left: 15px;
        width: 65px;
        height: 82px;
    }

    .sj-blog-date-day {
        font-size: 30px;
    }

    .sj-blog-date-month {
        font-size: 14px;
    }
}
