:root {
    --bg-color: #f1f5f9;
    --surface-color: #ffffff;
    --surface-secondary: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --primary: #f59e0b;
    --primary-hover: #d97706;
    --primary-light: #fef3c7;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* --- Header Section --- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.header-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 2px solid #334155;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-circle:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.logo-circle img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    display: block;
}

.brand-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.brand-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Filter Tabs & Search --- */
.controls-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    gap: 0.4rem;
    background: var(--surface-secondary);
    padding: 0.3rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--text-main);
}

.filter-btn.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.search-box {
    position: relative;
}

.search-input {
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    font-size: 0.85rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background-color: var(--surface-secondary);
    color: var(--text-main);
    outline: none;
    width: 180px;
    transition: var(--transition);
}

.search-input:focus {
    border-color: #f59e0b;
    background-color: #ffffff;
    width: 220px;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    fill: var(--text-light);
    pointer-events: none;
}

/* --- Main Content Area --- */
.main-container {
    max-width: 1080px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
    width: 100%;
}

.intro-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.intro-banner h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: #f8fafc;
}

.intro-banner p {
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 650px;
}

.intro-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.6rem;
}

/* --- Blog Cards Grid --- */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: #cbd5e1;
}

.card-header {
    padding: 1.25rem 1.5rem 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-news {
    background: #dbeafe;
    color: #1e40af;
}

.badge-software {
    background: #dcfce7;
    color: #166534;
}

.badge-dev {
    background: #fef3c7;
    color: #92400e;
}

.badge-security {
    background: #fee2e2;
    color: #991b1b;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-content {
    color: #334155;
    font-size: 0.95rem;
}

.card-content p {
    margin-bottom: 0.75rem;
}

.card-content p:last-child {
    margin-bottom: 0;
}

/* --- Nested Content Sections (for Malware/Security) --- */
.sub-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.sub-box {
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
}

.sub-box-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sub-box-content {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
}

.link-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    margin-right: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
    transition: var(--transition);
}

.link-pill:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    text-decoration: none;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #0f172a;
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.75rem;
    transition: var(--transition);
}

.link-btn:hover {
    background: #334155;
    text-decoration: none;
    transform: translateY(-1px);
}

/* --- Footer --- */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    margin-top: 3rem;
    text-align: center;
}

.footer-container {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    display: none;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .controls-bar {
        width: 100%;
        justify-content: space-between;
    }

    .search-box {
        flex: 1;
    }

    .search-input {
        width: 100%;
    }

    .search-input:focus {
        width: 100%;
    }

    .intro-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
