/* ==========================================================================
   Homepage Layout v3 — "Newsroom White" (কালবেলা স্টাইল)
   File: assets/css/home-layout.css
   - সাদা প্রফেশনাল থিম, লাল অ্যাকসেন্ট
   - হিরো: বাঁয়ে পাশের খবর · মাঝে লিড · ডানে সর্বশেষ/জনপ্রিয় ট্যাব
   - নিচে: বাঁয়ে ক্যাটাগরি ব্লক · ডানে সাইডবার (আর্কাইভ, জরিপ)
   - কোনো এক-পাশের বর্ডার/লাইন নেই; ১০০% রেসপনসিভ
   ========================================================================== */
.hl-home {
    --hl-red: var(--accent-red, #cc0000);
    --hl-red-soft: #fdecec;
    --hl-text: #111827;
    --hl-muted: #6b7280;
    --hl-line: #e8ebef;
    --hl-card: #ffffff;
    --hl-soft: #f5f7f9;
    --hl-ph: #eef1f4;
    --hl-radius: 12px;
    --hl-shadow: 0 2px 12px rgba(16, 24, 40, .05);
    background: #fff;
    padding-top: 22px;
    padding-bottom: 20px;
}
.hl-home *, .hl-home *::before, .hl-home *::after { box-sizing: border-box; }
:where(.hl-home) a { color: inherit; text-decoration: none; }
:where(.hl-home) img { max-width: 100%; }
:where(.hl-home) :where(h1, h2, h3, h4, p, ul, ol) { margin: 0; padding: 0; }

/* ---------- ছবি / থাম্বনেইল (ছবি না থাকলেও জায়গা ভরাট থাকে) ---------- */
.hl-thumb {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    background: var(--hl-ph);
}
.hl-thumb::before {
    content: "\f1ea";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(107, 114, 128, .28);
}
.hl-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.hl-media:hover img,
.hl-tile:hover .hl-thumb img,
.hl-li:hover .hl-li-img img { transform: scale(1.05); }

.hl-media {
    position: relative;
    display: block;
    flex: 0 0 auto;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: var(--hl-ph);
}
.hl-media-lead { aspect-ratio: 16 / 9; }

/* ---------- ছোট উপাদান ---------- */
.hl-time { display: inline-block; font-size: 12.5px; color: var(--hl-muted); line-height: 1.5; }
.hl-time i { margin-right: 3px; font-size: 11px; }
.hl-time-light { color: rgba(255, 255, 255, .88); }
.hl-chip {
    display: inline-block;
    background: var(--hl-red);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    margin-bottom: 9px;
    line-height: 1.7;
}
.hl-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hl-red);
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    line-height: 1;
    border-radius: 8px;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.hl-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--hl-muted);
    background: var(--hl-soft);
    border-radius: var(--hl-radius);
}

.hl-card-title, .hl-li-title, .hl-lead-title { font-weight: 700; line-height: 1.5; color: var(--hl-text); }
.hl-card-title a, .hl-li-title a, .hl-lead-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.hl-home .hl-card-title a:hover, .hl-home .hl-li-title a:hover, .hl-home .hl-lead-title a:hover,
.hl-home .hl-more-list a:hover, .hl-home .hl-rank-txt a:hover, .hl-home .hl-bullets li a:hover,
.hl-home .kb-lead-title a:hover, .hl-home .hl-block-title a:hover { color: var(--hl-red); }

/* ==========================================================================
   ওভারলে টাইল (ছবির উপর শিরোনাম)
   ========================================================================== */
.hl-tile {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--hl-ph);
}
.hl-tile-link { position: absolute; inset: 0; display: block; }
.hl-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .38) 45%, rgba(0, 0, 0, 0) 78%);
}
.hl-tile-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 14px 16px;
    pointer-events: none;
}
.hl-tile-body a { pointer-events: auto; }
.hl-tile-title { color: #fff; font-weight: 700; line-height: 1.45; font-size: 17px; margin-bottom: 4px; }
.hl-tile-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.hl-home .hl-tile-title a { color: inherit; }
.hl-home .hl-tile-title a:hover { color: #ffd6d6; }
.hl-tile-ex {
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.hl-tile-lead { min-height: 320px; }
.hl-tile-lead .hl-tile-title { font-size: 24px; }
.hl-tile-wide { min-height: 0; aspect-ratio: 16 / 9; }
.hl-tile-solo { min-height: 300px; flex: 1 1 auto; }
.hl-tile-solo .hl-tile-title { font-size: 24px; }

/* ==========================================================================
   কার্ড / লিস্ট আইটেম / বুলেট / র‍্যাঙ্ক
   ========================================================================== */
.hl-card { min-width: 0; display: flex; flex-direction: column; }
.hl-card .hl-media { margin-bottom: 9px; }
.hl-card-title { font-size: 16px; margin-bottom: 4px; }

.hl-li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 8px;
    border-radius: 10px;
    transition: background .2s ease;
}
.hl-li:hover { background: var(--hl-soft); }
.hl-li-text { flex: 1 1 auto; min-width: 0; }
.hl-li-title { font-size: 15px; margin-bottom: 3px; }
.hl-li-title a { -webkit-line-clamp: 3; }
.hl-li-img {
    position: relative;
    display: block;
    flex: 0 0 92px;
    width: 92px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--hl-ph);
}

.hl-bullets { list-style: none; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; margin-top: 12px; flex: 1 1 auto; }
.hl-li-list { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; margin-top: 10px; flex: 1 1 auto; }
.hl-bullets li {
    position: relative;
    padding: 8px 10px 8px 24px;
    border-radius: 8px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--hl-text);
    transition: background .2s ease;
}
.hl-bullets li:hover { background: var(--hl-soft); }
.hl-bullets li::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 17px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--hl-red);
}
.hl-bullets li a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

.hl-rank { list-style: none; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; margin-top: 12px; flex: 1 1 auto; }
.hl-rank li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background .2s ease;
}
.hl-rank li:hover { background: var(--hl-soft); }
.hl-rank-no {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hl-red-soft);
    color: var(--hl-red);
    border-radius: 8px;
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
}
.hl-rank-txt { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.55; color: var(--hl-text); }
.hl-rank-txt a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

.hl-more-list {
    list-style: none;
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
}
.hl-more-list li { position: relative; padding: 7px 8px 7px 22px; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.55; color: var(--hl-text); }
.hl-more-list li:hover { background: var(--hl-soft); }
.hl-more-list li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--hl-red);
}
.hl-more-list a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* লিড (উল্লম্ব) + আনুভূমিক লিড */
.hl-lead { min-width: 0; }
.hl-lead .hl-media { margin-bottom: 10px; }
.hl-lead-title { font-size: 19px; margin-bottom: 5px; }
.hl-lead-excerpt { font-size: 14.5px; line-height: 1.65; color: #4b5563; margin-bottom: 6px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hl-lead-h { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 14px; align-items: start; }
.hl-lead-h .hl-media { margin-bottom: 0; aspect-ratio: 4 / 3; }
.hl-lead-h-text { min-width: 0; }
.hl-lead-h .hl-lead-title { font-size: 18px; }

/* ==========================================================================
   হিরো — ৩ কলাম (কালবেলা স্টাইল) v2
   নীতি: লিড খবর সারির উচ্চতা ঠিক করে (ছবি নির্দিষ্ট ১৬:৯ — কখনো টেনে লম্বা হয় না);
         বাঁ ও ডান কলাম ঠিক সেই উচ্চতায় থাকে, বাড়তি খবর ভেতরে স্ক্রল হয় — কোনো ফাঁকা নেই।
   ========================================================================== */
.hl-hero { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.kb-col { min-width: 0; }

/* ---------- লিড খবর ---------- */
.kb-lead { min-width: 0; display: flex; flex-direction: column; align-self: start; }
.kb-lead-media { flex: 0 0 auto; aspect-ratio: 16 / 9; border-radius: var(--hl-radius); margin-bottom: 14px; }
.kb-lead-body { flex: 0 0 auto; }
.kb-lead-title { font-size: 30px; font-weight: 800; line-height: 1.4; color: var(--hl-text); margin-bottom: 8px; }
.kb-lead-title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.kb-lead-excerpt { font-size: 16px; line-height: 1.7; color: #4b5563; margin-bottom: 8px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* স্টাইল: ওভারলে — নির্দিষ্ট অনুপাতের ছবি, নিচে ঘন শেডের উপর শিরোনাম */
.kb-style-overlay .kb-lead {
    position: relative;
    justify-content: flex-end;
    aspect-ratio: 16 / 10;
    min-height: auto; /* লেখা বেশি হলে শুধু উচ্চতা বাড়বে, প্রস্থ কখনো নয় (overflow visible রাখা জরুরি) */
    border-radius: var(--hl-radius);
    background: #1f2937;
}
.kb-style-overlay .kb-lead-media { position: absolute; inset: 0; flex: none; aspect-ratio: auto; margin: 0; border-radius: inherit; }
.kb-style-overlay .kb-lead-body {
    position: relative;
    z-index: 2;
    padding: 90px 22px 20px;
    border-radius: 0 0 var(--hl-radius) var(--hl-radius);
    background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .78) 45%, rgba(0, 0, 0, .35) 78%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}
.kb-style-overlay .kb-lead-body a { pointer-events: auto; }
.kb-style-overlay .kb-lead-title { color: #fff; margin-bottom: 6px; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.kb-style-overlay .kb-lead-title a { -webkit-line-clamp: 2; }
.kb-style-overlay .kb-lead-excerpt { color: rgba(255, 255, 255, .9); -webkit-line-clamp: 2; }
.hl-home .kb-style-overlay .kb-lead-title a:hover { color: #ffd6d6; }

/* ---------- বাঁ কলাম: ১টি ছবির কার্ড + ছোট ছবিসহ সারি ---------- */
.kb-left { display: flex; flex-direction: column; }
.kb-col-inner { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kb-left .hl-card { padding-bottom: 4px; }
.kb-left .hl-li { padding: 9px 4px; }
.kb-tab-pane .hl-rank { flex: 0 0 auto; }

/* ---------- ডান কলাম: ট্যাব উইজেট ---------- */
.kb-tabs {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--hl-card);
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow);
    overflow: hidden;
}
.kb-tab-head { display: flex; gap: 6px; padding: 8px; background: var(--hl-soft); flex: 0 0 auto; }
.kb-tab-btn {
    flex: 1 1 0;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--hl-muted);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.kb-tab-btn:hover { color: var(--hl-text); }
.kb-tab-btn.is-active { background: var(--hl-red); color: #fff; }
.kb-tab-pane { display: none; padding: 6px 8px 10px; }
.kb-tab-pane.is-active { display: block; max-height: 480px; overflow-y: auto; }
.kb-tab-pane .hl-rank { margin-top: 0; }

/* পাতলা স্ক্রলবার (বাঁ ও ডান কলাম) */
/* সরু স্ক্রলবার (৪px) — Chrome/Edge/Safari: ::-webkit-scrollbar; Firefox: scrollbar-width
   (নতুন Chrome-এ scrollbar-width দিলে সরু স্টাইল উপেক্ষিত হয়, তাই সেটি শুধু Firefox-এ) */
.kb-tab-pane::-webkit-scrollbar, .kb-col-inner::-webkit-scrollbar, .kb-fill-scroll::-webkit-scrollbar { width: 4px; height: 4px; }
.kb-tab-pane::-webkit-scrollbar-track, .kb-col-inner::-webkit-scrollbar-track, .kb-fill-scroll::-webkit-scrollbar-track { background: transparent; }
.kb-tab-pane::-webkit-scrollbar-thumb, .kb-col-inner::-webkit-scrollbar-thumb, .kb-fill-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.kb-tab-pane::-webkit-scrollbar-thumb:hover, .kb-col-inner::-webkit-scrollbar-thumb:hover, .kb-fill-scroll::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
@supports (-moz-appearance: none) {
    .kb-tab-pane, .kb-col-inner, .kb-fill-scroll { scrollbar-width: thin; scrollbar-color: #d1d5db transparent; }
    html.dark-mode .kb-tab-pane, html.dark-mode .kb-col-inner, html.dark-mode .kb-fill-scroll { scrollbar-color: #475569 transparent; }
}
html.dark-mode .kb-tab-pane::-webkit-scrollbar-thumb, html.dark-mode .kb-col-inner::-webkit-scrollbar-thumb, html.dark-mode .kb-fill-scroll::-webkit-scrollbar-thumb { background: #475569; }
html.dark-mode .kb-tab-pane::-webkit-scrollbar-thumb:hover, html.dark-mode .kb-col-inner::-webkit-scrollbar-thumb:hover, html.dark-mode .kb-fill-scroll::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ট্যাবলেট (৬৪০–৯৯১): লিড পূর্ণ প্রস্থ; নিচে বাঁ ও ডান পাশাপাশি — ডান কলাম বাঁ কলামের সমান উচ্চতা */
@media (min-width: 640px) and (max-width: 991px) {
    .hl-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kb-lead { grid-column: 1 / -1; }
    .kb-hero:not(.kb-r1) .kb-left { grid-column: 1 / -1; }
    .kb-hero:not(.kb-l1) .kb-right { grid-column: 1 / -1; }
    .kb-hero.kb-l1 .kb-right { position: relative; min-height: 360px; }
    .kb-hero.kb-l1 .kb-right .kb-tabs { position: absolute; inset: 0; }
    .kb-hero.kb-l1 .kb-tab-pane.is-active { flex: 1 1 auto; min-height: 0; max-height: none; }
    .kb-style-overlay .kb-lead { aspect-ratio: 16 / 9; }
}

/* ডেস্কটপ (≥৯৯২): বাঁ | লিড | ডান — পাশের কলাম লিডের উচ্চতায় আটকানো */
@media (min-width: 992px) {
    .hl-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead"; }
    .kb-lead { grid-area: lead; }
    .kb-left { grid-area: left; position: relative; min-height: 0; }
    .kb-right { grid-area: right; position: relative; min-height: 0; }

    .kb-hero.kb-r1 { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); grid-template-areas: "lead right"; }
    .kb-hero.kb-l1 { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); grid-template-areas: "left lead"; }
    .kb-hero.kb-l1.kb-r1 { grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1.1fr); grid-template-areas: "left lead right"; }

    .kb-hero.kb-style-split.kb-l1 { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); grid-template-areas: "lead left"; }
    .kb-hero.kb-style-split.kb-l1.kb-r1 { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "lead left right"; }

    /* পাশের কলাম সারির উচ্চতা বাড়ায় না; বাড়তি খবর ভেতরে স্ক্রল হয় */
    .kb-left .kb-col-inner { position: absolute; inset: 0; overflow-y: auto; padding-right: 2px; }
    .kb-right .kb-tabs { position: absolute; inset: 0; }
    .kb-tab-pane.is-active { flex: 1 1 auto; min-height: 0; max-height: none; }
}

/* ---------- হিরোর নিচের নিউজ গ্রিড ---------- */
.hl-grid {
    display: grid;
    gap: 22px 18px;
    margin-top: 26px;
    padding: 20px;
    background: var(--hl-card);
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow);
}
.hl-gn4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hl-gn3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hl-gn2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hl-gn1 { grid-template-columns: minmax(0, 1fr); }

/* একটিমাত্র কার্ড থাকলে আনুভূমিক — বাঁয়ে ছবি, ডানে লেখা */
.hl-gn1 .hl-card, .hl-cn1 .hl-card, .hl-rn1 .hl-card {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    column-gap: 18px;
    align-content: center;
}
.hl-gn1 .hl-card .hl-media, .hl-cn1 .hl-card .hl-media, .hl-rn1 .hl-card .hl-media {
    grid-row: 1 / 3;
    margin: 0;
    height: 100%;
    min-height: 150px;
    aspect-ratio: auto;
}
.hl-gn1 .hl-card-title, .hl-cn1 .hl-card-title, .hl-rn1 .hl-card-title { align-self: end; font-size: 20px; }
.hl-gn1 .hl-card .hl-time, .hl-cn1 .hl-card .hl-time, .hl-rn1 .hl-card .hl-time { align-self: start; }

/* ==========================================================================
   নিচের অংশ: বাঁয়ে ক্যাটাগরি ব্লক · ডানে সাইডবার
   ========================================================================== */
.kb-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 28px; }
.kb-main { min-width: 0; }
@media (min-width: 992px) {
    .kb-body.kb-has-aside { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
}
@media (min-width: 1200px) {
    .kb-body.kb-has-aside { grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; }
}

.hl-sections { display: flex; flex-direction: column; gap: 24px; }
.hl-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.hl-s6 { grid-column: span 6; }
.hl-s3 { grid-column: span 3; }
.hl-s2 { grid-column: span 2; }

/* প্রতিটি ক্যাটাগরি ব্লক = একটি সাদা কার্ড */
.hl-block {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--hl-card);
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow);
}
.hl-block-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* হেডার — হালকা ধূসর বার, লাল মার্কার */
.hl-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: var(--hl-soft);
    border-radius: 10px;
}
.hl-block-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
    white-space: nowrap;
    color: var(--hl-text);
}
.hl-block-title::before {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--hl-red);
}
.hl-block-title a { color: inherit; }
.hl-subcats { flex: 1 1 120px; min-width: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 14px; }
.hl-subcats a { font-size: 13.5px; font-weight: 600; color: #4b5563; }
.hl-home .hl-subcats a:hover { color: var(--hl-red); }
.hl-more {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 3px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hl-red);
    background: #fff;
    border: 1px solid var(--hl-line);
    border-radius: 20px;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.hl-subcats + .hl-more { margin-left: 0; }
.hl-more i { font-size: 11px; margin-left: 2px; }
.hl-home .hl-more:hover { background: var(--hl-red); color: #fff; }

/* হেডার — সলিড ট্যাব */
.hl-hs-solid .hl-block-title { padding: 2px 16px; background: var(--hl-red); color: #fff; border-radius: 8px; }
.hl-hs-solid .hl-block-title::before { display: none; }
.hl-home .hl-hs-solid .hl-block-title a:hover { color: #ffe3e3; }

/* ---------- d1: বড় লিড টাইল + ডানে কার্ড ---------- */
.hl-d1-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.hl-d1-right { min-width: 0; display: flex; flex-direction: column; }
.hl-cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.hl-cards-2 .hl-card-title { font-size: 15px; }
.hl-rn3 .hl-card:first-child { grid-column: 1 / -1; }
.hl-d1 .hl-more-list { grid-template-columns: minmax(0, 1fr); }

/* ---------- মোজাইক ---------- */
.hl-mgrid { display: grid; gap: 12px; min-height: 380px; }
.hl-mgrid .hl-tile { min-height: 0; }
.hl-m0 { grid-template-columns: minmax(0, 1fr); }
.hl-m1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.hl-m2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.hl-m3, .hl-m4 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.hl-m2 .hl-m-lead, .hl-m3 .hl-m-lead, .hl-m4 .hl-m-lead { grid-row: 1 / span 2; }
.hl-m3 .hl-m-tile:nth-child(2) { grid-column: 2 / span 2; }
.hl-m-lead .hl-tile-title { font-size: 24px; }
.hl-m-tile .hl-tile-title { font-size: 15px; -webkit-line-clamp: 3; }
.hl-m-tile .hl-tile-body { padding: 10px 12px; }

/* ---------- d4: সমান কার্ড রো ---------- */
.hl-cards-4 { display: grid; gap: 18px 16px; }
.hl-cn4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hl-cn3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hl-cn2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hl-cn1 { grid-template-columns: minmax(0, 1fr); }

/* ---------- র‍্যাঙ্ক ---------- */
.hl-numbered .hl-tile-lead { min-height: 0; }

/* ---------- d2 / d3 ---------- */
.hl-d2 .hl-lead-h { flex: 0 0 auto; }
.hl-d3 .hl-lead { flex: 1 1 auto; display: flex; flex-direction: column; }
.hl-d3 .hl-lead .hl-media { flex: 1 1 auto; }
.hl-d3 .hl-bullets { flex: 0 0 auto; justify-content: flex-start; }
.hl-d2 .hl-li-list .hl-li, .hl-d3 .hl-bullets li { flex: 0 0 auto; }
.hl-d3 .hl-lead-title { font-size: 17px; }
.hl-d3 .hl-block-title { font-size: 19px; }
.hl-d3 .hl-bullets li { font-size: 15px; }

/* ==========================================================================
   সাইডবার (ডানে) — জরিপ, সংবাদ আর্কাইভ, বিজ্ঞাপন
   ========================================================================== */
.kb-aside { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.kb-aside > * { min-width: 0; }
.kb-aside > .tabs-widget { display: none; } /* সর্বশেষ/জনপ্রিয় এখন হিরোতে */
.kb-aside > .dynamic-ad-box { margin: 0 !important; }
.kb-aside > .calendar-widget,
.kb-aside > .sidebar-poll-widget {
    margin: 0;
    padding: 0;
    background: var(--hl-card);
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow);
    overflow: hidden;
}
.kb-aside .widget-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 12px 16px;
    background: var(--hl-soft);
    color: var(--hl-text);
    font-size: 17px;
    font-weight: 800;
    text-align: left;
    border: 0;
    border-radius: 0;
}
.kb-aside .widget-title i { color: var(--hl-red); }
.kb-fill {
    flex: 1 1 auto;
    min-height: 280px;
    position: relative;
    background: var(--hl-card);
    border: 1px solid var(--hl-line);
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow);
    overflow: hidden;
}
.kb-fill-box { position: absolute; inset: 0; display: flex; flex-direction: column; }
.kb-fill-box .widget-title { flex: 0 0 auto; }
.kb-fill-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 8px 10px; }
.kb-rest { margin-top: 26px; }
.kb-aside .calendar-header { margin: 14px 16px 10px; }
.kb-aside .news-calendar { width: calc(100% - 32px); margin: 0 16px 16px; }
.kb-aside .sidebar-poll-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.kb-aside .sidebar-poll-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.kb-aside .sidebar-poll-content { padding: 14px 16px 16px; }
.kb-aside .sidebar-poll-question { font-size: 16px; line-height: 1.55; }
.kb-aside .sidebar-poll-btn { padding: 9px; font-size: 14px; }

/* ==========================================================================
   ডার্ক মোড
   ========================================================================== */
html.dark-mode .hl-home {
    --hl-text: #f1f5f9;
    --hl-muted: #94a3b8;
    --hl-line: #334155;
    --hl-card: #1e293b;
    --hl-soft: #172033;
    --hl-ph: #1e293b;
    --hl-red-soft: rgba(204, 0, 0, .22);
    --hl-shadow: none;
    background: transparent;
}
html.dark-mode .hl-home a { color: inherit; }
html.dark-mode .hl-home .hl-lead-excerpt,
html.dark-mode .hl-home .kb-lead-excerpt { color: #cbd5e1; }
html.dark-mode .hl-home .kb-style-overlay .kb-lead-excerpt { color: rgba(255, 255, 255, .9); }
html.dark-mode .hl-home .hl-subcats a { color: #cbd5e1; }
html.dark-mode .hl-home .hl-more { background: #1e293b; color: #fca5a5; }
html.dark-mode .hl-home .hl-more:hover { background: var(--hl-red); color: #fff; }
html.dark-mode .hl-home .hl-hs-solid .hl-block-title { color: #fff; }
html.dark-mode .hl-home .hl-rank-no { color: #fca5a5; }
html.dark-mode .hl-home .kb-tab-btn.is-active { color: #fff; }
html.dark-mode .hl-home .hl-thumb::before { color: rgba(148, 163, 184, .3); }
html.dark-mode .kb-fill .widget-title { background: #172033; color: #f1f5f9; }
html.dark-mode .kb-aside > .sidebar-widget,
html.dark-mode .kb-aside > .calendar-widget,
html.dark-mode .kb-aside > .sidebar-poll-widget { background: #1e293b !important; border-color: #334155 !important; }
html.dark-mode .kb-aside .widget-title { background: #172033; color: #f1f5f9; }
html.dark-mode .kb-aside .calendar-header { background: #172033; border-color: #334155; }
html.dark-mode .kb-aside .cal-nav-btn { background: #1e293b; border-color: #475569; color: #e2e8f0; }
html.dark-mode .kb-aside .cal-month-year { color: #f1f5f9; }
html.dark-mode .kb-aside .news-calendar th { background: #172033; color: #cbd5e1; border-color: #334155; }
html.dark-mode .kb-aside .news-calendar td { border-color: #334155; }
html.dark-mode .kb-aside .news-calendar td.empty-day,
html.dark-mode .kb-aside .empty-day { background: #172033; }
html.dark-mode .kb-aside .news-calendar td span { color: #94a3b8; }
html.dark-mode .kb-aside .news-calendar td.has-post a { background: rgba(56, 189, 248, .15); color: #38bdf8; }
html.dark-mode .kb-aside .news-calendar td.today { background: #3b2f12; }
html.dark-mode .kb-aside .sidebar-poll-question { color: #f1f5f9; }
html.dark-mode .kb-aside .sidebar-poll-btn { background: #172033; border-color: #475569; color: #e2e8f0; }
html.dark-mode .kb-aside .sidebar-poll-label { color: #e2e8f0; }
html.dark-mode .kb-aside .sidebar-poll-bar { background: #334155; }

/* ==========================================================================
   রেসপনসিভ
   ========================================================================== */
@media (max-width: 1199px) {
    .kb-lead-title { font-size: 26px; }
    .hl-s2 { grid-column: span 6; }
    /* চওড়া হয়ে যাওয়া d3 ব্লকে লিড আনুভূমিক */
    .hl-d3 .hl-lead { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 16px; align-items: start; }
    .hl-d3 .hl-lead .hl-media { margin-bottom: 0; aspect-ratio: 4 / 3; flex: none; }
    .hl-d3 .hl-lead { flex: 0 0 auto; }
    .hl-d3 .hl-bullets { flex: 1 1 auto; justify-content: space-between; }
    .hl-d3 .hl-lead-title { font-size: 18px; }
    .hl-m-lead .hl-tile-title { font-size: 21px; }
}

@media (max-width: 991px) {
    .kb-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
    .kb-aside > .dynamic-ad-box, .kb-aside > .kb-fill { grid-column: 1 / -1; }
    .kb-fill { min-height: 0; }
    .kb-fill-box { position: static; }
    .kb-fill-scroll { max-height: 520px; }
    .hl-gn4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hl-tile-wide { aspect-ratio: 16 / 8; }
}

@media (max-width: 767px) {
    .hl-home { padding-top: 16px; }
    .kb-lead-title { font-size: 23px; }
    .kb-lead-excerpt { font-size: 15px; -webkit-line-clamp: 2; }
    .kb-style-overlay .kb-lead { aspect-ratio: 4 / 3; }
    .kb-style-overlay .kb-lead-body { padding: 70px 14px 14px; }

    .hl-grid { padding: 14px; gap: 18px 12px; }
    .hl-gn3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hl-gn3 .hl-card:first-child { grid-column: 1 / -1; }
    .hl-card-title { font-size: 15px; }

    .hl-sections { gap: 18px; }
    .hl-row { gap: 18px; }
    .hl-s3 { grid-column: span 6; }
    .hl-block { padding: 14px; }
    .hl-block-title, .hl-d3 .hl-block-title { font-size: 18px; }
    .hl-subcats { display: none; }
    .hl-more { margin-left: auto; }

    .hl-d1-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .hl-tile-lead { min-height: 280px; }
    .hl-tile-lead .hl-tile-title { font-size: 21px; }
    .hl-cn4, .hl-cn3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hl-cn3 .hl-card:first-child { grid-column: 1 / -1; }
    .hl-cards-4 { gap: 16px 12px; }

    .hl-mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(160px, auto); min-height: 0; }
    .hl-m-lead { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
    .hl-m1 .hl-m-tile { grid-column: 1 / -1; grid-row: auto; }
    .hl-m3 .hl-m-tile:nth-child(2) { grid-column: 1 / -1; }
    .hl-m-lead .hl-tile-title { font-size: 20px; }
    .hl-m-tile .hl-tile-title { font-size: 14.5px; }

    .hl-more-list { grid-template-columns: minmax(0, 1fr); }
    .hl-tile-solo { min-height: 240px; }

    .kb-aside { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 639px) {
    .hl-hero { gap: 20px; }
}

@media (max-width: 520px) {
    .hl-lead-h, .hl-d3 .hl-lead { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .hl-lead-h .hl-media, .hl-d3 .hl-lead .hl-media { aspect-ratio: 16 / 9; }
    .hl-cards-2 { gap: 14px 12px; }
    .hl-li-img { flex-basis: 84px; width: 84px; height: 58px; }
    .hl-gn1 .hl-card, .hl-cn1 .hl-card, .hl-rn1 .hl-card { grid-template-columns: minmax(0, 1fr); }
    .hl-gn1 .hl-card .hl-media, .hl-cn1 .hl-card .hl-media, .hl-rn1 .hl-card .hl-media { grid-row: auto; aspect-ratio: 16 / 10; height: auto; min-height: 0; margin-bottom: 10px; }
    .hl-tile-body { padding: 10px 12px; }
}
