/* ==========================================================================
   Logivix-tech Blog Stylesheet
   Design language matched to existing Logivix corporate pages.
   Palette: bg #070b13 | card #0f172a | text #f8fafc | muted #94a3b8
            primary #3b82f6 | accent #10b981 | footer #03060a
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #070b13;
    color: #f8fafc;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

::selection {
    background-color: rgba(59, 130, 246, 0.3);
}

/* --- Header Navigation (mirrors corporate pages) --- */
.corporate-header {
    background-color: rgba(7, 11, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f8fafc;
    text-decoration: none;
}

.logo span {
    color: #3b82f6;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links .active {
    color: #3b82f6;
}

.btn-nav-cta {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nav-cta:hover {
    background-color: #3b82f6;
    color: #f8fafc;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* --- Blog Hero --- */
.blog-hero {
    padding: 200px 0 80px 0;
    text-align: center;
    background:
        radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.15), transparent 55%),
        radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.05), transparent 50%);
}

.blog-hero .eyebrow {
    display: inline-block;
    color: #3b82f6;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background-color: rgba(59, 130, 246, 0.06);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    max-width: 780px;
    margin: 0 auto 1.5rem auto;
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Blog Listing Grid --- */
.blog-listing {
    padding: 30px 0 120px 0;
}

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

.blog-card {
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background-color: #04070d;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.blog-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-meta i {
    color: #3b82f6;
    font-size: 0.75rem;
}

.blog-card-body h3 {
    font-size: 1.25rem;
    line-height: 1.45;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.7rem;
}

.blog-card-body p {
    color: #94a3b8;
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 1.4rem;
}

.read-more {
    margin-top: auto;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.blog-card:hover .read-more {
    gap: 0.9rem;
}

/* --- Article Page --- */
.article-page {
    padding: 160px 0 0 0;
}

.article-header {
    max-width: 840px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.8rem;
}

.breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #3b82f6;
}

.article-header h1 {
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0 0 1.5rem 0;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.article-meta i {
    color: #3b82f6;
}

.article-meta .blog-badge {
    margin-bottom: 0;
}

.article-header .featured-image {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #04070d;
    margin-top: 1rem;
}

.article-header .featured-image img {
    width: 100%;
    display: block;
}

/* --- Article Content Layout --- */
.article-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 760px);
    gap: 3rem;
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 2rem 0 2rem;
    align-items: start;
}

.toc {
    position: sticky;
    top: 110px;
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.5rem;
    font-size: 0.88rem;
}

.toc h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 1rem;
}

.toc a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    line-height: 1.5;
    padding: 0.3rem 0;
    border-left: 2px solid transparent;
    padding-left: 0.8rem;
    transition: all 0.3s ease;
}

.toc a:hover {
    color: #3b82f6;
    border-left-color: #3b82f6;
}

.toc a.toc-h3 {
    padding-left: 1.6rem;
    font-size: 0.84rem;
}

.article-content {
    min-width: 0;
    padding-bottom: 60px;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.35;
    margin: 3rem 0 1.2rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.15);
    scroll-margin-top: 110px;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.4;
    margin: 2.2rem 0 1rem 0;
    scroll-margin-top: 110px;
}

.article-content p {
    color: #cbd5e1;
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 1.3rem;
}

.article-content ul,
.article-content ol {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 1.5rem 1.4rem;
}

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

.article-content li::marker {
    color: #3b82f6;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem 0;
    font-size: 0.93rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    display: block;
    overflow-x: auto;
}

.article-content th {
    text-align: left;
    background-color: rgba(59, 130, 246, 0.08);
    color: #f8fafc;
    font-weight: 600;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.article-content td {
    padding: 0.9rem 1.2rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.article-content tr:last-child td {
    border-bottom: none;
}

.article-content tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.article-content blockquote {
    border-left: 3px solid #10b981;
    background-color: rgba(16, 185, 129, 0.06);
    padding: 1.4rem 1.6rem;
    border-radius: 0 10px 10px 0;
    margin: 1.8rem 0;
    color: #e2e8f0;
    font-size: 1.02rem;
    line-height: 1.75;
}

.article-content a {
    color: #3b82f6;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #60a5fa;
}

.article-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1.2rem 0;
}

/* --- Inline CTA Box --- */
.cta-box {
    margin: 3rem 0 2rem 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.18), transparent 55%),
        radial-gradient(circle at 5% 90%, rgba(16, 185, 129, 0.12), transparent 50%),
        #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 16px;
    padding: 2.6rem;
    text-align: center;
}

.cta-box h3 {
    font-size: 1.4rem;
    color: #f8fafc;
    margin-bottom: 0.6rem;
}

.cta-box p {
    color: #94a3b8;
    font-size: 0.98rem;
    max-width: 560px;
    margin: 0 auto 1.6rem auto;
}

.cta-box .btn-cta-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #3b82f6;
    color: #f8fafc;
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
    transition: all 0.3s ease;
}

.btn-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
    filter: brightness(1.1);
}

.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary-cta:hover {
    border-color: #f8fafc;
    color: #f8fafc;
    transform: translateY(-2px);
}

/* --- Related Articles --- */
.related-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 2rem 100px 2rem;
}

.related-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    color: #f8fafc;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* --- Premium Corporate Footer (mirrors corporate pages) --- */
.corporate-footer {
    background-color: #03060a;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    padding: 90px 0 30px 0;
    color: #94a3b8;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.corporate-footer::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
    gap: 4rem;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-brand p {
    line-height: 1.7;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-socials a:hover {
    background-color: #3b82f6;
    color: #f8fafc;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    border-color: #3b82f6;
}

.footer-column h4 {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #10b981);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #3b82f6;
    transform: translateX(6px);
}

.newsletter-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.4rem;
    transition: border-color 0.3s ease;
}

.newsletter-form:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.newsletter-form input {
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    color: #f8fafc;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}

.newsletter-form input::placeholder {
    color: #475569;
}

.newsletter-btn {
    background-color: #3b82f6;
    border: none;
    color: #f8fafc;
    padding: 0 1.4rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background-color: #2563eb;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 35px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    position: relative;
    z-index: 1;
}

.location-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f8fafc;
    font-weight: 500;
    background-color: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.location-tag i {
    color: #10b981;
}

@keyframes pinPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.5)); }
    100% { transform: scale(1.15); filter: drop-shadow(0 0 8px #10b981); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .blog-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toc {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.1rem;
    }

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

    .article-header h1 {
        font-size: 1.9rem;
    }

    .nav-links {
        display: none;
    }
}