/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra
Author: Your Name
Author URI: https://multivision.mk/
Template: astra
Version: 1.0
*/

/* Add your custom CSS below */


 .pub-search-form {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .pub-search-form input {
        flex: 1;
        min-width: 200px;
    }

    .pub-wrapper {
        display: grid;
        grid-template-columns: 200px 916px;
        /* sidebar + content */
        gap: 50px;
        max-width: 1200px;
        margin: 60px auto;
        padding: 0 20px;
    }

    /* SIDEBAR */
    .pub-sidebar {
        width: 100%;
    }

    /* CONTENT */
    .pub-content {
        width: 100%;
    }

    /* RESPONSIVE */
    @media (max-width: 992px) {
        .pub-wrapper {
            grid-template-columns: 1fr;
        }
    }

    /* ITEM */
    .pub-item {
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 5px 25px;
        margin-bottom: 5px;
        transition: box-shadow 0.3s ease, transform 0.3s ease;

    }



    .pub-item:hover {

        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
        transform: translateX(-10px);
    }

    .pub-item h4 {
        margin-bottom: 6px;
        font-weight: 600;
        line-height: 1.4;
    }

    .pub-item h4 a {
        text-decoration: none;
        color: #111;
        word-break: break-word;
        /* lomljenje dugih naslova */
        text-wrap: balance;
        max-width: 20ch;
        line-height: 1.2;
    }

    .pub-item h4 a:hover {
        color: black;


    }

    .pub-doi {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .pub-doi a {
        color: black;
        text-decoration: none;
        word-break: break-all;
        /* lomljenje dugog DOI */
        opacity: 0.5;
        transition: opacity 0.25s ease;
    }

    .pub-doi a:hover {
        opacity: 1;
    }

    .pub-meta {
        font-size: 13px;
        color: #777;
    }

    /* SIDEBAR LINKS */
    .pub-sidebar h4 {
        margin-top: 3px;
        font-size: 15px;
        color: black;
    }

    .pub-sidebar a {
        display: block;

        text-decoration: none;
        color: #333;
        font-size: 14px;
    }


    .pub-sidebar a:hover {
        color: black;
    }

    .pub-sidebar a.active {
     
        color: #666;
    }

    /* ===============================
   RESPONSIVE
================================ */

    @media (max-width: 992px) {



        .pub-sidebar,
        .pub-content {
            flex: 1 1 100%;
            max-width: 100%;
            width: 100%;
        }
    }

    h4 {
        font-size: 18px;
    }

    .pub-description {
        font-size: 14px;
        color: #666;
        margin: 8px 0 10px 0;
        line-height: 1.6;
    }

    .pub-description:hover {

        color: #333;

    }








.filter-list .open:hover{
    color:#666;

}


    .filter-list a.hidden-link {
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease;
    }

    .filter-list.open a.hidden-link {
        max-height: 40px;
        opacity: 1;
    }

    .toggle-filter {
        display: block;
        margin-top: 0px;
        font-size: 13px;
        cursor: pointer;
        color: #999;
        user-select: none;
        opacity: 0.5;
        transition: opacity 0.25s ease;
    }

    .toggle-filter:hover {
        color: #666;
        opacity: 1;
    }

    .toggle-filter:hover {
        text-decoration: underline;
    }






    input::placeholder {
        color: #666;
        font-size: 14px;
        letter-spacing: 0.5px;
        font-weight: 300;
        transition: color 0.3s ease;
    }

    input:focus::placeholder {
        color: #ddd;
    }


/* Pagination wrapper */
.pub-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
gap:8px;
}

/* Pagination links container */
.pub-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
   
}

/* All links */
.pub-pagination a,
.pub-pagination span {
    padding: 0px 7px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

/* Hover */
.pub-pagination a:hover {

    color: #666;
    border-color: #111;
}

/* Current page */
.pub-pagination .current {

    color: #666;
    border-color: #111;
    font-weight: 300;
}

/* Prev / Next */
.pub-pagination .prev,
.pub-pagination .next {
    font-weight: 300;
}

/* Archive item title underline (same style as single page) */
.pub-item h4 {
    position: relative;
    margin-bottom: 10px;
}

.pub-item h4::after {
    content: "";
    width: 35px;
    height: 3px;
    background: black;
    display: block;
    margin-top: 6px;
}

/* Title link styling */
.pub-item h4 a {
    color: black;
    text-decoration: none;
    transition: 0.2s ease;
}

.pub-item h4 a:hover {
    color: #111;
}














