/* Techshohor-inspired blog home */
.ts-blog-home {
    background: #f5f6f8;
}

.ts-blog-topbar {
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    padding: 10px 0;
}

.ts-blog-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ts-blog-date {
    font-size: 14px;
    color: #666;
}

.ts-blog-search {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.ts-blog-search input {
    border: 0;
    padding: 8px 12px;
    min-width: 220px;
    outline: none;
}

.ts-blog-search button {
    border: 0;
    background: #c62828;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
}

.ts-blog-nav {
    background: #fff;
    border-bottom: 2px solid #c62828;
    margin-bottom: 24px;
}

.ts-blog-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ts-blog-nav-list a {
    display: block;
    padding: 12px 16px;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.ts-blog-nav-list a:hover,
.ts-blog-nav-list a.active {
    color: #c62828;
}

.ts-blog-section {
    padding: 24px 0;
}

.ts-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    border-bottom: 3px solid #c62828;
    padding-bottom: 8px;
}

.ts-section-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.ts-section-title a {
    color: #111;
    text-decoration: none;
}

.ts-section-subtitle {
    margin: 4px 0 0;
    color: #666;
    font-size: 14px;
}

.ts-view-more,
.ts-view-more-inline {
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.ts-blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.ts-blog-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}

.ts-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.ts-blog-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.ts-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-blog-card-body {
    padding: 16px;
}

.ts-blog-badge {
    display: inline-block;
    background: #ffebee;
    color: #c62828;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.ts-blog-title {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 8px;
    color: #111;
}

.ts-card-hero .ts-blog-title {
    font-size: 28px;
}

.ts-blog-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px;
}

.ts-blog-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #888;
}

/* Hero layout */
.ts-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .7fr;
    gap: 20px;
}

.ts-hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ts-hero-list {
    background: #fff;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.ts-list-title {
    font-size: 18px;
    margin: 0 0 12px;
    color: #c62828;
}

.ts-title-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ts-title-list li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.ts-title-list li:last-child {
    border-bottom: 0;
}

.ts-title-list a {
    color: #222;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.ts-title-list a:hover {
    color: #c62828;
}

.ts-title-list.compact li {
    padding: 8px 0;
}

/* Split feature */
.ts-split-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 20px;
}

.ts-strip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ts-card-strip .ts-blog-card-image {
    aspect-ratio: 16/11;
}

.ts-card-featured .ts-blog-title {
    font-size: 24px;
}

/* Category cards */
.ts-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Multi column */
.ts-columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.ts-column-block {
    background: #fff;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.ts-column-title {
    margin: 0 0 12px;
    font-size: 20px;
}

.ts-column-title a {
    color: #c62828;
    text-decoration: none;
}

/* Post grid */
.ts-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Recent strip */
.ts-recent-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.ts-recent-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.ts-recent-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.ts-recent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-recent-title {
    display: block;
    padding: 10px;
    font-size: 13px;
    color: #222;
    text-decoration: none;
    line-height: 1.35;
}

.ts-recent-title:hover {
    color: #c62828;
}

@media (max-width: 1199px) {
    .ts-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ts-hero-list {
        grid-column: 1 / -1;
    }
    .ts-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .ts-recent-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .ts-hero-grid,
    .ts-split-grid,
    .ts-cards-grid,
    .ts-strip-grid {
        grid-template-columns: 1fr;
    }
    .ts-grid-4,
    .ts-recent-strip {
        grid-template-columns: 1fr;
    }
    .ts-section-title {
        font-size: 22px;
    }
}
