/* * Pakistan Journal of Clinical Research (PJCR) - Homepage Article Block & Justification
 * Version: 1.7
 * Description: Displays "Full Open Access" text in orange above every article title.
 * Justified all text. Excludes custom blocks. Wraps each article block 
 * in a prominent card with a uniform subtle border and a slightly sharper background.
 * Updated: Increased background opacity and tone sharpness for cleaner contrast.
 */

/* ---------- JUSTIFIED TEXT (EXCLUDING CUSTOM BLOCKS) ---------- */
p:not(.custom-block p, .alert p),
.article p:not(.custom-block p, .alert p),
.item p:not(.custom-block p, .alert p),
.section p:not(.custom-block p, .alert p),
main p:not(.custom-block p, .alert p),
.entry-content p:not(.custom-block p, .alert p),
.page-content p:not(.custom-block p, .alert p),
[class*="article"] p:not(.custom-block p, .alert p),
.abstract:not(.custom-block, .alert),
.article-abstract:not(.custom-block, .alert),
[class*="abstract"]:not(.custom-block, .alert),
.references:not(.custom-block, .alert),
.ref-list:not(.custom-block, .alert),
.bibliography:not(.custom-block, .alert),
.citation-list:not(.custom-block, .alert),
[class*="reference"]:not(.custom-block, .alert) {
    text-align: justify;
}

/* ---------- HOMEPAGE ARTICLE SUMMARY LAYOUT (UNIFORM BOXED) ---------- */
/* Creates a clean container enclosing Title, DOI, Authors, and Full Text button */
.obj_article_summary:not(.custom-block, .alert),
.article_summary:not(.custom-block, .alert),
.toc_article:not(.custom-block, .alert),
.item.article:not(.custom-block, .alert),
.articles .obj_article_summary:not(.custom-block, .alert) {
    background-color: rgba(238, 242, 246, 0.85) !important; /* Slightly sharper, richer semi-transparent slate tint */
    border: 1px solid #d1d5db !important; /* Slightly crispier border to complement the sharper background */
    padding: 18px 20px !important; /* Internal breathing room around the elements */
    margin-bottom: 2rem !important; /* Spacing between independent article boxes */
    border-radius: 6px !important; /* Smooth, rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important; /* Barely visible elegant depth shadow */
    box-sizing: border-box !important;
}

/* ---------- ARTICLE TITLE & OPEN ACCESS TEXT ---------- */
/* Injects "Full Open Access" text slightly above the top left side of the title */
.obj_article_summary .title:not(.custom-block, .alert)::before,
.article_summary .title:not(.custom-block, .alert)::before,
.toc_article .title:not(.custom-block, .alert)::before {
    content: "Full Open Access";
    display: block;
    color: #f3702b; /* Professional Open Access orange */
    font-size: 11px; 
    font-weight: normal; 
    letter-spacing: 0.8px;
    margin-bottom: 0.3rem;
}

.obj_article_summary .title:not(.custom-block, .alert),
.article_summary .title:not(.custom-block, .alert),
.toc_article .title:not(.custom-block, .alert) {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* ---------- DOI INSIDE THE BLOCK (No extra styling) ---------- */
.obj_article_summary .doi:not(.custom-block, .alert),
.article_summary .doi:not(.custom-block, .alert),
.toc_article .doi:not(.custom-block, .alert) {
    margin: 0.3rem 0;
}

/* ---------- AUTHOR INSIDE THE BLOCK (No extra styling) ---------- */
.obj_article_summary .authors:not(.custom-block, .alert),
.article_summary .authors:not(.custom-block, .alert),
.toc_article .authors:not(.custom-block, .alert) {
    margin: 0.3rem 0;
    font-style: normal;
}