.blog-sort-options{
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.blog-sort-options button {
    border-radius: var(--radius-round);
    padding: 12px 32px;
    background-color: var(--color-bg-hover);
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    font-size: var(--font-size-button);
    transition: all 0.3s ease;
    border: none;
    color: var(--color-text-secondary);
}

.blog-sort-options button:hover{
    background-color: var(--color-bg-coral-tint);
    transform: translateY(-2px);
}

.blog-sort-options button.active{
    background-color: var(--color-orange);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(247, 85, 89, 0.3);
}

.blog-sort-options button.active span{
    color:white;
}

.blog-entry-wrapper{
    width: 100%;
}

.blog-container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    width: 100%;
    margin: 0 auto;
}

.blog-entry{
    background-color: var(--color-bg-white);
    border-radius: var(--radius-xl);
    /* border: var(--border-width-thick) solid var(--color-border-pale); */
    box-shadow: 0 4px 16px var(--shadow-color-blue-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-entry:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-color-blue-medium);
    border-color: var(--color-border-primary);
    background-color: var(--color-bg-coral-tint);
}

.blog-image-container{
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-entry:hover .blog-image-container img{
    transform: scale(1.05);
}

.blog-listing-attachments {
    padding: 0 20px 20px 20px;
    margin-top: -10px;
}

.blog-listing-attachments .attachment-button {
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.blog-header-container,
.blog-meta-data,
.blog-short-description{
    padding: 20px;
}

.blog-header-container{
    padding-bottom: 12px;
}

.blog-header-container h1{
    font-size: var(--font-size-page-heading);
    font-weight: 700;
    /* color: var(--color-purple); */
    margin: 0;
    line-height: 1.4;
    border-left: var(--border-width-extra-thick) solid var(--color-coral);
    padding-left: var(--spacing-sm);
}

.blog-meta-data{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: var(--spacing-sm);
    font-size: var(--font-size-meta-sm);
    color: var(--color-text-muted);
}

.entry-date{
    font-weight: 500;
}

.reading-time{
    display: flex;
    align-items: center;
    gap: 8px;
}

.reading-time-icon{
    display: flex;
    align-items: center;
}

.reading-time-icon img{
    width: 16px;
    height: 16px;
}

.blog-short-description{
    padding-top: 0;
    font-size: var(--font-size-description-sm);
    line-height: 1.6;
    color: var(--color-text-secondary);
    font-style: italic;
}

.blog-short-description p{
    margin: 0 0 0.5em 0;
}

.blog-description-wrapper{
    position: relative;
}

.blog-short-description.truncated{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    max-height: 8em; /* Approximately 5 lines at 1.6 line-height */
}

.blog-read-more{
    background: none;
    border: none;
    color: var(--color-coral);
    font-size: var(--font-size-read-more);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 8px;
    transition: color 0.2s ease;
    text-decoration: underline;
}

.blog-read-more:hover{
    color: var(--color-purple);
}

.blog-read-more .read-more-text{
    display: inline;
}

.blog-read-more .read-less-text{
    display: none;
}

.blog-read-more.expanded .read-more-text{
    display: none;
}

.blog-read-more.expanded .read-less-text{
    display: inline;
}

@media only screen and (max-width: 768px) {
    .blog-container{
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
