/* ==========================================================================
   Mali Bosut - Zbirni Custom CSS (Joomla 5 / YOOtheme Pro)
   ========================================================================== */

/* 1. Institucionalni vodeni zig u futeru */
.tm-footer .uk-section {
    position: relative;
    overflow: hidden;
}

.tm-footer .uk-section::before {
    content: "";
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 250px; 
    height: 450px;
    background-image: url('../../../images/branding/grb-srbije-voda.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    opacity: 0.05; 
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 960px) {
    .tm-footer .uk-section::before {
        width: 150px;
        opacity: 0.03;
    }
}

/* 2. Tipografija za Joomla clanke */
.com_content .uk-article, 
.com_content .uk-panel {
    font-family: inherit !important;
}

.com_content h1, 
.com_content h2, 
.com_content h3 {
    font-family: inherit !important;
    text-transform: none;
}

/* 3. Tabela stilizacija */
.uk-table {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    margin-top: 20px !important;
}

.uk-table thead th {
    background-color: #f8f9fa !important;
    color: #222 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    padding: 15px !important;
    border: none !important;
    font-size: 0.85rem;
}

.uk-table tbody tr {
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    border-radius: 5px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.uk-table tbody tr:hover {
    background-color: #f0f7ff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.uk-table td {
    padding: 15px !important;
    vertical-align: middle !important;
    border: none !important;
}

.uk-table td a {
    color: #1e87f0 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.uk-table td a:hover {
    color: #0f6ecd !important;
    text-decoration: underline !important;
}

.filters.btn-toolbar {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
    margin-bottom: 10px;
}

/* 4. Layout i responzivnost */
.uk-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

@media (max-width: 1200px) {
    .uk-grid-large, 
    .uk-grid-medium {
        display: block !important;
        margin-left: 0 !important;
    }
    
    .uk-grid-large > *, 
    .uk-grid-medium > * {
        width: 100% !important;
        padding-left: 0 !important;
        margin-bottom: 30px;
    }
}

.uk-dropcap::first-letter {
    margin-right: 10px;
    margin-top: 5px;
}

/* 5. Staza info boks */
.staza-info-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    background: #f8faf7;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e6dd;
    margin: 20px 0;
}

.staza-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.staza-info-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.staza-info-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d5a27;
}

.tezina-laka { color: #4CAF50; }
.tezina-srednja { color: #FF9800; }
.tezina-teska { color: #f44336; }

@media (max-width: 640px) {
    .staza-info-box {
        grid-template-columns: 1fr 1fr;
        padding: 15px;
    }
}

/* 6. Eko artikli */
.eko-artikal { 
    max-width: 900px; 
    margin: 0 auto; 
    background: #fff; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    overflow: hidden; 
}
.eko-sadrzaj { 
    padding: 40px; 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #334155; 
}
.eko-sadrzaj h2 { 
    color: #1b5e20; 
    font-weight: 800; 
    border-left: 4px solid #1b5e20; 
    padding-left: 15px; 
}
.eko-galerija-naslov { 
    font-weight: 800; 
    text-transform: uppercase; 
    color: #64748b; 
    margin-top: 30px; 
    margin-bottom: 20px; 
}
.uk-thumbnav > * > *::after { 
    background: rgba(27, 94, 32, 0.4) !important; 
}

/* 7. Kategorija Novosti */
.novosti-vraper {
    max-width: 850px;
    margin: 20px auto;
    background: #ffffff;
}

.novosti-uvod {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 25px;
    margin-bottom: 35px;
}

.novosti-tekst {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
}

.novosti-tekst p {
    margin-bottom: 25px;
}

.novosti-istaknuto {
    background: #f8fafc;
    border-left: 5px solid #1b5e20;
    padding: 30px;
    margin: 40px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #0f172a;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.novosti-tekst h2, 
.novosti-tekst h3 {
    color: #1b5e20;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
}

.eko-galerija {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.thumb-nav:hover {
    opacity: 1 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .novosti-uvod { font-size: 1.15rem; }
    .novosti-tekst { font-size: 1.05rem; }
    .novosti-istaknuto { padding: 20px; }
}

/* 8. Novi institucionalni partneri u futeru */
.futer-partneri-blok {
    border-top: 1px solid #e2e8f0;
    padding: 40px 0;
}

.futer-partneri-mreza {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.partner-stavka {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 250px;
    text-decoration: none !important;
    transition: transform 0.25s ease;
}

.partner-logo {
    height: 70px;
    width: auto;
    margin-bottom: 12px;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-naziv {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.partner-stavka:hover {
    transform: translateY(-4px);
}

.partner-stavka:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-stavka:hover .partner-naziv {
    color: #1b5e20;
}

@media (max-width: 640px) {
    .futer-partneri-mreza {
        flex-direction: column;
        gap: 35px;
    }
}