/* =========================================
   JOURNAL GRID – BOOTSTRAP 3 + RTL SAFE
   ========================================= */

/* DO NOT FLEX THE ROW */
.journals-section .row {
    display: block;
}

/* Equal-height cards using table-like behavior */
.journal-card {
    height: 360px;              /* HARD LOCK height */
    display: flex;
    flex-direction: column;
}

/* Image area */
.journal-cover-wrapper {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    overflow: hidden;
}

.journal-cover-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Title fixed to 2 lines */
.journal-card h5 {
    height: 48px;
    overflow: hidden;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    line-height: 1.2em;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Button sticks to bottom */
.journal-card .panel-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
