/* =====================================================================
   স্বাস্থ্য ব্লগ পাতা (ব্যানার/ফুটার: hospital-inner.css, পেজ নম্বর: hospital-pagination.css)
   ===================================================================== */

.hb-crumb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 12px;
    color: #1d2b45;
    font-size: 15px;
    font-weight: 600;
}

.hb-crumb a {
    color: var(--hp-navy);
}

.hb-crumb a i {
    margin-right: 6px;
    font-size: 18px;
}

.hb-crumb > i {
    font-size: 13px;
}

.hb-layout {
    display: grid;
    grid-template-columns: 1fr 325px;
    gap: 20px;
    align-items: start;
    margin-bottom: 34px;
}

.hb-main {
    min-width: 0;
}

/* ---------- ক্যাটেগরির ট্যাগ ---------- */
.hb-tag {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 3px 14px;
    border-radius: 6px;
    background: var(--hp-green);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

/* ---------- উপরের স্লাইডার ---------- */
.hb-slider {
    position: relative;
    padding: 10px 10px 30px;
    background: #fff;
    border: 1px solid #dce9f5;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(24, 66, 130, 0.10);
}

.hb-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
}

.hb-slide.hb-slide-on {
    display: grid;
}

.hb-slide-image {
    position: relative;
    display: block;
}

.hb-slide-image img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
}

.hp-body .hb-slide-title {
    margin-bottom: 8px;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.4;
}

.hb-slide-title a {
    color: #123d8e;
}

.hb-slide-title a:hover {
    color: var(--hp-green);
}

.hp-body .hb-slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin-bottom: 8px;
    color: #1d2b45;
    font-size: 14.5px;
    font-weight: 600;
}

.hb-slide-meta i {
    margin-right: 6px;
    color: var(--hp-green);
    font-size: 17px;
}

.hp-body .hb-slide-summary {
    margin-bottom: 14px;
    color: #1d2b45;
    font-size: 16.5px;
    line-height: 1.6;
}

.hb-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid var(--hp-green);
    border-radius: 8px;
    color: var(--hp-green);
    font-size: 16px;
    font-weight: 800;
}

.hb-read:hover {
    background: var(--hp-green);
    color: #fff;
}

.hb-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hb-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c3ccd6;
    cursor: pointer;
}

.hb-dot.hb-dot-on {
    background: var(--hp-green);
}

/* ---------- সর্বশেষ পোস্ট ---------- */
.hp-body .hb-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 12px;
    color: #123d8e;
    font-size: 28px;
    font-weight: 800;
}

.hb-heading i {
    color: var(--hp-green);
    font-size: 30px;
}

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

.hb-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 8px 10px;
    background: #fff;
    border: 1px solid #dce9f5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(24, 66, 130, 0.08);
}

.hb-card:hover {
    box-shadow: 0 8px 20px rgba(24, 66, 130, 0.16);
}

.hb-card-image {
    position: relative;
    display: block;
}

.hb-card-image img {
    display: block;
    width: 100%;
    height: 118px;
    object-fit: cover;
    border-radius: 8px;
}

.hb-card-title {
    flex: 1;
    padding: 0 4px;
    color: #123d8e;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
}

.hb-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px;
    color: #1d2b45;
    font-size: 12.5px;
    font-weight: 600;
}

.hb-card-meta i {
    margin-right: 4px;
    color: var(--hp-green);
    font-size: 14px;
}

.hb-empty {
    padding: 36px 16px;
    background: #fff;
    border: 1px solid #dce9f5;
    border-radius: 12px;
    color: #51627a;
    font-size: 17px;
    text-align: center;
}

/* ---------- ডানের কলাম ---------- */
.hb-side {
    display: grid;
    gap: 14px;
}

.hb-box {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce9f5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(24, 66, 130, 0.08);
}

.hb-box-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #123d8e;
    font-size: 21px;
    font-weight: 800;
}

.hb-box-title i {
    color: var(--hp-green);
    font-size: 22px;
}

.hb-box-tint {
    background: #eef6fd;
}

.hb-fire {
    color: #f26a1b !important;
}

.hb-search {
    display: flex;
    margin: 0 14px 14px;
}

.hb-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #cfe0ee;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    color: #1d2b45;
    font-family: inherit;
    font-size: 14px;
}

.hb-search input:focus {
    outline: none;
    border-color: var(--hp-green);
}

.hb-search button {
    width: 44px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(180deg, var(--hp-green-top), var(--hp-green-bottom));
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}

.hp-body .hb-cats {
    padding: 6px 14px 10px;
}

.hb-cats a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    color: var(--hp-navy);
    font-size: 15.5px;
    font-weight: 700;
}

.hb-cats a i {
    color: var(--hp-green);
}

.hb-cats a span {
    flex: 1;
}

.hb-cats a b {
    font-weight: 700;
}

.hb-cats a:hover,
.hb-cats a.hb-cat-on {
    color: var(--hp-green);
}

.hb-clear {
    display: block;
    padding: 0 14px 12px;
    color: #d12a2a;
    font-size: 14.5px;
    font-weight: 700;
}

.hb-pop {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #e3edf6;
}

.hb-pop img {
    flex: 0 0 82px;
    width: 82px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.hb-pop strong {
    display: block;
    color: #123d8e;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.4;
}

.hb-pop:hover strong {
    color: var(--hp-green);
}

.hb-pop small {
    display: block;
    margin-top: 3px;
    color: #1d2b45;
    font-size: 13px;
    font-weight: 600;
}

.hb-pop small i {
    margin-right: 4px;
    color: var(--hp-green);
}

/* ---------- সাবস্ক্রাইব ---------- */
.hb-subscribe {
    padding: 14px;
    border-color: #c4e5cf;
    background: linear-gradient(180deg, #f2faf5, #e5f5ea);
}

.hp-body .hb-subscribe-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #0b6d2e;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}

.hb-subscribe-title i {
    font-size: 26px;
}

.hb-subscribe > p {
    margin-bottom: 10px;
    color: #1d2b45;
    font-size: 14.5px;
    line-height: 1.55;
}

.hb-subscribe-form {
    position: relative;
    display: flex;
    background: #fff;
    border: 1px solid #cfe0ee;
    border-radius: 8px;
    overflow: hidden;
}

.hb-subscribe-form > i {
    align-self: center;
    padding-left: 10px;
    color: #51627a;
}

.hb-subscribe-form input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: 0;
    color: #1d2b45;
    font-family: inherit;
    font-size: 14px;
}

.hb-subscribe-form input:focus {
    outline: none;
}

.hb-subscribe-form button {
    width: 46px;
    border: 0;
    background: linear-gradient(180deg, var(--hp-green-top), var(--hp-green-bottom));
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}

.hp-body .hb-subscribe-message {
    min-height: 0;
    margin: 6px 0 0;
    color: #0b6d2e;
    font-size: 14px;
    font-weight: 700;
}

/* ---------- রেসপন্সিভ ---------- */
@media (max-width: 992px) {
    .hb-layout {
        grid-template-columns: 1fr;
    }

    .hb-side {
        grid-template-columns: 1fr 1fr;
    }

    .hb-subscribe {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .hb-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hb-slide.hb-slide-on {
        grid-template-columns: 1fr;
    }

    .hb-slide-image img {
        height: 200px;
    }

    .hp-body .hb-slide-title {
        font-size: 21px;
    }
}

@media (max-width: 520px) {
    .hb-grid,
    .hb-side {
        grid-template-columns: 1fr;
    }

    .hb-card-image img {
        height: 170px;
    }

    .hp-body .hb-heading {
        font-size: 23px;
    }
}
