/* ==========================================================
   Shailya Hospital – Blog (listing + detail)
   ========================================================== */
:root {
    --blog-primary: #396cf0;
    --blog-primary-dark: #2055e4;
    --blog-accent: #e27b38;
    --blog-heading: #111111;
    --blog-text: #444444;
    --blog-muted: #777777;
    --blog-light: #f1f7fa;
    --blog-border: #e6ebf1;
    --blog-radius: 12px;
    --blog-shadow: 0 6px 24px rgba(17, 36, 85, .08);
    --blog-shadow-hover: 0 14px 34px rgba(17, 36, 85, .16);
}

.blog-section {
    padding: 80px 0 70px;
    background: #fff;
}
.blog-section.bg-light-blue { background: var(--blog-light); }

/* ---------- Banner tweak ---------- */
.blog-banner .breadcrumbs-area h1 {
    max-width: 900px;
    /* margin-left: auto; */
    margin-right: auto;
}
.blog-banner.is-detail .breadcrumbs-area h1 {
    font-size: 36px;
    line-height: 1.3;
}
@media (max-width: 767px) {
    .blog-banner.is-detail .breadcrumbs-area h1 { font-size: 24px; }
}

/* ---------- Section heading ---------- */
.blog-heading {
    text-align: center;
    margin-bottom: 40px;
}
.blog-heading .sub {
    display: inline-block;
    color: var(--blog-accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 8px;
}
.blog-heading h2 {
    font-size: 34px;
    color: var(--blog-heading);
    margin-bottom: 10px;
}
.blog-heading p {
    color: var(--blog-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Category filter ---------- */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}
.blog-filter a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid var(--blog-border);
    color: var(--blog-text);
    font-size: 15px;
    background: #fff;
    transition: all .25s ease;
}
.blog-filter a:hover,
.blog-filter a.active {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: #fff;
}

/* ---------- Card (listing / related) ---------- */
.blog-grid > [class*="col-"] { margin-bottom: 30px; display: flex; }
.blog-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--blog-shadow-hover);
}
.blog-card .card-img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--blog-light);
}
.blog-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.blog-card:hover .card-img img { transform: scale(1.06); }
.blog-card .card-cat {
    position: absolute;
    left: 16px;
    top: 16px;
    background: var(--blog-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 20px;
}
.blog-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 24px 26px;
}
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 0;
    margin: 0 0 12px;
    list-style: none;
    font-size: 14px;
    color: var(--blog-muted);
}
.blog-meta li { margin: 0; }
.blog-meta i { color: var(--blog-primary); margin-right: 6px; }
.blog-card h3 {
    font-size: 20px;
    line-height: 1.45;
    margin-bottom: 12px;
}
.blog-card h3 a { color: var(--blog-heading); transition: color .2s; }
.blog-card h3 a:hover { color: var(--blog-primary); }
.blog-card p {
    color: var(--blog-text);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-readmore {
    margin-top: auto;
    font-weight: 600;
    color: var(--blog-primary);
    font-size: 15px;
}
.blog-readmore i { margin-left: 6px; transition: margin .2s; }
.blog-readmore:hover { color: var(--blog-primary-dark); }
.blog-readmore:hover i { margin-left: 10px; }

/* Featured (first) card on page 1 */
@media (min-width: 992px) {
    .blog-card.is-featured { flex-direction: row; }
    .blog-card.is-featured .card-img { flex: 0 0 55%; aspect-ratio: auto; min-height: 380px; }
    .blog-card.is-featured .card-body { padding: 40px; justify-content: center; }
    .blog-card.is-featured h3 { font-size: 28px; }
    .blog-card.is-featured p { -webkit-line-clamp: 4; }
    .blog-card.is-featured .blog-readmore { margin-top: 6px; }
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--blog-muted);
}

/* ---------- Pagination ---------- */
.blog-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}
.blog-pagination a,
.blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--blog-border);
    color: var(--blog-heading);
    background: #fff;
    font-weight: 500;
    transition: all .2s;
}
.blog-pagination a:hover,
.blog-pagination .active span {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: #fff;
}

/* ==========================================================
   DETAIL PAGE
   ========================================================== */
.blog-detail-img {
    border-radius: var(--blog-radius);
    overflow: hidden;
    margin-bottom: 26px;
    box-shadow: var(--blog-shadow);
}
.blog-detail-img img { width: 100%; height: auto; display: block; }

.blog-detail-meta {
    padding-bottom: 18px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--blog-border);
}
.blog-detail-meta .blog-meta { margin: 0; font-size: 15px; }
.blog-detail-meta .badge-cat {
    background: rgba(57, 108, 240, .1);
    color: var(--blog-primary);
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Content typography – har blog par same design */
.blog-content {
    color: var(--blog-text);
    font-size: 17px;
    line-height: 1.85;
}
.blog-content p { margin-bottom: 18px; }
.blog-content .blog-lead {
    font-size: 18px;
    color: #333;
}
.blog-content h2 {
    position: relative;
    font-size: 26px;
    line-height: 1.4;
    color: var(--blog-heading);
    margin: 42px 0 16px;
    padding-left: 18px;
    scroll-margin-top: 120px;
}
.blog-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 5px;
    border-radius: 4px;
    background: linear-gradient(var(--blog-primary), var(--blog-accent));
}
.blog-content h3 {
    font-size: 21px;
    color: var(--blog-heading);
    margin: 30px 0 12px;
}
.blog-content h4 { font-size: 18px; margin: 24px 0 10px; }
.blog-content a { color: var(--blog-primary); }
.blog-content a:hover { text-decoration: underline; }
.blog-content strong { color: var(--blog-heading); }
.blog-content ul,
.blog-content ol {
    margin: 0 0 22px;
    padding: 20px 24px;
    background: var(--blog-light);
    border-radius: 10px;
    list-style: none;
}
.blog-content ul li,
.blog-content ol li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 8px;
}
.blog-content ul li:last-child,
.blog-content ol li:last-child { margin-bottom: 0; }
.blog-content ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 13px;
    color: var(--blog-primary);
}
.blog-content ol { counter-reset: blogol; }
.blog-content ol li::before {
    counter-increment: blogol;
    content: counter(blogol);
    position: absolute;
    left: 0;
    top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blog-primary);
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}
.blog-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0 20px; }
.blog-content blockquote {
    margin: 26px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--blog-accent);
    background: #fff7f1;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}
@media (max-width: 767px) {
    .blog-content { font-size: 16px; }
    .blog-content h2 { font-size: 22px; }
}

/* FAQ */
.blog-faq { margin-top: 46px; }
.blog-faq > h2 {
    font-size: 26px;
    color: var(--blog-heading);
    margin-bottom: 20px;
}
.blog-faq-item {
    border: 1px solid var(--blog-border);
    border-radius: 10px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}
.blog-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 52px 16px 20px;
    font-weight: 600;
    font-size: 17px;
    color: var(--blog-heading);
    position: relative;
}
.blog-faq-item summary::-webkit-details-marker { display: none; }
.blog-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blog-light);
    color: var(--blog-primary);
    text-align: center;
    line-height: 26px;
    font-size: 18px;
}
.blog-faq-item[open] summary { color: var(--blog-primary); }
.blog-faq-item[open] summary::after { content: "\2212"; background: var(--blog-primary); color: #fff; }
.blog-faq-item .faq-answer {
    padding: 0 20px 18px;
    color: var(--blog-text);
    line-height: 1.75;
}

/* Share + prev/next */
.blog-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 40px 0 0;
    padding: 20px 0;
    border-top: 1px solid var(--blog-border);
    border-bottom: 1px solid var(--blog-border);
}
.blog-share strong { margin-right: 6px; color: var(--blog-heading); }
.blog-share a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform .2s, opacity .2s;
}
.blog-share a:hover { transform: translateY(-3px); opacity: .9; color: #fff; }
.blog-share .fb { background: #3b5998; }
.blog-share .tw { background: #111; }
.blog-share .li { background: #0a66c2; }
.blog-share .wa { background: #25d366; }

.blog-nav {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}
.blog-nav a {
    flex: 1;
    padding: 18px 20px;
    border: 1px solid var(--blog-border);
    border-radius: 10px;
    color: var(--blog-heading);
    transition: all .2s;
}
.blog-nav a:hover { border-color: var(--blog-primary); box-shadow: var(--blog-shadow); }
.blog-nav small { display: block; color: var(--blog-primary); font-weight: 600; margin-bottom: 4px; }
.blog-nav .next { text-align: right; }
@media (max-width: 575px) { .blog-nav { flex-direction: column; } }

/* ---------- Sidebar ---------- */
.blog-sidebar { height: 100%; }
.blog-widget.is-sticky { position: sticky; top: 110px; }
@media (max-width: 991px) {
    .blog-sidebar { height: auto; margin-top: 50px; }
    .blog-widget.is-sticky { position: static; }
}
.blog-widget {
    background: #fff;
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    padding: 24px;
    margin-bottom: 26px;
}
.blog-widget h4 {
    font-size: 19px;
    color: var(--blog-heading);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blog-light);
    position: relative;
}
.blog-widget h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: var(--blog-primary);
}
.blog-toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; max-height: 420px; overflow-y: auto; }
.blog-toc li { margin: 0; }
.blog-toc a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--blog-text);
    font-size: 15px;
    line-height: 1.45;
    transition: all .2s;
}
.blog-toc a:hover,
.blog-toc a.active {
    background: var(--blog-light);
    color: var(--blog-primary);
}

.blog-recent { list-style: none; margin: 0; padding: 0; }
.blog-recent li { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.blog-recent li:last-child { margin-bottom: 0; }
.blog-recent img {
    width: 80px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.blog-recent a.title {
    color: var(--blog-heading);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-recent a.title:hover { color: var(--blog-primary); }
.blog-recent small { color: var(--blog-muted); }

.blog-cats { list-style: none; margin: 0; padding: 0; }
.blog-cats li { border-bottom: 1px dashed var(--blog-border); }
.blog-cats li:last-child { border-bottom: 0; }
.blog-cats a { display: flex; justify-content: space-between; padding: 9px 0; color: var(--blog-text); }
.blog-cats a:hover { color: var(--blog-primary); }

.blog-cta {
    background: linear-gradient(135deg, var(--blog-primary), var(--blog-primary-dark));
    color: #fff;
    border-radius: var(--blog-radius);
    padding: 30px 26px;
    text-align: center;
    margin-bottom: 26px;
}
.blog-cta i.big { font-size: 38px; margin-bottom: 12px; display: block; }
.blog-cta h4 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.blog-cta p { color: rgba(255, 255, 255, .88); font-size: 15px; margin-bottom: 18px; }
.blog-cta .btn-call {
    display: inline-block;
    background: #fff;
    color: var(--blog-primary);
    font-weight: 600;
    padding: 11px 26px;
    border-radius: 30px;
    transition: all .2s;
}
.blog-cta .btn-call:hover { background: var(--blog-accent); color: #fff; }

/* Related */
.blog-related { padding: 70px 0 50px; background: var(--blog-light); }
