/* =========================================================
   MEDISTORE CHILD - BLOG PAGE
   ========================================================= */

.medistore-blog-page {
    background: #f7faf9;
    min-height: 100vh;
}

.medistore-blog-page .blog-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.blog-hero {
    padding: 70px 0 55px;
    background: #fff;
    border-bottom: 1px solid #e4eeee;
}

.blog-hero-content {
    max-width: 720px;
}

.blog-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #087b78;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.blog-hero h1 {
    margin: 0 0 15px;
    color: #082f35;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 700;
}

.blog-hero p {
    max-width: 650px;
    margin: 0;
    color: #607477;
    font-size: 17px;
    line-height: 1.7;
}

.blog-posts-section {
    padding: 55px 0 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
}

.blog-grid::before,
.blog-grid::after {
    display: none !important;
}

.blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe9e8;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 40, 40, .04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 40, 40, .10);
}

.blog-card-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #eef5f4;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.blog-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #edf6f5;
    color: #087b78;
    font-size: 15px;
    font-weight: 600;
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
    font-size: 12px;
}

.blog-category {
    color: #087b78;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    text-decoration: none;
}

.blog-category:hover {
    text-decoration: underline;
}

.blog-date {
    color: #87999b;
}

.blog-date::before {
    content: "•";
    margin-right: 12px;
    color: #b4c5c4;
}

.blog-card-title {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}

.blog-card-title a {
    color: #082f35;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #087b78;
}

.blog-card-excerpt {
    margin-bottom: 20px;
    color: #687a7c;
    font-size: 14px;
    line-height: 1.7;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    width: fit-content;
    color: #087b78;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.blog-read-more span {
    transition: transform .2s ease;
}

.blog-read-more:hover {
    color: #055f5d;
}

.blog-read-more:hover span {
    transform: translateX(4px);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0 4px;
    padding: 0 12px;
    border: 1px solid #d6e4e3;
    border-radius: 8px;
    background: #fff;
    color: #16464b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: #087b78;
    border-color: #087b78;
    color: #fff;
}

.blog-no-posts {
    padding: 80px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #e1ebea;
    border-radius: 14px;
}

.blog-no-posts h2 {
    margin-bottom: 10px;
    color: #082f35;
}

.blog-no-posts p {
    color: #687a7c;
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-card-image {
        height: 210px;
    }
}

@media (max-width: 600px) {
    .medistore-blog-page .blog-container {
        width: min(100% - 28px, 1180px);
    }

    .blog-hero {
        padding: 45px 0 40px;
    }

    .blog-hero h1 {
        font-size: 34px;
    }

    .blog-hero p {
        font-size: 15px;
    }

    .blog-posts-section {
        padding: 35px 0 55px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-image {
        height: 220px;
    }

    .blog-card-content {
        padding: 20px;
    }
}
