* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; width: 100%; max-width: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f4f6f8; color: #202124; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }

.nav-categories { background: #ffffff; border-bottom: 1px solid #ebebeb; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nav-categories-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.nav-link { display: inline-block; padding: 12px 14px; color: #5f6368; text-decoration: none; font-weight: 700; font-size: 14px; border-bottom: 3px solid transparent; transition: all 0.2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: #d97706; border-bottom-color: #d97706; }

.portal-layout { max-width: 1240px; margin: 25px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; width: 100%; }
.main-traffic-feed { min-width: 0; width: 100%; }

/* ROAD ALERT HERO BANNER */
.traffic-hero-banner { 
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); 
    border-radius: 16px; 
    padding: 16px 22px; 
    color: #fff; 
    margin-bottom: 25px; 
    box-shadow: 0 4px 16px rgba(15,23,42,0.15); 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    align-items: center; 
    gap: 20px; 
    border-left: 4px solid #f59e0b; 
}
.traffic-hero-title { font-size: 17px; font-weight: 800; color: #ffffff; margin-bottom: 2px; }
.traffic-hero-sub { font-size: 12.5px; color: #94a3b8; }

.traffic-ticker-box { 
    position: relative; 
    height: 52px; 
    width: 100%; 
    overflow: hidden; 
    background: rgba(255,255,255,0.06); 
    border: 1px solid rgba(255,255,255,0.12); 
    border-radius: 10px; 
    padding: 4px 14px; 
}
.traffic-ticker-item { position: absolute; top: 0; left: 14px; right: 14px; height: 100%; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease; }
.traffic-ticker-item.active { opacity: 1; transform: translateY(0); }
.traffic-ticker-item.exit { opacity: 0; transform: translateY(-100%); }
.ticker-status-text { font-size: 12px; color: #e2e8f0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* MAIN REPORT CARD */
.report-card-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 26px; margin-bottom: 25px; box-shadow: 0 4px 14px rgba(0,0,0,0.03); }
.report-header-wrap { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 2px solid #d97706; padding-bottom: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.report-header-title { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0; }
.bihamk-logo-img { max-height: 44px; width: auto; object-fit: contain; }

.traffic-text-content { font-size: 15px; color: #334155; line-height: 1.8; background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; margin-top: 15px; }

.ceste-sidro-header {
    background: #f1f5f9 !important;
    border-left: 5px solid #d97706 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    padding: 10px 16px !important;
    margin: 32px -20px 14px -20px !important;
    color: #0f172a !important;
    font-size: 16.5px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 0 8px 8px 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
}

.traffic-text-content p { margin-bottom: 12px; }

/* STATUSNA LEGENDA */
.status-legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 20px 0; padding: 14px; background: #fffbeb; border: 1px solid #fef3c7; border-radius: 12px; }
.status-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #92400e; font-weight: 700; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-red { background: #ef4444; box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2); }
.dot-yellow { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2); }
.dot-blue { background: #3b82f6; box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }
.dot-green { background: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2); }

/* SOCIAL SHARE BUTTONS */
.social-share-strip { display: flex; align-items: center; gap: 8px; margin-top: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.share-label { font-size: 12.5px; font-weight: 700; color: #64748b; margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; text-decoration: none; font-size: 14px; font-weight: bold; transition: opacity 0.2s, transform 0.2s; }
.share-btn:hover { opacity: 0.85; transform: scale(1.08); }
.share-fb { background: #1877f2; }
.share-tw { background: #000000; }
.share-wa { background: #25d366; }
.share-vb { background: #7360f2; }
.share-tg { background: #24a1de; }

/* SIDEBAR */
.sidebar-wrapper { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 80px; width: 100%; min-width: 0; }
.side-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); width: 100%; min-width: 0; }
.side-card-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f1f3f4; display: flex; justify-content: space-between; align-items: center; }

/* SOS BOX */
.sos-numbers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.sos-item { background: #f8f9fa; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; text-align: center; text-decoration: none; color: inherit; transition: all 0.2s; }
.sos-item:hover { background: #fff1f2; border-color: #fecaca; transform: translateY(-1px); }
.sos-number { font-size: 18px; font-weight: 800; color: #e11d48; }
.sos-label { font-size: 11px; color: #64748b; font-weight: 700; text-transform: uppercase; }

.news-mini-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.news-mini-item { display: flex; gap: 10px; text-decoration: none; color: inherit; align-items: center; border-bottom: 1px solid #f8fafc; padding-bottom: 8px; }
.news-mini-item:hover .news-mini-title { color: #d97706; }
.news-mini-thumb { width: 55px; height: 45px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #e2e8f0; }
.news-mini-title { font-size: 13px; font-weight: 700; line-height: 1.35; color: #1e293b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

[id*="sidro"] { scroll-margin-top: 85px; }

@media (max-width: 1024px) {
    .portal-layout { grid-template-columns: 1fr; }
    .sidebar-wrapper { position: static; }
}

@media (max-width: 768px) {
    .portal-layout { padding: 0 10px; margin: 15px auto; gap: 20px; }
    .report-card-box { padding: 16px; border-radius: 12px; }
    .report-header-title { font-size: 17px; }
    
    .ceste-sidro-header {
        margin: 24px -16px 12px -16px !important;
        padding: 8px 14px !important;
        font-size: 15px !important;
    }

    .traffic-hero-banner { 
        grid-template-columns: 1fr !important; 
        padding: 14px !important; 
        gap: 12px !important; 
    }
    .traffic-ticker-box { max-width: 100% !important; }
    .nav-categories-inner { padding: 0 10px; gap: 4px; }
}