.blog-nav {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 40, 104, 0.06);
    padding: 0.85rem 0;
}

.blog-nav .nav {
    gap: 0.4rem;
}

.blog-nav .nav-link {
    border-radius: 999px;
    color: var(--texas-blue);
    font-weight: 700;
}

.blog-nav .nav-link:hover,
.blog-nav .nav-link.active {
    background: var(--texas-red);
    color: var(--texas-white);
}

.blog-search {
    position: relative;
}

.blog-search .form-control {
    border-radius: 999px;
    padding-left: 2.5rem;
}

.search-icon {
    color: var(--muted);
    left: 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.search-results {
    background: var(--texas-white);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
    left: 0;
    margin-top: 0.5rem;
    max-height: 24rem;
    overflow-y: auto;
    position: absolute;
    right: 0;
    z-index: 1040;
}

.search-result-item {
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1rem;
}

.search-result-item:last-child {
    border-bottom: 0;
}

.search-result-item a {
    color: var(--ink);
    display: block;
    text-decoration: none;
}

.search-result-item small {
    color: var(--muted);
    display: block;
}

.category-strip {
    background: var(--texas-white);
}

.hero-blog {
    background: #1e3267;
    min-height: 19rem;
    padding: 6rem 0;
}

.hero-blog .hero-overlay {
    background: linear-gradient(180deg, rgba(30, 50, 103, 0.95), rgba(30, 50, 103, 0.95));
}

.feature-card {
    background: var(--texas-white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(0, 40, 104, 0.08);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.feature-card.active,
.feature-card.category-active {
    border-color: var(--texas-red);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.feature-icon {
    align-items: center;
    background: linear-gradient(135deg, var(--texas-blue), var(--texas-red));
    border-radius: 999px;
    color: var(--texas-white);
    display: flex;
    font-size: 1.6rem;
    height: 4rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 4rem;
}

.blog-with-sidebar,
.blog-with-sidebars {
    align-items: start;
    display: grid;
    gap: 2rem;
}

.blog-with-sidebar {
    grid-template-columns: minmax(0, 1fr) 340px;
}

.blog-with-sidebars {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.blog-layout-container {
    max-width: 1480px;
}

.category-menu-strip {
    margin-bottom: 2rem;
}

.category-nav-widget {
    overflow: visible;
}

.category-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.category-menu-link {
    align-items: center;
    background: var(--texas-white);
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    box-shadow: 0 10px 24px rgba(0, 40, 104, 0.06);
    color: var(--texas-blue);
    display: flex;
    flex: 0 0 175px;
    font-size: 0.92rem;
    font-weight: 800;
    gap: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
}

.category-menu-link:hover,
.category-menu-link.active {
    border-color: var(--texas-red);
    box-shadow: var(--shadow);
    color: var(--texas-red);
    transform: translateY(-2px);
}

.category-menu-icon {
    align-items: center;
    background: linear-gradient(135deg, var(--texas-blue), var(--texas-red));
    border-radius: 0.65rem;
    color: var(--texas-white);
    display: inline-flex;
    flex: 0 0 2.3rem;
    height: 2.3rem;
    justify-content: center;
    width: 2.3rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    box-shadow: 0 20px 50px rgba(0, 40, 104, 0.16);
    transform: translateY(-4px);
}

.blog-card .card-img-top {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-card-placeholder {
    align-items: center;
    background: linear-gradient(135deg, var(--texas-blue), var(--texas-red));
    color: var(--texas-white);
    display: flex;
    font-size: 2.4rem;
    justify-content: center;
}

.card-body {
    padding: 1.35rem;
}

.card-meta,
.post-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.card-meta i,
.post-meta i {
    color: var(--texas-red);
    margin-right: 0.35rem;
}

.card-title a {
    color: var(--ink);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--texas-red);
}

.card-text {
    color: #475569;
}

.read-more {
    align-items: center;
    color: var(--texas-red);
    display: inline-flex;
    font-weight: 800;
    gap: 0.35rem;
    text-decoration: none;
}

.read-more:hover {
    gap: 0.55rem;
}

.taxonomy-links {
    margin-bottom: 1rem;
}

.blog-categories,
.blog-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.45rem;
}

.blog-category,
.blog-tag,
.tag-cloud-item {
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    text-decoration: none;
}

.blog-category {
    background: rgba(0, 40, 104, 0.1);
    color: var(--texas-blue);
}

.blog-tag,
.tag-cloud-item {
    background: rgba(191, 10, 48, 0.1);
    color: var(--texas-red);
}

.blog-category:hover,
.blog-tag:hover,
.tag-cloud-item:hover,
.tag-cloud-item.active {
    background: var(--texas-red);
    color: var(--texas-white);
}

.blog-post {
    background: var(--texas-white);
}

.post-header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.post-title {
    color: var(--texas-blue);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.post-featured-image {
    margin-bottom: 2rem;
}

.post-featured-image img {
    box-shadow: var(--shadow);
    width: 100%;
}

.post-content {
    font-size: 1.08rem;
}

.post-content h2,
.post-content h3 {
    color: var(--texas-blue);
    font-weight: 850;
    margin-top: 2.2rem;
}

.post-content img {
    border-radius: 0.8rem;
    height: auto;
    max-width: 100%;
}

.post-content blockquote {
    background: #f8fafc;
    border-left: 5px solid var(--texas-red);
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
}

.social-sharing {
    align-items: center;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.social-share-btn {
    border-radius: 999px;
    color: var(--texas-white);
    display: inline-flex;
    font-weight: 700;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    text-decoration: none;
}

.social-share-btn.facebook {
    background: #1877f2;
}

.social-share-btn.twitter {
    background: #111827;
}

.social-share-btn.linkedin {
    background: #0a66c2;
}

.social-share-btn:hover {
    color: var(--texas-white);
    transform: translateY(-2px);
}

.author-bio {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
}

.author-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--texas-red), var(--texas-blue));
    border-radius: 999px;
    color: var(--texas-white);
    display: flex;
    flex: 0 0 4rem;
    height: 4rem;
    justify-content: center;
    width: 4rem;
}

.sidebar-sticky,
.blog-sidebar {
    position: sticky;
    top: 6rem;
}

.sidebar-widget {
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.sidebar-widget-title {
    align-items: center;
    background: #f8fafc;
    border: 0;
    color: var(--texas-blue);
    display: flex;
    font-size: 1rem;
    font-weight: 850;
    margin: 0;
    padding: 1rem;
    text-align: left;
    width: 100%;
}

.sidebar-widget-content {
    padding: 1rem;
}

.recent-posts-list,
.category-list,
.archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-post-item {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.recent-post-thumbnail {
    border-radius: 0.6rem;
    flex: 0 0 72px;
    overflow: hidden;
}

.recent-post-thumbnail img {
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.recent-post-title {
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 0 0 0.3rem;
}

.recent-post-title a,
.category-item a,
.archive-item a,
.quick-links-card a {
    color: var(--ink);
    text-decoration: none;
}

.recent-post-title a:hover,
.category-item a:hover,
.archive-item a:hover,
.quick-links-card a:hover {
    color: var(--texas-red);
}

.recent-post-date {
    color: var(--muted);
    font-size: 0.82rem;
}

.recent-post-date i {
    color: var(--texas-red);
    margin-right: 0.3rem;
}

.recent-post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.recent-post-categories a {
    background: rgba(0, 40, 104, 0.08);
    border-radius: 999px;
    color: var(--texas-blue);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    text-decoration: none;
}

.recent-post-categories a:hover {
    background: var(--texas-red);
    color: var(--texas-white);
}

.category-item a,
.archive-item a {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0;
}

.sidebar-toggle {
    align-items: center;
    background: var(--texas-red);
    border: 0;
    border-radius: 999px;
    bottom: 1rem;
    box-shadow: var(--shadow);
    color: var(--texas-white);
    display: none;
    height: 3rem;
    justify-content: center;
    position: fixed;
    right: 1rem;
    width: 3rem;
    z-index: 1040;
}

.sidebar-overlay {
    background: rgba(15, 23, 42, 0.5);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.2s ease;
    z-index: 1030;
}

.sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.table-of-contents {
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin-bottom: 0.45rem;
}

.toc-item-h3 {
    font-size: 0.9rem;
    padding-left: 1rem;
}

.toc-link {
    border-left: 3px solid transparent;
    color: #475569;
    display: block;
    padding: 0.35rem 0.5rem;
    text-decoration: none;
}

.toc-link:hover,
.toc-link.active {
    background: rgba(191, 10, 48, 0.08);
    border-left-color: var(--texas-red);
    color: var(--texas-red);
}

.empty-state {
    color: var(--muted);
    padding: 5rem 1rem;
    text-align: center;
}

.empty-state i {
    color: #cbd5e1;
    font-size: 4rem;
}

.blog-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.blog-pagination .page-link {
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--texas-blue);
    font-weight: 800;
    min-width: 2.4rem;
    padding: 0.55rem 0.85rem;
    text-align: center;
    text-decoration: none;
}

.blog-pagination .page-link:hover,
.blog-pagination .page-link.active {
    background: var(--texas-red);
    border-color: var(--texas-red);
    color: var(--texas-white);
}

.faq-section,
.howto-section {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.step-number {
    align-items: center;
    background: var(--texas-blue);
    border-radius: 999px;
    color: var(--texas-white);
    display: inline-flex;
    flex: 0 0 2.5rem;
    font-weight: 800;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

@media (max-width: 1199.98px) {
    .blog-with-sidebars {
        grid-template-columns: 1fr;
    }

    .blog-with-sidebars .blog-sidebar {
        position: static;
    }

    .category-menu-link {
        flex-basis: 170px;
    }
}

@media (max-width: 991.98px) {
    .blog-with-sidebar {
        grid-template-columns: 1fr;
    }

    .category-menu-link {
        flex: 1 1 calc(50% - 0.7rem);
    }

    .blog-sidebar {
        background: var(--texas-white);
        bottom: 0;
        box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
        max-width: 360px;
        overflow-y: auto;
        padding: 1rem;
        position: fixed;
        right: 0;
        top: 0;
        transform: translateX(110%);
        transition: transform 0.2s ease;
        width: 88vw;
        z-index: 1040;
    }

    .blog-sidebar.show {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .sidebar-sticky {
        position: static;
    }

    .table-of-contents {
        max-height: none;
    }
}

@media (max-width: 575.98px) {
    .author-bio,
    .social-sharing {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-menu {
        flex-direction: column;
    }

    .category-menu-link {
        flex-basis: auto;
    }
}
