/*
Theme Name: Divi Child
Theme URI: https://www.elegantthemes.com/gallery/divi/
Description: Child theme for Divi
Author: Your Name
Author URI: https://example.com
Template: Divi
Version: 1.0.0
*/


/* =========================================================
   MEDIPLOR BLOG CSS
   ========================================================= */


/* =========================================================
   CATEGORY FILTER PILLS
   ========================================================= */

.custom-blog-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #dddddd;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 18px;

    border-radius: 20px;

    background: #efeffb;
    color: #251688 !important;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.3;
    text-decoration: none !important;

    border: none;
    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.filter-btn:hover {
    background: #3f46d8;
    color: #fff !important;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #251688;
    color: #fff !important;
}


/* =========================================================
   FEATURED POST
   ========================================================= */

.featured-post {
    display: flex;

    background: #fff;

    border: 1px solid #eee;
    border-radius: 16px;

    overflow: hidden;

    margin-bottom: 60px;

    box-shadow: 0 4px 20px rgba(37, 22, 136, 0.08);
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.featured-img {
    flex: 50%;
    min-width: 0;
}

.featured-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-img img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.featured-img a:hover img {
    transform: scale(1.02);
}


/* =========================================================
   FEATURED CONTENT
   ========================================================= */

.featured-content {
    flex: 50%;

    padding: 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
}


/* =========================================================
   FEATURED CATEGORY
   ========================================================= */

.category {
    margin-bottom: 4px;
}

.category a {
    display: inline-block;

    background: #efeffb;

    padding: 5px 12px;

    border-radius: 20px;

    color: #251688 !important;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.3;

    text-decoration: none !important;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.category a:hover {
    background: #3f46d8;
    color: #fff !important;
}


/* =========================================================
   FEATURED TITLE
   ========================================================= */

.featured-content h2 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    margin: 8px 0 14px;
    padding: 0;
}

.featured-content h2 a {
    color: #222222 !important;
    text-decoration: none !important;
    transition: color 0.25s ease;
}

.featured-content h2 a:hover {
    color: #251688 !important;
}

/* =========================================================
   FEATURED EXCERPT
   ========================================================= */

.featured-content .featured-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 20px;
    padding: 0;
}


/* =========================================================
   FEATURED READ MORE
   ========================================================= */

.read-more {
    display: inline-block;
    color: #251688 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.read-more:hover {
    color: #3f46d8 !important;
}


/* =========================================================
   FEATURED AUTHOR
   ========================================================= */

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 14px;
    color: #555;
}

.post-meta img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.meta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.meta-text a.author {
    font-weight: 600;
    font-size: 14px;
    color: #222 !important;
    text-decoration: none !important;
    transition: color 0.25s ease;
}

.meta-text a.author:hover {
    color: #3f46d8 !important;
}

.meta-text .date {
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
}


/* =========================================================
   BLOG GRID
   ========================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* =========================================================
   BLOG CARD
   ========================================================= */

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: #e4e2f5;
    box-shadow: 0 8px 24px rgba(37, 22, 136, 0.08);
}

/* =========================================================
   BLOG CARD IMAGE
   ========================================================= */

.blog-card > a {
    display: block;
    overflow: hidden;
}

.blog-card img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s ease;
}

.blog-card > a:hover img {
    transform: scale(1.02);
}


/* =========================================================
   BLOG CARD CATEGORY
   ========================================================= */

.cat {
    display: inline-flex;
    max-width: max-content;
    margin: 12px 10px 6px;
    padding: 5px 12px;
    background: #efeffb;
    border-radius: 20px;
    color: #251688 !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.cat a {
    color: #251688 !important;
    text-decoration: none !important;
}

.cat:hover,
.cat:hover a {
    background: #3f46d8;
    color: #fff !important;
}


/* =========================================================
   BLOG CARD TITLE
   ========================================================= */

.blog-card h3 {
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
    margin: 10px 10px 8px;
    padding: 0;
}

.blog-card h3 a {
    color: #222222 !important;
    text-decoration: none !important;
    transition: color 0.25s ease;
}

.blog-card h3 a:hover {
    color: #251688 !important;
}

/* =========================================================
   BLOG CARD EXCERPT
   ========================================================= */

.blog-card > p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0 10px 18px;
    padding: 0;
    color: #666;
}

/* =========================================================
   BLOG CARD AUTHOR
   ========================================================= */

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.blog-meta img {
    width: 26px;
    height: 26px;

    border-radius: 50%;
}

.blog-meta .meta-text {
    display: flex;

    flex-direction: column;

    line-height: 1.3;
}

.blog-meta a.author {
    color: #251688 !important;

    font-weight: 500;

    font-size: 12px;

    text-decoration: none !important;

    transition: color 0.25s ease;
}

.blog-meta a.author:hover {
    color: #3f46d8 !important;
}

.blog-meta .date {
    margin-left: 0;

    font-size: 12px;

    color: #888;
}


/* =========================================================
   SIDEBAR CATEGORIES
   ========================================================= */

.sidebar-categories {
    background: #fff;

    padding: 20px;

    border-radius: 16px;

    border: 1px solid #eee;

    box-shadow: 0 4px 15px rgba(37, 22, 136, 0.04);
}

.sidebar-categories h4 {
    margin: 0 0 15px;

    font-size: 18px;

    line-height: 1.4;

    font-weight: 600;

    color: #222;
}

.cat-pills {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.pill {
    display: inline-block;

    padding: 6px 12px;

    background: #f3f4f6;

    border-radius: 20px;

    font-size: 12px;

    line-height: 1.3;

    text-decoration: none !important;

    color: #333 !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.pill:hover {
    background: #3f46d8;

    color: #fff !important;

    transform: translateY(-1px);
}


/* =========================================================
   BLOG PAGINATION
   ========================================================= */

.blog-pagination {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin: 40px 0;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 38px;

    min-height: 38px;

    padding: 8px 14px;

    border-radius: 30px;

    background: #efeffb;

    color: #251688 !important;

    text-decoration: none !important;

    font-size: 13px;

    font-weight: 600;

    line-height: 1;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.blog-pagination a:hover {
    background: #3f46d8;

    color: #fff !important;

    transform: translateY(-1px);
}

.blog-pagination .current {
    background: #251688;

    color: #fff !important;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 980px) {

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 24px;
    }

    .featured-content {
        padding: 30px;
    }

    .featured-content h2 {
        font-size: 24px;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .custom-blog-filters {
        gap: 8px;

        margin: 20px 0;

        padding-bottom: 15px;
    }

    .filter-btn {
        padding: 7px 13px;

        font-size: 12px;
    }


    /* FEATURED */

    .featured-post {
        flex-direction: column;

        margin-bottom: 40px;

        border-radius: 14px;
    }

    .featured-img {
        width: 100%;

        height: 260px;
    }

    .featured-img img {
        width: 100%;

        height: 100%;

        object-fit: cover;
    }

    .featured-content {
        padding: 25px 22px;
    }

    .featured-content h2 {
        font-size: 23px;

        line-height: 1.25;

        margin: 8px 0 12px;
    }

    .featured-content .featured-excerpt {
        font-size: 14px;

        line-height: 1.6;
    }


    /* BLOG GRID */

    .blog-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .blog-card h3 {
        font-size: 17px;

        line-height: 1.45;
    }

    .blog-card > p {
        font-size: 13px;

        line-height: 1.6;
    }


    /* PAGINATION */

    .blog-pagination {
        margin: 30px 0;
    }

    .blog-pagination a,
    .blog-pagination span {
        min-width: 34px;

        min-height: 34px;

        padding: 7px 11px;

        font-size: 12px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .featured-img {
        height: 220px;
    }

    .featured-content {
        padding: 22px 18px;
    }

    .featured-content h2 {
        font-size: 21px;
    }

    .custom-blog-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 11px;

        font-size: 11px;
    }

}