/* ═══════════════════════════════════════════════
   AIQ — Blog Page Styles
   ═══════════════════════════════════════════════ */

/* ─── Active Nav Link ─── */
.nav-active {
    color: var(--accent) !important;
}

/* ─── Blog Card Link Wrapper ─── */
.blog-card-link {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.nav-active::after {
    width: 100% !important;
}

/* ─── Blog Hero ─── */
#blog-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 24px 60px;
    overflow: hidden;
    z-index: 1;
}

.blog-hero-inner {
    padding-bottom: 0 !important;
}

/* ─── Blog Grid ─── */
#blog-posts {
    background: var(--bg-secondary);
    z-index: 1;
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* ─── Blog Card ─── */
.blog-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px 28px;
    transition: all 0.4s var(--ease);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, transparent, var(--accent-glow), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--accent-glow);
}

/* Badge */
.blog-card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    width: fit-content;
}

.blog-card:hover .blog-card-badge {
    background: var(--accent-glow-s);
}

/* Title */
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
    transition: color 0.3s var(--ease);
}

.blog-card:hover .blog-card-title {
    color: var(--accent-light);
}

/* Excerpt */
.blog-card-excerpt {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 24px;
}

/* Meta */
.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-date svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.blog-read-time {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ─── Blog Card Stagger ─── */
.blog-card.reveal:nth-child(1) {
    transition-delay: 0s;
}

.blog-card.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.blog-card.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.blog-card.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.blog-card.reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.blog-card.reveal:nth-child(6) {
    transition-delay: 0.5s;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    #blog-hero {
        min-height: 40vh;
        padding: 140px 20px 40px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        padding: 28px 24px 24px;
    }
}