.blog-widget-container {
    border: 1px solid var(--text-secondary);
    padding: 20px;
    border-radius: 8px;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.blog-widget-posts-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--text-secondary) var(--bg-primary);
    padding-bottom: 20px;
    flex-grow: 1;
    justify-content: center;
}

.blog-widget-post {
    flex: 0 0 auto;
    width: 250px;
    margin-right: 20px;
    scroll-snap-align: start;
    border: 1px solid var(--text-secondary);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
}

.blog-widget-post:last-child {
    margin-right: 0;
}

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

.blog-widget-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-widget-post-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-widget-post-title {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0 0 10px;
}

.blog-widget-post-title a {
    text-decoration: none;
    color: var(--text-primary);
}

.blog-widget-post-title a:hover {
    text-decoration: underline;
}

.blog-widget-post-snippet {
    font-size: 0.9em;
    color: var(--text-secondary);
    flex-grow: 1;
}

.blog-widget-category-panel ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.blog-widget-category-panel li {
    margin-bottom: 5px;
}

.blog-widget-category-panel a {
    text-decoration: none;
    color: var(--accent-primary);
}

.blog-widget-category-panel a:hover {
    text-decoration: underline;
}

.blog-widget-view-more-button {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: var(--accent-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
}

.blog-widget-view-more-button:hover {
    opacity: 0.9;
}
