/* ===============================
   Publications Container
   =============================== */
.pitems .pubmain {
    background: #f5f5f5;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    /* for pubassets positioning */
    box-shadow: 0px 3px 3px -3px #ccc;
    overflow: hidden;
    padding-bottom: 70px;
    /* space for bottom-right buttons */
}

/* ===============================
   Thumbnails
   =============================== */
.pitems .pubmain.pub-has-thumbnail .pub-thumb {
    float: left;
    margin-right: 20px;
}

.pitems .pubmain.pub-has-thumbnail .pub-thumb img {
    width: 120px;
    height: auto;
}

.pitems .pub-contents {
    overflow: hidden;
}

/* ===============================
   Publication Title
   =============================== */
.pitems .pubtitle {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
}

/* ===============================
   Meta Info
   =============================== */
.pitems .pubmeta {
    font-size: 14px;
    margin-bottom: 10px;
}

.pitems .pubmeta .label {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 8px;
    background: #eaeaea;
    border-radius: 3px;
}

.pitems .pubauthor {
    margin-top: 5px;
}

.pitems .pubyear {
    margin-top: 3px;
}

/* ===============================
   Bottom-right buttons (actions)
   =============================== */
.pitems .pubassets {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.pitems .pubassets a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #fafafa;
    color: #9b9b9b;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.pitems .pubassets a:hover {
    background: #03cc85;
    color: #fff;
    border-color: #03cc85;
}

.pitems .pubassets a.pubcollapse i {
    font-size: 18px;
}

.pitems .pubassets a.tooltips i {
    font-size: 16px;
}

/* ===============================
   Abstract Section
   =============================== */
.pitems .pubdetails {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    line-height: 1.5;
    font-size: 14px;
}

.pitems .pubdetails h2.title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.pitems .pubdetails p {
    margin-bottom: 10px;
}

/* ===============================
   Optional Hover Effect for Box
   =============================== */
.pitems .pubmain:hover {
    box-shadow: 0px 5px 8px -3px #bbb;
}

/* ===============================
   Responsive Adjustments
   =============================== */
@media (max-width: 768px) {
    .pitems .pubmain.pub-has-thumbnail .pub-contents {
        margin-left: 0;
    }

    .pitems .pubassets {
        bottom: 10px;
        right: 10px;
        gap: 5px;
    }

    .pitems .pubassets a {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}