/* ==========================================================================
   KRATOS 3D - PUBLIC BLOG DEDICATED STYLES (blog.css)
   Standards: ui-ux-pro-max (Typography, Mobile First, Contrast & Aesthetics)
   ========================================================================== */

/* Blog Index Card Grid */
.blog-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: #7dd3fc;
    box-shadow: 0 12px 28px -6px rgba(14, 165, 233, 0.15), 0 8px 16px -8px rgba(0, 0, 0, 0.06);
}

.blog-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f8fafc;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.04);
}

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

.blog-card-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0284c7;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.35;
    color: #0f172a;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: #0369a1;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0284c7;
    margin-top: auto;
}

.blog-card-footer svg {
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-footer svg {
    transform: translateX(4px);
}

/* Blog Article Detail Page Styles */
.article-header {
    margin-bottom: 2.5rem;
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.article-breadcrumbs a {
    color: #0284c7;
    text-decoration: none;
    transition: color 0.2s;
}

.article-breadcrumbs a:hover {
    color: #0369a1;
    text-decoration: underline;
}

.article-featured-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 1.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Article Typography Prose */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}

.article-content h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.625rem;
    line-height: 1.3;
    color: #0f172a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.article-content h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: #0f172a;
    font-weight: 600;
}

.article-content figure {
    margin: 2.5rem 0;
}

.article-content img {
    border-radius: 1rem;
    width: 100%;
    height: auto;
    display: block;
}

.article-content figcaption {
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.5rem;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}

.article-content th {
    background: #f8fafc;
    border-bottom: 2px solid #cbd5e1;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
}

.article-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Related Articles Block */
.related-articles-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .blog-card-title {
        font-size: 1.125rem;
    }
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    .article-content h2 {
        font-size: 1.375rem;
    }
}
