/* Custom overrides for SalesCompLab static site */

/* Blog post tables */
.blog-post table {
    width: 100%;
    margin: 1.5em 0;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    overflow: hidden;
    font-size: 15px;
}
.blog-post thead {
    background-color: #f5f7fa;
}
.blog-post th {
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #ddd;
    color: #333;
}
.blog-post td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    color: #555;
}
.blog-post tbody tr:last-child td {
    border-bottom: none;
}
.blog-post tbody tr:hover {
    background-color: #f9fbfd;
}

/* (a) Category submenu colors - darker background, white text */
.category-link {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    padding: 18px 20px;
    display: block;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}
.category-link:hover {
    opacity: 0.85;
}
/* Darken the category colors for better contrast */
.category-link[style*="#e6c728"] {
    background-color: #b89c10 !important;
}
.category-link[style*="#a872b7"] {
    background-color: #7d4d8f !important;
}
.category-link[style*="#4aaec2"] {
    background-color: #2d8a9e !important;
}
.category-link div {
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* (d) Fix homepage grid gaps - consistent row layout */
.w-dyn-items.w-row {
    display: flex;
    flex-wrap: wrap;
}
.blog-thumbnail.w-dyn-item {
    display: flex;
    margin-bottom: 30px;
}
.blog-thumbnail .thumbnail-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* (e) Blog card height consistency */
.blog-thumbnail .image-wrapper {
    position: relative;
    overflow: hidden;
    height: 180px;
    flex-shrink: 0;
}
.blog-thumbnail .thumbnail-image {
    height: 100%;
    background-size: cover;
    background-position: center;
}
.blog-thumbnail .thumbnail-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px 10px 10px;
}
.blog-thumbnail .blog-title {
    flex: 1;
    min-height: 2.8em;
}
.blog-thumbnail .preview-text {
    min-height: 1.4em;
    margin-bottom: 5px;
}

/* Author section in cards: always two lines, name next to image, date below */
.blog-thumbnail .thumb-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 10px 12px;
    min-height: 52px;
    flex-shrink: 0;
}
.blog-thumbnail .author-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    flex-shrink: 0;
}
.blog-thumbnail .author-title {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.blog-thumbnail .thumbnail-date {
    width: 100%;
    font-size: 12px;
    margin-top: 2px;
    padding-left: 34px;
    color: #888;
}
