/* ============================================
   MASTER.CSS - ZAJEDNIČKI STILOVI ZA SAJT
   ============================================ */

/* ---------- COLOR PALETTE ---------- */
:root {
    /* PRIMARNE BOJE */
    --acdc-red: #800000;
    --acdc-red-hover: #6b0000;
    --acdc-text-dark: #22252a;
    --acdc-text-muted: #5a6b7c;
    
    /* POZADINE */
    --acdc-bg-light: #f8f9fa;
    --acdc-bg-card: #fdfaf8;
    --acdc-card-bg: #fdfaf8;
    
    /* BORDER */
    --acdc-border: #f0e6e0;
    --acdc-border-color: #e9ecef;
    --acdc-zajednca: #dd9f7b;
    --acdc-green: #7a8b6e;
    
    /* SHADOW */
    --acdc-shadow: 0 8px 24px rgba(128, 0, 0, 0.08);
    
    /* FOOTER & NEWSLETTER */
    --acdc-red-main: #ab671d;
    --acdc-red-dark: #660000;
    --acdc-newsletter-bg: #fdf2f0;
    --acdc-footer-dark: #22252a;
    --acdc-footer-bottom: #191b1e;
}

/* ---------- GLOBAL ---------- */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--acdc-text-dark);
    background-color: var(--acdc-bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--acdc-text-dark);
}

a {
    color: var(--acdc-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--acdc-red-hover);
    text-decoration: none;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
    background-color: var(--acdc-red);
    border-color: var(--acdc-red);
    color: #ffffff;
    font-weight: 500;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--acdc-red-hover);
    border-color: var(--acdc-red-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(128, 0, 0, 0.2);
}

.btn-outline-primary {
    border-color: var(--acdc-red);
    color: var(--acdc-red);
    font-weight: 500;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--acdc-red);
    border-color: var(--acdc-red);
    color: #ffffff;
    transform: translateY(-2px);
}

.text-theme { color: var(--acdc-red, #8b0000); }
.bg-theme { background-color: var(--acdc-red, #8b0000) !important; }
.btn-theme {
    background-color: var(--acdc-red, #8b0000);
    color: #fff;
    border: 2px solid var(--acdc-red, #8b0000);
    transition: all 0.3s ease;
}
.btn-theme:hover {
    background-color: #660000;
    border-color: #660000;
    color: #fff;
}

/* ---------- NAVIGACIJA & MENI ---------- */
/* ============================================
   GLAVNA NAVIGACIJA (DONJI RED)
   ============================================ */
.navbar-nav .nav-link {
    font-weight: 500;
    position: relative;
    color: #333;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link, 
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link {
    color: var(--acdc-red-main) !important;
}

/* Crvena linija na aktivnom elementu */
.navbar-nav .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -19px; /* Prilagođeno da lepo legne na dno padding-a u navbaru */
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--acdc-red, #8b0000);
}

/* DESKTOP (od 992px naviše) - Jedna linija za meni */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    .navbar-expand-lg .navbar-nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    .navbar-expand-lg .navbar-nav .nav-item {
        margin: 0 4px !important;
        white-space: nowrap !important;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 1rem !important;
        padding: 0.5rem 0.4rem !important;
        white-space: nowrap !important;
    }
}

/* ============================================
   GORNJI RED (JEZICI I DRUŠTVENE MREŽE)
   ============================================ */
header .bg-light {
    background-color: #f8f9fa !important;
}

.languages-wrapper ul,
.languages-wrapper .list-inline {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.languages-wrapper .list-inline-item {
    margin-right: 12px;
}
.languages-wrapper .list-inline-item a,
.social-wrapper .list-inline-item a{
	color:white;
	font-weight: bolder;
}

.languages-wrapper .list-inline-item a:hover,
.social-wrapper .list-inline-item a:hover {
    color: var(--acdc-text-muted);
	
}

.social-wrapper .list-inline-item:not(:first-child) {
    margin-left: 5px !important;
}

/* ============================================
   DROPDOWN MENII
   ============================================ */
.dropdown-item {
    font-size: 0.88rem;
}
.dropdown-item.active, 
.dropdown-item:active {
    background-color: var(--acdc-red-main) !important;
    color: white !important;
    font-weight: bold;
}

.dropdown-item:hover {
    background-color: var(--acdc-red-main) !important;
    color: white !important;
}

/* ---------- SECTIONS & HEADERS ---------- */
.section-header h2 {
    display: inline-block;
    position: relative;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
}
.section-header h2::before,
.section-header h2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background-color: var(--acdc-red, #8b0000);
    opacity: 0.3;
}
.section-header h2::before { right: 100%; margin-right: 15px; }
.section-header h2::after { left: 100%; margin-left: 15px; }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--acdc-red);
    display: inline-block;
}

.border-left-theme {
    border-left: 4px solid var(--acdc-red) !important;
}

/* ---------- PARTNERS ---------- */
.partners-section img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.partners-section img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---------- BREADCRUMBS ---------- */
.news-hero-banner {
    background-color: var(--acdc-border);
    padding: 40px 0;
    border-bottom: 1px solid var(--acdc-border-color);
}
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--acdc-red);
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--acdc-text-muted);
}
/* ============================================
   TAG BADGES NA SLICI (BANER I VESTI)
   ============================================ */

.slider-image-wrapper {
    position: relative;
    overflow: hidden;
}

.news-tag-badges-wrapper {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.news-tag-badge-link {
    text-decoration: none;
}

.news-tag-badge {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.news-tag-badge img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.news-tag-badge:hover {
    transform: scale(1.1);
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ---------- PAGINATION ---------- */
.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;
}

.pagination .page-item.active .page-link {
    background-color: var(--acdc-red);
    border-color: var(--acdc-red);
    color: #ffffff;
}

.pagination .page-item .page-link:hover {
    background-color: var(--acdc-bg-light);
    color: var(--acdc-red);
}

/* ---------- READ MORE LINK ---------- */
.read-more-link,
.media-read-more,
.news-read-more,
.doc-cat-link {
    color: var(--acdc-red);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.read-more-link:hover,
.media-read-more:hover,
.news-read-more:hover,
.doc-cat-link:hover {
    color: var(--acdc-red-hover);
    text-decoration: none !important;
}

.read-more-link i,
.media-read-more i,
.news-read-more i,
.doc-cat-link i {
    transition: transform 0.25s ease;
    display: inline-block;
}

.read-more-link:hover i,
.media-read-more:hover i,
.news-read-more:hover i,
.doc-cat-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   NEWSLETTER, CTA & FOOTER
   ============================================ */

/* ---------- NEWSLETTER ---------- */
.acdc-newsletter-section {
    background-color: var(--acdc-newsletter-bg);
    padding: 35px 0;
    border-bottom: 1px solid #f3e1df;
}

.nl-icon-circle {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acdc-red-main);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.nl-title {
    color: #cb5343;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nl-desc {
    color: #666;
    font-size: 0.85rem;
}

.nl-input {
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.nl-btn {
    background-color: var(--acdc-red-main);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 4px;
    transition: background 0.2s;
}

.nl-btn:hover {
    background-color: var(--acdc-red-dark);
    color: #ffffff;
}

.follow-text {
    font-size: 0.9rem;
    color: #333;
}

.follow-icons a {
    color: #333;
    margin-left: 12px;
    font-size: 1rem;
    transition: color 0.2s;
}

.follow-icons a:hover {
    color: var(--acdc-red-main);
}

/* ---------- CTA ---------- */
.acdc-cta-section {
    background-color: var(--acdc-red-main);
    color: #ffffff;
    padding: 30px 0;
}

.cta-icon-circle {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.cta-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.cta-desc {
    font-size: 0.88rem;
    opacity: 0.9;
}

.cta-btn {
    color: var(--acdc-red-main);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
}

.cta-btn:hover {
    background-color: #f8f9fa;
    color: var(--acdc-red-dark);
}

/***** newsletter *******************/

.section-newsletter {
    background-color: none;
    padding: 0;
}

.newsletter-icon-circle {
    width: 50px;
    height: 50px;
    background-color: var(--acdc-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.newsletter-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--acdc-red);
}

.newsletter-desc {
    font-size: 0.88rem;
    opacity: 0.9;
}

.newsletter-btn {
    border-color: var(--acdc-red, #800000);
    color: var(--acdc-red, #800000);
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
	background-color: var(--acdc-red, #800000) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}



/* ---------- MAIN FOOTER ---------- */
.acdc-main-footer {
    background-color: #181818;
    color: #d0d4dc;
    font-size: 0.82rem;
}

.acdc-cta-banner {
    position: relative;
    background: linear-gradient(rgba(34, 37, 42, 0.85), rgba(34, 37, 42, 0.90)), url('../img/slika.png') no-repeat center 35%;
    background-size: cover;
}

.footer-heading {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.footer-about-text {
    color: #bec3c9;
    line-height: 1.6;
}

.footer-menu li {
    margin-bottom: 6px;
}

.footer-menu a {
    color: #bec3c9;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-menu a:hover {
    color: #ffffff;
}

.office-item {
    color: var(--acdc-text-muted);
    line-height: 1.4;
}

.office-item strong {
    color: #ffffff;
}

.footer-col {
    border-left: 1px solid #ffffff40;
}

.footer-contact-list li {
    margin-bottom: 8px;
    color: var(--acdc-text-muted);
}

.footer-contact-list a {
    color: #bec3c9;
    text-decoration: none;
}

.footer-contact-list a:hover {
    color: #ffffff;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    margin-right: 6px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: background 0.2s;
}

.footer-social-icons a:hover {
    background-color: var(--acdc-red-main);
}

.footer-bottom-bar {
    background-color: var(--acdc-footer-bottom);
    color: var(--acdc-text-muted);
    font-size: 0.78rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-bar a {
    color: var(--acdc-text-muted);
    text-decoration: none;
}

.footer-bottom-bar a:hover {
    color: #ffffff;
}

/* ==========================================================================
   SHARE BUTTONS
   ========================================================================== */

.news-share-buttons {
    gap: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 35%;
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-decoration: none !important;
}

/* BOJE */
.share-fb        { background-color: #1877f2; }
.share-x         { background-color: #000000; }
.share-viber     { background-color: #7360f2; }
.share-whatsapp  { background-color: #25d366; }
.share-messenger { background-color: #0084ff; }
.share-gmail     { background-color: #ea4335; }
.share-linkedin  { background-color: #0a66c2; }
.share-telegram  { background-color: #0088cc; }
.share-pinterest { background-color: #e60023; }
.share-copy      { background-color: #6c757d; }

.share-copy.copied {
    background-color: #28a745;
}
.news-share-buttons {
    gap: 12px;
}

.share-buttons-group {
    gap: 8px;
    margin-left: auto; /* Gura grupu skroz desno */
}