In your second code block (single case study), you’re overriding the main query:
<?php query_posts( 'post_type=case-study' ); ?>
Get rid of it!
In your second code block (single case study), you’re overriding the main query:
<?php query_posts( 'post_type=case-study' ); ?>
Get rid of it!