.archive-header {
    background: #ffffff;
    padding: 52px 20px 44px;
    border-bottom: 1px solid #f1f5f9;
}

.archive-header-inner {
    max-width: 1290px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.archive-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #618cfb;
    margin: 0;
}

.archive-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: rgb(25, 42, 61);
    margin: 0;
}

.archive-count {
    font-size: 14px;
    color: rgb(58, 79, 102);
    margin: 0;
}

/* ── ARCHIVE GRID ── */
.archive-grid-section {
    padding: 52px 20px 80px;
    background: #fafafa;
}

/* ── EMPTY STATE ── */
.archive-empty {
    padding: 80px 20px 120px;
    background: #ffffff;
}

.archive-empty-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.archive-empty-icon {
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.archive-empty-icon svg {
    width: 24px;
    height: 24px;
}

.archive-empty h2 {
    font-size: 22px;
    font-weight: 700;
    color: rgb(25, 42, 61);
    margin: 0;
}

.archive-empty p {
    font-size: 15px;
    color: rgb(58, 79, 102);
    line-height: 1.6;
    margin: 0;
}

.archive-empty-search {
    position: relative;
    width: 100%;
    display: flex;
    margin-top: 4px;
}

.archive-empty-search input {
    width: 100%;
    padding: 14px 44px 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.archive-empty-search input:focus {
    box-shadow: 0 4px 12px rgba(97, 140, 251, 0.15);
    border-color: #618cfb;
}

.archive-empty-search button {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-empty-search button svg {
    fill: #a0aec0;
    transition: fill 0.2s;
}

.archive-empty-search button:hover svg {
    fill: #618cfb;
}

.archive-description {
    font-size: 15px;
    color: rgb(58, 79, 102);
    line-height: 1.6;
    margin: 0;
    max-width: 560px;
}

@media (max-width: 640px) {
    .archive-header {
        padding: 36px 20px 32px;
    }

    .archive-title {
        font-size: 26px;
    }

    .archive-grid-section {
        padding: 36px 20px 60px;
    }
}

.page-404 {
    background: #ffffff;
}


.page-404-hero {
    padding: 80px 20px 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-404-number {
    font-size: 200px;
    font-weight: 800;
    line-height: 1;
    color: #f1f5f9;
    letter-spacing: -8px;
    user-select: none;
    pointer-events: none;
    margin-bottom: -32px;
}

.page-404-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 480px;
}

.page-404-content h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: rgb(25, 42, 61);
    margin: 0;
}

.page-404-content p {
    font-size: 15px;
    color: rgb(58, 79, 102);
    line-height: 1.65;
    margin: 0;
}

/* ── Search form ── */
.page-404-search {
    position: relative;
    width: 100%;
    max-width: 420px;
    display: flex;
    margin-top: 8px;
}

.page-404-search input {
    width: 100%;
    padding: 14px 44px 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-404-search input:focus {
    box-shadow: 0 4px 12px rgba(97, 140, 251, 0.15);
    border-color: #618cfb;
}

.page-404-search button {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.page-404-search button svg {
    fill: #a0aec0;
    transition: fill 0.2s;
}

.page-404-search button:hover svg {
    fill: #618cfb;
}

/* ── Home link ── */
.page-404-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: rgb(58, 79, 102);
    text-decoration: none;
    transition: color 0.15s;
}

.page-404-home:hover {
    color: #618cfb;
}

.page-404-home svg {
    width: 14px;
    height: 14px;
    transition: transform 0.15s;
}

.page-404-home:hover svg {
    transform: translateX(-2px);
}

/* ── Recent posts strip ── */
.page-404-posts {
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
    padding: 56px 20px 72px;
}

.page-404-posts-inner {
    max-width: 1290px;
    margin: 0 auto;
}

.page-404-posts-heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 28px;
}

.page-404-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1024px) {
    .page-404-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .page-404-number {
        font-size: 120px;
        letter-spacing: -4px;
        margin-bottom: -20px;
    }

    .page-404-content h1 {
        font-size: 24px;
    }

    .page-404-hero {
        padding: 52px 20px 52px;
    }

    .page-404-posts-grid {
        grid-template-columns: 1fr;
    }

    .page-404-posts {
        padding: 40px 20px 56px;
    }
}