/* ============================================================
   BLOG POST STYLESHEET (Shared by all blog posts)
   ============================================================ */

/* ===== HERO ===== */
.blog-post-hero {
    padding: 120px 20px 70px;
    text-align: center;
    background: radial-gradient(circle at center, #0f2240 0%, #070d1b 100%);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    position: relative;
    overflow: hidden;
}
.blog-post-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 200%; height: 100%;
    background-image: radial-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    opacity: 0.3;
    animation: slideBackground 25s linear infinite;
    pointer-events: none;
}
.blog-post-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}
.blog-post-hero .badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    background: rgba(0, 229, 255, 0.12);
    color: #00e5ff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 229, 255, 0.15);
}
.blog-post-hero h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #00e5ff 60%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 20px rgba(0, 229, 255, 0.15));
}
.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 14px;
}
.blog-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-post-meta i {
    color: #00e5ff;
    font-size: 13px;
}

/* ===== ARTICLE BODY ===== */
.blog-post-content {
    padding: 70px 20px 90px;
    background: #070d1b;
}
.blog-post-content .container {
    max-width: 800px;
    margin: 0 auto;
}
.blog-post-body {
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.9;
}
.blog-post-body p {
    margin-bottom: 22px;
}
.blog-post-body h2 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 45px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 229, 255, 0.2);
    letter-spacing: -0.3px;
}
.blog-post-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 32px 0 14px;
}
.blog-post-body strong {
    color: #00e5ff;
    font-weight: 700;
}
.blog-post-body a {
    color: #00e5ff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 229, 255, 0.4);
    transition: all 0.3s ease;
}
.blog-post-body a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}
.blog-post-body ul,
.blog-post-body ol {
    padding-left: 22px;
    margin-bottom: 22px;
}
.blog-post-body ul li,
.blog-post-body ol li {
    margin-bottom: 10px;
    line-height: 1.8;
}
.blog-post-body ul li::marker {
    color: #00e5ff;
}
.blog-post-body ol li::marker {
    color: #00e5ff;
    font-weight: 700;
}
.blog-post-body blockquote {
    background: rgba(0, 229, 255, 0.04);
    border-left: 4px solid #00e5ff;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 28px 0;
    font-style: italic;
    color: #e2e8f0;
}
.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 25px 0;
    border: 1px solid rgba(0, 229, 255, 0.1);
}

/* ===== TABLE OF CONTENTS ===== */
.toc {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 16px;
    padding: 25px 30px;
    margin: 30px 0 40px;
}
.toc h4 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    letter-spacing: -0.3px;
}
.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc ul li {
    margin-bottom: 10px;
}
.toc ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    display: inline-block;
}
.toc ul li a::before {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #00e5ff;
    margin-right: 8px;
    font-size: 12px;
}
.toc ul li a:hover {
    color: #00e5ff;
}
/* Smooth scrolling for TOC links */
html {
    scroll-behavior: smooth;
}

/* ===== CTA BOX ===== */
.blog-post-cta {
    background: rgba(0, 229, 255, 0.04);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    margin: 50px 0 20px;
}
.blog-post-cta h3 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}
.blog-post-cta h3 span {
    color: #00e5ff;
}
.blog-post-cta p {
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 22px;
}
.blog-post-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0099ff, #00e5ff);
    color: #00122e;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
    border: none;
}
.blog-post-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0, 229, 255, 0.4);
}

/* ===== RELATED POSTS ===== */
.blog-related {
    padding: 70px 20px 100px;
    background: radial-gradient(circle at center, #0f2240 0%, #070d1b 100%);
    border-top: 1px solid rgba(0, 229, 255, 0.06);
}
.blog-related .container {
    max-width: 1200px;
    margin: 0 auto;
}
.blog-related .section-header {
    text-align: center;
    margin-bottom: 40px;
}
.blog-related .section-header .section-subtitle {
    color: #00e5ff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}
.blog-related .section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.related-post-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 18px;
    padding: 26px 22px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}
.related-post-card:hover {
    transform: translateY(-6px);
    background: rgba(23, 34, 59, 0.9);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}
.related-post-card .post-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    align-self: flex-start;
}
.cat-seo {
    background: rgba(0, 229, 255, 0.08);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.15);
}
.cat-dm {
    background: rgba(168, 85, 247, 0.08);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.15);
}
.related-post-card h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}
.related-post-card p {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}
.related-post-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00e5ff;
    font-weight: 600;
    font-size: 13px;
    margin-top: auto;
}
.related-post-card:hover .read-more i {
    transform: translateX(4px);
}
.related-post-card .read-more i {
    transition: transform 0.3s ease;
}

/* ===== ANIMATIONS ===== */
@keyframes slideBackground {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-fade-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-fade-up.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.35s; }
.delay-3 { transition-delay: 0.55s; }

/* ===== AUTO-FADE FOR BLOG POST BODY ===== */
.blog-post-body.animate-fade-up {
    opacity: 0;
    transform: translateY(25px);
    animation: blogFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
@keyframes blogFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .blog-post-body.animate-fade-up {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .blog-post-hero {
        padding: 90px 20px 50px;
    }
    .blog-post-hero h1 {
        font-size: 28px;
    }
    .blog-post-body {
        font-size: 15.5px;
    }
    .blog-post-body h2 {
        font-size: 22px;
    }
    .blog-post-body h3 {
        font-size: 19px;
    }
    .blog-post-meta {
        gap: 12px;
        font-size: 13px;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    .blog-related .section-header h2 {
        font-size: 26px;
    }
    .toc {
        padding: 20px 22px;
    }
    .toc h4 {
        font-size: 18px;
    }
    .toc ul li a {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .blog-post-hero h1 {
        font-size: 24px;
    }
    .blog-post-body {
        font-size: 15px;
    }
    .blog-post-cta {
        padding: 28px 22px;
    }
    .blog-post-cta h3 {
        font-size: 20px;
    }
    .toc {
        padding: 18px 18px;
    }
}