/* ==========================================================================
   Homepage Layout v2 — "Bento Newsroom"
   File: assets/css/home-layout.css
   সব ক্লাস hl- দিয়ে শুরু; পুরনো CSS-এর সাথে সংঘর্ষ নেই।
   নীতি: প্রতিটি ছবি/টাইল/তালিকা নিজে থেকে পুরো জায়গা ভরাট করে — কোনো ফাঁকা জায়গা থাকে না।
   ========================================================================== */
.hl-home {
    --hl-accent: var(--primary-color, #0a4c6a);
    --hl-red: var(--accent-red, #cc0000);
    --hl-text: #111827;
    --hl-muted: #6b7280;
    --hl-line: #e5e7eb;
    --hl-card: #ffffff;
    --hl-soft: #f6f8fa;
    --hl-ph: #e8edf1;
    --hl-radius: 10px;
    padding-top: 20px;
    padding-bottom: 14px;
}
.hl-home a { color: inherit; text-decoration: none; }
.hl-home img { max-width: 100%; }

/* ---------- ছবি / থাম্বনেইল (ছবি না থাকলেও জায়গা ভরাট থাকে) ---------- */
.hl-thumb {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hl-ph), #d3dce3);
}
.hl-thumb::before {
    content: "\f1ea"; /* fa-newspaper */
    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: 30px;
    color: rgba(10, 76, 106, .22);
}
.hl-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s ease;
}
.hl-media:hover img,
.hl-tile:hover .hl-thumb img,
.hl-bh-lead: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: 8px;
}
.hl-media-lead { aspect-ratio: 16 / 9; }
.hl-media-hero { aspect-ratio: 16 / 9; }

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

.hl-card-title, .hl-li-title, .hl-lead-title, .hl-hero-title { font-weight: 700; line-height: 1.5; margin: 0; 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-card-title a:hover, .hl-li-title a:hover, .hl-lead-title a:hover,
.hl-more-list a:hover, .hl-rank-txt a:hover, .hl-hero-title a:hover { color: var(--hl-red); }

/* ==========================================================================
   ওভারলে টাইল (ছবির উপর শিরোনাম)
   ========================================================================== */
.hl-tile {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 170px;
    border-radius: var(--hl-radius);
    overflow: hidden;
    background: #0f172a;
    isolation: isolate;
}
.hl-tile-link { position: absolute; inset: 0; display: block; z-index: 1; }
.hl-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, .92) 0%, rgba(2, 6, 23, .62) 38%, rgba(2, 6, 23, .10) 74%, rgba(2, 6, 23, 0) 100%);
}
.hl-tile-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 14px 16px 13px;
    pointer-events: none;
}
.hl-tile-body a { pointer-events: auto; }
.hl-tile-title { margin: 0 0 5px; font-size: 17px; line-height: 1.45; font-weight: 700; color: #fff; }
.hl-tile-title a {
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.hl-tile-title a:hover { color: #ffe1e1; }
.hl-tile-ex {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .86);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* ==========================================================================
   HERO — বেন্টো (ডিফল্ট)
   ========================================================================== */
.hl-hero { margin-bottom: 14px; }
.hl-hero-bento {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 14px;
}
.hl-hero-bento.hl-t0 { grid-template-columns: minmax(0, 1fr); }
.hl-bh-lead {
    position: relative;
    min-height: 470px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    isolation: isolate;
}
.hl-bh-link { position: absolute; inset: 0; display: block; z-index: 1; }
.hl-bh-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 28px 30px 24px;
    pointer-events: none;
}
.hl-bh-body a { pointer-events: auto; }
.hl-bh-title { margin: 0 0 9px; font-size: 32px; line-height: 1.38; font-weight: 800; color: #fff; }
.hl-bh-title a { color: #fff; }
.hl-bh-title a:hover { color: #ffe1e1; }
.hl-bh-excerpt {
    margin: 0 0 9px;
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.hl-bh-tiles {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    min-height: 0;
}
.hl-t1 .hl-bh-tiles { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.hl-t2 .hl-bh-tiles { grid-template-columns: minmax(0, 1fr); }
.hl-t3 .hl-bh-tiles .hl-tile:first-child { grid-column: 1 / -1; }
.hl-bh-tiles .hl-tile { min-height: 150px; }
.hl-bh-tiles .hl-tile-title { font-size: 17.5px; }

/* শিরোনাম স্ট্রিপ (হিরোর বাকি খবর) */
.hl-strip { display: grid; gap: 14px; margin-bottom: 14px; }
.hl-strip-1 { grid-template-columns: minmax(0, 1fr); }
.hl-strip-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hl-strip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 16px;
    background: var(--hl-soft);
    border: 1px solid var(--hl-line);
    border-left: 4px solid var(--hl-red);
    border-radius: 8px;
    transition: background .25s ease, transform .25s ease;
}
.hl-strip-item:hover { background: var(--hl-card); transform: translateY(-2px); }
.hl-strip-ico { flex: 0 0 auto; color: var(--hl-red); font-size: 16px; }
.hl-strip-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--hl-text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.hl-strip-item:hover .hl-strip-title { color: var(--hl-red); }
.hl-strip-item .hl-time { flex: 0 0 auto; }

/* ==========================================================================
   HERO — ক্লাসিক স্প্লিট (বড় লিড + ডানে তালিকা)
   ========================================================================== */
.hl-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}
.hl-hero-split .hl-hero-lead { display: flex; flex-direction: column; min-width: 0; }
.hl-hero-lead .hl-media-hero { flex: 1 0 auto; border-radius: 10px; }
.hl-hero-text { padding-top: 12px; flex: 0 0 auto; }
.hl-hero-title { font-size: 28px; color: var(--hl-red); margin-bottom: 8px; }
.hl-hero-title a { color: inherit; }
.hl-hero-excerpt {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.hl-hero-side {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--hl-line);
    padding-left: 22px;
    min-width: 0;
}
.hl-hero-side .hl-li { flex: 1 1 auto; }

/* HERO — ক্লাসিক ওভারলে */
.hl-hero-overlay .hl-hero-lead { position: relative; border-radius: 12px; overflow: hidden; }
.hl-hero-overlay .hl-media-hero { aspect-ratio: 16 / 7; border-radius: 0; }
.hl-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 70px 24px 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, 0) 100%);
}
.hl-overlay .hl-hero-title { color: #fff; font-size: 28px; margin-bottom: 6px; }
.hl-overlay .hl-hero-title a { color: #fff; }
.hl-overlay .hl-hero-title a:hover { color: #ffd9d9; }
.hl-hero-overlay .hl-hero-side.hl-side-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    border-left: 0;
    padding-left: 0;
    margin-top: 6px;
}
.hl-side-2col .hl-li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* সাইড তালিকা আইটেম */
.hl-li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--hl-line);
    min-width: 0;
}
.hl-li:last-child { border-bottom: 0; }
.hl-hero-side .hl-li:first-child { padding-top: 0; }
.hl-li-text { flex: 1; min-width: 0; }
.hl-li-title { font-size: 15.5px; margin-bottom: 4px; }
.hl-li-img { position: relative; display: block; flex: 0 0 96px; width: 96px; height: 66px; border-radius: 6px; overflow: hidden; }
.hl-li-img .hl-thumb::before { font-size: 18px; }

/* ==========================================================================
   কার্ড গ্রিড (হিরোর নিচে)
   ========================================================================== */
.hl-grid {
    display: grid;
    gap: 22px 18px;
    padding: 22px;
    background: var(--hl-card);
    border: 1px solid var(--hl-line);
    border-radius: 12px;
}
.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-card { min-width: 0; display: flex; flex-direction: column; }
.hl-card .hl-media { margin-bottom: 10px; }
.hl-card-title { font-size: 16.5px; margin-bottom: 5px; }

/* একটিমাত্র কার্ড থাকলে আনুভূমিক — বাঁয়ে ছবি, ডানে লেখা */
.hl-gn1 .hl-card, .hl-cn1 .hl-card, .hl-rn1 .hl-card, .hl-rn3 .hl-card:first-child {
    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, .hl-rn3 .hl-card:first-child .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, .hl-rn3 .hl-card:first-child .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, .hl-rn3 .hl-card:first-child .hl-time { align-self: start; }

/* ==========================================================================
   উইজেট ডেক — সর্বশেষ/জনপ্রিয় · সংবাদ আর্কাইভ · জনমত জরিপ (সমান উচ্চতা, ফাঁকা নেই)
   ========================================================================== */
.hl-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 20px;
    margin: 22px 0 0;
    align-items: stretch;
}
.hl-deck > * { min-width: 0; }
.hl-deck > .dynamic-ad-box { grid-column: 1 / -1; margin: 0 !important; }
.hl-deck > .sidebar-widget,
.hl-deck > .calendar-widget,
.hl-deck > .sidebar-poll-widget {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--hl-card);
    border: 1px solid var(--hl-line);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .05);
    overflow: hidden;
}
.hl-deck .widget-title,
.hl-deck .calendar-widget .widget-title {
    display: block;
    margin: 0;
    padding: 12px 16px;
    background: var(--hl-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    border: 0;
    border-radius: 0;
}
.hl-deck .tab-headers { background: var(--hl-soft); }
.hl-deck .tab-content { flex: 1 1 auto; min-height: 0; }
.hl-deck .tab-content[style*="block"] { display: flex !important; flex-direction: column; }
.hl-deck .tab-content .sidebar-news-list { flex: 1 1 auto; display: flex; flex-direction: column; }
.hl-deck .sidebar-news-item { flex: 1 1 auto; }

.hl-deck .calendar-header { margin: 14px 16px 10px; }
.hl-deck .news-calendar { width: calc(100% - 32px); margin: 0 16px 16px; flex: 1 1 auto; }

.hl-deck .sidebar-poll-img { position: relative; flex: 1 1 auto; min-height: 150px; }
.hl-deck .sidebar-poll-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-bottom: 0; }
.hl-deck .sidebar-poll-content { flex: 0 0 auto; padding: 14px 16px 16px; }
.hl-deck .sidebar-poll-question { font-size: 15.5px; line-height: 1.5; }
.hl-deck .sidebar-poll-btn { padding: 9px; font-size: 14px; }

/* ==========================================================================
   ক্যাটাগরি সেকশন — প্রতিটি সারি একটি প্যানেল; সারি সবসময় ৬-কলাম পূর্ণ
   ========================================================================== */
.hl-sections { display: flex; flex-direction: column; gap: 22px; margin: 26px 0 8px; }
.hl-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 22px;
    background: var(--hl-card);
    border: 1px solid var(--hl-line);
    border-radius: 12px;
}
.hl-row:nth-child(even) { background: var(--hl-soft); }
.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: 0 22px; }
.hl-block.hl-first { padding-left: 0; }
.hl-block.hl-last { padding-right: 0; }
.hl-block:not(.hl-first) { border-left: 1px solid var(--hl-line); }
.hl-block-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* হেডার — ক্লাসিক: শিরোনামের নিচে লাল দাগ, বাকিটা পাতলা লাইন */
.hl-block-head {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #cfd6dc;
}
.hl-block-title {
    font-size: 21px; font-weight: 800; margin: 0; line-height: 1.4;
    padding: 0 2px 5px 0; border-bottom: 3px solid var(--hl-red); margin-bottom: -1px;
    white-space: nowrap;
}
.hl-block-title a { color: var(--hl-text); }
.hl-block-title a:hover { color: var(--hl-red); }
.hl-subcats { flex: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; padding-bottom: 6px; min-width: 0; }
.hl-subcats a { font-size: 13.5px; color: #4b5563; font-weight: 600; }
.hl-subcats a:hover { color: var(--hl-red); }
.hl-more { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--hl-accent); white-space: nowrap; padding-bottom: 6px; }
.hl-subcats + .hl-more { margin-left: 0; }
.hl-more i { font-size: 11px; margin-left: 2px; }
.hl-more:hover { color: var(--hl-red); }

/* হেডার — সলিড ট্যাব */
.hl-hs-solid .hl-block-head { border-bottom: 2px solid var(--hl-accent); }
.hl-hs-solid .hl-block-title { padding: 4px 18px; background: var(--hl-accent); border-bottom: 0; margin-bottom: 0; }
.hl-hs-solid .hl-block-title a { color: #fff; }
.hl-hs-solid .hl-block-title a:hover { color: #ffd9d9; }
.hl-hs-solid .hl-subcats, .hl-hs-solid .hl-more { padding-bottom: 5px; }

/* একটিমাত্র খবর থাকলে টাইল পুরো ব্লক ভরাট করে */
.hl-tile-solo { flex: 1 1 auto; min-height: 280px; }
.hl-tile-solo .hl-tile-title { font-size: 22px; }

/* লিড (উল্লম্ব) */
.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.7; color: #4b5563; margin: 0 0 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: 16px; align-items: start; }
.hl-lead-h .hl-media { margin-bottom: 0; aspect-ratio: 4 / 3; }
.hl-lead-h .hl-lead-title { font-size: 19px; }
.hl-lead-h .hl-lead-excerpt { font-size: 14px; }

/* ---------- d1: পূর্ণ প্রস্থ — বাঁয়ে বড় ওভারলে লিড, ডানে কার্ড ---------- */
.hl-d1-wrap {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px;
    align-items: stretch;
}
.hl-d1 .hl-tile-lead { min-height: 360px; }
.hl-d1 .hl-tile-lead .hl-tile-title { font-size: 26px; }
.hl-d1-right { min-width: 0; display: flex; flex-direction: column; }
.hl-cards-2 {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 18px;
}
.hl-cards-2 .hl-card .hl-media { flex: 1 0 auto; }
.hl-rn1 { grid-template-columns: minmax(0, 1fr); }
.hl-rn3 .hl-card:first-child { grid-column: 1 / -1; }
.hl-more-list {
    list-style: none; margin: 18px 0 0; padding: 14px 0 0;
    border-top: 1px solid var(--hl-line);
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px;
}
.hl-more-list li { position: relative; padding-left: 14px; font-size: 14.5px; line-height: 1.6; }
.hl-more-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--hl-red); border-radius: 50%; }
.hl-more-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- d4: সমান কার্ড রো ---------- */
.hl-cards-4 { display: grid; gap: 22px 18px; }
.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-mgrid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    min-height: 430px;
}
.hl-m-lead { grid-column: 1 / 3; grid-row: 1 / 3; min-height: 0; }
.hl-m-lead .hl-tile-title { font-size: 27px; line-height: 1.4; font-weight: 800; }
.hl-m-lead .hl-tile-body { padding: 22px 24px 20px; }
.hl-m-tile { min-height: 0; }
.hl-m0 .hl-m-lead { grid-column: 1 / -1; }
.hl-m1 .hl-m-tile { grid-column: 3 / 5; grid-row: 1 / 3; }
.hl-m2 .hl-m-tile { grid-column: 3 / 5; }
.hl-m3 .hl-m-tile:nth-child(2) { grid-column: 3 / 5; }
.hl-mgrid + .hl-more-list { margin-top: 18px; }

/* ---------- র‍্যাঙ্ক তালিকা ---------- */
.hl-tile-wide { flex: 1 0 auto; aspect-ratio: 16 / 9; min-height: 0; }
.hl-numbered .hl-tile-wide .hl-tile-title { font-size: 20px; }
.hl-rank {
    list-style: none; margin: 12px 0 0; padding: 0;
    flex: 0 0 auto; display: flex; flex-direction: column;
    border-top: 1px solid var(--hl-line);
}
.hl-rank li {
    flex: 0 0 auto; display: flex; align-items: center; gap: 14px;
    padding: 10px 0; border-bottom: 1px dotted #cbd5e1; min-width: 0;
}
.hl-rank li:last-child { border-bottom: 0; }
.hl-rank-no {
    flex: 0 0 38px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 2px solid var(--hl-red); color: var(--hl-red); background: var(--hl-card);
    font-weight: 800; font-size: 18px; line-height: 1;
}
.hl-rank-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hl-rank-txt a {
    font-size: 15.5px; font-weight: 600; line-height: 1.5; color: var(--hl-text);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

/* ---------- d2 / d3: লিড + বুলেট তালিকা (তালিকা বাকি জায়গা ভরাট করে) ---------- */
.hl-bullets {
    list-style: none; margin: 12px 0 0; padding: 0;
    flex: 0 0 auto; display: flex; flex-direction: column;
    border-top: 1px solid var(--hl-line);
}
.hl-bullets li {
    position: relative; flex: 0 0 auto; display: flex; align-items: center;
    padding: 9px 0 9px 16px; border-bottom: 1px dotted #cbd5e1;
    font-size: 15.5px; font-weight: 600; line-height: 1.55;
}
.hl-bullets li:last-child { border-bottom: 0; }
.hl-bullets li::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px;
    background: var(--hl-red);
}
.hl-bullets li a {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.hl-bullets li a:hover { color: var(--hl-red); }
.hl-d2 .hl-lead-h { flex: 1 1 auto; }
.hl-d2 .hl-lead-h .hl-media { align-self: stretch; aspect-ratio: auto; min-height: 140px; }
.hl-d3 .hl-lead { flex: 1 1 auto; display: flex; flex-direction: column; }
.hl-d3 .hl-lead .hl-media { flex: 1 0 auto; }
.hl-d3 .hl-lead-title { font-size: 18px; }
.hl-d3 .hl-block-title { font-size: 20px; }
.hl-d3 .hl-bullets li { font-size: 15px; }

/* ==========================================================================
   ডার্ক মোড
   ========================================================================== */
html.dark-mode .hl-home {
    --hl-text: #f1f5f9; --hl-muted: #94a3b8; --hl-line: #334155; --hl-ph: #1e293b;
    --hl-accent: #38bdf8; --hl-card: #1e293b; --hl-soft: #172033;
}
html.dark-mode .hl-home a { color: inherit; }
html.dark-mode .hl-home .hl-tile-title a,
html.dark-mode .hl-home .hl-bh-title a { color: #fff; }
html.dark-mode .hl-home .hl-block-title a,
html.dark-mode .hl-home .hl-card-title a,
html.dark-mode .hl-home .hl-li-title a,
html.dark-mode .hl-home .hl-lead-title a,
html.dark-mode .hl-home .hl-more-list a,
html.dark-mode .hl-home .hl-rank-txt a,
html.dark-mode .hl-home .hl-strip-title { color: #f1f5f9; }
html.dark-mode .hl-home .hl-hero-title,
html.dark-mode .hl-home .hl-hero-title a { color: #fca5a5; }
html.dark-mode .hl-home .hl-overlay .hl-hero-title,
html.dark-mode .hl-home .hl-overlay .hl-hero-title a { color: #fff; }
html.dark-mode .hl-home .hl-hero-excerpt,
html.dark-mode .hl-home .hl-lead-excerpt { color: #cbd5e1; }
html.dark-mode .hl-home .hl-bullets li a,
html.dark-mode .hl-home .hl-subcats a { color: #e2e8f0; }
html.dark-mode .hl-home .hl-block-head { border-bottom-color: #475569; }
html.dark-mode .hl-home .hl-bullets li,
html.dark-mode .hl-home .hl-rank li { border-bottom-color: #334155; }
html.dark-mode .hl-home .hl-hs-solid .hl-block-title { background: #0c4a6e; }
html.dark-mode .hl-home .hl-hs-solid .hl-block-title a { color: #fff; }
html.dark-mode .hl-home .hl-thumb::before { color: rgba(148, 163, 184, .3); }
html.dark-mode .hl-home .hl-strip-item:hover { background: #1e293b; }
html.dark-mode .hl-deck > .sidebar-widget,
html.dark-mode .hl-deck > .calendar-widget,
html.dark-mode .hl-deck > .sidebar-poll-widget { background: #1e293b !important; border-color: #334155 !important; }
html.dark-mode .hl-deck .widget-title { background: #0c4a6e; }
html.dark-mode .hl-deck .tab-headers { background: #172033; border-bottom-color: #334155; }
html.dark-mode .hl-deck .tab-btn { color: #cbd5e1; }
html.dark-mode .hl-deck .tab-btn.active { background: #1e293b; color: #38bdf8; }
html.dark-mode .hl-deck .sidebar-news-item { border-bottom-color: #334155; }
html.dark-mode .hl-deck .sidebar-news-item:hover { background: #172033; }
html.dark-mode .hl-deck .sidebar-title { color: #f1f5f9; }
html.dark-mode .hl-deck .calendar-header { background: #172033; border-color: #334155; }
html.dark-mode .hl-deck .cal-nav-btn { background: #1e293b; border-color: #475569; color: #e2e8f0; }
html.dark-mode .hl-deck .cal-month-year { color: #f1f5f9; }
html.dark-mode .hl-deck .news-calendar th { background: #172033; color: #cbd5e1; border-color: #334155; }
html.dark-mode .hl-deck .news-calendar td { border-color: #334155; }
html.dark-mode .hl-deck .news-calendar td.empty-day,
html.dark-mode .hl-deck .empty-day { background: #172033; }
html.dark-mode .hl-deck .news-calendar td span { color: #94a3b8; }
html.dark-mode .hl-deck .news-calendar td.has-post a { background: rgba(56, 189, 248, .15); color: #38bdf8; }
html.dark-mode .hl-deck .news-calendar td.today { background: #3b2f12; }
html.dark-mode .hl-deck .sidebar-poll-question { color: #f1f5f9; }
html.dark-mode .hl-deck .sidebar-poll-btn { background: #172033; border-color: #475569; color: #e2e8f0; }
html.dark-mode .hl-deck .sidebar-poll-label { color: #e2e8f0; }
html.dark-mode .hl-deck .sidebar-poll-bar { background: #334155; }

/* ==========================================================================
   রেসপনসিভ
   ========================================================================== */
@media (max-width: 1100px) {
    .hl-bh-title { font-size: 28px; }
    .hl-hero-title, .hl-overlay .hl-hero-title { font-size: 25px; }
    .hl-block { padding: 0 16px; }
    .hl-row { padding: 18px; }
    .hl-m-lead .hl-tile-title { font-size: 23px; }
}

/* ট্যাবলেট: সব ব্লক পূর্ণ প্রস্থ (কোনো ফাঁকা জায়গা থাকে না) */
@media (max-width: 991px) {
    .hl-hero-bento { grid-template-columns: minmax(0, 1fr); }
    .hl-bh-lead { min-height: 400px; }
    .hl-bh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(190px, auto); }
    .hl-t1 .hl-bh-tiles { grid-template-columns: minmax(0, 1fr); }
    .hl-t2 .hl-bh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hl-t3 .hl-bh-tiles .hl-tile:first-child { grid-column: 1 / -1; }

    .hl-hero-split { grid-template-columns: minmax(0, 1fr); }
    .hl-hero-side { border-left: 0; padding-left: 0; margin-top: 4px; }
    .hl-hero-side .hl-li:first-child { padding-top: 11px; }
    .hl-hero-side .hl-li { flex: 0 0 auto; }

    .hl-gn4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* উইজেট ডেক: ২ কলাম, জরিপ নিচে পূর্ণ প্রস্থে — একা পড়ে ফাঁকা থাকে না */
    .hl-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hl-deck > .sidebar-poll-widget { grid-column: 1 / -1; }

    .hl-row { row-gap: 26px; }
    .hl-s2, .hl-s3 { grid-column: span 6; }
    .hl-block, .hl-block.hl-first, .hl-block.hl-last { padding: 0; }
    .hl-block:not(.hl-first) { border-left: 0; border-top: 1px solid var(--hl-line); padding-top: 24px; }

    /* 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; align-self: start; }
    .hl-tile-wide { aspect-ratio: 16 / 8; }
}

@media (max-width: 767px) {
    .hl-deck { grid-template-columns: minmax(0, 1fr); }
    .hl-bh-lead { min-height: 340px; }
    .hl-bh-title { font-size: 24px; }
    .hl-bh-body { padding: 22px 18px 18px; }
    .hl-bh-excerpt { display: none; }
    .hl-hero-title, .hl-overlay .hl-hero-title { font-size: 22px; }
    .hl-hero-overlay .hl-media-hero { aspect-ratio: 16 / 10; }
    .hl-hero-overlay .hl-hero-side.hl-side-2col { grid-template-columns: minmax(0, 1fr); }
    .hl-overlay { padding: 50px 14px 14px; }

    .hl-strip-2 { grid-template-columns: minmax(0, 1fr); }
    .hl-strip-item .hl-time { display: none; }

    .hl-grid { padding: 16px; gap: 18px 14px; }
    .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-row { padding: 16px; }
    .hl-block-title, .hl-d3 .hl-block-title { font-size: 19px; }
    .hl-subcats { display: none; }
    .hl-more { margin-left: auto; }

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

    .hl-mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(170px, auto); min-height: 0; }
    .hl-m-lead { grid-column: 1 / -1; grid-row: auto; min-height: 280px; }
    .hl-m0 .hl-m-lead { grid-column: 1 / -1; }
    .hl-m1 .hl-m-tile { grid-column: 1 / -1; grid-row: auto; }
    .hl-m2 .hl-m-tile { grid-column: auto; }
    .hl-m3 .hl-m-tile:nth-child(2) { grid-column: 1 / -1; }
    .hl-m-lead .hl-tile-title { font-size: 21px; }
    .hl-m-tile .hl-tile-title { font-size: 15px; }

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

@media (max-width: 520px) {
    .hl-bh-tiles { grid-auto-rows: minmax(160px, auto); gap: 10px; }
    .hl-bh-tiles .hl-tile-title { font-size: 15px; }
    .hl-tile-body { padding: 10px 12px; }
    .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, .hl-d2 .hl-lead-h .hl-media { aspect-ratio: 16 / 9; align-self: auto; min-height: 0; }
    .hl-cards-2 { gap: 14px 12px; }
    .hl-li-img { flex-basis: 88px; width: 88px; height: 60px; }
    .hl-gn1 .hl-card, .hl-cn1 .hl-card, .hl-rn1 .hl-card, .hl-rn3 .hl-card:first-child { grid-template-columns: minmax(0, 1fr); }
    .hl-gn1 .hl-card .hl-media, .hl-cn1 .hl-card .hl-media, .hl-rn1 .hl-card .hl-media, .hl-rn3 .hl-card:first-child .hl-media { grid-row: auto; aspect-ratio: 16 / 10; height: auto; margin-bottom: 10px; }
}
