/* =============================================
   BorsaHaber - Borsamatik Inspired Design
   Clean White Theme with Green Accents
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Semi+Condensed:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --navy: #1FDB26;
    --navy-dark: #17b820;
    --navy-light: #35e83c;
    --white: #ffffff;
    --bg-light: #f5fff5;
    --bg-grey: #edfaed;
    --text-dark: #0d1a0d;
    --text-body: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --border: #c8e8c8;
    --border-light: #e0f5e0;
    --positive: #0a8c11;
    --negative: #cc0000;
    --positive-bg: #e8f5e9;
    --negative-bg: #ffebee;
    --accent-orange: #ff6b00;
    --shadow-sm: 0 1px 4px rgba(31, 219, 38, 0.10);
    --shadow-md: 0 4px 16px rgba(31, 219, 38, 0.13);
    --shadow-lg: 0 8px 32px rgba(31, 219, 38, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-light);
    color: var(--text-body);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f0f2f5;
}

::-webkit-scrollbar-thumb {
    background: #c8d0dc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aab8;
}

/* ===== TOP BACKGROUND ===== */
.top-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 700px;
    background: url('../img/hero-bg.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
    overflow: hidden;
}

.top-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(4, 9, 6, 0.3) 0%, rgba(4, 9, 6, 0.8) 70%, var(--bg-light) 100%);
    pointer-events: none;
}

.top-hero-bg::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    width: 60vw;
    height: 400px;
    background: rgba(31, 219, 38, 0.04);
    filter: blur(100px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ===== TOP HEADER (Floating Pill) ===== */
.top-header {
    background: transparent;
    padding: 24px 0 10px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.top-header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;

    background: rgba(10, 15, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    height: 80px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Logo */
.site-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 60px !important;
    width: auto;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* We hide text on small screens */
@media (max-width: 992px) {
    .logo-text-wrapper {
        display: none;
    }
}

.logo-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* Header Navigation Links */
.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 400;
    letter-spacing: 0.2px;
    position: relative;
    padding: 8px 4px;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    font-weight: 500;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--navy);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 -2px 10px rgba(31, 219, 38, 0.8);
}

/* Header right actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-premium {
    background: linear-gradient(135deg, #17b820 0%, #35e83c 100%);
    color: #0a2e0a !important;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(31, 219, 38, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 219, 38, 0.5);
    color: #000 !important;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ff3b3b;
    border-radius: 50%;
    border: 2px solid #111;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 12px 4px 4px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-profile img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
}

.header-menu-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

/* ===== STICKY STOCK TICKER ===== */
.stock-ticker-bar {
    background: #0d2b0d;
    color: white;
    overflow: hidden;
    position: sticky;
    top: 57px;
    z-index: 1025;
    height: 36px;
    display: flex;
    align-items: center;
}

.ticker-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    background: #071a07;
    height: 100%;
    flex-shrink: 0;
}

.ticker-controls button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ticker-controls button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.ticker-wrapper {
    overflow: hidden;
    flex: 1;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    animation: tickerScroll 45s linear infinite;
    gap: 0;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 36px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 13px;
    cursor: default;
    transition: background 0.2s;
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ticker-symbol {
    font-weight: 700;
    color: #1FDB26;
}

.ticker-price {
    color: rgba(255, 255, 255, 0.9);
}

.ticker-change {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
}

.ticker-change.up {
    color: #7dfa83;
}

.ticker-change.down {
    color: #f87171;
}

.ticker-change .arrow {
    font-size: 10px;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== NEW AI HERO SECTION ===== */
.page-wrapper {
    position: relative;
    z-index: 1;
}

.hero-ai-section {
    padding: 50px 0 40px;
    position: relative;
}

.hero-ai-title {
    margin-bottom: 24px;
}

.hero-stats-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 24px;
    display: inline-flex;
    align-items: center;
    gap: 32px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-size: 13px;
    color: #88928b;
    font-weight: 500;
}

.stat-val {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-pill-green {
    background: rgba(31, 219, 38, 0.15);
    color: #1FDB26;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stat-div {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
}

/* AI Chart Mockup */
.hero-ai-chart {
    background: rgba(14, 20, 16, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chart-header,
.chart-footer {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.chart-header::-webkit-scrollbar,
.chart-footer::-webkit-scrollbar {
    display: none;
}

.chart-header button,
.chart-footer button {
    background: transparent;
    border: none;
    color: #88928b;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.chart-header button:hover,
.chart-footer button:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.chart-header button.active {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.chart-footer button.active {
    background: rgba(31, 219, 38, 0.1);
    color: #1FDB26;
}

.chart-body {
    height: 160px;
    margin-bottom: 24px;
    position: relative;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Floating Bottom Navbar Pill */
.bottom-nav-pill-wrapper {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1040;
}

.bottom-nav-pill {
    background: rgba(14, 20, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bottom-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 100px;
    transition: all 0.3s;
    white-space: nowrap;
}

.bottom-nav-item i {
    color: #1FDB26;
    font-size: 18px;
}

.bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bottom-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
}

.bottom-nav-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
}

.bottom-nav-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: transparent;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
}

.bottom-nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

@media (max-width: 768px) {
    .bottom-nav-item span {
        display: none;
    }

    .bottom-nav-item {
        padding: 10px;
    }

    .hero-ai-title {
        font-size: 2.5rem;
    }
}

/* ===== MAIN CONTENT WRAPPER ===== */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

/* ===== HERO NEWS GRID ===== */
.hero-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
}

.hero-news-card {
    position: relative;
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    background: var(--text-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-news-card:hover img {
    transform: scale(1.03);
}

.hero-news-card.hero-main {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 340px;
}

.hero-news-card.hero-main img {
    height: 340px;
}

.hero-news-card.hero-side {
    grid-column: 2;
    min-height: 160px;
}

.hero-news-card.hero-side img {
    height: 160px;
}

.hero-news-card .card-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 14px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
}

.hero-news-card .cat-badge {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.hero-news-card .news-title {
    color: #fff;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-news-card.hero-main .news-title {
    font-size: 20px;
}

.hero-news-card .news-meta-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== CARD STYLES ===== */
.bh-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bh-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
    border-left: 3px solid var(--navy);
    letter-spacing: 0.3px;
}

.section-title i {
    color: var(--navy-light);
}

.section-more {
    font-size: 13px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.section-more:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ===== HERO NEWS (Featured) ===== */
.hero-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-main {
    grid-row: 1 / 3;
}

.hero-news-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s, transform 0.25s;
}

.hero-news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.hero-news-card img {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.hero-main img {
    height: 340px;
}

.hero-side img {
    height: 160px;
}

.hero-news-card .card-meta {
    padding: 14px 14px 8px;
}

.hero-news-card .cat-badge {
    display: inline-block;
    background: var(--navy);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-family: 'Barlow', sans-serif;
}

.hero-news-card .news-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.hero-main .news-title {
    font-size: 20px;
}

.hero-side .news-title {
    font-size: 15px;
}

.hero-news-card:hover .news-title {
    color: var(--navy);
}

.hero-news-card .news-meta-time {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== NEWS LIST CARDS ===== */
.news-list-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    background: var(--bg-light);
    text-decoration: none;
}

.news-list-thumb {
    width: 90px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-grey);
}

.news-list-content {
    flex: 1;
    min-width: 0;
}

.news-list-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 6px;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-item:hover .news-list-title {
    color: var(--navy);
}

.news-list-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.news-list-cat {
    display: inline-block;
    color: var(--navy);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ===== DATA SIDEBAR CARDS ===== */
.data-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.widget-scroll-area {
    max-height: 275px;
    overflow-y: auto;
}

.widget-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.widget-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.widget-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}

.widget-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.9);
}

.data-widget-header {
    background: var(--navy);
    color: #0a2e0a;
    padding: 11px 16px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.data-row:last-child {
    border-bottom: none;
}

.data-row:hover {
    background: var(--bg-light);
}

.data-row-left {
    display: flex;
    flex-direction: column;
}

.data-row-symbol {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    font-family: 'Barlow Semi Condensed', sans-serif;
}

.data-row-name {
    font-size: 11px;
    color: var(--text-light);
}

.data-row-right {
    text-align: right;
}

.data-row-price {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    font-family: 'Barlow Semi Condensed', sans-serif;
}

.data-row-change {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.data-row-change.positive {
    color: var(--positive);
}

.data-row-change.negative {
    color: var(--negative);
}

/* ===== FEATURED MANSET SECTION ===== */
.manset-strip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 28px;
}

.manset-strip-header {
    background: var(--navy);
    color: #0a2e0a;
    padding: 12px 18px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.manset-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.manset-item:last-child {
    border-bottom: none;
}

.manset-item:hover {
    background: var(--bg-light);
    text-decoration: none;
}

.manset-time {
    font-size: 12px;
    color: var(--text-light);
    min-width: 38px;
    font-weight: 600;
    padding-top: 2px;
    flex-shrink: 0;
}

.manset-content {
    flex: 1;
    min-width: 0;
}

.manset-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.manset-item:hover .manset-title {
    color: var(--navy);
}

.manset-summary {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.manset-badge {
    display: inline-block;
    background: var(--navy);
    color: #0a2e0a;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

/* ===== LATEST NEWS GRID ===== */
.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.latest-news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s, transform 0.25s;
}

.latest-news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.latest-news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-grey);
    display: block;
}

.latest-news-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.latest-news-cat {
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.latest-news-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 8px;
    flex: 1;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-news-card:hover .latest-news-title {
    color: var(--navy);
}

.latest-news-time {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== CATEGORY PAGE ===== */
.category-page-header {
    background: var(--navy);
    color: white;
    padding: 18px 0;
    margin-bottom: 24px;
}

.category-page-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== DETAIL PAGE ===== */
.news-detail-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 32px 36px;
}

.news-detail-cat-badge {
    display: inline-block;
    background: var(--navy);
    color: #0a2e0a;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.news-detail-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 12px;
}

.news-detail-summary {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    border-left: 3px solid var(--navy);
    padding-left: 16px;
    margin-bottom: 20px;
    font-style: italic;
}

.news-detail-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-body);
    white-space: pre-line;
}

.news-detail-source {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}

/* Share buttons */
.share-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    border: none;
}

.share-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    text-decoration: none;
}

.share-btn.fb {
    background: #1877f2;
    color: white;
}

.share-btn.tw {
    background: #1da1f2;
    color: white;
}

.share-btn.wa {
    background: #25d366;
    color: white;
}

/* Comments */
.comments-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px 32px;
    margin-top: 20px;
}

.comment-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 700;
    color: var(--navy);
    font-size: 14px;
}

.comment-time {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 8px;
}

.comment-body {
    font-size: 14px;
    color: var(--text-body);
    margin-top: 6px;
    line-height: 1.5;
}

/* Comment form */
.comment-form .form-control {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.comment-form .form-control:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(31, 219, 38, 0.15);
    background: var(--white);
    outline: none;
}

/* Similar news in detail */
.similar-news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.25s, transform 0.25s;
}

.similar-news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.similar-news-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    background: var(--bg-grey);
    display: block;
}

.similar-news-body {
    padding: 12px;
}

.similar-news-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.35;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-news-card:hover .similar-news-title {
    color: var(--navy);
}

/* ===== BUTTONS ===== */
.btn-navy {
    background: var(--navy);
    color: #0a2e0a;
    border: none;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-navy:hover {
    background: var(--navy-dark);
    transform: translateY(-1px);
    color: #0a2e0a;
    text-decoration: none;
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: #0a2e0a;
    text-decoration: none;
}

/* ===== ADMIN PAGE ===== */
.admin-page .page-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-page .table {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-page .table thead th {
    background: var(--navy);
    color: white;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 12px 16px;
}

.admin-page .table tbody tr:hover {
    background: var(--bg-light);
}

.admin-page .table tbody td {
    color: var(--text-body);
    border-color: var(--border-light);
    padding: 10px 16px;
    vertical-align: middle;
}

/* Form styling for admin */
.admin-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 5px;
}

.admin-form .form-control,
.admin-form .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s;
}

.admin-form .form-control:focus,
.admin-form .form-select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(31, 219, 38, 0.15);
    outline: none;
}

/* ===== BADGES ===== */
.badge-cat {
    display: inline-block;
    background: var(--navy);
    color: #0a2e0a;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-secondary-cat {
    display: inline-block;
    background: var(--bg-grey);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #061806;
    color: rgba(255, 255, 255, 0.75);
    padding: 36px 0 0;
    margin-top: 40px;
}

.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 28px;
}

.footer-brand-logo {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 15px;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
}

.footer-col-title {
    color: white;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-news-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .hero-main {
        grid-row: auto;
    }

    .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .market-info-bar {
        display: none;
    }

    .site-footer .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .page-wrapper {
        padding: 14px 14px 50px;
    }

    .latest-news-grid {
        grid-template-columns: 1fr;
    }

    .top-header .container-fluid {
        padding: 0 14px;
    }

    .category-nav .nav-inner {
        padding: 0 10px;
    }

    .news-detail-wrapper {
        padding: 20px 18px;
    }

    .news-detail-title {
        font-size: 22px;
    }

    .comments-section {
        padding: 20px 18px;
    }

    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-main img {
        height: 220px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bh-card,
.hero-news-card,
.latest-news-card,
.manset-strip,
.data-widget {
    animation: fadeInUp 0.45s ease-out both;
}

/* ===== AI CHATBOX ===== */
.ai-chatbox {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    height: 400px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
    overflow: hidden;
}

.ai-chatbox.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ai-chatbox-header {
    background: var(--navy);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--green);
}

.ai-chatbox-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-chatbox-body::-webkit-scrollbar {
    width: 5px;
}

.ai-chatbox-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.ai-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.ai-msg.user-msg {
    align-self: flex-end;
}

.ai-msg.bot-msg {
    align-self: flex-start;
}

.ai-msg .msg-content {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.user-msg .msg-content {
    background: var(--navy);
    color: #fff;
    border-bottom-right-radius: 2px;
}

.bot-msg .msg-content {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 2px;
    box-shadow: var(--shadow-sm);
}

.ai-chatbox-footer {
    padding: 12px;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
}

.ai-chatbox-footer input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.ai-chatbox-footer input:focus {
    border-color: var(--green);
}

.ai-chatbox-footer button {
    background: var(--green);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.ai-chatbox-footer button:hover {
    background: #1eb943;
}

@media(max-width: 768px) {
    .ai-chatbox {
        bottom: 70px;
        right: 15px;
        left: 15px;
        width: auto;
    }
}