/* Academic Journal Grid Variables */
:root {
    --primary-color: #2c3e50;
    --hover-color: #34495e;
    --issue-color: #34495e;
    --submit-color: #27ae60;
    --card-bg: #ffffff;
    --border-color: #e1e1e1;
    --text-main: #333333;
    --text-muted: #666666;
}

/* Journal Grid Container */
.journal-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* Adjusted for slim cards */
    gap: 20px;
    margin-top: 30px;
    padding: 10px 0;
}

/* Individual Journal Card */
.journal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px; /* Reduced padding for a tighter look */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.journal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

/* Card Header: Shorter Logo Area */
.journal-card-header {
    width: 100%;
    height: 140px; /* Reduced height as requested */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcfcfc;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
}

.journal-thumbnail {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.journal-placeholder {
    width: 60px; /* Reduced size */
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem; /* Reduced font */
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Body: Full Title and Reduced Text */
.journal-card-body {
    flex-grow: 1;
    text-align: center;
}

.journal-card h3 {
    margin: 0 0 10px 0;
    color: var(--text-main);
    font-size: 1.05rem; /* Reduced font size as requested */
    line-height: 1.3;
    font-weight: 700;
    display: block; /* Allows full name to display and wrap */
    min-height: auto; /* Removed fixed height */
}

.journal-card .description {
    font-size: 0.85rem; /* Reduced font size as requested */
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Compact Single-Row Button Footer */
.journal-card-footer {
    margin-top: auto;
    display: flex;
    gap: 5px; /* Tight gap for single row */
}

.journal-btn {
    flex: 1;
    display: block;
    padding: 6px 2px; /* Slimmer padding as requested */
    border-radius: 3px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem; /* Reduced button font as requested */
    transition: background 0.2s ease;
    white-space: nowrap;
}

.btn-view { background-color: var(--primary-color); color: #ffffff !important; }
.btn-issue { background-color: var(--issue-color); color: #ffffff !important; }
.btn-submit { background-color: var(--submit-color); color: #ffffff !important; }

.journal-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* Full-Width Layout & Divider Removal */
.pkp_structure_sidebar {
    display: none !important;
}

.pkp_structure_main {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    border-right: none !important;
    border-left: none !important;
    box-shadow: none !important;
}

.pkp_structure_main::after,
.pkp_structure_main::before,
.pkp_structure_content::after {
    display: none !important;
    content: none !important;
}

.full-width-page {
    width: 100% !important;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .journal-list-grid {
        grid-template-columns: 1fr;
    }
}