* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; width: 100%; max-width: 100%; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background: #f4f6f8; color: #202124; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }

/* MENI SEKCIJE KALENDAR */
.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; 
    flex-shrink: 0; 
}
.nav-link:hover, .nav-link.active { 
    color: #1a73e8; 
    border-bottom-color: #1a73e8; 
}

.container { max-width: 1240px; margin: 25px auto; padding: 0 20px; width: 100%; }
.layout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; width: 100%; }
.main-content { min-width: 0; width: 100%; }
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 80px; width: 100%; min-width: 0; }

.card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; box-shadow: 0 4px 14px rgba(0,0,0,0.03); min-width: 0; width: 100%; }

/* Banner zaglavlje */
.hero-header { border-bottom: 1px solid #edf2f7; padding-bottom: 20px; margin-bottom: 20px; }
.badge-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: #e8f0fe; color: #1a73e8; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 20px; }
.day-tag { font-size: 13.5px; color: #334155; font-weight: 700; background: #f1f5f9; padding: 4px 10px; border-radius: 8px; border: 1px solid #e2e8f0; }

h1 { font-size: 26px; color: #0f172a; font-weight: 800; line-height: 1.3; margin-bottom: 6px; word-break: break-word; }
.subtitle { font-size: 14px; color: #64748b; }

/* Naslovi sekcija */
h2.section-heading { font-size: 17px; color: #1e293b; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; margin: 30px 0 16px 0; display: flex; align-items: center; justify-content: space-between; scroll-margin-top: 85px; }
.heading-left { display: flex; align-items: center; gap: 10px; }
.section-icon { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.counter-badge { font-size: 11.5px; background: #f1f5f9; color: #64748b; padding: 2px 8px; border-radius: 12px; font-weight: 800; }

/* Liste i stavke */
.events-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.events-list li { background: #f8fafc; border: 1px solid #edf2f7; padding: 12px 16px; border-radius: 12px; font-size: 14px; color: #334155; display: flex; justify-content: space-between; align-items: center; gap: 15px; transition: transform 0.15s, border-color 0.15s; min-width: 0; }
.events-list li:hover { border-color: #cbd5e1; background: #fff; transform: translateY(-1px); }

.person-container { display: flex; align-items: center; gap: 12px; flex-grow: 1; min-width: 0; }
.person-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #e2e8f0; flex-shrink: 0; background: #fff; }

.event-text { flex-grow: 1; line-height: 1.5; min-width: 0; word-break: break-word; }
.year-tag { font-weight: 800; color: #1a73e8; margin-right: 6px; background: #e8f0fe; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

.action-link { font-size: 12px; background: #fff; border: 1px solid #cbd5e1; padding: 5px 12px; border-radius: 6px; text-decoration: none; color: #1a73e8; font-weight: 700; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.action-link:hover { background: #1a73e8; color: #fff; border-color: #1a73e8; }

/* Citat dana */
.quote-box { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); border: 1px solid #bae6fd; border-left: 4px solid #0284c7; border-radius: 12px; padding: 14px 18px; margin-top: 14px; }
.quote-text { font-size: 14px; font-style: italic; color: #0369a1; font-weight: 600; line-height: 1.5; }
.quote-author { font-size: 12px; font-weight: 800; color: #0284c7; margin-top: 6px; text-align: right; }

/* Social Share Box */
.social-share-strip { display: flex; align-items: center; gap: 8px; margin-top: 10px; 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 info cards */
.info-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.stat-item { background: #f8fafc; border: 1px solid #edf2f7; border-radius: 10px; padding: 12px; text-align: center; }
.stat-val { font-size: 16px; font-weight: 800; color: #0f172a; margin-top: 2px; }
.stat-lbl { font-size: 11px; color: #64748b; text-transform: uppercase; font-weight: 700; }

.year-progress-box { background: #f8fafc; border: 1px solid #edf2f7; border-radius: 12px; padding: 16px; margin-top: 10px; }
.progress-info { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 8px; }
.progress-bar-bg { background: #e2e8f0; border-radius: 8px; height: 10px; width: 100%; overflow: hidden; }
.progress-bar-fill { background: #1a73e8; height: 100%; border-radius: 8px; }

/* Povezane vijesti */
.news-mini-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.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: #1a73e8; }
.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; }
.news-mini-meta { font-size: 11px; color: #94a3b8; margin-top: 2px; }

[id*="info"] { scroll-margin-top: 85px; }

/* Mobilna prilagodba */
@media (max-width: 1024px) {
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

@media (max-width: 768px) {
    .nav-categories-inner { padding: 0 10px; gap: 4px; }
    .container { padding: 0 10px; margin: 15px auto; }
    .card { padding: 16px; border-radius: 12px; }
    h1 { font-size: 20px; }
    .events-list li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; }
    .person-container { width: 100%; }
    .event-actions { width: 100%; display: flex; justify-content: flex-end; }
}