/* Custom Academic Posts Styles */

.custom-posts-list {
    margin: 20px 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    background-color:#605A71;
}
.type-group-row {
    display:flex;
    align-content: center;
    gap: 2%;
    margin: 16px auto;
    width: 85%;
}

/* Simple list container styling */
.simple-list {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



.publication-type-group {
    flex-shrink: 1;
    width: 20%;
}

.publication-type-heading {
    font-size: 1.8em;
    color: #cac7c7;
    margin: 0 0 20px 0;
    padding: 0 0 10px 0;

}


.publication-type-items {
    margin-left: 0;
    border: 1px solid #675a4d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 75%;
}

/* Publications List Styles */
.publications-list .publication-item {
    display: flex;
    padding: 25px 20px;
    border-bottom: 1px solid #675a4d;
    background: #675a4d;
    background-image: url("http://localhost/wp_JLG/wp-content/uploads/2025/03/AdobeStock_101721700-1-scaled.jpeg");
    background-size: cover;
    transition: background-color 0.3s ease;
}

.publications-list .publication-item:hover,
.media-list .media-item:hover,
.teaching-list .teaching-item:hover,
.resource-list .resource-item:hover,
.blog-list .blog-item:hover {
    background-color: #f9f9f9;
}

/* Remove border from last item in each group */
.publication-type-items .publication-item:last-child,
.publications-list.simple-list .publication-item:last-child,
.media-type-items .media-item:last-child,
.media-list.simple-list .media-item:last-child,
.teaching-type-items .teaching-item:last-child,
.teaching-list.simple-list .teaching-item:last-child,
.reseource-type-items .resource-item:last-child,
.resource-list.simple-list .resource-item:last-child,
.blog-type-items .blog-item:last-child,
.blog-list.simple-list .blog-item:last-child     {
    border-bottom: none;
}

.publication-image,
.media-image,
.teaching-image,
.resource-image,
.blog-image {
    flex: 0 0 120px;
    margin-right: 20px;
}

.publication-image img,
.media-image img,
.teaching-image img,
.resource-image img,
.blog-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    
}

.publication-content,
.media-content,
.teaching-content,
.resource-content,
.blog-content {
    flex: 1;
    font-size: .85em;
}

.publication-type,
.media-type,
.teaching-type,
.resource-type,
.blog-type {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Different colors for publication type badges (when shown) */
 .publication-type {
    background: #e3f2fd;
    color: #1976d2;
}


.publication-title,
.media-title,
.teaching-title,
.resource-title,
.blog-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    line-height: 1.1;
}

.publication-title a,
.media-title a,
.teaching-title a,
.resource-title a,
.blog-title a  {
    color: #132425;
    text-decoration: none;
}

.publication-title a:hover,
.media-title a:hover,
.teaching-title a:hover,
.resource-title a:hover,
.blog-title a:hover {
    color: #132425;
    text-decoration: underline;
}

.publication-date,
.media-date,
.teaching-date,
.resource-date,
.blog-date
 {
    color: #234243;
    font-size: 1.1em;
    margin-bottom: .3rem;
    font-weight: 700;
}

.publication-excerpt {
    color: #132425;
    line-height: 1.6;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.publication-link,
.media-link,
.teaching-link,
.resource-link,
.blog-link {
    margin-top: 10px;
}

.publication-link .read-more,
.media-link .read-more,
.teaching-link .read-more,
.resources-link .read-more,
.blog-link .read-more {
    display: inline-block;
    background: #132425;
    color: white;
    padding: 6px 14px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.publication-link .read-more:hover,
.media-link .read-more:hover,
.teaching-link .read-more:hover,
.resources-link .read-more:hover,
.blog-link .read-more:hover
 {
    background: #234243;
}

/* Responsive Design */
@media (max-width: 768px) {
    .publication-type-heading {
        font-size: 20px;
        padding-bottom: 0;
        margin-bottom:0;
        width: 100vw;
        padding-left: 15%;
        
    }
    .publication-type-items {
        width: 100%;
    }
    .publication-type-group{
        margin-bottom: 0;
    }
    
    .type-group-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 5px;
        width: auto;
    }
    .publications-list .publication-item
    {
        
        flex-direction: column;
        padding: 15px;
        width: 100%;
    }
    
    .publication-image {
        flex: none;
        margin-right: 0;
        margin-bottom: 15px;
        text-align: left;
        align-items: start;
        width: 100%;

    }
    
    .publication-image img,
    .media-image img,
    .teaching-image img,
    .blog-image img,
    .resource-image img {
        max-width: 150px;
    }
}

/* Generic styles for other post types*/


.media-list .media-item h3,
.teaching-list .teaching-item h3,
.resources-list .resource-item h3 {
    margin: 0 0 8px 0;
}

.media-list .media-item h3 a,
.teaching-list .teaching-item h3 a,
.resources-list .resource-item h3 a {
    color: #333;
    text-decoration: none;
}

.media-list .media-item h3 a:hover,
.teaching-list .teaching-item h3 a:hover,
.resources-list .resource-item h3 a:hover {
    color: #605A71;
}

.post-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
}

