/* =====================================
   CITIZEN HEALTH INDIA - BLOG CARDS
===================================== */

.chi-blog-section {
    padding: 30px 20px;
    background: #f8fafc;
}

.chi-blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.chi-blog-heading {
    max-width: 700px;
    margin: 0 auto 25px;
    text-align: center;
}

.chi-blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    margin-bottom: 18px;
    border-radius: 30px;
    background: #fff0f0;
    color: #ed1c24;
    font-size: 13px;
    font-weight: 700;
}

.chi-blog-heading h2 {
    margin: 0 0 16px;
    color: #172033;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
}

.chi-blog-heading h2 span {
    color: #ed1c24;
}

.chi-blog-heading p {
    margin: 0;
    color: #687386;
    font-size: 15px;
    line-height: 1.8;
}

.chi-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.chi-blog-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(20, 35, 60, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chi-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(20, 35, 60, 0.12);
}

.chi-blog-image {
    position: relative;
    display: block;
    height: 230px;
    overflow: hidden;
    background: #edf1f5;
}

.chi-blog-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.chi-blog-card:hover .chi-blog-image img {
    transform: scale(1.06);
}

.chi-blog-image-arrow {
    position: absolute;
    right: 15px;
    bottom: 15px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ed1c24;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.chi-blog-card:hover .chi-blog-image-arrow {
    opacity: 1;
    transform: translateY(0);
}

.chi-blog-image-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #ed1c24;
    font-size: 55px;
}

.chi-blog-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px;
}

.chi-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 17px;
    font-size: 12px;
}

.chi-blog-category {
    color: #ed1c24;
    font-weight: 700;
}

.chi-blog-date {
    color: #7b8494;
}

.chi-blog-meta i {
    margin-right: 4px;
}

.chi-blog-content h3 {
    margin: 0 0 13px;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 750;
}

.chi-blog-content h3 a {
    color: #172033;
    text-decoration: none;
    transition: color 0.25s ease;
}

.chi-blog-content h3 a:hover {
    color: #ed1c24;
}

.chi-blog-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 22px;
    color: #687386;
    font-size: 14px;
    line-height: 1.8;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.chi-blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: #ed1c24;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.chi-blog-readmore i {
    transition: transform 0.25s ease;
}

.chi-blog-readmore:hover i {
    transform: translateX(5px);
}

.chi-blog-empty {
    grid-column: 1 / -1;
    padding: 55px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 16px;
}

.chi-blog-empty>i {
    color: #ed1c24;
    font-size: 42px;
}

.chi-blog-empty h3 {
    margin: 15px 0 8px;
    color: #172033;
}

.chi-blog-empty p {
    margin: 0;
    color: #687386;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .chi-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .chi-blog-image {
        height: 210px;
    }
}

@media (max-width: 600px) {
    .chi-blog-section {
        padding: 20px 16px;
    }

    .chi-blog-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .chi-blog-image {
        height: 230px;
    }

    .chi-blog-content {
        padding: 15px;
    }

    .chi-blog-content h3 {
        font-size: 19px;
    }
}

.chi-bd-hero {
    padding: 28px 20px 29px;
    background: #f8fafc;
}

.chi-bd-container {
    max-width: 1120px;
    margin: 0 auto
}

.chi-bd-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 13px;
    overflow-wrap: anywhere;
    justify-content: center;
}

.chi-bd-crumb a {
    color: #ed1c24;
    text-decoration: none
}

.chi-bd-heading {
    max-width: 900px;
    margin: auto;
    text-align: center
}

.chi-bd-category {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 14px;
    border-radius: 30px;
    background: #fff0f0;
    color: #ed1c24;
    font-size: 13px;
    font-weight: 700
}

.chi-bd-heading h1 {
    margin: 10px 0;
    color: #172033;
    font-size: 35px;
    line-height: 1.22;
    font-weight: 600;
}

.chi-bd-intro {
    max-width: 800px;
    margin: 0 auto;
    color: #687386;
    font-size: 16px;
    line-height: 1.8
}

.chi-bd-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
    color: #687386;
    font-size: 13px
}

.chi-bd-meta i {
    margin-right: 6px;
    color: #ed1c24
}

.chi-bd-main {
    padding: 55px 20px 80px;
    background: #fff
}

.chi-bd-layout {
    max-width: 1370px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
    align-items: start
}

.chi-bd-article {
    min-width: 0
}

.chi-bd-cover {
    /*width: 100%;*/
    /*max-height: 520px;*/
    object-fit: cover;
    display: block;
    border-radius: 18px;
    margin-bottom: 30px;
    background: #f1f5f9
}

.chi-bd-content {
    color: #3d4859;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere
}

.chi-bd-content h2,
.chi-bd-content h3,
.chi-bd-content h4 {
    color: #172033;
    line-height: 1.4;
    margin: 30px 0 12px
}

.chi-bd-content p {
    margin: 0 0 20px
}

.chi-bd-content ul,
.chi-bd-content ol {
    padding-left: 25px;
    margin: 0 0 22px
}

.chi-bd-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px
}

.chi-bd-content a {
    color: #ed1c24
}

.chi-bd-sidebar {
    position: sticky;
    top: 25px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e9edf2;
    border-radius: 16px
}

.chi-bd-sidebar h3 {
    margin: 0 0 12px;
    color: #172033;
    font-size: 20px
}

.chi-bd-sidebar p {
    margin: 0 0 18px;
    color: #687386;
    font-size: 14px;
    line-height: 1.75
}

.chi-bd-call {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 13px 16px;
    border-radius: 8px;
    background: #ed1c24;
    color: #fff;
    text-decoration: none;
    font-weight: 700
}

.chi-bd-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 30px;
    color: #ed1c24;
    text-decoration: none;
    font-weight: 700
}

.chi-bd-notfound {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px 20px;
    text-align: center
}

.chi-bd-notfound i {
    font-size: 45px;
    color: #ed1c24
}

.chi-bd-notfound h1 {
    color: #172033
}

.chi-bd-notfound p {
    color: #687386;
    line-height: 1.8
}

.chi-bd-notfound a {
    display: inline-flex;
    margin-top: 12px;
    padding: 10px 20px;
    background: #ed1c24;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700
}

.chi-bd-debug {
    max-width: 800px;
    margin: 20px auto;
    padding: 14px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    text-align: left;
    font-size: 13px;
    overflow-wrap: anywhere
}

@media(max-width:850px) {
    .chi-bd-layout {
        grid-template-columns: 1fr
    }

    .chi-bd-sidebar {
        position: static
    }

    .chi-bd-main {
        padding: 30px 16px 40px
    }

    .chi-bd-hero {
        padding: 35px 16px 35px
    }
}