/**
 * SocioEducations - Blog Listing Cards
 * Version: 1.0.0
 */

/* =========================================
   BLOG LISTING CONTAINER
========================================= */

.se-blog-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
    padding: 22px 0;
    margin: 0;
    background: #ffffff;
    border-bottom: 1px solid #e8edf3;
    box-sizing: border-box;
}

.se-blog-card:last-child {
    border-bottom: 0;
}

.se-blog-card *,
.se-blog-card *::before,
.se-blog-card *::after {
    box-sizing: border-box;
}

/* =========================================
   FEATURED IMAGE
========================================= */

.se-blog-card-image {
    display: block;
    flex: 0 0 260px;
    width: 260px;
    height: 166px;
    overflow: hidden;
    position: relative;
    border-radius: 9px;
    background: #eef2f7;
    text-decoration: none;
}

.se-blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.se-blog-card:hover .se-blog-card-image img {
    transform: scale(1.045);
}

.se-blog-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #10264b, #2457c5);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* =========================================
   CARD CONTENT
========================================= */

.se-blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 1px 0;
}

.se-blog-card-category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 9px;
    padding: 5px 10px;
    border-radius: 4px;
    background: #eef3ff;
    color: #2457c5;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

/* =========================================
   TITLE
========================================= */

.se-blog-card-header {
    margin: 0;
    padding: 0;
}

.se-blog-card-title {
    margin: 0 0 9px;
    padding: 0;
    color: #172033;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.35px;
}

.se-blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.se-blog-card-title a:hover {
    color: #2457c5;
}

/* =========================================
   EXCERPT
========================================= */

.se-blog-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* =========================================
   META INFORMATION
========================================= */

.se-blog-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: auto;
    color: #8490a2;
    font-size: 12px;
    line-height: 1.5;
}

.se-blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.se-blog-meta-item svg {
    display: block;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {

    .se-blog-card {
        gap: 16px;
        padding: 18px 0;
    }

    .se-blog-card-image {
        flex-basis: 210px;
        width: 210px;
        height: 140px;
    }

    .se-blog-card-title {
        font-size: 18px;
        line-height: 1.4;
    }

    .se-blog-card-excerpt {
        font-size: 13px;
        line-height: 1.6;
        -webkit-line-clamp: 2;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 540px) {

    .se-blog-card {
        display: flex;
        flex-direction: column;
        gap: 13px;
        padding: 17px 0;
    }

    .se-blog-card-image {
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 8px;
    }

    .se-blog-card-content {
        width: 100%;
        padding: 0;
    }

    .se-blog-card-category {
        margin-bottom: 7px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .se-blog-card-title {
        margin-bottom: 7px;
        font-size: 18px;
        line-height: 1.45;
        letter-spacing: -0.2px;
    }

    .se-blog-card-excerpt {
        margin-bottom: 11px;
        font-size: 13px;
        line-height: 1.65;
        -webkit-line-clamp: 2;
    }

    .se-blog-card-meta {
        gap: 13px;
        font-size: 11px;
    }

    .se-blog-meta-item svg {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }

}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 360px) {

    .se-blog-card-title {
        font-size: 16px;
    }

    .se-blog-card-excerpt {
        font-size: 12px;
    }

    .se-blog-card-meta {
        gap: 10px;
        font-size: 10px;
    }

}