/* Article List Spacing Optimization */

/* Reduce spacing between articles */
html body .article-summary,
html body .obj_article_summary {
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    padding: 10px 20px !important;
    border: 1px solid var(--pntu-border) !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    box-shadow: 0 5px 16px rgba(0, 135, 81, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    position: relative;
}

html body .article-summary:hover,
html body .obj_article_summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(0, 135, 81, 0.1) !important;
}

html body .article-summary::before,
html body .obj_article_summary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    border-radius: 8px 0 0 8px;
    background: var(--pntu-green);
}

/* Remove top spacing from first child */
html body .article-summary > *:first-child,
html body .obj_article_summary > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Article title spacing */
html body .article-summary .title,
html body .obj_article_summary h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
    color: var(--pntu-ink) !important;
}

html body .article-summary .title a,
html body .obj_article_summary h3 a {
    color: var(--pntu-ink) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

html body .article-summary .title a:hover,
html body .obj_article_summary h3 a:hover {
    color: #008751 !important;
}

/* Author and metadata spacing */
html body .article-summary .meta,
html body .obj_article_summary .authors {
    font-size: 14px !important;
    color: var(--pntu-muted) !important;
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
}

/* Abstract/description spacing */
html body .article-summary .description,
html body .obj_article_summary .description {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #425149 !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

/* PDF/Galley links spacing */
html body .article-summary .galleys,
html body .obj_article_summary .galleys_links {
    margin-top: 12px !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

html body .article-summary .galley-link,
html body .obj_article_summary .obj_galley_link,
html body .btn.btn-primary {
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    transition: all 0.2s ease !important;
}

/* Section headings spacing */
html body .section-heading,
html body h2.section-heading {
    background-color: #008751 !important;
    color: white !important;
    padding: 10px 15px !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

html body .section-heading:first-of-type,
html body h2.section-heading:first-of-type {
    margin-top: 20px !important;
}

/* Issue header spacing */
html body .issue-header,
html body .page-header {
    margin-bottom: 25px !important;
    padding: 20px !important;
}

/* Reduce line height in lists */
html body .article-summary p,
html body .obj_article_summary p {
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
}

html body .article-summary ul,
html body .article-summary ol {
    margin-bottom: 8px !important;
    padding-left: 20px !important;
}

/* Authors list compact */
html body .authors {
    margin-bottom: 6px !important;
}

html body .authors span {
    margin-right: 8px !important;
}

/* DOI and other metadata */
html body .doi,
html body .pages {
    font-size: 13px !important;
    color: #6c757d !important;
    margin-top: 6px !important;
}

/* Reduce spacing in issue TOC */
html body .issue_toc {
    padding: 0 !important;
}

html body .issue_toc .section {
    margin-bottom: 25px !important;
}

/* Compact table of contents */
html body .toc {
    margin-top: 20px !important;
}

/* Remove excessive margins */
html body .main-content .row {
    margin-top: 15px !important;
}

/* Issue description compact */
html body .issue-description {
    margin-bottom: 20px !important;
    padding: 15px !important;
    background-color: #f8f9fa !important;
    border-left: 4px solid #008751 !important;
    border-radius: 5px !important;
}

/* Keywords spacing */
html body .keywords {
    margin-top: 8px !important;
    font-size: 13px !important;
    color: #6c757d !important;
}

html body .keywords span {
    display: inline-block !important;
    background-color: #e9ecef !important;
    padding: 3px 10px !important;
    margin: 2px 4px 2px 0 !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}

/* Responsive spacing */
@media (max-width: 768px) {
    html body .article-summary,
    html body .obj_article_summary {
        margin-bottom: 20px !important;
        padding: 15px !important;
    }
    
    html body .section-heading,
    html body h2.section-heading {
        margin-top: 25px !important;
        margin-bottom: 15px !important;
        padding: 8px 12px !important;
        font-size: 15px !important;
    }
}

/* Specific fix for article-summary-* classes */
html body .article-summary-authors {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    color: #6c757d !important;
    line-height: 1.5 !important;
}

html body .article-summary-title {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

html body .article-summary-title a {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

html body .article-summary-title a:hover {
    color: #008751 !important;
}

html body .article-summary-pages {
    margin-top: 0 !important;
    font-size: 13px !important;
    color: #868e96 !important;
}

html body .article-summary-galleys {
    margin-top: 12px !important;
}

/* Fix row spacing inside article-summary */
html body .article-summary .row {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}