/* News-details page styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: #FAFAFA;
    color: #101828;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Preview Banner */
.preview-banner {
    position: sticky;
    top: 68px;
    z-index: 199;
    background: linear-gradient(90deg, #800020, #a00030);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Main layout */
.nd-main { flex: 1; }

.nd-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Breadcrumb */
.nd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    flex-wrap: wrap;
}
.nd-breadcrumb a { color: #6A142C; text-decoration: none; }
.nd-breadcrumb a:hover { text-decoration: underline; }
.nd-breadcrumb .sep { color: #6A7282; font-weight: 400; }
.nd-breadcrumb .current { color: #364153; }

/* Two-column container */
.nd-columns {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

/* Article */
.nd-article {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Category badge */
.nd-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(106, 20, 44, .30);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6A142C;
    align-self: flex-start;
}

/* Title */
.nd-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.25;
    color: #101828;
}

/* Meta row */
.nd-meta { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.nd-meta-author { display: flex; align-items: center; gap: 6px; }
.nd-meta-avatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(106, 20, 44, .15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nd-meta-avatar svg { width: 16px; height: 16px; }
.nd-meta-name { color: #4A5565; font-weight: 500; }
.nd-meta-dot { color: #99A1AF; }
.nd-meta-date { color: #99A1AF; font-weight: 400; }

/* Featured image */
.nd-image-wrap { background: #101828; border-radius: 16px; overflow: hidden; width: 100%; aspect-ratio: 16/7; }
.nd-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lead / subtitle */
.nd-lead { border-left: 4px solid #6A142C; padding: 0 0 0 20px; font-size: 20px; font-weight: 500; line-height: 1.6; color: #4A5565; }

/* Body content */
.nd-body { display: flex; flex-direction: column; gap: 20px; }
.nd-body p { font-size: 16px; font-weight: 400; line-height: 1.625; color: #364153; }
.nd-body h2, .nd-body h3 { color: #101828; font-weight: 800; }
.nd-body h2 { font-size: 24px; line-height: 1.3; margin-top: 8px; }
.nd-body h3 { font-size: 20px; line-height: 1.3; margin-top: 4px; }
.nd-body a { color: #6A142C; }
.nd-body ul, .nd-body ol { padding-left: 24px; }
.nd-body li { font-size: 16px; line-height: 1.7; color: #364153; }
.nd-body img { max-width: 100%; border-radius: 12px; }
.nd-body blockquote { border-left: 3px solid #6A142C; margin: 0; padding: 8px 0 8px 16px; font-style: italic; color: #4A5565; }
/* YouTube embed (saved as .yt-embed in article HTML) */
.nd-body .yt-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 8px 0;
}
.nd-body .yt-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Image caption: tighten the gap between caption and next paragraph */
.nd-body p[style*="font-size: 0.78rem"],
.nd-body p[style*="font-size:0.78rem"],
.nd-body p[style*="font-size:9px"] {
    font-size: 9px !important;
    margin-top: -4px;
    margin-bottom: -4px;
    color: #555;
}


/* Tags */
.nd-tags-row { display: flex; align-items: center; gap: 12px; padding: 24px 0 0; border-top: 1px solid #E5E7EB; flex-wrap: wrap; }
.nd-tags-label { font-size: 14px; font-weight: 600; color: #99A1AF; }
.nd-tag-pill { padding: 6px 12px; border-radius: 999px; background: #F3F4F6; font-size: 14px; font-weight: 500; color: #4A5565; text-decoration: none; transition: background 0.15s; }
.nd-tag-pill:hover { background: #E5E7EB; }

/* Gallery */
.nd-gallery { margin-top: 8px; }
.nd-gallery-title { font-size: 20px; font-weight: 800; color: #101828; margin-bottom: 12px; }
.nd-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.nd-gallery-item--clickable img { cursor: zoom-in; transition: opacity 0.18s ease; }
.nd-gallery-item--clickable img:hover { opacity: 0.88; }
.nd-gallery-item img { width: 100%; border-radius: 10px; object-fit: cover; aspect-ratio: 4/3; }

/* Lightbox */
.nd-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; flex-direction: column; gap: 16px; }
.nd-lightbox.is-open { display: flex; }
.nd-lightbox-img { max-width: min(92vw, 1200px); max-height: 80vh; border-radius: 10px; object-fit: contain; display: block; box-shadow: 0 8px 48px rgba(0,0,0,0.5); }
.nd-lightbox-counter { color: rgba(255,255,255,0.55); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.nd-lightbox-close { position: fixed; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: 0.75; transition: opacity 0.15s; z-index: 10000; }
.nd-lightbox-close:hover { opacity: 1; }
.nd-lightbox-arrow { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 2rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; z-index: 10000; }
.nd-lightbox-arrow:hover { background: rgba(255,255,255,0.22); }
.nd-lightbox-arrow--prev { left: 20px; }
.nd-lightbox-arrow--next { right: 20px; }

/* VR Panorama */
.nd-vr-section { margin-top: 8px; }
.nd-vr-title { font-size: 20px; font-weight: 800; color: #101828; margin-bottom: 12px; }
.nd-vr-grid { display: flex; flex-direction: column; gap: 16px; }
.nd-vr-item iframe { width: 100%; border-radius: 10px; display: block; }

/* Related articles */
.nd-related { margin-top: 24px; }
.nd-related-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.nd-related-heading .accent-bar { width: 4px; height: 24px; border-radius: 999px; background: #6A142C; flex-shrink: 0; }
.nd-related-heading h2 { font-size: 20px; font-weight: 900; color: #101828; }
.nd-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nd-related-card { border: 1px solid #E5E7EB; border-radius: 16px; overflow: hidden; background: #fff; text-decoration: none; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.nd-related-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.nd-related-img { height: 162px; background: #F3F4F6; overflow: hidden; }
.nd-related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-related-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.nd-related-date { font-size: 11px; color: #99A1AF; line-height: 1.45; }
.nd-related-title { font-size: 14px; font-weight: 700; color: #1E2939; line-height: 1.43; }

/* Aside */
.nd-aside { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: none; }
.nd-aside::-webkit-scrollbar { display: none; }
.nd-sidebar-banner-link { display: block; text-decoration: none; flex-shrink: 0; }
.nd-ad-placeholder { width: 100%; height: 250px; border: 1px dashed #D1D5DC; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; flex-shrink: 0; }
.nd-ad-placeholder--real { border: none; height: auto; padding: 0; position: relative; overflow: hidden; }
.nd-ad-placeholder--real img { width: 100%; height: auto; display: block; border-radius: 16px; }
.nd-ad-real-badge { position: absolute; bottom: 6px; right: 8px; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.nd-ad-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #99A1AF; }
.nd-ad-size { font-size: 14px; font-weight: 700; color: #99A1AF; }
.nd-sidebar-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; overflow: hidden; padding: 0; flex-shrink: 0; }
.nd-sidebar-card-head { display: flex; align-items: center; gap: 8px; padding: 20px 21px 0; }
.nd-sidebar-card-head .accent-bar { width: 4px; height: 20px; border-radius: 999px; background: #6A142C; }
.nd-sidebar-card-head h3 { font-size: 16px; font-weight: 900; color: #101828; }
.nd-sidebar-list { display: flex; flex-direction: column; }
.nd-sidebar-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 21px; text-decoration: none; border-bottom: 1px solid #F3F4F6; transition: background 0.12s; }
.nd-sidebar-item:last-child { border-bottom: none; }
.nd-sidebar-item:hover { background: #FAFAFA; }
.nd-sidebar-thumb { width: 64px; height: 65px; border-radius: 12px; background: #F3F4F6; overflow: hidden; flex-shrink: 0; }
.nd-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-sidebar-info { flex: 1; min-width: 0; padding-top: 5px; display: flex; flex-direction: column; gap: 4px; }
.nd-sidebar-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; align-self: flex-start; font-size: 10px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.nd-sidebar-badge--novosti { background: rgba(106,20,44,.30); color: #6A142C; }
.nd-sidebar-badge--testovi { background: rgba(0,153,102,.30); color: #009966; }
.nd-sidebar-badge--trziste { background: rgba(21,93,252,.30); color: #155DFC; }
.nd-sidebar-badge--default { background: rgba(106,20,44,.30); color: #6A142C; }
.nd-sidebar-title { font-size: 12px; font-weight: 600; color: #1E2939; line-height: 1.38; }

/* Newsletter */
.nd-newsletter { background: #6A142C; border-radius: 16px; padding: 20px; flex-shrink: 0; display: flex; flex-direction: column; gap: 0; }
.nd-newsletter h3 { font-size: 14px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.nd-newsletter p { font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 12px; line-height: 1.6; }
.nd-newsletter-input { width: 100%; padding: 9px 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; color: #fff; font-size: 14px; font-family: 'Inter', sans-serif; outline: none; margin-bottom: 8px; }
.nd-newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.nd-newsletter-btn { width: 100%; padding: 8px 0; border-radius: 12px; background: #fff; color: #6A142C; font-size: 14px; font-weight: 700; font-family: 'Inter', sans-serif; border: none; cursor: pointer; transition: opacity 0.15s; }
.nd-newsletter-btn:hover { opacity: 0.9; }

/* Popup banner */
#ab-popup-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
#ab-popup-overlay.is-visible { opacity: 1; pointer-events: all; }
.ab-popup-box { position: relative; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.5); max-width: 90vw; max-height: 90vh; }
.ab-popup-box.portrait { width: 380px; }
.ab-popup-box.landscape { width: min(700px, 90vw); }
.ab-popup-box img { display: block; width: 100%; height: auto; }
.ab-popup-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.6); border: none; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; transition: background .15s; }
.ab-popup-close:hover { background: rgba(0,0,0,.85); }
.ab-popup-oglas { position: absolute; bottom: 8px; left: 10px; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* Responsive */
@media (max-width: 1100px) {
    .nd-main { padding: 10px 24px 40px; }
    .nd-aside { display: none; }
    .nd-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .nd-main { padding: 10px 16px 40px; }
    .nd-inner { padding: 24px 0 0; }
    .nd-title { font-size: 26px; }
    .nd-lead { font-size: 16px; }
    .nd-related-grid { grid-template-columns: 1fr; }
    .header-nav { display: none; }
    .footer-top { flex-direction: column; gap: 32px; }
    .footer-col--brand { max-width: 100%; }
}

/* ── Share icons in meta row ─────────────────────────────────────── */
.nd-share-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nd-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #99A1AF;
    cursor: pointer;
    transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.15s;
    padding: 0;
    flex-shrink: 0;
}

.nd-share-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.nd-share-btn:hover {
    color: #6A142C;
    border-color: #6A142C;
    background: rgba(106, 20, 44, .06);
    transform: translateY(-1px);
}

.nd-share-btn--main svg {
    width: 14px;
    height: 14px;
}

/* ── Share popup overlay ─────────────────────────────────────────── */
#nd-share-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    backdrop-filter: blur(2px);
}

#nd-share-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.nd-share-modal {
    background: #fff;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 520px;
    padding: 24px 20px 32px;
    transform: translateY(30px);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, .18);
}

#nd-share-overlay.is-open .nd-share-modal {
    transform: translateY(0);
}

.nd-share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nd-share-modal-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #101828;
}

.nd-share-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #6A7282;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}

.nd-share-modal-close:hover {
    background: #E5E7EB;
    color: #101828;
}

.nd-share-modal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
}

.nd-share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    border-radius: 12px;
    transition: background .15s, transform .15s;
}

.nd-share-option:hover {
    background: #F9FAFB;
    transform: translateY(-2px);
}

.nd-share-option-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.nd-share-option-icon svg {
    width: 26px;
    height: 26px;
}

.nd-share-option span {
    font-size: 12px;
    font-weight: 600;
    color: #364153;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

/* Copied feedback */
.nd-share-option--copied .nd-share-option-icon {
    background: #16A34A !important;
}

@media (max-width: 480px) {
    .nd-share-modal-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px 4px;
    }
    .nd-share-option-icon {
        width: 46px;
        height: 46px;
    }
    .nd-share-option-icon svg {
        width: 22px;
        height: 22px;
    }
    .nd-share-option span {
        font-size: 11px;
    }
}

