﻿/* VN Capital - Forex & Finance Theme */
* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', sans-serif; line-height: 1.7; }

.line-clamp-1{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.line-clamp-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #9ca3af; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #6b7280; }

/* ======== Navigation ======== */
.nav-item {
    display: inline-flex; align-items: center; padding: 10px 14px;
    font-size: 13.5px; font-weight: 600; color: #4b5563; white-space: nowrap;
    transition: color .15s; position: relative;
}
.nav-item::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px; background: #0d6efd; border-radius: 3px 3px 0 0; transition: width .2s;
}
.nav-item:hover { color: #0d6efd; }
.nav-item:hover::after, .nav-item.active::after { width: calc(100% - 16px); }
.nav-item.active { color: #0d6efd; font-weight: 700; }

/* ======== Pagination ======== */
.pagination { display: flex; gap: 0.35rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 2rem; }
.pagination a, .pagination span {
    min-width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 0.6rem; border-radius: 0.5rem; font-size: 0.85rem; font-weight: 500;
    background: #fff; color: #4b5563; text-decoration: none; border: 1px solid #e5e7eb;
}
.pagination a:hover { background: #e7f1ff; color: #0d6efd; border-color: #0d6efd; }
.pagination .active { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ======== Article Content ======== */
.article-content { font-size: 1rem; line-height: 1.85; color: #374151; word-wrap: break-word; }
.article-content h2 { font-size: 1.4rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.8rem; color: #111827; border-left: 4px solid #0d6efd; padding-left: 0.75rem; }
.article-content h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.6rem; color: #1f2937; }
.article-content p { margin-bottom: 1rem; }
.article-content img { max-width: 100%; border-radius: 0.5rem; margin: 1.2rem 0; }
.article-content blockquote { border-left: 3px solid #0d6efd; padding: 1rem 1.2rem; background: #e7f1ff; border-radius: 0 0.5rem 0.5rem 0; margin: 1.2rem 0; font-style: italic; color: #374151; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.9rem; }
.article-content th, .article-content td { border: 1px solid #e5e7eb; padding: 0.6rem 0.8rem; text-align: left; }
.article-content th { background: #e7f1ff; font-weight: 600; color: #084298; }
.article-content code { background: #e7f1ff; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-family: 'Consolas', monospace; font-size: 0.9em; color: #0d6efd; }
.article-content pre { background: #1f2937; color: #e5e7eb; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; margin: 1.2rem 0; }
.article-content pre code { background: none; padding: 0; color: inherit; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content a { color: #0d6efd; text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: #0a58ca; }

/* ======== Focus & Selection ======== */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }
::selection { background: #cfe2ff; color: #031633; }

/* ======== Responsive ======== */
@media (max-width: 768px) {
    .nav-item { padding: 8px 10px; font-size: 12px; }
    .article-content { font-size: 0.95rem; }
    .article-content h2 { font-size: 1.2rem; }
}
