/*
 * businessnews.css — Vendor_BusinessNews / OrangeTheme
 * Sections:
 *   1. Variables
 *   2. Hero card
 *   3. Section title
 *   4. Grid 2-col (main list)
 *   5. Card
 *   6. Pagination
 *   7. Gadgets section
 *   8. Sidebar
 *   9. Responsive
 */

/* ─── 1. Variables ─────────────────────────────────────────── */
:root {
    --bn-orange:        #e05c28;
    --bn-orange-hover:  #c44d1e;
    --bn-text:          #1a1a1a;
    --bn-text-muted:    #6b7280;
    --bn-text-light:    #9ca3af;
    --bn-bg:            #f5f7fa;
    --bn-white:         #ffffff;
    --bn-border:        #e5e7eb;
    --bn-radius:        12px;
    --bn-radius-sm:     8px;
    --bn-shadow:        0 2px 10px rgba(0,0,0,.07);
    --bn-shadow-hover:  0 8px 24px rgba(0,0,0,.13);
    --bn-transition:    all .25s cubic-bezier(.4,0,.2,1);
    --bn-font:          'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
}

/* ─── 2. Hero card ─────────────────────────────────────────── */
.bn-hero {
    border-radius: var(--bn-radius);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--bn-shadow);
    font-family: var(--bn-font);
}

.bn-hero__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bn-hero__image-wrap {
    width: 100%;
    height: 380px;          /* tinggi ảnh hero */
    overflow: hidden;
    background: var(--bn-border);
}

.bn-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.bn-hero:hover .bn-hero__image {
    transform: scale(1.03);
}

.bn-hero__body {
    padding: 20px 22px 22px;
    background: var(--bn-white);
}

.bn-hero__date {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--bn-text-muted);
    margin-bottom: 6px;
}

.bn-hero__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--bn-text);
    line-height: 1.4;
    margin: 0 0 8px 0;
    letter-spacing: -.2px;
}

.bn-hero__desc {
    font-size: 14.5px;
    color: var(--bn-text-muted);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── 3. Section title ─────────────────────────────────────── */
.bn-section {
    font-family: var(--bn-font);
    margin-bottom: 8px;
}

.bn-section__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bn-text);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bn-border);
    letter-spacing: -.2px;
}

/* ─── 4. Grid 2-col ────────────────────────────────────────── */
.bn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

/* ─── 5. Card ──────────────────────────────────────────────── */
.bn-card {
    background: var(--bn-white);
    border-radius: var(--bn-radius);
    overflow: hidden;
    box-shadow: var(--bn-shadow);
    display: flex;
    flex-direction: column;
    transition: var(--bn-transition);
}

.bn-card:hover {
    box-shadow: var(--bn-shadow-hover);
    transform: translateY(-3px);
}

.bn-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Ảnh */
.bn-card__image-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: var(--bn-border);
    flex-shrink: 0;
}

.bn-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.bn-card:hover .bn-card__image {
    transform: scale(1.05);
}

/* Date badge nổi trên ảnh */
.bn-card__date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bn-orange);
    color: var(--bn-white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    line-height: 1.5;
    z-index: 1;
    pointer-events: none;
    letter-spacing: .01em;
}

/* Body */
.bn-card__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Tiêu đề — hiển thị đủ 2 dòng, không cắt sớm */
.bn-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--bn-text);
    line-height: 1.45;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;     /* luôn chiếm đủ 2 dòng cho đều nhau */
}

/* Mô tả 3 dòng */
.bn-card__desc {
    font-size: 13.5px;
    color: var(--bn-text-muted);
    line-height: 1.6;
    margin: 0 0 14px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Link đọc thêm */
.bn-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bn-orange);
    text-decoration: none;
    margin-top: auto;
    transition: gap .2s, color .2s;
    line-height: 1.4;
}

.bn-card:hover .bn-card__readmore {
    gap: 7px;
    color: var(--bn-orange-hover);
}

/* Shared icon */
.bn-icon-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    vertical-align: middle;
}

.bn-icon-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ─── 6. Pagination ────────────────────────────────────────── */
.bn-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 0 28px;
    font-family: var(--bn-font);
}

/* Prev / Next icon buttons */
.bn-page-btn {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--bn-border);
    border-radius: 8px;
    background: var(--bn-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--bn-transition);
    color: var(--bn-text);
    padding: 0;
}

.bn-page-btn svg {
    width: 16px;
    height: 16px;
}

.bn-page-btn:hover:not(:disabled) {
    border-color: var(--bn-orange);
    color: var(--bn-orange);
    background: #fff5f2;
}

.bn-page-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* Số trang */
.bn-page-numbers {
    display: flex;
    gap: 4px;
}

.bn-page-num {
    min-width: 36px;
    height: 36px;
    border: 1.5px solid var(--bn-border);
    border-radius: 8px;
    background: var(--bn-white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--bn-text-muted);
    padding: 0 6px;
    transition: var(--bn-transition);
    font-family: var(--bn-font);
}

.bn-page-num:hover {
    border-color: var(--bn-orange);
    color: var(--bn-orange);
    background: #fff5f2;
}

.bn-page-num--active {
    background: var(--bn-orange) !important;
    border-color: var(--bn-orange) !important;
    color: var(--bn-white) !important;
}

/* ─── 7. Gadgets section ───────────────────────────────────── */
.bn-gadgets {
    background: var(--bn-bg);
    border-radius: var(--bn-radius);
    padding: 22px 20px 24px;
    margin-top: 4px;
    font-family: var(--bn-font);
}

.bn-gadgets__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.bn-gadgets__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--bn-text);
    margin: 0;
}

.bn-gadgets__view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1976d2;             /* biru untuk "View all" seperti di screenshot */
    text-decoration: none;
    transition: gap .2s, color .2s;
}

.bn-gadgets__view-all:hover {
    gap: 7px;
    color: #0d47a1;
}

/* Grid 3 cột cố định */
.bn-gadgets__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Card gadget */
.bn-gadget-card {
    background: var(--bn-white);
    border-radius: var(--bn-radius);
    overflow: hidden;
    box-shadow: var(--bn-shadow);
    transition: var(--bn-transition);
}

.bn-gadget-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bn-shadow-hover);
}

.bn-gadget-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.bn-gadget-card__thumb-wrap {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: var(--bn-border);
    flex-shrink: 0;
}

.bn-gadget-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.bn-gadget-card:hover .bn-gadget-card__thumb {
    transform: scale(1.06);
}

.bn-gadget-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--bn-orange);
    color: var(--bn-white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    line-height: 1.5;
    z-index: 1;
    pointer-events: none;
}

.bn-gadget-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.bn-gadget-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bn-text);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bn-gadget-card__desc {
    font-size: 13px;
    color: var(--bn-text-muted);
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bn-gadget-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--bn-orange);
    margin-top: 4px;
    transition: gap .2s;
}

.bn-gadget-card:hover .bn-gadget-card__readmore {
    gap: 7px;
}

/* ─── 8. Sidebar ───────────────────────────────────────────── */
.bn-sidebar {
    background: var(--bn-white);
    border-radius: var(--bn-radius);
    box-shadow: var(--bn-shadow);
    padding: 18px 16px;
    font-family: var(--bn-font);
}

.bn-sidebar__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bn-text);
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bn-orange);
}

.bn-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bn-sidebar__item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 0;
    border-bottom: 1px solid var(--bn-border);
    transition: var(--bn-transition);
}

.bn-sidebar__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bn-sidebar__item:hover {
    background: #fef3ee;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: var(--bn-radius-sm);
}

.bn-sidebar__thumb-wrap {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--bn-radius-sm);
    overflow: hidden;
    background: var(--bn-border);
}

.bn-sidebar__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bn-sidebar__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.bn-sidebar__news-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--bn-text);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color .2s;
}

a.bn-sidebar__news-title:hover {
    color: var(--bn-orange);
}

.bn-sidebar__news-date {
    font-size: 11.5px;
    color: var(--bn-text-light);
}

.bn-sidebar__empty {
    font-size: 14px;
    color: var(--bn-text-muted);
    text-align: center;
    padding: 20px 0;
}

/* ─── 9. Responsive ────────────────────────────────────────── */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
    .bn-hero__image-wrap { height: 280px; }
    .bn-gadgets__grid    { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile ≤ 767px */
@media (max-width: 767px) {
    .bn-hero__image-wrap { height: 220px; }
    .bn-hero__title      { font-size: 18px; }

    .bn-grid             { grid-template-columns: 1fr; }
    .bn-card__image-wrap { height: 200px; }

    .bn-gadgets__grid    { grid-template-columns: 1fr; }
    .bn-gadgets          { padding: 16px 14px; }

    .bn-section__title   { font-size: 19px; }
}

/* Mobile kecil ≤ 479px */
@media (max-width: 479px) {
    .bn-hero__image-wrap { height: 180px; }
    .bn-card__image-wrap { height: 175px; }
    .bn-card__title      { font-size: 15px; }
    .bn-page-num,
    .bn-page-btn         { width: 32px; height: 32px; font-size: 13px; }
}
