.huaf_page_index-journal {
}

.huaf_main {

}

.huaf_index-journal_latest-issue_block {
    display: grid;
    grid-template-areas: "block-title block-title" "latest-issue quick-tools";
    grid-template-columns: 1fr 250px;
}

.huaf_index-journal_latest-issue_block .huaf_block-title {
    grid-area: block-title;
    text-transform: uppercase;
    line-height: 1.2;
    display: block;
    /* padding: 5px 0 2px; */
    border-bottom: 1px solid;
    font-weight: 600;
    margin: 10px 0 5px;
}

.huaf_index-journal_latest-issue_wrapper {
    grid-area: latest-issue;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.huaf_quick_tools {
    grid-area: quick-tools;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px 0;
}
.huaf_index-journal_latest-issue_title_link {
    text-decoration: none;
}
.huaf_index-journal_latest-issue_title {
    color: black;
    font-weight: bold;
}
.huaf_index-journal_latest-issue_galleys {
    
}

.huaf_index-journal_latest-issue_galleys a {
    display: inline-block;
    font-size: 0.8em;
    text-align: center;
    padding: 0.85em 0.85em 0.7em;
    background: var(--primary-color);
    border-radius: 3px;
    color: #FFF;
    font-weight: 600px;
    text-decoration: none;
    text-transform: uppercase;
}
.huaf_index-journal_latest-issue_galleys a:hover {
    background: var(--primary-darker-color);
}
.huaf_quick_tools .huaf_new-submission_btn {
    text-align: center;
    padding: 10px 0 7px;
    background: var(--primary-color);
    border-radius: 3px;
    color: #FFF;
    font-weight: 600px;
    text-decoration: none;
    text-transform: uppercase;
}
.huaf_quick_tools .huaf_new-submission_btn:hover {
    background: var(--primary-darker-color);
}

.huaf_quick_tools .huaf_search_from {
    display: flex;
    flex-direction: row;
    padding: 3px;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    align-items: stretch;
}

.huaf_quick_tools .huaf_search_from input[type="search"] {
    border: 1px solid var(--primary-color);
    padding: 7px 7px 5px;
    border-radius: 3px 0 0 3px;
    width: 100%;
}
.huaf_quick_tools .huaf_search_from button[type="submit"] {
    background: var(--primary-color);
    border: none;
    border-radius: 0 3px 3px 0;
    color: #FFF;
    display: flex;
    align-items: center;
}
.huaf_quick_tools .huaf_search_from button[type="submit"]:hover {
    background: var(--primary-darker-color);
}


.huaf_index-journal_home-page-image img {
    max-width: 100%;
}

/* Most viewed & downloaded articles (card layout after tapchidhnlhue.vn) */
.huaf_most-viewed-articles {
    margin-top: 15px;
}

.huaf_most-viewed-articles .huaf_block-title {
    text-transform: uppercase;
    line-height: 1.2;
    display: block;
    border-bottom: 1px solid;
    font-weight: 700;
    margin: 0 0 10px;
    padding-bottom: 4px;
}

.huaf_most-viewed_item {
    background: #e8e8e8;
    border-radius: 3px;
    padding: 5px 10px;
    margin-bottom: 10px;
}

.huaf_most-viewed_item-title,
.huaf_most-viewed_item-title a {
    color: #000;
    font-size: 16px;
    text-align: justify;
    text-transform: uppercase;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 7px;
    text-decoration: none;
}

.huaf_most-viewed_item-title a:hover {
    color: var(--primary-color);
}

.huaf_most-viewed_item-metadata {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.huaf_most-viewed_item-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.huaf_most-viewed_item-others {
    display: flex;
    flex-wrap: wrap;
}

.huaf_most-viewed_item-others > div:not(:last-child) {
    margin-right: 10px;
}

.huaf_most-viewed_item-doi {
    display: flex;
    gap: 5px;
}

.huaf_most-viewed_item-doi span {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
}

.huaf_most-viewed_item-doi a {
    word-break: break-all;
    padding: 0;
}

.huaf_most-viewed_item-view {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    text-align: right;
    gap: 5px;
}

.huaf_most-viewed_views-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.huaf_most-viewed_downloads-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.huaf_most-viewed_links {
    font-weight: 700;
}

.huaf_most-viewed_links a {
    font-size: 14px;
    text-decoration: none;
    margin-left: 8px;
}

.huaf_most-viewed_pdf-link {
    color: red;
}

.huaf_most-viewed_web-link {
    color: blue;
}

@media (max-width: 768px) {
    .huaf_most-viewed_item-metadata {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .huaf_most-viewed_item-others {
        display: grid;
        grid-template-columns: auto auto;
    }

    .huaf_most-viewed_item-doi {
        grid-column: span 2;
    }

    .huaf_most-viewed_item-view {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .huaf_most-viewed_links a {
        margin-left: 0;
        margin-right: 8px;
    }
}
