/* Loan Trường - giao diện Tin tức. Màu chính lấy từ biến của theme nếu có. */
.ltn { --ltn-red: var(--lt-red, #ed1c24); --ltn-ink: #1d1d1f; --ltn-mute: #6b6f76; --ltn-line: #e6e8eb; color: var(--ltn-ink); background: #fff; }
.ltn * { box-sizing: border-box; }
.ltn a { color: inherit; text-decoration: none; }
.ltn-wrap { width: min(calc(100% - 32px), var(--lt-container, 1180px)); margin-inline: auto; }

.ltn-crumb { background: #f5f5f6; padding: 18px 0; font-size: 16px; color: var(--ltn-mute); }
.ltn-crumb span { margin: 0 14px; }
.ltn-crumb strong { color: var(--ltn-ink); font-weight: 600; }

.ltn-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--ltn-line); margin-top: 8px; scrollbar-width: none; }
.ltn-tabs::-webkit-scrollbar { display: none; }
.ltn-tab { flex: 0 0 auto; padding: 18px 12px; font-size: 16px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ltn-tab:hover { color: var(--ltn-red); }
.ltn-tab.is-active { color: var(--ltn-red); border-bottom-color: var(--ltn-red); }

.ltn-h1 { font-size: 40px; line-height: 1.15; margin: 56px 0 24px; font-weight: 800; }
.ltn-h2 { font-size: 26px; margin: 48px 0 20px; font-weight: 800; }
.ltn-desc { max-width: 820px; color: var(--ltn-mute); margin: -8px 0 24px; font-size: 17px; line-height: 1.6; }

.ltn-card__date { color: var(--ltn-mute); font-size: 15px; margin: 14px 0 6px; }
.ltn-card__title { font-size: 19px; line-height: 1.4; margin: 0 0 12px; font-weight: 700; }
.ltn-card__title a:hover, .ltn-feature__title a:hover { color: var(--ltn-red); }
.ltn-card__img, .ltn-feature__img { display: block; overflow: hidden; border-radius: 14px; background: #f0f1f3; aspect-ratio: 16 / 10; }
.ltn-card__img img, .ltn-feature__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ltn-card__img:hover img, .ltn-feature__img:hover img { transform: scale(1.03); }
.ltn-chip { display: inline-block; background: #fdecea; color: var(--ltn-red); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 8px; }
.ltn-feature__title { font-size: 30px; line-height: 1.3; margin: 0 0 14px; font-weight: 800; }
.ltn-feature__img { aspect-ratio: 16 / 11; }

/* Khối đầu trang */
.ltn-top { display: grid; gap: 28px; align-items: start; }
.ltn-top--hub { grid-template-columns: 2fr 1fr 1fr; }
.ltn-top--hub .ltn-top__main { grid-column: 1; }
.ltn-top__grid { grid-column: 2 / 4; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }


.ltn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.ltn-pager { display: flex; justify-content: center; gap: 8px; margin: 48px 0 72px; }
.ltn-pager .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ltn-line); border-radius: 10px; font-weight: 600; }
.ltn-pager .page-numbers.current { background: var(--ltn-red); border-color: var(--ltn-red); color: #fff; }
.ltn-pager a.page-numbers:hover { border-color: var(--ltn-red); color: var(--ltn-red); }
.ltn-empty { padding: 60px 0; color: var(--ltn-mute); }

@media (max-width: 1024px) {
    .ltn-top--hub { grid-template-columns: 1fr 1fr; }
    .ltn-top--hub .ltn-top__main { grid-column: 1 / 3; }
    .ltn-top__grid { grid-column: 1 / 3; }
    .ltn-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ltn-h1 { font-size: 30px; margin-top: 36px; }
    .ltn-feature__title { font-size: 24px; }
    .ltn-top--hub, .ltn-top__grid, .ltn-grid { grid-template-columns: 1fr; }
    .ltn-top--hub .ltn-top__main, .ltn-top__grid { grid-column: 1; }
    .ltn-crumb { font-size: 14px; }
}

/* Máy tính: 7 tab có thể dài hơn khung, cho xuống dòng thay vì phải cuộn ngang. */
@media (min-width: 1025px) {
    .ltn-tabs { flex-wrap: wrap; overflow: visible; }
}
