﻿/* ═══════════════════════════════════════════════
   PUBLIC BLOG STYLES
   ═══════════════════════════════════════════════ */

/* === HERO === */
.blog-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 3rem;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(124, 77, 255, .15), transparent 50%), radial-gradient(circle at 80% 30%, rgba(0, 229, 255, .12), transparent 50%), radial-gradient(circle at 50% 80%, rgba(255, 77, 210, .1), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.blog-hero-inner {
    position: relative;
    z-index: 2;
}

.blog-hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.blog-hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 1.5rem 0 1.5rem;
    color: var(--text);
}

    .blog-hero-title .line {
        display: block;
    }

.blog-hero-desc {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-soft);
    margin-bottom: 2rem;
}

/* Search */
.blog-search-box {
    display: flex;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 0.5rem;
    background: linear-gradient(145deg, rgba(13, 15, 36, 0.85), rgba(20, 21, 48, 0.7));
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

    .search-input-wrap i {
        position: absolute;
        right: 1.25rem;
        color: var(--text-muted);
        pointer-events: none;
    }

    .search-input-wrap input {
        width: 100%;
        padding: 0.95rem 3rem 0.95rem 1.25rem;
        background: transparent;
        border: none;
        color: var(--text);
        font-family: inherit;
        font-size: 0.95rem;
        outline: none;
    }

        .search-input-wrap input::placeholder {
            color: var(--text-muted);
        }

.search-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--grad-cta);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    box-shadow: 0 8px 20px rgba(124, 77, 255, 0.35);
}

    .search-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(124, 77, 255, 0.5);
    }

/* ═══════════════════════════════════════════════
   FEATURED POST
   ═══════════════════════════════════════════════ */
.featured-post-section {
    padding: 4rem 0 3rem;
}

.featured-post-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: linear-gradient(145deg, rgba(13, 15, 36, 0.85), rgba(20, 21, 48, 0.7));
    border: 1px solid var(--border-glow);
    border-radius: 28px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    text-decoration: none;
    color: inherit;
    transition: all 0.6s var(--ease);
    margin-top: 3rem;
}

    .featured-post-card:hover {
        transform: translateY(-6px);
        border-color: var(--neon-violet);
        box-shadow: 0 28px 60px rgba(124, 77, 255, 0.25);
    }

.featured-post-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

    .featured-post-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 1s var(--ease);
    }

.featured-post-card:hover .featured-post-cover img {
    transform: scale(1.05);
}

.featured-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.6);
}

.featured-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1), transparent);
    pointer-events: none;
}

.featured-new-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    background: linear-gradient(135deg, #00e676, #00d4ff);
    color: #fff;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 230, 118, 0.4);
    z-index: 2;
    animation: newBadgePulse 2.5s ease-in-out infinite;
}

@keyframes newBadgePulse {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.featured-post-content {
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.meta-time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

    .meta-time i {
        color: var(--neon-cyan);
        font-size: 0.78rem;
    }

.featured-post-title {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin: 0 0 1.15rem;
}

.featured-post-desc {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.85;
    margin: 0 0 1.75rem;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--neon-cyan);
    font-weight: 700;
    font-size: 0.95rem;
    transition: gap 0.4s var(--ease);
    align-self: flex-start;
}

.featured-post-card:hover .featured-cta {
    gap: 1rem;
}

.featured-cta i {
    transition: transform 0.4s var(--ease);
}

.featured-post-card:hover .featured-cta i {
    transform: translateX(-4px);
}

/* ═══════════════════════════════════════════════
   ACTIVE SEARCH INFO
   ═══════════════════════════════════════════════ */
.blog-articles-section {
    padding: 4rem 0 5rem;
}

.active-search-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.5rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(124, 77, 255, 0.03));
    border: 1px dashed rgba(0, 212, 255, 0.3);
    border-radius: 14px;
    flex-wrap: wrap;
}

.search-info-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-soft);
    font-size: 0.92rem;
}

    .search-info-content i {
        color: var(--neon-cyan);
    }

    .search-info-content strong {
        color: var(--text);
        font-weight: 700;
    }

.search-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    background: rgba(255, 77, 109, 0.08);
    border: 1px solid rgba(255, 77, 109, 0.25);
    border-radius: 100px;
    color: var(--neon-red);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s var(--ease);
}

    .search-clear:hover {
        background: var(--neon-red);
        color: #fff;
        border-color: transparent;
    }

/* ═══════════════════════════════════════════════
   MAIN LAYOUT (Grid + Sidebar)
   ═══════════════════════════════════════════════ */
.blog-main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.blog-grid-wrap {
    min-width: 0;
}

/* === Blog Grid === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(13, 15, 36, 0.85), rgba(20, 21, 48, 0.7));
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    text-decoration: none;
    color: inherit;
    transition: all 0.6s var(--ease);
}

    .blog-card:hover {
        transform: translateY(-8px);
        border-color: var(--border-glow);
        box-shadow: 0 24px 50px rgba(124, 77, 255, 0.18);
    }

.blog-card-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.15), rgba(0, 212, 255, 0.08));
}

    .blog-card-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 1s var(--ease);
    }

.blog-card:hover .blog-card-cover img {
    transform: scale(1.06);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.5s var(--ease);
}

.blog-card:hover .blog-card-placeholder i {
    transform: rotate(-8deg) scale(1.08);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.card-time,
.card-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

    .card-time i {
        color: var(--neon-amber);
        font-size: 0.7rem;
    }

    .card-reading-time i {
        color: var(--neon-cyan);
        font-size: 0.7rem;
    }

.blog-card-title {
    margin: 0 0 0.65rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-desc {
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0 0 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--neon-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    transition: gap 0.4s var(--ease);
}

.blog-card:hover .read-more-link {
    gap: 0.75rem;
}

.read-more-link i {
    transition: transform 0.4s var(--ease);
}

.blog-card:hover .read-more-link i {
    transform: translateX(-3px);
}

/* ═══════════════════════════════════════════════
   SIDEBAR (Index)
   ═══════════════════════════════════════════════ */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 1.5rem;
}

.sidebar-card {
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(13, 15, 36, 0.85), rgba(20, 21, 48, 0.7));
    border: 1px solid var(--border);
    border-radius: 18px;
    backdrop-filter: blur(12px);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

    .sidebar-title i {
        color: var(--neon-cyan);
        font-size: 0.92rem;
    }

/* Recent List */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.recent-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--ease);
}

    .recent-item:hover {
        background: rgba(124, 77, 255, 0.08);
        border-color: var(--border-glow);
        transform: translateX(-3px);
    }

.recent-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(13, 15, 36, 0.5);
}

    .recent-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.recent-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .recent-info h4 {
        margin: 0 0 0.4rem;
        color: var(--text);
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.recent-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.72rem;
}

    .recent-meta i {
        color: var(--neon-amber);
        font-size: 0.62rem;
    }

/* Stats Card */
.stats-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1), rgba(0, 212, 255, 0.05));
    border-color: var(--border-glow);
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--grad-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(124, 77, 255, 0.35);
}

.stats-value {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    background: var(--grad-cta);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats-label {
    color: var(--text-soft);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

/* Sidebar CTA */
.sidebar-cta-card {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.12), rgba(0, 212, 255, 0.06));
    border-color: var(--border-glow);
    text-align: center;
}

.cta-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: var(--grad-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 10px 24px rgba(124, 77, 255, 0.4);
    animation: pulseBg 3s ease-in-out infinite;
}

@keyframes pulseBg {
    0%, 100% {
        opacity: 0.85;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.sidebar-cta-card h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    justify-content: center;
}

.sidebar-cta-card p {
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════ */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

    .blog-pagination .page-link {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.65rem 1rem;
        background: rgba(13, 15, 36, 0.6);
        border: 1px solid var(--border);
        border-radius: 12px;
        color: var(--text-soft);
        font-size: 0.88rem;
        font-weight: 600;
        text-decoration: none;
        min-width: 42px;
        justify-content: center;
        transition: all 0.4s var(--ease);
    }

        .blog-pagination .page-link:hover {
            border-color: var(--border-glow);
            color: var(--text);
            transform: translateY(-2px);
        }

        .blog-pagination .page-link.active {
            background: var(--grad-cta);
            border-color: transparent;
            color: #fff;
            box-shadow: 0 8px 18px rgba(124, 77, 255, 0.35);
        }

/* ═══════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════ */
.blog-empty,
.empty-search-state {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

    .blog-empty i,
    .empty-search-state i {
        font-size: 5rem;
        color: var(--text-dim);
        margin-bottom: 1.5rem;
        opacity: 0.45;
    }

    .blog-empty h2,
    .empty-search-state h3 {
        font-size: 1.6rem;
        margin: 0 0 1rem;
        color: var(--text);
    }

    .blog-empty p,
    .empty-search-state p {
        color: var(--text-soft);
        font-size: 1rem;
        line-height: 1.85;
        margin: 0 0 2rem;
    }

/* ═══════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════ */
.blog-cta-section {
    padding: 5rem 0;
}

.blog-cta-card {
    position: relative;
    padding: 3.5rem 3rem;
    background: linear-gradient(145deg, rgba(13, 15, 36, 0.95), rgba(20, 21, 48, 0.85));
    border: 1px solid var(--border-glow);
    border-radius: 28px;
    overflow: hidden;
    text-align: center;
    backdrop-filter: blur(20px);
}

.cta-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.18), transparent 60%);
    pointer-events: none;
    animation: pulseBg 4s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin: 1.25rem 0 1rem;
}

.cta-desc {
    color: var(--text-soft);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.cta-actions {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ═══════════════════════════════════════════════
   BLOG DETAILS PAGE
   ═══════════════════════════════════════════════ */
.blog-detail-hero {
    padding: 7rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.blog-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

    .blog-breadcrumbs a {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        color: var(--text-soft);
        text-decoration: none;
        transition: color 0.3s;
    }

        .blog-breadcrumbs a:hover {
            color: var(--neon-cyan);
        }

    .blog-breadcrumbs .separator {
        color: var(--text-dim);
        font-size: 0.7rem;
    }

    .blog-breadcrumbs .current {
        color: var(--text);
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 280px;
    }

.blog-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.blog-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.12), rgba(0, 212, 255, 0.06));
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    color: var(--neon-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

    .blog-header-tag i {
        font-size: 0.78rem;
    }

.blog-title-main {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 1.25rem;
}

.blog-lead {
    color: var(--text-soft);
    font-size: 1.15rem;
    line-height: 1.85;
    margin: 0 0 2rem;
}

.blog-meta-bar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(145deg, rgba(13, 15, 36, 0.85), rgba(20, 21, 48, 0.7));
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    backdrop-filter: blur(12px);
    justify-content: center;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-soft);
    font-size: 0.85rem;
}

    .meta-pill i {
        color: var(--neon-cyan);
        font-size: 0.78rem;
    }

/* Cover Image */
.blog-cover-section {
    padding: 0 0 2rem;
}

.blog-cover-image {
    aspect-ratio: 21 / 9;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    max-width: 1100px;
    margin: 0 auto;
}

    .blog-cover-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Main Section */
.blog-main-section {
    padding: 3rem 0 5rem;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-content-wrap {
    background: linear-gradient(145deg, rgba(13, 15, 36, 0.85), rgba(20, 21, 48, 0.7));
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 3rem;
    backdrop-filter: blur(12px);
}

.blog-content {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.95;
}

    .blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4 {
        color: var(--text);
        margin: 2rem 0 1rem;
        font-weight: 700;
        line-height: 1.3;
    }

    .blog-content h1 {
        font-size: 1.85rem;
    }

    .blog-content h2 {
        font-size: 1.55rem;
    }

    .blog-content h3 {
        font-size: 1.3rem;
    }

    .blog-content h4 {
        font-size: 1.15rem;
    }

    .blog-content p {
        margin: 0 0 1.25rem;
        color: var(--text-soft);
    }

    .blog-content a {
        color: var(--neon-cyan);
        text-decoration: underline;
    }

        .blog-content a:hover {
            color: var(--neon-violet);
        }

    .blog-content ul, .blog-content ol {
        margin: 1rem 0;
        padding-right: 2rem;
        color: var(--text-soft);
    }

    .blog-content li {
        margin-bottom: 0.5rem;
    }

    .blog-content code {
        background: rgba(124, 77, 255, 0.12);
        color: var(--neon-violet);
        padding: 0.15rem 0.5rem;
        border-radius: 6px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.92em;
    }

    .blog-content pre {
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1.25rem;
        overflow-x: auto;
        margin: 1.5rem 0;
    }

        .blog-content pre code {
            background: transparent;
            padding: 0;
            color: var(--text);
        }

    .blog-content blockquote {
        border-right: 4px solid var(--neon-violet);
        background: rgba(124, 77, 255, 0.05);
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
        border-radius: 0 12px 12px 0;
        color: var(--text);
        font-style: italic;
    }

    .blog-content img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 1.5rem 0;
        border: 1px solid var(--border);
    }

    .blog-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5rem 0;
        border: 1px solid var(--border);
        border-radius: 12px;
        overflow: hidden;
    }

    .blog-content th, .blog-content td {
        padding: 0.75rem 1rem;
        border: 1px solid var(--border);
        text-align: right;
    }

    .blog-content th {
        background: rgba(124, 77, 255, 0.1);
        color: var(--text);
        font-weight: 700;
    }

    .blog-content hr {
        border: none;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--border), transparent);
        margin: 2rem 0;
    }

/* ═══════════════════════════════════════════════
   TAGS
   ═══════════════════════════════════════════════ */
.blog-tags {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border);
}

    .blog-tags h4 {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        margin: 0 0 1.15rem;
        color: var(--text);
        font-size: 1.05rem;
        font-weight: 700;
    }

        .blog-tags h4 i {
            color: var(--neon-cyan);
        }

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    color: var(--neon-cyan);
    font-size: 0.82rem;
    font-weight: 600;
}

    .tag-pill i {
        font-size: 0.65rem;
    }

/* ═══════════════════════════════════════════════
   SHARE
   ═══════════════════════════════════════════════ */
.blog-share {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border);
}

    .blog-share h4 {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        margin: 0 0 1.25rem;
        color: var(--text);
        font-size: 1.05rem;
        font-weight: 700;
    }

        .blog-share h4 i {
            color: var(--neon-cyan);
        }

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

    .share-btn:hover {
        transform: translateY(-3px);
        color: #fff;
        border-color: transparent;
    }

    .share-btn.share-twitter:hover {
        background: #000;
    }

    .share-btn.share-facebook:hover {
        background: #1877f2;
    }

    .share-btn.share-linkedin:hover {
        background: #0a66c2;
    }

    .share-btn.share-whatsapp:hover {
        background: #25d366;
    }

    .share-btn.share-telegram:hover {
        background: #0088cc;
    }

    .share-btn.share-copy:hover {
        background: var(--grad-cta);
    }

.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 230, 118, 0.4);
    z-index: 9999;
    opacity: 0;
    transition: all 0.45s var(--ease-bounce);
}

    .copy-toast.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

/* ═══════════════════════════════════════════════
   PREV/NEXT
   ═══════════════════════════════════════════════ */
.blog-prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border);
}

.prev-next-card {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.5s var(--ease);
}

    .prev-next-card:hover {
        background: rgba(124, 77, 255, 0.08);
        border-color: var(--border-glow);
        transform: translateY(-3px);
    }

.prev-next-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--neon-cyan);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.next-card .prev-next-label {
    justify-content: flex-end;
}

.prev-next-title {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
}

.next-card .prev-next-title {
    text-align: left;
}

/* ═══════════════════════════════════════════════
   SIDEBAR (Details)
   ═══════════════════════════════════════════════ */
.blog-sidebar-detail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 1.5rem;
}

.progress-card {
    background: linear-gradient(145deg, rgba(124, 77, 255, 0.06), rgba(0, 212, 255, 0.03));
    border-color: var(--border-glow);
}

    .progress-card h3 {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        margin: 0 0 1rem;
        color: var(--text);
        font-size: 0.95rem;
        font-weight: 700;
    }

        .progress-card h3 i {
            color: var(--neon-cyan);
        }

.reading-progress {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.progress-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--grad-cta);
    border-radius: 100px;
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(124, 77, 255, 0.6);
}

.progress-percent {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--neon-cyan);
    font-size: 0.88rem;
    min-width: 40px;
    text-align: center;
}

.blog-sidebar-detail .sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

    .blog-sidebar-detail .sidebar-card h3 i {
        color: var(--neon-cyan);
        font-size: 0.85rem;
    }

/* Related */
.related-list,
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.related-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--ease);
}

    .related-item:hover {
        background: rgba(124, 77, 255, 0.08);
        border-color: var(--border-glow);
        transform: translateX(-3px);
    }

.related-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(13, 15, 36, 0.5);
}

    .related-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.related-info {
    flex: 1;
    min-width: 0;
}

    .related-info h4 {
        margin: 0 0 0.4rem;
        color: var(--text);
        font-size: 0.88rem;
        font-weight: 600;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.related-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

    .related-meta i {
        color: var(--neon-amber);
        font-size: 0.65rem;
    }

/* Popular */
.popular-item {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--ease);
}

    .popular-item:hover {
        background: rgba(124, 77, 255, 0.08);
        border-color: var(--border-glow);
        transform: translateX(-3px);
    }

.popular-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grad-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 0.92rem;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(124, 77, 255, 0.4);
}

.popular-info {
    flex: 1;
    min-width: 0;
}

    .popular-info h4 {
        margin: 0 0 0.3rem;
        color: var(--text);
        font-size: 0.88rem;
        font-weight: 600;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.popular-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

    .popular-meta i {
        color: var(--neon-amber);
        font-size: 0.65rem;
    }

/* Back */
.back-to-blog-section {
    padding: 0 0 5rem;
}

.back-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, rgba(13, 15, 36, 0.6), rgba(20, 21, 48, 0.4));
    border: 1px dashed var(--border);
    border-radius: 18px;
}

/* AOS */
[data-aos] {
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .featured-post-card {
        grid-template-columns: 1fr;
    }

    .blog-main-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar-detail {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 6rem 0 2.5rem;
        min-height: auto;
    }

    .blog-search-box {
        flex-direction: column;
        border-radius: 24px;
        padding: 1rem;
    }

    .search-input-wrap input {
        padding: 0.75rem 2.85rem 0.75rem 1rem;
    }

    .search-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .featured-post-content {
        padding: 2rem 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-content-wrap {
        padding: 1.75rem 1.5rem;
    }

    .blog-prev-next {
        grid-template-columns: 1fr;
    }

    .next-card .prev-next-label {
        justify-content: flex-start;
    }

    .next-card .prev-next-title {
        text-align: right;
    }

    .blog-meta-bar {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .blog-breadcrumbs .current {
        max-width: 150px;
    }

    .stats-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .share-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.78rem;
        padding: 0.65rem 0.85rem;
    }

        .share-btn span {
            display: none;
        }
}
