/* ======== VNFUND-ASIA - Financial Blue Theme ======== */

:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #3b82f6;
    --gold: #f59e0b;
    --gold-dark: #d97706;
    --green: #059669;
    --red: #dc2626;
    --body-bg: #f8fafc;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--body-bg);
    color: var(--text);
}

/* ======== TOP BAR ======== */
.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,.6);
    font-size: .75rem;
}
.bg-navy { background: var(--navy); }
.bg-navy-light { background: var(--navy-light); }
.bg-blue { background: var(--blue); }

/* ======== SEARCH ======== */
.search-input-desktop {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff; font-size: .8rem;
    border-radius: 6px 0 0 6px;
}
.search-input-desktop::placeholder { color: rgba(255,255,255,.35); }
.search-input-desktop:focus {
    background: rgba(255,255,255,.12);
    border-color: var(--blue-light); color: #fff;
    box-shadow: 0 0 0 .15rem rgba(37,99,235,.2);
}
.btn-search {
    background: var(--blue); color: #fff; border: none;
    border-radius: 0 6px 6px 0; transition: .2s;
}
.btn-search:hover { background: var(--blue-dark); color: #fff; }
.btn-blue, .btn-outline-blue {
    background: var(--blue); color: #fff; border: none; font-weight: 600;
}
.btn-blue:hover { background: var(--blue-dark); color: #fff; }

.lang-btn {
    color: rgba(255,255,255,.5); font-size: .75rem; border: none;
}
.lang-btn:hover { color: #fff; }

/* ======== NAVBAR ======== */
.main-navbar {
    background: var(--navy-light);
}
.main-navbar .nav-link {
    color: rgba(255,255,255,.65);
    font-size: .9rem; font-weight: 500;
    padding: .6rem 1rem !important;
    transition: color .2s;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #fff !important;
}

/* ======== MOBILE ======== */
.mobile-offcanvas {
    background: var(--navy); color: #fff;
}
.mobile-nav-link {
    color: rgba(255,255,255,.6); text-decoration: none; transition: .2s;
}
.mobile-nav-link:hover { background: rgba(37,99,235,.15); color: #fff; }

.border-white-10 { border-color: rgba(255,255,255,.1) !important; }
.text-white-30 { color: rgba(255,255,255,.3) !important; }
.text-white-50 { color: rgba(255,255,255,.5) !important; }
.text-white-20 { color: rgba(255,255,255,.2) !important; }

/* ======== FOOTER ======== */
.site-footer {
    background: var(--navy);
    border-top: 3px solid var(--blue);
}
.footer-link {
    color: rgba(255,255,255,.45); text-decoration: none; transition: .2s;
}
.footer-link:hover { color: #fff; }
.btn-social {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.06); color: rgba(255,255,255,.5);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: .2s;
}
.btn-social:hover { background: var(--blue); color: #fff; }

/* ======== HERO CARD ======== */
.hero-card {
    position: relative; border-radius: 1rem; overflow: hidden;
    min-height: 320px;
}
.hero-card img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-card .overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.9));
    padding: 2rem 1.5rem 1.5rem;
}
.hero-card .overlay h2 {
    color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.25;
}

/* ======== ARTICLE CARD ======== */
.article-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: .75rem; overflow: hidden;
    transition: all .25s; height: 100%;
}
.article-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 20px rgba(37,99,235,.08);
    transform: translateY(-2px);
}
.article-card .card-img-top { height: 180px; object-fit: cover; }
.article-card .card-body { padding: 1.25rem; }
.article-card .card-title {
    font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--text);
}
.article-card .card-title a { color: var(--text); text-decoration: none; }
.article-card .card-title a:hover { color: var(--blue); }

.category-badge {
    background: #eff6ff; color: var(--blue);
    font-size: .65rem; font-weight: 600; text-decoration: none;
    padding: .2rem .55rem; border-radius: .25rem;
}
.meta-text { font-size: .72rem; color: #94a3b8; }

/* ======== SECTION TITLE ======== */
.section-title {
    font-size: 1.25rem; font-weight: 800; color: var(--text);
    display: flex; align-items: center; gap: .5rem;
    margin-bottom: 1.25rem;
}
.section-title::before {
    content: ''; width: 4px; height: 24px;
    background: var(--blue); border-radius: 2px;
}

/* ======== TICKER ======== */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-track { display: inline-flex; animation: ticker-scroll 35s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }

/* ======== LIST ITEM ======== */
.list-article-item {
    border-bottom: 1px solid var(--border); padding: 1.15rem 0; transition: .2s;
}
.list-article-item:last-child { border-bottom: none; }
.list-article-item:hover { background: rgba(37,99,235,.03); }
.list-article-item h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.list-article-item h3 a { color: var(--text); text-decoration: none; }
.list-article-item h3 a:hover { color: var(--blue); }
.list-thumb { width: 150px; height: 100px; object-fit: cover; border-radius: .5rem; }

/* ======== SIDEBAR ======== */
.sidebar-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: .75rem; padding: 1.25rem; margin-bottom: 1.25rem;
}
.sidebar-card h5 {
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--navy);
    margin-bottom: 1rem; padding-bottom: .75rem;
    border-bottom: 2px solid var(--blue);
}

/* ======== PAGINATION ======== */
.pagination .page-link {
    color: var(--blue); border-color: var(--border); font-weight: 500;
    border-radius: 6px; margin: 0 2px;
}
.pagination .active .page-link {
    background: var(--blue); border-color: var(--blue); color: #fff;
}
.pagination .page-link:hover { background: #eff6ff; color: var(--blue-dark); }

/* ======== ARTICLE BODY ======== */
.article-body { line-height: 1.85; font-size: 16px; color: #334155; }
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 1rem; color: var(--navy); padding-bottom: .4rem; border-bottom: 2px solid #e2e8f0; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5rem 0; }
.article-body blockquote { border-left: 4px solid var(--blue); padding: 1rem 1.25rem; margin: 2rem 0; background: #f8fafc; border-radius: 0 8px 8px 0; color: var(--text); }
.article-body a { color: var(--blue); text-decoration: underline; font-weight: 500; }
.article-body a:hover { color: var(--blue-dark); }
.article-body table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 14px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.article-body th, .article-body td { border: 1px solid var(--border); padding: .75rem 1rem; }
.article-body th { background: #f1f5f9; font-weight: 700; }

/* Market Badge Colors */
.badge-up { background: #d1fae5; color: #065f46; }
.badge-down { background: #fee2e2; color: #991b1b; }
.badge-gold { background: #fef3c7; color: #92400e; }

/* Sub Nav */
.sub-nav { border-bottom: 1px solid var(--border); }
.sub-nav a {
    font-size: .85rem; color: var(--text-muted); text-decoration: none;
    padding: .5rem .75rem; font-weight: 500; transition: .2s;
}
.sub-nav a:hover, .sub-nav a.active { color: var(--blue); font-weight: 600; }

/* Tag Badge */
.tag-badge {
    background: #eff6ff; color: var(--blue);
    border: 1px solid #bfdbfe;
    font-size: .8rem; padding: .35rem .75rem; border-radius: .35rem;
    text-decoration: none; transition: .2s;
}
.tag-badge:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* 404 */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; }

/* RESPONSIVE */
@media (max-width: 991px) {
    .hero-card { min-height: 240px; }
    .hero-card .overlay h2 { font-size: 1.2rem; }
    .article-card .card-img-top { height: 160px; }
    .ticker-track { animation-duration: 22s; }
}
@media (max-width: 575px) {
    .hero-card { min-height: 200px; }
}
