/* ========================================
   CENTERED JOURNAL CARDS - MINIMALIST DESIGN
   ======================================== */

/* Journal container - CENTERED WITH PROPER MARGINS */
.journals {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 16px 32px !important;
    background: #ffffff !important;
    clear: both !important;
}

.journals h2 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

/* FIXED: Centered grid with proper margins */
.journals ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-gap: 24px !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: calc(100% - 32px) !important;
    max-width: 1000px !important;
    overflow: visible !important;
}

/* Cards with proper spacing */
.journals li {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #e2e8f0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 !important;
    grid-column: span 1 !important;
    position: relative !important;
    min-height: 280px !important;
    margin: 0 !important;
}

.journals li:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px) !important;
}

/* Image container */
.journals li .thumb {
    width: 100% !important;
    height: 160px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
}

.journals li .thumb a {
    display: block !important;
    width: 80px !important;
    height: 110px !important;
    position: relative !important;
}

.journals li .thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 6px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease !important;
    background: white !important;
}

.journals li:hover .thumb img {
    transform: scale(1.02) !important;
}

/* Content area */
.journals li .body {
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    background: white !important;
    justify-content: space-between !important;
}

/* Title only */
.journals li .body h3 {
    margin: 0 0 16px 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1a202c !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    flex-grow: 1 !important;
}

.journals li .body h3 a {
    color: #1a202c !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.journals li .body h3 a:hover {
    color: #3b82f6 !important;
}

/* HIDE DESCRIPTION */
.journals li .body .description {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* MINIMALIST: Single button container */
.journals li .body .links {
    display: flex !important;
    gap: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: none !important;
}

.journals li .body .links li {
    min-height: auto !important;
    box-shadow: none !important;
    background: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transform: none !important;
    width: 100% !important;
}

.journals li .body .links li:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* HIDE Current Issue button */
.journals li .body .links .current {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* MINIMALIST: View Journal button */
.journals li .body .links .view {
    width: 100% !important;
    flex: 1 !important;
}

.journals li .body .links .view a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    min-height: 36px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

.journals li .body .links .view a:hover {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .journals {
        padding: 16px 24px !important;
    }
    
    .journals ul {
        width: calc(100% - 16px) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .journals {
        padding: 12px 16px !important;
    }
    
    .journals ul {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }
    
    .journals li {
        min-height: 250px !important;
    }
    
    .journals li .thumb {
        height: 140px !important;
        padding: 10px !important;
    }
    
    .journals li .thumb a {
        width: 70px !important;
        height: 95px !important;
    }
    
    .journals li .body {
        padding: 12px !important;
    }
    
    .journals li .body h3 {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }
}

/* ========================================
   FOOTER & SIDEBAR
   ======================================== */

.pkp_structure_footer_wrapper {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 30px 0 !important;
    margin-top: 40px !important;
}

.pkp_structure_footer {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    text-align: center !important;
}

.pkp_brand_footer,
.pkp_brand_footer a,
.pkp_brand_footer img {
    display: none !important;
}

.pkp_structure_footer::after {
    content: "© 2025 srpublish.com - All Rights Reserved" !important;
    display: block !important;
    color: #64748b !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    padding: 15px 0 !important;
}

.pkp_structure_sidebar {
    background: #ffffff !important;
    padding: 0 12px !important;
}

.pkp_block {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 16px !important;
}

.pkp_block .title {
    color: #1a202c !important;
    font-weight: 600 !important;
    padding: 12px 16px 8px !important;
    margin: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 0.95rem !important;
}

.pkp_block .content {
    padding: 8px 16px 12px !important;
}

/* ========================================
   ANTI-STACKING FIXES
   ======================================== */

.journals ul {
    contain: layout !important;
    isolation: isolate !important;
}

.journals li {
    contain: layout style !important;
    will-change: transform !important;
}

.journals li,
.journals li .thumb,
.journals li .body {
    float: none !important;
    position: relative !important;
    clear: none !important;
}