.blog-hero {
    position: relative;
    padding: 5rem 0 3rem;
    margin-top: 0;
    background: linear-gradient(140deg, rgba(6, 57, 113, 0.86), rgba(6, 57, 113, 0.65));
    color: #fff;
}

@media (max-width: 767.98px) {
    .blog-hero {
        padding: 3.5rem 0 2.5rem;
        margin-top: 0;
    }
}

.blog-hero h1 {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
}

.blog-hero .lead {
    color: rgba(255, 255, 255, 0.9);
}

.blog-featured-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.blog-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.12);
}

.blog-featured-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.blog-featured-meta {
    padding: 1.5rem;
}

.blog-featured-meta .badge {
    letter-spacing: 0.05em;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(6, 57, 113, 0.08);
    background: #fff;
    box-shadow: 0 12px 24px rgba(6, 57, 113, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(6, 57, 113, 0.12);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #4d5c6f;
}

.blog-filter-panel {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(6, 57, 113, 0.12);
    padding: 1.75rem;
    position: sticky;
    top: 120px;
}

.blog-filter-panel h4 {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.blog-filter-panel label {
    font-weight: 500;
    margin-bottom: 0.35rem;
    display: block;
}

.blog-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.blog-filter-chip {
    background: rgba(6, 57, 113, 0.1);
    color: #063971;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-empty-state {
    border: 1px dashed rgba(6, 57, 113, 0.3);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    background: rgba(6, 57, 113, 0.03);
    text-align: center;
}

.blog-detail-hero {
    position: relative;
    padding: 5rem 0 3rem;
    margin-top: 80px;
    background: linear-gradient(140deg, rgba(6, 57, 113, 0.86), rgba(6, 57, 113, 0.65));
    color: #fff;
}

.blog-detail-hero a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.blog-detail-hero a:hover {
    color: #ffd700;
    text-decoration-color: #ffd700;
}

@media (max-width: 767.98px) {
    .blog-detail-hero {
        padding: 3.5rem 0 2.5rem;
        margin-top: 60px;
    }
}

.blog-content-section {
    background: #f5f7fb;
}

.blog-breadcrumbs {
    background: transparent;
    font-size: 0.95rem;
    color: #4d5c6f;
}

.blog-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(6, 57, 113, 0.35);
}

.blog-breadcrumbs a {
    color: #063971;
    text-decoration: none;
}

.blog-breadcrumbs a:hover {
    text-decoration: underline;
}

.blog-article-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 26px 60px rgba(6, 57, 113, 0.12);
    padding: clamp(1.75rem, 4vw, 3rem);
}

.blog-article-card > *:last-child {
    margin-bottom: 0;
}

.blog-detail-body p,
.blog-detail-body li {
    font-weight: 400;
    line-height: 1.7;
}

.blog-detail-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.blog-detail-body pre {
    background: #0f1f33;
    color: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
}

.blog-detail-body code {
    font-family: "Fira Code", monospace;
}

@media (max-width: 767.98px) {
    .blog-article-card {
        border-radius: 22px;
        padding: 1.75rem;
    }
}

.related-post-card {
    border-radius: 12px;
    border: 1px solid rgba(6, 57, 113, 0.12);
    padding: 1rem;
    transition: transform 0.2s ease;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .blog-filter-panel {
        position: static;
        margin-bottom: 2rem;
    }
}
