/* Blog page — extends main.css + menu.css */

/* ── Active nav ── */

.nav-links li a.nav-active {
    color: rgba(230, 238, 242, 0.95) !important;
}

/* ── Blog Hero ── */

.blog-hero {
    min-height: 420px;
    padding: 80px 8vw 68px;
    background:
        radial-gradient(ellipse at 72% 28%, rgba(126, 166, 189, 0.07), transparent 38%),
        radial-gradient(ellipse at 12% 80%, rgba(139, 34, 34, 0.05), transparent 32%),
        linear-gradient(180deg, #111719 0%, #1a2022 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 100%;
}

.blog-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(165, 105, 105, 0.75);
    font-weight: 500;
    margin: 0 0 10px;
}

.blog-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #dde4e8;
    margin: 0 0 6px;
}

.blog-title::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #8b2222;
    margin-top: 10px;
    margin-bottom: 20px;
}

.blog-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: rgba(188, 200, 206, 0.82);
    max-width: 600px;
    margin: 0 0 14px;
    line-height: 1.65;
}

.blog-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: rgba(150, 164, 172, 0.52);
    max-width: 600px;
    margin: 0;
    line-height: 1.85;
    font-weight: 300;
}

/* ── Filters ── */

.filters-section {
    padding: 20px 8vw;
    background: #1a2022;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
}

.filters-row {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: max-content;
}

.filter-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(172, 184, 192, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
    padding: 5px 13px;
    border-radius: 2px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    color: rgba(210, 220, 226, 0.82);
    border-color: rgba(255, 255, 255, 0.18);
}

.filter-btn.active {
    color: rgba(215, 155, 155, 0.85);
    border-color: rgba(139, 34, 34, 0.42);
    background: rgba(139, 34, 34, 0.07);
}

/* ── Featured Article ── */

.featured-section {
    padding: 48px 8vw 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 300px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(20, 28, 30, 0.9);
    transition: border-color 0.25s ease;
}

.featured-card:hover {
    border-color: rgba(139, 34, 34, 0.28);
}

.featured-text {
    padding: 36px 38px;
}

.featured-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(180, 100, 100, 0.68);
    font-weight: 500;
    display: block;
    margin-bottom: 16px;
}

.featured-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 300;
    color: #d5dee3;
    margin: 0 0 18px;
    line-height: 1.35;
    letter-spacing: 0.2px;
}

.featured-summary {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgba(165, 178, 185, 0.62);
    font-weight: 300;
    line-height: 1.78;
    margin: 0 0 22px;
    max-width: 520px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.meta-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(180, 100, 100, 0.62);
}

.meta-dot {
    color: rgba(255, 255, 255, 0.14);
    font-size: 14px;
    line-height: 1;
}

.meta-date,
.meta-source {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: rgba(145, 158, 165, 0.48);
    font-weight: 300;
}

.read-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(188, 148, 148, 0.68);
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 34, 34, 0.28);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.read-link:hover {
    color: rgba(220, 175, 175, 0.9);
    border-color: rgba(139, 34, 34, 0.6);
}

/* Featured image panel */

.featured-img {
    position: relative;
    min-height: 260px;
}

/* ── Image placeholder gradients ── */

.img-optics {
    background: linear-gradient(145deg, #0c2030 0%, #1a3848 55%, #0a1a24 100%);
}

.img-microscopy {
    background: linear-gradient(145deg, #181830 0%, #2a2848 55%, #101028 100%);
}

.img-computational,
.img-computational-sm {
    background: linear-gradient(145deg, #180f2a 0%, #2c1c42 55%, #0e0818 100%);
}

.img-ai {
    background: linear-gradient(145deg, #1c1a10 0%, #2c2818 55%, #120e08 100%);
}

.img-instrumentation {
    background: linear-gradient(145deg, #0c1a18 0%, #182826 55%, #081210 100%);
}

.img-3d {
    background: linear-gradient(145deg, #0c1828 0%, #18183a 55%, #080a1c 100%);
}

/* Dot grid overlay on image placeholders */

.img-dot-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 18px 18px;
}

/* ── Articles Grid ── */

.articles-section {
    padding: 44px 8vw 56px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.article-card {
    background: rgba(20, 28, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.article-card:hover {
    border-color: rgba(139, 34, 34, 0.3);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32);
    transform: translateY(-3px);
}

.article-img {
    width: 100%;
    height: 130px;
    position: relative;
    flex-shrink: 0;
}

.article-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(175, 100, 100, 0.62);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.article-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #c8d2d7;
    margin: 0 0 10px;
    line-height: 1.45;
    letter-spacing: 0.1px;
}

.article-summary {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(155, 168, 176, 0.52);
    font-weight: 300;
    line-height: 1.68;
    margin: 0 0 14px;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    margin-top: auto;
}

.article-status {
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    color: rgba(130, 145, 152, 0.42);
    font-weight: 300;
    font-style: italic;
    flex-shrink: 1;
    min-width: 0;
}

.article-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(182, 142, 142, 0.58);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid rgba(139, 34, 34, 0.2);
    padding-bottom: 2px;
    flex-shrink: 0;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.article-link:hover {
    color: rgba(215, 170, 170, 0.88);
    border-color: rgba(139, 34, 34, 0.55);
}

/* ── Future AI Section ── */

.ai-future-section {
    background: #171d1f;
    padding: 52px 8vw 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-future-content {
    max-width: 680px;
    margin: 0 auto;
}

.construction-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(139, 34, 34, 0.32);
    padding: 4px 12px 4px 10px;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(192, 138, 138, 0.68);
    margin-bottom: 22px;
}

.construction-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(139, 34, 34, 0.75);
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50%       { opacity: 1;    transform: scale(1.1); }
}

.ai-future-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d0d8dc;
    font-weight: 500;
    margin: 0 0 18px;
}

.ai-future-title::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: #8b2222;
    margin-top: 8px;
}

.ai-future-text {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgba(170, 182, 188, 0.58);
    line-height: 1.88;
    font-weight: 300;
    margin: 0 0 24px;
}

.source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 0.6px;
    color: rgba(155, 168, 176, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3px 10px;
    border-radius: 2px;
}

/* ── Follow Section ── */

.follow-section {
    background: #1a2022;
    padding: 48px 8vw 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.follow-content {
    max-width: 680px;
    margin: 0 auto;
}

.follow-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d0d8dc;
    font-weight: 500;
    margin: 0 0 0;
}

.follow-eyebrow::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: #8b2222;
    margin-top: 8px;
    margin-bottom: 16px;
}

.follow-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: rgba(158, 170, 178, 0.48);
    font-weight: 300;
    line-height: 1.78;
    margin: 0 0 24px;
}

.social-icons-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    color: rgba(148, 160, 168, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.social-icon:hover {
    color: rgba(192, 145, 145, 0.72);
    border-color: rgba(139, 34, 34, 0.28);
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-img {
        height: 200px;
        min-height: unset;
    }

    .blog-hero {
        padding: 64px 6vw 52px;
    }
}

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

    .blog-hero {
        padding: 52px 24px 44px;
    }

    .featured-section,
    .articles-section,
    .ai-future-section,
    .follow-section,
    .filters-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .featured-text {
        padding: 24px 20px;
    }

    .blog-subtitle br {
        display: none;
    }
}
