/* =========================================================
   OJS 3.3.0.22 - Article Abstract Alignment
   ========================================================= */

/* Abstract Section */
.obj_article_details .main_entry .item.abstract {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.6;
    word-spacing: normal;
    letter-spacing: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

/* Abstract paragraphs */
.obj_article_details .main_entry .item.abstract p {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 12px;
}

/* Keep "Abstract" heading left aligned */
.obj_article_details .main_entry .item.abstract > .label {
    text-align: left !important;
    margin-bottom: 18px;
}

/* Remove unwanted spacing from first paragraph */
.obj_article_details .main_entry .item.abstract p:first-of-type {
    margin-top: 0;
}

/* Remove unnecessary bottom space */
.obj_article_details .main_entry .item.abstract p:last-child {
    margin-bottom: 0;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .obj_article_details .main_entry .item.abstract,
    .obj_article_details .main_entry .item.abstract p {
        text-align: justify !important;
        line-height: 1.55;
        word-spacing: normal;
        hyphens: auto;
    }
}