﻿/* ===== Google font - moderan & čitljiv ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #fbfbfb;
    --card-bg: #ffffff;
    --muted: #747474;
    --text: #222222;
    --accent: #b58a00; /* zlatna-akcent */
    --border: #e6e6e6;
    --shadow: rgba(16,24,40,0.08);
}

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg);
    margin: 0;
    color: var(--text);
}

/* Container */
.container-news {
    max-width: 1020px;
    margin: 36px auto;
    padding: 20px;
}

/* Page title */
.site-title-news {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 28px;
    color: #0f1724;
    letter-spacing: -0.6px;
}

/* Accordion wrapper */
.accordion {
    width: 100%;
    display: block;
}

/* Single item */
.acc-item {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 8px 28px var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

    /* Hover lift */
    .acc-item:hover {
        transform: translateY(-4px);
    }

/* Header */
.acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    cursor: pointer;
    background: linear-gradient(180deg, #fff 0%, #fbfbfb 100%);
}

.acc-title {
    font-size: 30px !important;
    font-weight: 600;
}

/* Small date or meta (optional) */
.acc-meta {
    font-size: 14px;
    color: var(--muted);
    margin-left: 10px;
}

/* Icon */
.acc-icon {
    font-size: 28px;
    color: var(--muted);
    transition: transform .25s ease, color .25s ease;
}

/* Open state icon rotate and color */
.acc-item.active .acc-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

/* Content (collapsed by default) */
.acc-content {
    display: none; /* JS will toggle */
    padding: 22px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff, #fafafa);
}

/* News wrapper - layout for text + image */
.news-wrapper {
    display: block;
    overflow: hidden;
}

/* Image block floats right so that text is on the left,
   then text will naturally flow under image because of block flow. */
.news-image-block {
    float: right;
    width: 38%;
    max-width: 360px;
    margin-left: 22px;
    margin-bottom: 12px;
    border-radius: 10px;
}

.news-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.news-text-block p,
.news-text {
    font-size: 22px !important;
    line-height: 1.95 !important;
    text-align: justify !important;
    text-justify: inter-word !important;
    color: #1a1f27 !important;
}

    /* Make strong/emphasis stand out */
    .news-text strong,
    .news-text b {
        font-weight: 700;
        color: #08101a;
    }

    /* If you have paragraphs inside opis HTML, add spacing */
    .news-text p {
        margin: 0 0 14px 0;
    }

/* Video title and video (at the end) */
.video-title {
    display: block;
    margin-top: 22px;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.news-video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(2,6,23,0.08);
    aspect-ratio: 16/9;
    display: block;
    margin: 0 auto;
}

/* Clearfix after wrapper so floats don't break layout */
.news-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* Small helper for meta row under title (optional) */
.meta-row {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

/* When content is active we add a subtle top border accent */
.acc-item.active {
    border-left: 4px solid var(--accent);
}

/* Responsive: on small screens image becomes full-width on top */
@media (max-width: 900px) {
    .site-title-news {
        font-size: 32px;
    }

    .acc-title {
        font-size: 22px;
    }

    .news-image-block {
        float: none;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 16px;
    }

    .news-text {
        font-size: 18px;
        line-height: 1.8;
    }

    .acc-header {
        padding: 14px 16px;
    }

    .acc-content {
        padding: 18px;
    }

    .video-title {
        font-size: 20px;
    }
}

/* Further mobile tweaks */
@media (max-width: 480px) {
    .site-title-news {
        font-size: 28px;
    }

    .acc-title {
        font-size: 20px;
    }

    .news-text {
        font-size: 17px;
        line-height: 1.75;
    }

    .acc-header {
        padding: 12px 14px;
    }
}
