/* 404 Page Styles */
.error-404 {
    padding: 60px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.error-404 h1 {
    font-size: 120px;
    line-height: 1;
    color: #3861fb;
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.error-404 p {
    font-size: 18px;
    color: #666666;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.error-actions .btn {
    font-size: 16px;
    padding: 12px 24px;
}

.search-form-404 {
    width: 100%;
    max-width: 500px;
}

.search-form-404 h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.search-form-404 .search-form {
    display: flex;
}

.search-form-404 .search-field {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #eaeaea;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-form-404 .search-submit {
    background-color: #3861fb;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-form-404 .search-submit:hover {
    background-color: #2d4ccc;
}

.popular-posts {
    border-top: 1px solid #eaeaea;
    padding-top: 30px;
}

.popular-posts h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.popular-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.popular-posts li {
    padding: 10px;
    background-color: #f7f8fa;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.popular-posts li:hover {
    background-color: #eaeaea;
}

.popular-posts a {
    color: #333333;
    font-weight: 600;
}

.popular-posts a:hover {
    color: #3861fb;
}

@media (max-width: 768px) {
    .error-404 h1 {
        font-size: 80px;
    }

    .error-404 h2 {
        font-size: 24px;
    }

    .popular-posts ul {
        grid-template-columns: 1fr;
    }
}
