.logo a { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.navbar .nav > li > a { padding: 16px 12px; white-space: nowrap; }

.hero-slider {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: #1c1c1c;
    margin: 0 0 14px;
    border-radius: 4px;
}
.hero-slider .slide { display: none; position: relative; height: 340px; color: #fff; }
.hero-slider .slide.active { display: block; }
.hero-slider img { width: 100%; height: 340px; object-fit: cover; display: block; background: #222; }
.hero-slider .cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 36px 56px 18px 18px;
    background: linear-gradient(transparent, rgba(0,0,0,.78));
    color: #fff; font-size: 18px; line-height: 1.45;
}
.hero-slider .cap em {
    display: inline-block; margin-right: 8px; padding: 1px 8px;
    background: #d9534f; border-radius: 2px; font-style: normal; font-size: 12px;
}
.slider-prev, .slider-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 64px; border: 0; cursor: pointer;
    background: rgba(0,0,0,.35); color: #fff; font-size: 32px; line-height: 64px;
}
.slider-prev { left: 0; }
.slider-next { right: 0; }
.slider-dots { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; }
.slider-dots .dot {
    width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
    background: rgba(255,255,255,.55); cursor: pointer;
}
.slider-dots .dot.active { background: #d9534f; }

.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cat-nav a {
    background: #fff; color: #444; border-radius: 16px;
    padding: 5px 12px; border: 1px solid #e6e6e6; font-size: 13px;
}
.cat-nav a span {
    display: inline-block; margin-left: 6px; color: #d9534f; font-size: 12px;
}
.cat-nav a:hover { border-color: #d9534f; color: #d9534f; }

.excerpt { transition: border-color .15s; }
.excerpt:hover { border-left-color: #d9534f; }
.excerpt-tags { margin: 8px 0 0; }
.excerpt-tags a, .article-tags a, .tagcloud a {
    display: inline-block; margin: 0 6px 6px 0; padding: 2px 8px;
    background: #f6f6f6; color: #666; border-radius: 2px; font-size: 12px;
}
.excerpt-tags a:hover, .article-tags a:hover, .tagcloud a:hover { background: #d9534f; color: #fff; }
.article-tags { margin: 10px 0 4px; }
.article-header .label { margin-right: 8px; }

.sidebar .widget h3 { border-left: 3px solid #d9534f; }
.sidebar .widget > ul, .sidebar .cat-side { list-style: none; margin: 0; padding: 6px 0 8px; }
.cat-side li a, .site-stats li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 15px; color: #555;
}
.cat-side li a:hover { background: #fafafa; color: #d9534f; }
.cat-side em { font-style: normal; color: #999; background: #f3f3f3; border-radius: 10px; padding: 0 7px; font-size: 12px; }
.side-search { display: flex; gap: 6px; padding: 12px; }
.side-search input { flex: 1; height: 32px; border: 1px solid #ddd; padding: 0 8px; }
.side-search button { border: 0; background: #d9534f; color: #fff; padding: 0 12px; cursor: pointer; }
.widget-mini { list-style: none; margin: 0; padding: 6px 0; }
.widget-mini li a {
    display: flex; gap: 8px; align-items: center; padding: 8px 12px; color: #444;
}
.widget-mini li a:hover { background: #fafafa; }
.widget-mini img { width: 72px; height: 52px; object-fit: cover; flex: none; background: #eee; }
.widget-mini strong {
    display: block; font-weight: 600; line-height: 1.4;
    max-height: 2.8em; overflow: hidden;
}
.widget-mini small { color: #999; }
.tagcloud { padding: 12px 12px 6px; }
.site-stats ul { list-style: none; margin: 0; padding: 8px 0 12px; }
.site-stats strong { color: #d9534f; }

@media (min-width: 1025px) {
    .sidebar { position: sticky; top: 12px; }
}

.pagination ul { list-style: none; padding: 20px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid #ddd; border-radius: 3px; text-decoration: none; background: #fff; }
.pagination .current { background: #d9534f; color: #fff; border-color: #d9534f; }
.article-content img { max-width: 100%; height: auto; }
.article-content { font-size: 14px; line-height: 1.8; background: #fff; padding: 8px 4px 20px; }

.post-nav { display: flex; gap: 10px; margin: 16px 0; }
.post-nav a {
    flex: 1; background: #fff; padding: 12px 14px; color: #444; border-left: 3px solid #eee;
}
.post-nav a.next { text-align: right; border-left: 0; border-right: 3px solid #eee; }
.post-nav a:hover { border-color: #d9534f; color: #d9534f; }
.post-nav small { display: block; color: #999; margin-bottom: 4px; }

.block-cards { margin: 8px 0 18px; }
.block-title {
    margin: 0 0 10px; padding: 8px 12px; background: #fff;
    border-left: 3px solid #d9534f; font-size: 16px;
}
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-card { display: block; background: #fff; color: #444; overflow: hidden; }
.mini-card img { width: 100%; height: 120px; object-fit: cover; background: #eee; display: block; }
.mini-card span {
    display: block; padding: 8px 10px; line-height: 1.45; height: 52px; overflow: hidden;
}

@media (max-width: 1024px) {
    .hero-slider, .hero-slider .slide, .hero-slider img { height: 210px; }
    .hero-slider .cap { font-size: 15px; padding-right: 16px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .navbar .nav { display: none; }
}
@media (max-width: 640px) {
    .card-grid { grid-template-columns: 1fr 1fr; }
    .post-nav { flex-direction: column; }
    .post-nav a.next { text-align: left; border-right: 0; border-left: 3px solid #eee; }
}