/* ==============================================
   BLOG HERO
   ============================================== */

.blog-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,87,255,.15) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.blog-hero-content .page-tag {
    background: rgba(255,255,255,.1);
    color: #93C5FD;
    margin-bottom: var(--space-5);
}

.blog-hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    color: var(--color-white);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    margin-bottom: var(--space-5);
    letter-spacing: -0.025em;
}

.blog-hero-content p {
    font-size: var(--font-size-md);
    color: rgba(255,255,255,.7);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Search bar */
.blog-search-bar {
    display: flex;
    gap: var(--space-2);
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.15);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
    backdrop-filter: blur(10px);
}

.blog-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: var(--font-size-base);
    color: var(--color-white);
    font-family: var(--font-family);
}

.blog-search-bar input::placeholder {
    color: rgba(255,255,255,.45);
}

.blog-search-bar button {
    padding: 0.6rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    font-family: var(--font-family);
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.blog-search-bar button:hover {
    background: var(--color-primary-dark);
}

/* Categories bar */
.blog-categories-bar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 0;
}

.blog-categories-bar .container {
    padding-top: 0;
    padding-bottom: 0;
}

.blog-filter {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.blog-filter::-webkit-scrollbar { display: none; }

.blog-filter button,
.blog-filter a {
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-muted);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    font-family: var(--font-family);
    transition: color var(--transition-fast), border-color var(--transition-fast);
    flex-shrink: 0;
}

.blog-filter button:hover,
.blog-filter a:hover,
.blog-filter button.active,
.blog-filter a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .blog-hero { padding: 100px 0 60px; }
    .blog-search-bar { flex-direction: column; border-radius: var(--radius-xl); padding: var(--space-4); }
    .blog-search-bar button { border-radius: var(--radius-lg); }
}
