@font-face {
    font-family: 'Kalameh';
    src: url('/assets/fonts/KalamehWeb_Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Kalameh';
    src: url('/assets/fonts/KalamehWeb_Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

:root {
    --vineh-purple-primary: #7c3aed;
    --vineh-purple-light: #a78bfa;
    --vineh-purple-dark: #5b21b6;
    --vineh-purple-glow: rgba(124, 58, 237, 0.15);
    --vineh-grey-primary: #64748b;
    --vineh-grey-light: #94a3b8;
    --vineh-grey-dark: #475569;
    --vineh-text-primary: #1e293b;
    --vineh-text-secondary: #475569;
    --vineh-text-muted: #64748b;
    --vineh-text-white: #ffffff;
    --vineh-bg-primary: #f8fafc;
    --vineh-bg-secondary: #f1f5f9;
    --vineh-bg-white: #ffffff;
    --vineh-bg-dark: #0f172a;
    --vineh-border-light: #e2e8f0;
    --vineh-border-medium: #cbd5e1;
    --vineh-gradient-purple: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --vineh-gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.75) 100%);
    --vineh-shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.08);
    --vineh-shadow-md: 0 4px 16px rgba(124, 58, 237, 0.12);
    --vineh-shadow-lg: 0 8px 32px rgba(124, 58, 237, 0.16);
    --vineh-shadow-xl: 0 16px 48px rgba(124, 58, 237, 0.2);
    --vineh-radius-sm: 8px;
    --vineh-radius-md: 12px;
    --vineh-radius-lg: 16px;
    --vineh-radius-xl: 24px;
    --vineh-spacing-xs: 0.5rem;
    --vineh-spacing-sm: 1rem;
    --vineh-spacing-md: 2rem;
    --vineh-spacing-lg: 4rem;
    --vineh-spacing-xl: 6rem;
    --vineh-font-family: 'Kalameh', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vineh-font-size-xs: 1rem;
    --vineh-font-size-sm: 1.1rem;
    --vineh-font-size-base: 1.285rem;
    --vineh-font-size-lg: 1.375rem;
    --vineh-font-size-xl: 1.625rem;
    --vineh-font-size-2xl: 2rem;
    --vineh-font-size-3xl: 2.5rem;
    --vineh-font-size-4xl: 3rem;
    --vineh-line-height-tight: 1.3;
    --vineh-line-height-normal: 1.6;
    --vineh-line-height-relaxed: 1.8;
    --vineh-container-max: 1280px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes badgePop {
    0%   { opacity: 0; transform: translateY(-16px) scale(0.85); }
    70%  { transform: translateY(3px) scale(1.04); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes titleReveal {
    0%   { opacity: 0; letter-spacing: 0.2em; }
    100% { opacity: 1; letter-spacing: normal; }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes floatDot {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50%       { transform: translateY(-18px) scale(1.1); opacity: 1; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50%       { transform: translateY(8px); opacity: 1; }
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tagPop {
    0%   { opacity: 0; transform: scale(0.8); }
    80%  { transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
    50%       { box-shadow: 0 0 24px 6px rgba(124, 58, 237, 0.18); }
}

@keyframes particleFloat {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
    33%  { transform: translateY(-30px) translateX(15px) scale(1.1); opacity: 1; }
    66%  { transform: translateY(-10px) translateX(-10px) scale(0.9); opacity: 0.8; }
    100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
}

@keyframes heroBrandSlide {
    0%   { opacity: 0; transform: translateY(20px) skewY(2deg); }
    100% { opacity: 1; transform: translateY(0) skewY(0deg); }
}

@keyframes noResultsFade {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--vineh-font-family);
    font-size: var(--vineh-font-size-base);
    line-height: var(--vineh-line-height-normal);
    color: var(--vineh-text-primary);
    background: var(--vineh-bg-primary);
    direction: rtl;
}

.vnhblog-container {
    max-width: var(--vineh-container-max);
    margin: 0 auto;
    padding: 0 var(--vineh-spacing-md);
}

/* ===================== HERO ===================== */

.vnhblog-blog-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/assets/images/slide.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.vnhblog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 5, 25, 0.82) 0%,
        rgba(60, 20, 120, 0.65) 50%,
        rgba(10, 5, 25, 0.88) 100%
    );
    z-index: 1;
}

.vnhblog-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.vnhblog-hero-particles .particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.247), transparent 60%);
    animation: particleFloat linear infinite;
}

.vnhblog-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.vnhblog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--vineh-font-size-sm);
    font-weight: 600;
    margin-bottom: 2rem;
    animation: badgePop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.vnhblog-badge-icon {
    width: 18px;
    height: 18px;
    color: var(--vineh-purple-light);
}

.vnhblog-hero-title {
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s ease 0.4s both;
}

.vnhblog-title-line {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.vnhblog-title-brand {
    display: block;
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, #fff 0%, #c4b5fd 40%, #7c3aed 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroBrandSlide 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both, shimmer 4s linear 1.4s infinite;
}

.vnhblog-hero-description {
    font-size: var(--vineh-font-size-lg);
    line-height: var(--vineh-line-height-relaxed);
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 2rem;
    animation: fadeUp 0.8s ease 0.65s both;
}

.vnhblog-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s ease 0.8s both;
}

.vnhblog-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.vnhblog-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--vineh-purple-light);
}

.vnhblog-stat-label {
    font-size: var(--vineh-font-size-xs);
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.vnhblog-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
}

.vnhblog-search-container {
    max-width: 580px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease 0.95s both;
}

.vnhblog-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 0.375rem 0.375rem 0.375rem 1.25rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.vnhblog-search-form:focus-within {
    box-shadow: 0 12px 50px rgba(124, 58, 237, 0.35), 0 0 0 2px rgba(167, 139, 250, 0.4);
    transform: translateY(-2px);
}

.vnhblog-search-icon {
    width: 22px;
    height: 22px;
    color: var(--vineh-grey-primary);
    flex-shrink: 0;
    transition: color 0.2s;
}

.vnhblog-search-form:focus-within .vnhblog-search-icon {
    color: var(--vineh-purple-primary);
}

.vnhblog-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.875rem 0.75rem;
    font-family: inherit;
    font-size: var(--vineh-font-size-base);
    color: var(--vineh-text-primary);
    background: transparent;
}

.vnhblog-search-input::placeholder {
    color: #94a3b8;
}

.vnhblog-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    color: #64748b;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.vnhblog-clear-btn:hover {
    background: var(--vineh-purple-primary);
    color: white;
}

.vnhblog-clear-btn svg {
    width: 14px;
    height: 14px;
}

.vnhblog-search-results-info {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--vineh-font-size-xs);
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.vnhblog-hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.45);
    animation: scrollBounce 2s ease-in-out infinite;
}

.vnhblog-hero-scroll-hint svg {
    width: 28px;
    height: 28px;
}

/* ===================== MAIN ===================== */

.vnhblog-blog-main {
    padding: var(--vineh-spacing-lg) 0;
}

.vnhblog-breadcrumb {
    padding: var(--vineh-spacing-md) 0;
}

.vnhblog-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    font-size: var(--vineh-font-size-sm);
}

.vnhblog-breadcrumb-item a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vineh-text-muted);
    text-decoration: none;
    transition: color 0.25s;
}

.vnhblog-breadcrumb-item a:hover {
    color: var(--vineh-purple-primary);
}

.vnhblog-breadcrumb-icon {
    width: 16px;
    height: 16px;
}

.vnhblog-breadcrumb-separator {
    color: var(--vineh-border-medium);
}

.vnhblog-breadcrumb-current {
    color: var(--vineh-text-primary);
    font-weight: 600;
}

/* ===================== FILTER ===================== */

.vnhblog-filter-section {
    padding: var(--vineh-spacing-md) 0;
    border-bottom: 2px solid var(--vineh-border-light);
    margin-bottom: var(--vineh-spacing-lg);
}

.vnhblog-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--vineh-spacing-md);
}

.vnhblog-filter-title {
    font-size: var(--vineh-font-size-xl);
    font-weight: 700;
    color: var(--vineh-text-primary);
}

.vnhblog-filter-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--vineh-bg-white);
    border: 2px solid var(--vineh-border-light);
    border-radius: var(--vineh-radius-md);
    color: var(--vineh-text-secondary);
    font-family: inherit;
    font-size: var(--vineh-font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s;
}

.vnhblog-filter-toggle svg { width: 18px; height: 18px; }

.vnhblog-filter-toggle:hover {
    border-color: var(--vineh-purple-primary);
    color: var(--vineh-purple-primary);
}

.vnhblog-category-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.vnhblog-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    background: var(--vineh-bg-white);
    border: 2px solid var(--vineh-border-light);
    border-radius: 50px;
    color: var(--vineh-text-secondary);
    font-family: inherit;
    font-size: var(--vineh-font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.vnhblog-category-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--vineh-gradient-purple);
    opacity: 0;
    transition: opacity 0.25s;
    border-radius: inherit;
}

.vnhblog-category-chip:hover {
    border-color: var(--vineh-purple-light);
    transform: translateY(-3px);
    box-shadow: var(--vineh-shadow-md);
}

.vnhblog-category-active {
    background: var(--vineh-gradient-purple);
    border-color: transparent;
    color: var(--vineh-text-white);
    box-shadow: var(--vineh-shadow-md);
    animation: glowPulse 2.5s ease-in-out infinite;
}

.vnhblog-chip-icon { font-size: 1.15rem; }

.vnhblog-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: var(--vineh-font-size-xs);
    font-weight: 700;
}

.vnhblog-category-chip:not(.vnhblog-category-active) .vnhblog-chip-count {
    background: var(--vineh-bg-secondary);
    color: var(--vineh-text-muted);
}

/* ===================== SECTIONS ===================== */

.vnhblog-featured-section,
.vnhblog-posts-section {
    margin-bottom: var(--vineh-spacing-lg);
}

.vnhblog-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--vineh-font-size-2xl);
    font-weight: 800;
    color: var(--vineh-text-primary);
    margin-bottom: var(--vineh-spacing-md);
}

.vnhblog-title-icon {
    width: 32px;
    height: 32px;
    color: var(--vineh-purple-primary);
}

.vnhblog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--vineh-spacing-md);
}

.vnhblog-sort-button {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    background: var(--vineh-bg-white);
    border: 2px solid var(--vineh-border-light);
    border-radius: var(--vineh-radius-md);
    color: var(--vineh-text-secondary);
    font-family: inherit;
    font-size: var(--vineh-font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s;
}

.vnhblog-sort-button svg { width: 18px; height: 18px; }

.vnhblog-sort-button:hover {
    border-color: var(--vineh-purple-primary);
    color: var(--vineh-purple-primary);
}

/* ===================== FEATURED CARD ===================== */

.vnhblog-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--vineh-bg-white);
    border-radius: var(--vineh-radius-xl);
    overflow: hidden;
    box-shadow: var(--vineh-shadow-lg);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.vnhblog-featured-card.vnhblog-card-hidden {
    display: none;
}

.vnhblog-featured-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--vineh-shadow-xl);
}

.vnhblog-featured-image-wrapper {
    position: relative;
    overflow: hidden;
}

.vnhblog-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.vnhblog-featured-card:hover .vnhblog-featured-image {
    transform: scale(1.07);
}

.vnhblog-featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--vineh-gradient-purple);
    color: var(--vineh-text-white);
    font-size: var(--vineh-font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.vnhblog-featured-overlay {
    position: absolute;
    inset: 0;
    background: var(--vineh-gradient-overlay);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vnhblog-featured-card:hover .vnhblog-featured-overlay {
    opacity: 0.35;
}

.vnhblog-featured-content {
    padding: var(--vineh-spacing-md);
    display: flex;
    flex-direction: column;
}

.vnhblog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.vnhblog-post-category {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--vineh-purple-primary);
    font-size: var(--vineh-font-size-xs);
    font-weight: 700;
    border-radius: 50px;
}

.vnhblog-post-date,
.vnhblog-post-readtime {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--vineh-text-muted);
    font-size: var(--vineh-font-size-xs);
}

.vnhblog-post-date svg,
.vnhblog-post-readtime svg {
    width: 16px;
    height: 16px;
}

.vnhblog-featured-title {
    font-size: var(--vineh-font-size-2xl);
    font-weight: 700;
    line-height: var(--vineh-line-height-tight);
    margin-bottom: 1rem;
}

.vnhblog-featured-title a {
    color: var(--vineh-text-primary);
    text-decoration: none;
    transition: color 0.25s;
}

.vnhblog-featured-title a:hover {
    color: var(--vineh-purple-primary);
}

.vnhblog-featured-excerpt {
    font-size: var(--vineh-font-size-sm);
    line-height: var(--vineh-line-height-relaxed);
    color: var(--vineh-text-secondary);
    margin-bottom: 1.25rem;
}

/* ===================== TAGS ===================== */

.vnhblog-post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.vnhblog-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    background: rgba(124, 58, 237, 0.07);
    color: var(--vineh-purple-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    border: 1.5px solid rgba(124, 58, 237, 0.12);
    transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
    cursor: pointer;
}

.vnhblog-tag:hover,
.vnhblog-tag.vnhblog-tag-active {
    background: var(--vineh-purple-primary);
    color: white;
    border-color: var(--vineh-purple-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.vnhblog-tag.vnhblog-tag-active {
    animation: tagPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vnhblog-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--vineh-spacing-md);
    border-top: 2px solid var(--vineh-border-light);
}

.vnhblog-post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vnhblog-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.vnhblog-author-name {
    font-size: var(--vineh-font-size-sm);
    font-weight: 600;
    color: var(--vineh-text-secondary);
}

.vnhblog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--vineh-gradient-purple);
    color: var(--vineh-text-white);
    font-size: var(--vineh-font-size-sm);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.vnhblog-read-more:hover {
    transform: translateX(-4px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.vnhblog-read-more svg { width: 18px; height: 18px; }

/* ===================== POSTS GRID ===================== */

.vnhblog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--vineh-spacing-md);
}

/* ===================== POST CARD ===================== */

.vnhblog-post-card {
    background: var(--vineh-bg-white);
    border-radius: var(--vineh-radius-lg);
    overflow: hidden;
    box-shadow: var(--vineh-shadow-sm);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, opacity 0.3s ease;
    animation: cardEntrance 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vnhblog-post-card:nth-child(1) { animation-delay: 0.05s; }
.vnhblog-post-card:nth-child(2) { animation-delay: 0.12s; }
.vnhblog-post-card:nth-child(3) { animation-delay: 0.19s; }
.vnhblog-post-card:nth-child(4) { animation-delay: 0.26s; }
.vnhblog-post-card:nth-child(5) { animation-delay: 0.33s; }
.vnhblog-post-card:nth-child(6) { animation-delay: 0.40s; }

.vnhblog-post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--vineh-shadow-lg);
}

.vnhblog-post-card.vnhblog-card-hidden {
    display: none;
}

.vnhblog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.vnhblog-card-image-wrapper {
    position: relative;
    padding-top: 62%;
    overflow: hidden;
}

.vnhblog-card-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.vnhblog-post-card:hover .vnhblog-card-image {
    transform: scale(1.1);
}

.vnhblog-card-overlay {
    position: absolute;
    inset: 0;
    background: var(--vineh-gradient-overlay);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vnhblog-post-card:hover .vnhblog-card-overlay {
    opacity: 0.45;
}

.vnhblog-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.875rem;
    background: var(--vineh-gradient-purple);
    color: var(--vineh-text-white);
    font-size: var(--vineh-font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
    z-index: 1;
}

.vnhblog-badge-security { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); }
.vnhblog-badge-ai       { background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%); }
.vnhblog-badge-tutorial { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }

.vnhblog-card-content { padding: 1.5rem; }

.vnhblog-card-title {
    font-size: var(--vineh-font-size-lg);
    font-weight: 700;
    line-height: var(--vineh-line-height-tight);
    color: var(--vineh-text-primary);
    margin-bottom: 0.75rem;
    transition: color 0.25s;
}

.vnhblog-post-card:hover .vnhblog-card-title {
    color: var(--vineh-purple-primary);
}

.vnhblog-card-excerpt {
    font-size: var(--vineh-font-size-sm);
    line-height: var(--vineh-line-height-relaxed);
    color: var(--vineh-text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vnhblog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--vineh-border-light);
}

.vnhblog-read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--vineh-purple-primary);
    font-size: var(--vineh-font-size-sm);
    font-weight: 700;
    transition: gap 0.25s, color 0.25s;
}

.vnhblog-post-card:hover .vnhblog-read-more-link {
    gap: 0.625rem;
    color: var(--vineh-purple-dark);
}

.vnhblog-read-more-link svg { width: 16px; height: 16px; }

/* ===================== NO RESULTS ===================== */

.vnhblog-no-results {
    text-align: center;
    padding: 4rem 2rem;
    animation: noResultsFade 0.4s ease;
}

.vnhblog-no-results svg {
    width: 64px;
    height: 64px;
    color: var(--vineh-grey-light);
    margin: 0 auto 1.5rem;
    display: block;
}

.vnhblog-no-results h3 {
    font-size: var(--vineh-font-size-xl);
    color: var(--vineh-text-primary);
    margin-bottom: 0.5rem;
}

.vnhblog-no-results p {
    color: var(--vineh-text-muted);
    margin-bottom: 1.5rem;
}

.vnhblog-reset-btn {
    padding: 0.75rem 2rem;
    background: var(--vineh-gradient-purple);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: var(--vineh-font-size-sm);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}

.vnhblog-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--vineh-shadow-md);
}

/* ===================== PAGINATION ===================== */

.vnhblog-pagination-wrapper {
    margin: var(--vineh-spacing-lg) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.vnhblog-perpage-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--vineh-bg-white);
    border: 2px solid var(--vineh-border-light);
    border-radius: var(--vineh-radius-xl);
    padding: 0.75rem 1.5rem;
    box-shadow: var(--vineh-shadow-sm);
}

.vnhblog-perpage-label {
    font-size: var(--vineh-font-size-xs);
    color: var(--vineh-text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.vnhblog-perpage-options {
    display: flex;
    gap: 0.375rem;
}

.vnhblog-perpage-btn {
    padding: 0.4rem 0.9rem;
    border: 2px solid var(--vineh-border-light);
    border-radius: 50px;
    background: transparent;
    color: var(--vineh-text-secondary);
    font-family: inherit;
    font-size: var(--vineh-font-size-xs);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
}

.vnhblog-perpage-btn:hover {
    border-color: var(--vineh-purple-light);
    color: var(--vineh-purple-primary);
}

.vnhblog-perpage-active {
    background: var(--vineh-gradient-purple);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

.vnhblog-total-count {
    font-size: var(--vineh-font-size-xs);
    color: var(--vineh-text-muted);
    font-weight: 500;
    padding-right: 0.5rem;
    border-right: 1.5px solid var(--vineh-border-light);
}

.vnhblog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vnhblog-pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: var(--vineh-bg-white);
    border: 2px solid var(--vineh-border-light);
    border-radius: var(--vineh-radius-md);
    color: var(--vineh-text-secondary);
    font-size: var(--vineh-font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s, transform 0.25s;
}

.vnhblog-pagination-link:hover:not(.vnhblog-pagination-disabled) {
    border-color: var(--vineh-purple-primary);
    color: var(--vineh-purple-primary);
    transform: translateY(-2px);
}

.vnhblog-pagination-active {
    background: var(--vineh-gradient-purple);
    border-color: transparent;
    color: var(--vineh-text-white);
}

.vnhblog-pagination-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vnhblog-pagination-dots {
    color: var(--vineh-text-muted);
    padding: 0 0.5rem;
}

.vnhblog-pagination-link svg { width: 20px; height: 20px; }

/* ===================== NEWSLETTER ===================== */

.vnhblog-newsletter-section { margin: var(--vineh-spacing-xl) 0; }

.vnhblog-newsletter-card {
    background: var(--vineh-gradient-purple);
    border-radius: var(--vineh-radius-xl);
    padding: var(--vineh-spacing-lg);
    box-shadow: var(--vineh-shadow-xl);
    position: relative;
    overflow: hidden;
}

.vnhblog-newsletter-card::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite;
}

.vnhblog-newsletter-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 60%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(91,33,182,0.4) 0%, transparent 70%);
    pointer-events: none;
}

.vnhblog-newsletter-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: var(--vineh-spacing-md);
}

.vnhblog-newsletter-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vnhblog-newsletter-icon svg {
    width: 100%;
    height: 100%;
    color: var(--vineh-text-white);
}

.vnhblog-newsletter-title {
    font-size: var(--vineh-font-size-2xl);
    font-weight: 800;
    color: var(--vineh-text-white);
    margin-bottom: 1rem;
}

.vnhblog-newsletter-description {
    font-size: var(--vineh-font-size-lg);
    line-height: var(--vineh-line-height-relaxed);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

.vnhblog-newsletter-form {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.vnhblog-newsletter-input-group { position: relative; flex: 1; }

.vnhblog-newsletter-input-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--vineh-grey-primary);
    pointer-events: none;
}

.vnhblog-newsletter-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.25rem;
    background: var(--vineh-bg-white);
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: inherit;
    font-size: var(--vineh-font-size-base);
    color: var(--vineh-text-primary);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.vnhblog-newsletter-input:focus {
    outline: none;
    border-color: var(--vineh-purple-dark);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

.vnhblog-newsletter-button {
    padding: 1rem 2.5rem;
    background: var(--vineh-bg-dark);
    color: var(--vineh-text-white);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: var(--vineh-font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vnhblog-newsletter-button:hover {
    background: var(--vineh-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.vnhblog-newsletter-button svg { width: 18px; height: 18px; }

/* ===================== READING PROGRESS ===================== */

#vnhblog-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa, #7c3aed);
    background-size: 200% auto;
    animation: shimmer 2s linear infinite;
    z-index: 9999;
    transition: width 0.15s ease;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1024px) {
    .vnhblog-featured-card { grid-template-columns: 1fr; }
    .vnhblog-posts-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
    :root {
        --vineh-font-size-base: 1.0625rem;
        --vineh-font-size-lg: 1.25rem;
        --vineh-font-size-xl: 1.5rem;
        --vineh-font-size-2xl: 1.75rem;
    }

    .vnhblog-container { padding: 0 1.25rem; }
    .vnhblog-blog-hero { min-height: 90vh; align-items: center; }
    .vnhblog-hero-stats { gap: 1.25rem; }
    .vnhblog-filter-toggle { display: flex; }
    .vnhblog-category-nav { display: none; }
    .vnhblog-posts-grid { grid-template-columns: 1fr; }
    .vnhblog-newsletter-form { flex-direction: column; }
    .vnhblog-newsletter-button { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    :root {
        --vineh-spacing-md: 1.5rem;
        --vineh-spacing-lg: 3rem;
    }
    .vnhblog-hero-stats { flex-wrap: wrap; }
    .vnhblog-stat-divider { display: none; }
}

@media print {
    .vnhblog-blog-hero,
    .vnhblog-search-container,
    .vnhblog-filter-section,
    .vnhblog-pagination,
    .vnhblog-newsletter-section {
        display: none;
    }
    .vnhblog-post-card { break-inside: avoid; }
}