/* ============================================ */
/* PROJECT LAYOUT - CLEAN & MINIMAL */
/* ============================================ */

.box_project {
    font-family: 'Karla', sans-serif;
    float: left;
    width: 100%;
    padding: 1.5em;
    margin-bottom: 2em;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    position: relative;
}

.project_content_wrapper {
    display: flex;
    align-items: stretch;
    gap: 2em;
    width: 100%;
    float: left;
}

.project_thumbnail {
    width: 49.99%;
    float: left;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.project_thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.thumbnail_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.15em;
background-color:#efefef;
}

.headline_banner {
    font-family: 'Karla', sans-serif;
    font-size: 1.8em;
    font-weight: 600;
    margin: 0;
    padding: 0;
   
    float: left;
    line-height: 1.2;
}

.headline_banner a {
    color: #000;
    text-decoration: none;
   
}

.project_details {
    width: 49.99%;
    float: left;
    display: flex;
    flex-direction: column;
}

.excerpt_project {
    font-family: 'Karla', sans-serif;
    color: #444;
    font-weight: 300;
    line-height: 1.6;
    font-size: 0.95em;
    width: 100%;
    float: left;
    margin: 0 0 1.5em 0;
    padding: 0;
}

.project_tags {
    width: 100%;
    float: left;
    margin: auto 0 0.5em 0;
}

.tag_list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag_list li {
    margin: 0;
    padding: 0;
}

.tag_list li a {
    display: inline-block;
    padding: 0.3em 0.9em;
    background-color: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.8em;
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid #eee;
}

.article_datehead_h3 {
    font-size: 0.85em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.5em 0 0 0;
    padding: 0;
    border-bottom: none;
    font-weight: 400;
    width: 100%;
    float: left;
    order: 3;
}

/* ============================================ */
/* BLACKBOOK SECTION - UPDATED */
/* ============================================ */

#blackbook_container {
    width: 100%;
    padding: 2em 0 4em 0;
    margin: auto;
}

.box {
    float: left;
    width: 49%;
    padding: 1.5em;
    margin-bottom: 2em;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    font-size: 1em;
}

.headline_blackbook {
    font-family: 'Karla', sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 1em 0;
    padding: 0;
    width: 100%;
    float: left;
    line-height: 1.3;
}

.headline_blackbook a {
    color: #222;
    text-decoration: none;
}

.kachel {
    width: 100%;
    float: left;
    overflow: hidden;
    display: block;
    border-radius: 12px;
    margin-bottom: 1em;
}

.kachel img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blackbook_excerpt {
    font-family: 'Karla', sans-serif;
    color: #555;
    font-weight: 300;
    line-height: 1.5;
    font-size: 0.9em;
    width: 100%;
    float: left;
    margin: 0 0 0.5em 0;
    padding: 0;
}

/* Remove tags from box and fix list styling */
.box ul,
.box li {
    list-style: none;
    margin: 0;
    padding: 0;
    width: auto;
    float: none;
    display: inline;
}

.box li {
    display: inline;
    margin-right: 0.5em;
}

.box li a {
    color: #666;
    text-decoration: none;
    font-size: 0.85em;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media screen and (max-width: 768px) {
    .box_project {
        padding: 1em;
        margin-bottom: 1.5em;
        border-radius: 12px;
    }
    
    .project_content_wrapper {
        flex-direction: column;
        gap: 1.5em;
    }
    
    .project_thumbnail {
        width: 100%;
    }
    
    .project_thumbnail img {
        height: 220px;
    }
    
    .thumbnail_overlay {
        padding: 1em;
    }
    
    .headline_banner {
        font-size: 1.3em;
    }
    
    .project_details {
        width: 100%;
    }
    
    .excerpt_project {
        font-size: 0.9em;
        margin-bottom: 1em;
    }
    
    .box {
        width: 100%;
        padding: 1em;
        margin-bottom: 1.5em;
        border-radius: 12px;
    }
    
    .kachel img {
        height: 180px;
    }
    
    .headline_blackbook {
        font-size: 1.2em;
    }
    
    .blackbook_excerpt {
        font-size: 0.85em;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .box_project {
        padding: 1.2em;
    }
    
    .headline_banner {
        font-size: 1.4em;
    }
    
    .project_thumbnail img {
        height: 260px;
    }
    
    .box {
        width: 49%;
    }
}

/* ============================================ */
/* VISUAL CLEANUP */
/* ============================================ */

/* Remove hover effects */
.project_thumbnail img,
.headline_banner a,
.tag_list li a,
.headline_blackbook a {
    transition: none;
}

/* Remove old banner layout */
.post_banner {
    display: none;
}

/* Ensure consistent font usage */
.box,
.headline_blackbook,
.excerpt_project,
.article_datehead_h3,
.blackbook_excerpt {
    font-family: 'Karla', sans-serif;
}

/* Fix box alignment in blackbook section */
.box {
    margin-right: 2%;
}

.box:nth-child(2n) {
    margin-right: 0;
}

/* Ensure proper spacing between sections */
.null_style {
    height: 3em;
    width: 100%;
    float: left;
    clear: both;
}

/* Clean up any remaining list styling */
#blackbook_container ul,
#blackbook_container li,
#projects_container ul,
#projects_container li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Remove bullet points from all lists */
li {
    list-style: none;
}

/* Accessibility improvements */
a:focus {
    outline: 2px solid #5EF942;
    outline-offset: 2px;
}
