/* Paleta boja i varijable */
:root {
    --acdc-red: #800000;
    --acdc-red-hover: #660000;
    --acdc-bg-light: #f9f6f3;
    --acdc-card-bg: #ffffff;
    --acdc-text-dark: #1a1a1a;
    --acdc-text-muted: #6c757d;
    --acdc-border-color: #e9ecef;
}

/* Hero baner */
.news-hero-banner {
    background-color: var(--acdc-bg-light);
    border-bottom: 1px solid #ebd8c8;
}

.news-hero-title {
    color: var(--acdc-red);
    font-size: 2.2rem;
    letter-spacing: -0.5px;
}

.news-hero-subtitle {
    font-size: 1.05rem;
}

/* Breadcrumbs */
.news-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--acdc-text-muted);
}

.news-breadcrumbs .breadcrumb-item a,
.news-breadcrumbs .breadcrumb-item.active {
    color: var(--acdc-red) !important;
    text-decoration: none;
}

/* Filter Dropdown */
.news-filter-select {
    border-radius: 6px;
    border: 1px solid var(--acdc-border-color);
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    color: var(--acdc-text-dark);
}

/* Kartica Vesti */
.news-card {
    background-color: var(--acdc-card-bg);
    border-radius: 12px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #f0f0f0 !important;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Slika unutar kartice */
.news-card-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

/* Naslov u kartici */
.news-card-title a {
    color: var(--acdc-text-dark);
    transition: color 0.2s ease;
    line-height: 1.35;
}
.news-card-title a {
    color: var(--acdc-text-dark);
    transition: color 0.2s ease;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.7em; 
}

.news-card:hover .news-card-title a {
    color: var(--acdc-red);
}

/* Teaser / Opis */
.news-card-teaser {
    line-height: 1.5;
    color: var(--acdc-text-muted);
}

/* Read More Link */
.news-read-more {
    color: var(--acdc-red);
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.news-read-more i {
    transition: transform 0.2s ease;
}

.news-card:hover .news-read-more i {
    transform: translateX(4px);
}

.news-read-more:hover {
    color: var(--acdc-red-hover);
}

/* Custom Paginacija */
.news-pagination .page-item .page-link {
    color: var(--acdc-text-dark);
    border: 1px solid var(--acdc-border-color);
    margin: 0 3px;
    border-radius: 6px !important;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-pagination .page-item.active .page-link {
    background-color: var(--acdc-red);
    border-color: var(--acdc-red);
    color: #ffffff;
}

.news-pagination .page-item .page-link:hover {
    background-color: var(--acdc-bg-light);
    color: var(--acdc-red);
}
/* Kontejner slike mora imati relativno pozicioniranje */
.news-card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-tag-badges-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: row-reverse; /* Slaže ikonice sa desna na levo */
    gap: 6px;                   /* Razmak između ikonica */
    z-index: 2;
}

/* Pojedinačna ikonica/bedž */
.news-tag-badge {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.news-tag-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hover efekat na pojedinačnu ikonicu */
.news-tag-badge:hover {
    transform: scale(1.15);
    background-color: #ffffff;
}
.news-tag-badge-link {
    text-decoration: none;
    display: inline-block;
    z-index: 3; /* Osigurava da se klik na tag aktivira pre klika na sliku */
}

/* Hover efekat na bedž unutar linka */
.news-tag-badge-link:hover .news-tag-badge {
    transform: scale(1.15);
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}