/* ═══════════════════════════════════════════════════
   ASTARTES IT — Blog Styles
   Dedicated styles for blog grid, cards and articles
   ═══════════════════════════════════════════════════ */

:root {
    --blog-card-bg: rgba(255, 255, 255, 0.03);
    --blog-card-hover: rgba(255, 255, 255, 0.07);
    --blog-border: rgba(255, 255, 255, 0.1);
    --blog-accent: #3a86ff;
    --blog-accent-rgb: 58, 134, 255;
    --text-muted: rgba(255, 255, 255, 0.6);
}

/* --- Hero Blog --- */
.blog-hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 50% 0%, rgba(58, 134, 255, 0.1) 0%, transparent 70%);
    text-align: center;
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Blog Card --- */
.blog-card {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    background: var(--blog-card-hover);
    border-color: rgba(58, 134, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.post-image-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .post-image-wrap img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blog-accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.blog-card:hover .post-link {
    gap: 0.8rem;
}

/* --- Section Home (Latest Insights) --- */
.latest-insights {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.01);
}

.latest-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .latest-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* --- Article Detail View --- */
.article-header {
    padding-top: 180px;
    padding-bottom: 60px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.article-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.article-content h2 {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.article-image {
    width: 100%;
    border-radius: 24px;
    margin-bottom: 3.5rem;
    border: 1px solid var(--blog-border);
}