/* ===================================================
   Bangla News for Elementor – Widget Styles
   =================================================== */

/* ── Base / Reset ──────────────────────────────── */
.bne-news-wrapper *,
.bne-news-wrapper *::before,
.bne-news-wrapper *::after { box-sizing: border-box; }

.bne-news-wrapper { --bne-accent: #e63946; --bne-card-bg: #fff; --bne-radius: 8px; }

.bne-no-posts { text-align: center; color: #888; padding: 2rem; }

/* ── Thumbnail ─────────────────────────────────── */
.bne-image-wrap { position: relative; overflow: hidden; }
.bne-thumb { width: 100%; height: 100%; object-fit: cover; display: block;
             transition: transform .4s ease; }
.bne-post-item:hover .bne-thumb { transform: scale(1.04); }

/* ── Category Badge ────────────────────────────── */
.bne-cat-badge {
    display: inline-block;
    background: var(--bne-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 3px 10px;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: 8px;
    text-transform: uppercase;
    transition: opacity .2s;
}
.bne-cat-badge:hover { opacity: .85; color: #fff; }
/* Badge overlaid on image */
.bne-image-wrap .bne-cat-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    margin: 0;
    z-index: 2;
}

/* ── Post Title ────────────────────────────────── */
.bne-post-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 8px;
}
.bne-post-title a { color: #1a1a2e; text-decoration: none; transition: color .2s; }
.bne-post-title a:hover { color: var(--bne-accent); }

/* ── Meta ──────────────────────────────────────── */
.bne-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    align-items: center;
}
.bne-meta span { display: flex; align-items: center; gap: 4px; }
.bne-meta svg  { flex-shrink: 0; }

/* ── Excerpt ───────────────────────────────────── */
.bne-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: #555;
    margin: 0;
}

/* ── Content padding ───────────────────────────── */
.bne-content { padding: 14px; }


/* =========================================
   GRID STYLE
   ========================================= */
.bne-style-grid .bne-posts-grid {
    display: grid;
    gap: 20px;
}
.bne-cols-1 { grid-template-columns: 1fr; }
.bne-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bne-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bne-cols-4 { grid-template-columns: repeat(4, 1fr); }

.bne-style-grid .bne-post-item {
    background: var(--bne-card-bg);
    border-radius: var(--bne-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: box-shadow .3s;
}
.bne-style-grid .bne-post-item:hover { box-shadow: 0 6px 24px rgba(0,0,0,.13); }
.bne-style-grid .bne-image-wrap { aspect-ratio: 16/9; }


/* =========================================
   LIST STYLE
   ========================================= */
.bne-style-list .bne-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bne-style-list .bne-post-item {
    background: var(--bne-card-bg);
    border-radius: var(--bne-radius);
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
    border-bottom: 1px solid #f0f0f0;
}
.bne-list-inner { display: flex; gap: 16px; padding: 12px; }
.bne-list-image { flex: 0 0 160px; height: 110px; overflow: hidden; border-radius: 6px; }
.bne-list-image .bne-thumb { height: 100%; }
.bne-list-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.bne-style-list .bne-post-title { font-size: 16px; }


/* =========================================
   CARD STYLE
   ========================================= */
.bne-style-card .bne-posts-grid {
    display: grid;
    gap: 24px;
}
.bne-style-card .bne-post-item {
    background: var(--bne-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.09);
    transition: transform .3s, box-shadow .3s;
}
.bne-style-card .bne-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0,0,0,.14);
}
.bne-style-card .bne-image-wrap { aspect-ratio: 4/3; }
.bne-style-card .bne-content { padding: 18px; }
.bne-style-card .bne-post-title { font-size: 17px; }


/* =========================================
   MAGAZINE STYLE
   ========================================= */
.bne-magazine-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}
/* First (featured) post spans full left column */
.bne-magazine-layout .bne-post-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.bne-magazine-layout .bne-post-item {
    background: var(--bne-card-bg);
    border-radius: var(--bne-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    position: relative;
}
/* Featured: title overlay on image */
.bne-magazine-layout .bne-featured .bne-image-wrap {
    height: 100%;
    min-height: 300px;
}
.bne-magazine-layout .bne-featured .bne-image-wrap .bne-thumb {
    height: 100%;
    object-fit: cover;
}
.bne-magazine-layout .bne-featured .bne-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.78));
    padding: 24px 16px 16px;
    color: #fff;
}
.bne-magazine-layout .bne-featured .bne-post-title a { color: #fff; font-size: 22px; }
.bne-magazine-layout .bne-featured .bne-meta { color: rgba(255,255,255,.75); }
.bne-magazine-layout .bne-featured .bne-excerpt { color: rgba(255,255,255,.85); }
.bne-magazine-layout .bne-post-item:not(.bne-featured) .bne-image-wrap { aspect-ratio: 16/9; }


/* =========================================
   PAGINATION
   ========================================= */
.bne-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}
.bne-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s, color .2s;
}
.bne-pagination .page-numbers.current,
.bne-pagination .page-numbers:hover { background: var(--bne-accent); color: #fff; }

/* ── Load More Button ──────────────────────────── */
.bne-load-more-wrap { text-align: center; margin-top: 28px; }
.bne-load-more {
    display: inline-block;
    background: var(--bne-accent);
    color: #fff;
    border: none;
    padding: 12px 36px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}
.bne-load-more:hover   { opacity: .87; transform: translateY(-1px); }
.bne-load-more:active  { transform: translateY(0); }
.bne-load-more:disabled { opacity: .5; cursor: not-allowed; }

/* ── Infinite Scroll Sentinel ──────────────────── */
.bne-infinite-sentinel { text-align: center; padding: 20px; margin-top: 10px; }
.bne-loading-spinner {
    display: inline-block;
    width: 28px; height: 28px;
    border: 3px solid #ddd;
    border-top-color: var(--bne-accent);
    border-radius: 50%;
    animation: bne-spin .7s linear infinite;
    opacity: 0;
}
.bne-loading-spinner.active { opacity: 1; }
@keyframes bne-spin { to { transform: rotate(360deg); } }


/* =========================================
   BANGLA COMMENT SECTION
   ========================================= */
.comment-respond .bne-bangla,
.comment-respond h3#reply-title,
.comment-respond label,
.comment-respond .comment-form-comment label,
.comment-respond .form-submit input[type="submit"],
.comment-respond p.comment-notes {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', SolaimanLipi, sans-serif !important;
}

.comment-respond h3#reply-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 3px solid var(--bne-accent, #e63946);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.comment-respond .form-submit input[type="submit"] {
    background-color: var(--bne-accent, #e63946);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    transition: opacity .2s;
}
.comment-respond .form-submit input[type="submit"]:hover { opacity: .85; }

.comment-respond textarea#comment {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', SolaimanLipi, sans-serif !important;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .bne-cols-4 { grid-template-columns: repeat(3, 1fr); }
    .bne-magazine-layout { grid-template-columns: repeat(2, 1fr); }
    .bne-magazine-layout .bne-post-item:first-child { grid-column: 1 / 3; grid-row: auto; }
}
@media (max-width: 768px) {
    .bne-cols-3, .bne-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .bne-magazine-layout { grid-template-columns: 1fr; }
    .bne-magazine-layout .bne-post-item:first-child { grid-column: auto; }
    .bne-list-image { flex: 0 0 110px; height: 80px; }
}
@media (max-width: 480px) {
    .bne-cols-2, .bne-cols-3, .bne-cols-4 { grid-template-columns: 1fr; }
    .bne-list-inner { flex-direction: column; }
    .bne-list-image { flex: none; height: 180px; }
}
